diff --git a/.gitignore b/.gitignore
index aa49d07a6..8caf91724 100644
--- a/.gitignore
+++ b/.gitignore
@@ -83,5 +83,4 @@ package-lock.json
package-lock.json.meta
.pre-commit-config.yaml
-.secrets.baseline
/.idea
diff --git a/.secrets.baseline b/.secrets.baseline
new file mode 100644
index 000000000..4da4879f1
--- /dev/null
+++ b/.secrets.baseline
@@ -0,0 +1,270 @@
+{
+ "exclude": {
+ "files": "package-lock.json|^.secrets.baseline$",
+ "lines": null
+ },
+ "generated_at": "2022-03-21T14:17:34Z",
+ "plugins_used": [
+ {
+ "name": "AWSKeyDetector"
+ },
+ {
+ "name": "ArtifactoryDetector"
+ },
+ {
+ "name": "AzureStorageKeyDetector"
+ },
+ {
+ "base64_limit": 4.5,
+ "name": "Base64HighEntropyString"
+ },
+ {
+ "name": "BasicAuthDetector"
+ },
+ {
+ "name": "BoxDetector"
+ },
+ {
+ "name": "CloudantDetector"
+ },
+ {
+ "ghe_instance": "github.ibm.com",
+ "name": "GheDetector"
+ },
+ {
+ "name": "GitHubTokenDetector"
+ },
+ {
+ "hex_limit": 3,
+ "name": "HexHighEntropyString"
+ },
+ {
+ "name": "IbmCloudIamDetector"
+ },
+ {
+ "name": "IbmCosHmacDetector"
+ },
+ {
+ "name": "JwtTokenDetector"
+ },
+ {
+ "keyword_exclude": null,
+ "name": "KeywordDetector"
+ },
+ {
+ "name": "MailchimpDetector"
+ },
+ {
+ "name": "NpmDetector"
+ },
+ {
+ "name": "PrivateKeyDetector"
+ },
+ {
+ "name": "SlackDetector"
+ },
+ {
+ "name": "SoftlayerDetector"
+ },
+ {
+ "name": "SquareOAuthDetector"
+ },
+ {
+ "name": "StripeDetector"
+ },
+ {
+ "name": "TwilioKeyDetector"
+ }
+ ],
+ "results": {
+ "Examples/ExampleAssistantV2.cs": [
+ {
+ "hashed_secret": "2568b3e3f9f17f73efb1a230845e5055fe3ab5d6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 73,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleDiscoveryV1.cs": [
+ {
+ "hashed_secret": "2568b3e3f9f17f73efb1a230845e5055fe3ab5d6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 43,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleLanguageTranslatorV3.cs": [
+ {
+ "hashed_secret": "2568b3e3f9f17f73efb1a230845e5055fe3ab5d6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 43,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleNaturalLanguageClassifierV1.cs": [
+ {
+ "hashed_secret": "2568b3e3f9f17f73efb1a230845e5055fe3ab5d6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 58,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleNaturalLanguageUnderstandingV1.cs": [
+ {
+ "hashed_secret": "2568b3e3f9f17f73efb1a230845e5055fe3ab5d6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 61,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleNaturalLanguageUnderstandingV1.unity": [
+ {
+ "hashed_secret": "0a7de5e7fb4d25074cb5c09250c742b1135fad80",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 152,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleStreaming.cs": [
+ {
+ "hashed_secret": "ae4b2c7d462619b036460c8673c089a79507c599",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 75,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleTextToSpeechV1.cs": [
+ {
+ "hashed_secret": "2568b3e3f9f17f73efb1a230845e5055fe3ab5d6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 75,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleToneAnalyzerV3.cs": [
+ {
+ "hashed_secret": "2568b3e3f9f17f73efb1a230845e5055fe3ab5d6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 67,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Examples/ExampleToneAnalyzerV3.unity": [
+ {
+ "hashed_secret": "b4914600112ba18af7798b6c1a1363728ae1d96f",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 152,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "README.md": [
+ {
+ "hashed_secret": "33515d8639fda6b97c36f87706759ed3af26e97f",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 125,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Scripts/Services/Discovery/V1/Model/CredentialDetails.cs": [
+ {
+ "hashed_secret": "e8fc807ce6fbcda13f91c5b64850173873de0cdc",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 53,
+ "type": "Secret Keyword",
+ "verified_result": null
+ },
+ {
+ "hashed_secret": "fdee05598fdd57ff8e9ae29e92c25a04f2c52fa6",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 57,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Scripts/Services/SpeechToText/V1/SpeechToTextService.cs": [
+ {
+ "hashed_secret": "f36082ba942225c26353b911fd9beb809e5322be",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 761,
+ "type": "Secret Keyword",
+ "verified_result": null
+ },
+ {
+ "hashed_secret": "cdc5cfb3a1df5a330bccfcb8eb92fad973f170bc",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 793,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Tests/AssistantV1IntegrationTests.cs": [
+ {
+ "hashed_secret": "c2a6b03f190dfb2b4aa91f8af8d477a9bc3401dc",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 1146,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Tests/DiscoveryV1IntegrationTests.cs": [
+ {
+ "hashed_secret": "6d284a097a5bc4b582c29a699a6b6bd753550daf",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 1389,
+ "type": "Secret Keyword",
+ "verified_result": null
+ },
+ {
+ "hashed_secret": "c02a08d1310cc7f693d4b7828af2fcbfec8bf7f7",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 1474,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ],
+ "Tests/SpeechToTextV1IntegrationTests.cs": [
+ {
+ "hashed_secret": "335aa6a62c6c0c1c628aef13a97e1e63ba3a1612",
+ "is_secret": false,
+ "is_verified": false,
+ "line_number": 258,
+ "type": "Secret Keyword",
+ "verified_result": null
+ }
+ ]
+ },
+ "version": "0.13.1+ibm.47.dss",
+ "word_list": {
+ "file": null,
+ "hash": null
+ }
+}
diff --git a/Scripts/Services/Assistant/V1/AssistantService.cs b/Scripts/Services/Assistant/V1/AssistantService.cs
index aff933c09..9202374a6 100644
--- a/Scripts/Services/Assistant/V1/AssistantService.cs
+++ b/Scripts/Services/Assistant/V1/AssistantService.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
*/
/**
-* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
+* IBM OpenAPI SDK Code Generator Version: 3.46.0-a4e29da0-20220224-210428
*/
using System.Collections.Generic;
@@ -43,7 +43,7 @@ public partial class AssistantService : BaseService
///
/// Gets and sets the version of the service.
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is
- /// `2021-06-14`.
+ /// `2021-11-27`.
///
public string Version
{
@@ -68,14 +68,14 @@ public bool DisableSslVerification
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
public AssistantService(string version) : this(version, defaultServiceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(defaultServiceName)) {}
///
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
/// The service authenticator.
public AssistantService(string version, Authenticator authenticator) : this(version, defaultServiceName, authenticator) {}
@@ -83,7 +83,7 @@ public AssistantService(string version, Authenticator authenticator) : this(vers
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
/// The service name to be used when configuring the client instance
public AssistantService(string version, string serviceName) : this(version, serviceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(serviceName)) {}
@@ -91,7 +91,7 @@ public AssistantService(string version, string serviceName) : this(version, serv
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
/// The service name to be used when configuring the client instance
/// The service authenticator.
public AssistantService(string version, string serviceName, Authenticator authenticator) : base(authenticator, serviceName)
diff --git a/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGeneric.cs b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGeneric.cs
index 8374d5404..1554fefae 100644
--- a/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGeneric.cs
+++ b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGeneric.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,16 +32,22 @@ namespace IBM.Watson.Assistant.V1.Model
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
+ /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo
+ /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio
+ /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe
///
[JsonConverter(typeof(JsonSubtypes), "response_type")]
+ [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio), "audio")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer), "channel_transfer")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent), "connect_to_agent")]
+ [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe), "iframe")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeImage), "image")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeOption), "option")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypePause), "pause")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill), "search_skill")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeText), "text")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined), "user_defined")]
+ [JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo), "video")]
public class DialogNodeOutputGeneric
{
/// This ctor is protected to prevent instantiation of this base class.
@@ -54,6 +60,9 @@ public class DialogNodeOutputGeneric
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
+ /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo
+ /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio
+ /// - DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe
protected DialogNodeOutputGeneric()
{
}
@@ -233,5 +242,15 @@ public class QueryTypeValue
///
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary UserDefined { get; protected set; }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public object ChannelOptions { get; protected set; }
+ ///
+ /// The URL of an image that shows a preview of the embedded content.
+ ///
+ [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
+ public string ImageUrl { get; protected set; }
}
}
diff --git a/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs
new file mode 100644
index 000000000..22c3f5507
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs
@@ -0,0 +1,95 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V1.Model
+{
+ ///
+ /// DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.
+ ///
+ public class DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio : DialogNodeOutputGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the audio clip.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// An optional title to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// An optional description to show with the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public new object ChannelOptions
+ {
+ get { return base.ChannelOptions; }
+ set { base.ChannelOptions = value; }
+ }
+ ///
+ /// Descriptive text that can be used for screen readers or other situations where the audio player cannot be
+ /// seen.
+ ///
+ [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
+ public new string AltText
+ {
+ get { return base.AltText; }
+ set { base.AltText = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/CompareComply/V1/CompareComplyService.cs.meta b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs.meta
similarity index 83%
rename from Scripts/Services/CompareComply/V1/CompareComplyService.cs.meta
rename to Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs.meta
index b0d9a35d2..c83d5875f 100644
--- a/Scripts/Services/CompareComply/V1/CompareComplyService.cs.meta
+++ b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 9e86944e1c2e2ad4aafe3fb02f48b6d5
+guid: d117bc46c50584061ba6e27f66d2b5b5
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs
new file mode 100644
index 000000000..87a995ee0
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs
@@ -0,0 +1,85 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V1.Model
+{
+ ///
+ /// DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.
+ ///
+ public class DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe : DialogNodeOutputGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the embeddable content.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// An optional title to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// An optional description to show with the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// The URL of an image that shows a preview of the embedded content.
+ ///
+ [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ImageUrl
+ {
+ get { return base.ImageUrl; }
+ set { base.ImageUrl = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/Assistant/V2/Model/DialogNodesVisited.cs.meta b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs.meta
similarity index 83%
rename from Scripts/Services/Assistant/V2/Model/DialogNodesVisited.cs.meta
rename to Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs.meta
index d60b0af7d..b66af521b 100644
--- a/Scripts/Services/Assistant/V2/Model/DialogNodesVisited.cs.meta
+++ b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 983fb219eb5d624419f61f02fc18c8ef
+guid: 640a10c3e65fc4485a6d918ad141b936
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs
new file mode 100644
index 000000000..d4e05e414
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs
@@ -0,0 +1,94 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V1.Model
+{
+ ///
+ /// DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.
+ ///
+ public class DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo : DialogNodeOutputGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the video.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// An optional title to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// An optional description to show with the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public new object ChannelOptions
+ {
+ get { return base.ChannelOptions; }
+ set { base.ChannelOptions = value; }
+ }
+ ///
+ /// Descriptive text that can be used for screen readers or other situations where the video cannot be seen.
+ ///
+ [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
+ public new string AltText
+ {
+ get { return base.AltText; }
+ set { base.AltText = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/CompareComply/V1/Model/Address.cs.meta b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs.meta
similarity index 83%
rename from Scripts/Services/CompareComply/V1/Model/Address.cs.meta
rename to Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs.meta
index 055ff3bea..41f1443fd 100644
--- a/Scripts/Services/CompareComply/V1/Model/Address.cs.meta
+++ b/Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 4f17b61b89131e842aafe6c421737f80
+guid: 3bb2c412039ec4838a6598a996670c58
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Scripts/Services/Assistant/V1/Model/OutputData.cs b/Scripts/Services/Assistant/V1/Model/OutputData.cs
index e700e5824..63d492088 100644
--- a/Scripts/Services/Assistant/V1/Model/OutputData.cs
+++ b/Scripts/Services/Assistant/V1/Model/OutputData.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2020.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,11 +46,6 @@ public class OutputData : DynamicModel
[JsonProperty("log_messages", NullValueHandling = NullValueHandling.Ignore)]
public List LogMessages { get; set; }
///
- /// An array of responses to the user.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public List Text { get; set; }
- ///
/// Output intended for any channel. It is the responsibility of the client application to implement the
/// supported response types.
///
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeEntity.cs b/Scripts/Services/Assistant/V1/Model/RuntimeEntity.cs
index 31e6d138a..6568d0ce3 100644
--- a/Scripts/Services/Assistant/V1/Model/RuntimeEntity.cs
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeEntity.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2021.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,14 +47,6 @@ public class RuntimeEntity
[JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)]
public float? Confidence { get; set; }
///
- /// **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.
- ///
- [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
- public Dictionary Metadata { get; set; }
- ///
/// The recognized capture groups for the entity, as defined by the entity pattern.
///
[JsonProperty("groups", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGeneric.cs b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGeneric.cs
index 4638fcb8c..12b989570 100644
--- a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGeneric.cs
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGeneric.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -32,16 +32,22 @@ namespace IBM.Watson.Assistant.V1.Model
/// - RuntimeResponseGenericRuntimeResponseTypeSuggestion
/// - RuntimeResponseGenericRuntimeResponseTypeChannelTransfer
/// - RuntimeResponseGenericRuntimeResponseTypeUserDefined
+ /// - RuntimeResponseGenericRuntimeResponseTypeVideo
+ /// - RuntimeResponseGenericRuntimeResponseTypeAudio
+ /// - RuntimeResponseGenericRuntimeResponseTypeIframe
///
[JsonConverter(typeof(JsonSubtypes), "response_type")]
+ [JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeAudio), "audio")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeChannelTransfer), "channel_transfer")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeConnectToAgent), "connect_to_agent")]
+ [JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeIframe), "iframe")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeImage), "image")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeOption), "option")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeSuggestion), "suggestion")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypePause), "pause")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeText), "text")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeUserDefined), "user_defined")]
+ [JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeVideo), "video")]
public class RuntimeResponseGeneric
{
/// This ctor is protected to prevent instantiation of this base class.
@@ -54,6 +60,9 @@ public class RuntimeResponseGeneric
/// - RuntimeResponseGenericRuntimeResponseTypeSuggestion
/// - RuntimeResponseGenericRuntimeResponseTypeChannelTransfer
/// - RuntimeResponseGenericRuntimeResponseTypeUserDefined
+ /// - RuntimeResponseGenericRuntimeResponseTypeVideo
+ /// - RuntimeResponseGenericRuntimeResponseTypeAudio
+ /// - RuntimeResponseGenericRuntimeResponseTypeIframe
protected RuntimeResponseGeneric()
{
}
@@ -118,7 +127,7 @@ public class PreferenceValue
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public string Title { get; protected set; }
///
- /// The description to show with the the response.
+ /// The description to show with the response.
///
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; protected set; }
@@ -176,5 +185,15 @@ public class PreferenceValue
///
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary UserDefined { get; protected set; }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public object ChannelOptions { get; protected set; }
+ ///
+ /// The URL of an image that shows a preview of the embedded content.
+ ///
+ [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
+ public string ImageUrl { get; protected set; }
}
}
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs
new file mode 100644
index 000000000..fdef8b6f7
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs
@@ -0,0 +1,95 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V1.Model
+{
+ ///
+ /// RuntimeResponseGenericRuntimeResponseTypeAudio.
+ ///
+ public class RuntimeResponseGenericRuntimeResponseTypeAudio : RuntimeResponseGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the audio clip.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// The title or introductory text to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// The description to show with the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public new object ChannelOptions
+ {
+ get { return base.ChannelOptions; }
+ set { base.ChannelOptions = value; }
+ }
+ ///
+ /// Descriptive text that can be used for screen readers or other situations where the audio player cannot be
+ /// seen.
+ ///
+ [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
+ public new string AltText
+ {
+ get { return base.AltText; }
+ set { base.AltText = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/CompareComply/V1/Model/AlignedElement.cs.meta b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs.meta
similarity index 83%
rename from Scripts/Services/CompareComply/V1/Model/AlignedElement.cs.meta
rename to Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs.meta
index 0f02667f4..50fd76bd1 100644
--- a/Scripts/Services/CompareComply/V1/Model/AlignedElement.cs.meta
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 9b1023de533ecf54e89d83c2158f36fe
+guid: ed5da2796a19a4544aedecde422b63f3
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs
new file mode 100644
index 000000000..3429a0d4f
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs
@@ -0,0 +1,85 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V1.Model
+{
+ ///
+ /// RuntimeResponseGenericRuntimeResponseTypeIframe.
+ ///
+ public class RuntimeResponseGenericRuntimeResponseTypeIframe : RuntimeResponseGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the embeddable content.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// The title or introductory text to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// The description to show with the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// The URL of an image that shows a preview of the embedded content.
+ ///
+ [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ImageUrl
+ {
+ get { return base.ImageUrl; }
+ set { base.ImageUrl = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs.meta b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs.meta
new file mode 100644
index 000000000..29026f951
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: a8236fc5e9f5149acafa9507ba994718
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs
index d210b77cf..eb6618949 100644
--- a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeImage.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2020, 2021.
+* (C) Copyright IBM Corp. 2020, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ public class RuntimeResponseGenericRuntimeResponseTypeImage : RuntimeResponseGen
set { base.Title = value; }
}
///
- /// The description to show with the the response.
+ /// The description to show with the response.
///
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs
index 85ca2ce1a..53e73008a 100644
--- a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeOption.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2020, 2021.
+* (C) Copyright IBM Corp. 2020, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -61,7 +61,7 @@ public class PreferenceValue
set { base.Title = value; }
}
///
- /// The description to show with the the response.
+ /// The description to show with the response.
///
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs
new file mode 100644
index 000000000..bb6d2705d
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs
@@ -0,0 +1,94 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V1.Model
+{
+ ///
+ /// RuntimeResponseGenericRuntimeResponseTypeVideo.
+ ///
+ public class RuntimeResponseGenericRuntimeResponseTypeVideo : RuntimeResponseGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the video.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// The title or introductory text to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// The description to show with the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public new object ChannelOptions
+ {
+ get { return base.ChannelOptions; }
+ set { base.ChannelOptions = value; }
+ }
+ ///
+ /// Descriptive text that can be used for screen readers or other situations where the video cannot be seen.
+ ///
+ [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
+ public new string AltText
+ {
+ get { return base.AltText; }
+ set { base.AltText = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs.meta b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs.meta
new file mode 100644
index 000000000..153ac07fd
--- /dev/null
+++ b/Scripts/Services/Assistant/V1/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 06960a1240ffc4fb59f2e910fcb2bdb1
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Assistant/V1/Model/WorkspaceSystemSettings.cs b/Scripts/Services/Assistant/V1/Model/WorkspaceSystemSettings.cs
index 344002c35..d6ca386ab 100644
--- a/Scripts/Services/Assistant/V1/Model/WorkspaceSystemSettings.cs
+++ b/Scripts/Services/Assistant/V1/Model/WorkspaceSystemSettings.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2020.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
*/
using System.Collections.Generic;
+using IBM.Cloud.SDK.Model;
using Newtonsoft.Json;
namespace IBM.Watson.Assistant.V1.Model
@@ -23,7 +24,7 @@ namespace IBM.Watson.Assistant.V1.Model
///
/// Global settings for the workspace.
///
- public class WorkspaceSystemSettings
+ public class WorkspaceSystemSettings : DynamicModel
{
///
/// Workspace settings related to the Watson Assistant user interface.
diff --git a/Scripts/Services/Assistant/V2/AssistantService.cs b/Scripts/Services/Assistant/V2/AssistantService.cs
index 81f89bc5f..9975772fa 100644
--- a/Scripts/Services/Assistant/V2/AssistantService.cs
+++ b/Scripts/Services/Assistant/V2/AssistantService.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
*/
/**
-* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
+* IBM OpenAPI SDK Code Generator Version: 3.46.0-a4e29da0-20220224-210428
*/
using System.Collections.Generic;
@@ -43,7 +43,7 @@ public partial class AssistantService : BaseService
///
/// Gets and sets the version of the service.
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is
- /// `2021-06-14`.
+ /// `2021-11-27`.
///
public string Version
{
@@ -68,14 +68,14 @@ public bool DisableSslVerification
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
public AssistantService(string version) : this(version, defaultServiceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(defaultServiceName)) {}
///
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
/// The service authenticator.
public AssistantService(string version, Authenticator authenticator) : this(version, defaultServiceName, authenticator) {}
@@ -83,7 +83,7 @@ public AssistantService(string version, Authenticator authenticator) : this(vers
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
/// The service name to be used when configuring the client instance
public AssistantService(string version, string serviceName) : this(version, serviceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(serviceName)) {}
@@ -91,7 +91,7 @@ public AssistantService(string version, string serviceName) : this(version, serv
/// AssistantService constructor.
///
/// Release date of the API version you want to use. Specify dates in YYYY-MM-DD format.
- /// The current version is `2021-06-14`.
+ /// The current version is `2021-11-27`.
/// The service name to be used when configuring the client instance
/// The service authenticator.
public AssistantService(string version, string serviceName, Authenticator authenticator) : base(authenticator, serviceName)
diff --git a/Scripts/Services/Assistant/V2/Model/DialogNodesVisited.cs b/Scripts/Services/Assistant/V2/Model/DialogNodeVisited.cs
similarity index 86%
rename from Scripts/Services/Assistant/V2/Model/DialogNodesVisited.cs
rename to Scripts/Services/Assistant/V2/Model/DialogNodeVisited.cs
index e65960e35..f3d76787e 100644
--- a/Scripts/Services/Assistant/V2/Model/DialogNodesVisited.cs
+++ b/Scripts/Services/Assistant/V2/Model/DialogNodeVisited.cs
@@ -1,5 +1,5 @@
/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
+* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,9 +20,10 @@
namespace IBM.Watson.Assistant.V2.Model
{
///
- /// DialogNodesVisited.
+ /// An objects containing detailed diagnostic information about a dialog node that was triggered during processing
+ /// of the input message.
///
- public class DialogNodesVisited
+ public class DialogNodeVisited
{
///
/// A dialog node that was triggered during processing of the input message.
diff --git a/Scripts/Services/Assistant/V2/Model/DialogNodeVisited.cs.meta b/Scripts/Services/Assistant/V2/Model/DialogNodeVisited.cs.meta
new file mode 100644
index 000000000..225c0ab42
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/DialogNodeVisited.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: c3bc6c18489fe4a7084fc24b9a8110d8
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Assistant/V2/Model/MessageContext.cs b/Scripts/Services/Assistant/V2/Model/MessageContext.cs
index a5210edf5..d9f541f3e 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageContext.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageContext.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2020.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ namespace IBM.Watson.Assistant.V2.Model
public class MessageContext
{
///
- /// Session context data that is shared by all skills used by the Assistant.
+ /// Session context data that is shared by all skills used by the assistant.
///
[JsonProperty("global", NullValueHandling = NullValueHandling.Ignore)]
public MessageContextGlobal Global { get; set; }
@@ -38,5 +38,11 @@ public class MessageContext
///
[JsonProperty("skills", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary Skills { get; set; }
+ ///
+ /// An object containing context data that is specific to particular integrations. For more information, see the
+ /// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-integrations).
+ ///
+ [JsonProperty("integrations", NullValueHandling = NullValueHandling.Ignore)]
+ public object Integrations { get; set; }
}
}
diff --git a/Scripts/Services/Assistant/V2/Model/MessageContextGlobal.cs b/Scripts/Services/Assistant/V2/Model/MessageContextGlobal.cs
index e97ee499b..4c23eec5a 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageContextGlobal.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageContextGlobal.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2020.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
namespace IBM.Watson.Assistant.V2.Model
{
///
- /// Session context data that is shared by all skills used by the Assistant.
+ /// Session context data that is shared by all skills used by the assistant.
///
public class MessageContextGlobal
{
diff --git a/Scripts/Services/Assistant/V2/Model/MessageContextGlobalStateless.cs b/Scripts/Services/Assistant/V2/Model/MessageContextGlobalStateless.cs
index 2f2303494..78c2b987f 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageContextGlobalStateless.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageContextGlobalStateless.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2020.
+* (C) Copyright IBM Corp. 2020, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
namespace IBM.Watson.Assistant.V2.Model
{
///
- /// Session context data that is shared by all skills used by the Assistant.
+ /// Session context data that is shared by all skills used by the assistant.
///
public class MessageContextGlobalStateless
{
diff --git a/Scripts/Services/Assistant/V2/Model/MessageContextGlobalSystem.cs b/Scripts/Services/Assistant/V2/Model/MessageContextGlobalSystem.cs
index a49947862..695f46d9c 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageContextGlobalSystem.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageContextGlobalSystem.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2021.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -162,5 +162,10 @@ public class LocaleValue
///
[JsonProperty("state", NullValueHandling = NullValueHandling.Ignore)]
public string State { get; set; }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("skip_user_input", NullValueHandling = NullValueHandling.Ignore)]
+ public bool? SkipUserInput { get; set; }
}
}
diff --git a/Scripts/Services/Assistant/V2/Model/MessageContextSkill.cs b/Scripts/Services/Assistant/V2/Model/MessageContextSkill.cs
index 4d28f5c9c..8b0b4bd57 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageContextSkill.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageContextSkill.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2020.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@
namespace IBM.Watson.Assistant.V2.Model
{
///
- /// Contains information specific to a particular skill used by the Assistant. The property name must be the same as
+ /// Contains information specific to a particular skill used by the assistant. The property name must be the same as
/// the name of the skill (for example, `main skill`).
///
public class MessageContextSkill
diff --git a/Scripts/Services/Assistant/V2/Model/MessageContextStateless.cs b/Scripts/Services/Assistant/V2/Model/MessageContextStateless.cs
index ad155d1d7..bf8f68942 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageContextStateless.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageContextStateless.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2020.
+* (C) Copyright IBM Corp. 2020, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ namespace IBM.Watson.Assistant.V2.Model
public class MessageContextStateless
{
///
- /// Session context data that is shared by all skills used by the Assistant.
+ /// Session context data that is shared by all skills used by the assistant.
///
[JsonProperty("global", NullValueHandling = NullValueHandling.Ignore)]
public MessageContextGlobalStateless Global { get; set; }
@@ -38,5 +38,11 @@ public class MessageContextStateless
///
[JsonProperty("skills", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary Skills { get; set; }
+ ///
+ /// An object containing context data that is specific to particular integrations. For more information, see the
+ /// [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-dialog-integrations).
+ ///
+ [JsonProperty("integrations", NullValueHandling = NullValueHandling.Ignore)]
+ public object Integrations { get; set; }
}
}
diff --git a/Scripts/Services/Assistant/V2/Model/MessageInput.cs b/Scripts/Services/Assistant/V2/Model/MessageInput.cs
index 9c2e74b7a..03f6bf99e 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageInput.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageInput.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2021.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -80,6 +80,14 @@ public class MessageTypeValue
[JsonProperty("suggestion_id", NullValueHandling = NullValueHandling.Ignore)]
public string SuggestionId { get; set; }
///
+ /// An array of multimedia attachments to be sent with the message.
+ ///
+ /// **Note:** Attachments are not processed by the assistant itself, but can be sent to external services by
+ /// webhooks.
+ ///
+ [JsonProperty("attachments", NullValueHandling = NullValueHandling.Ignore)]
+ public List Attachments { get; set; }
+ ///
/// Optional properties that control how the assistant responds.
///
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/Scripts/Services/VisualRecognition/V3/Model/WarningInfo.cs b/Scripts/Services/Assistant/V2/Model/MessageInputAttachment.cs
similarity index 58%
rename from Scripts/Services/VisualRecognition/V3/Model/WarningInfo.cs
rename to Scripts/Services/Assistant/V2/Model/MessageInputAttachment.cs
index 9fb197796..73b5a4008 100644
--- a/Scripts/Services/VisualRecognition/V3/Model/WarningInfo.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageInputAttachment.cs
@@ -1,5 +1,5 @@
/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
+* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,22 +17,22 @@
using Newtonsoft.Json;
-namespace IBM.Watson.VisualRecognition.V3.Model
+namespace IBM.Watson.Assistant.V2.Model
{
///
- /// Information about something that went wrong.
+ /// A reference to a media file to be sent as an attachment with the message.
///
- public class WarningInfo
+ public class MessageInputAttachment
{
///
- /// Codified warning string, such as `limit_reached`.
+ /// The URL of the media file.
///
- [JsonProperty("warning_id", NullValueHandling = NullValueHandling.Ignore)]
- public string WarningId { get; set; }
+ [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
+ public string Url { get; set; }
///
- /// Information about the error.
+ /// The media content type (such as a MIME type) of the attachment.
///
- [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
- public string Description { get; set; }
+ [JsonProperty("media_type", NullValueHandling = NullValueHandling.Ignore)]
+ public string MediaType { get; set; }
}
}
diff --git a/Scripts/Services/Assistant/V2/Model/MessageInputAttachment.cs.meta b/Scripts/Services/Assistant/V2/Model/MessageInputAttachment.cs.meta
new file mode 100644
index 000000000..fe80b4337
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/MessageInputAttachment.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 80a2572c1baf74c92a6bf32da452e8bf
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Assistant/V2/Model/MessageInputStateless.cs b/Scripts/Services/Assistant/V2/Model/MessageInputStateless.cs
index 7b88a5a96..5dc1efcf8 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageInputStateless.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageInputStateless.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2021.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -80,6 +80,14 @@ public class MessageTypeValue
[JsonProperty("suggestion_id", NullValueHandling = NullValueHandling.Ignore)]
public string SuggestionId { get; set; }
///
+ /// An array of multimedia attachments to be sent with the message.
+ ///
+ /// **Note:** Attachments are not processed by the assistant itself, but can be sent to external services by
+ /// webhooks.
+ ///
+ [JsonProperty("attachments", NullValueHandling = NullValueHandling.Ignore)]
+ public List Attachments { get; set; }
+ ///
/// Optional properties that control how the assistant responds.
///
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/Scripts/Services/Assistant/V2/Model/MessageOutputDebug.cs b/Scripts/Services/Assistant/V2/Model/MessageOutputDebug.cs
index f6def7ac5..7dd7bcbb3 100644
--- a/Scripts/Services/Assistant/V2/Model/MessageOutputDebug.cs
+++ b/Scripts/Services/Assistant/V2/Model/MessageOutputDebug.cs
@@ -1,5 +1,5 @@
/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ namespace IBM.Watson.Assistant.V2.Model
public class MessageOutputDebug
{
///
- /// When `branch_exited` is set to `true` by the Assistant, the `branch_exited_reason` specifies whether the
+ /// When `branch_exited` is set to `true` by the assistant, the `branch_exited_reason` specifies whether the
/// dialog completed by itself or got interrupted.
///
public class BranchExitedReasonValue
@@ -43,18 +43,18 @@ public class BranchExitedReasonValue
}
///
- /// When `branch_exited` is set to `true` by the Assistant, the `branch_exited_reason` specifies whether the
+ /// When `branch_exited` is set to `true` by the assistant, the `branch_exited_reason` specifies whether the
/// dialog completed by itself or got interrupted.
/// Constants for possible values can be found using MessageOutputDebug.BranchExitedReasonValue
///
[JsonProperty("branch_exited_reason", NullValueHandling = NullValueHandling.Ignore)]
public string BranchExitedReason { get; set; }
///
- /// An array of objects containing detailed diagnostic information about the nodes that were triggered during
+ /// An array of objects containing detailed diagnostic information about dialog nodes that were triggered during
/// processing of the input message.
///
[JsonProperty("nodes_visited", NullValueHandling = NullValueHandling.Ignore)]
- public List NodesVisited { get; set; }
+ public List NodesVisited { get; set; }
///
/// An array of up to 50 messages logged with the request.
///
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeEntity.cs b/Scripts/Services/Assistant/V2/Model/RuntimeEntity.cs
index 36d2c8e78..4c9fadc38 100644
--- a/Scripts/Services/Assistant/V2/Model/RuntimeEntity.cs
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeEntity.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2018, 2021.
+* (C) Copyright IBM Corp. 2018, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,14 +47,6 @@ public class RuntimeEntity
[JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)]
public float? Confidence { get; set; }
///
- /// **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.
- ///
- [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
- public Dictionary Metadata { get; set; }
- ///
/// The recognized capture groups for the entity, as defined by the entity pattern.
///
[JsonProperty("groups", NullValueHandling = NullValueHandling.Ignore)]
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGeneric.cs b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGeneric.cs
index 64e8ccd26..353a8ac08 100644
--- a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGeneric.cs
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGeneric.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,10 +33,15 @@ namespace IBM.Watson.Assistant.V2.Model
/// - RuntimeResponseGenericRuntimeResponseTypeChannelTransfer
/// - RuntimeResponseGenericRuntimeResponseTypeSearch
/// - RuntimeResponseGenericRuntimeResponseTypeUserDefined
+ /// - RuntimeResponseGenericRuntimeResponseTypeVideo
+ /// - RuntimeResponseGenericRuntimeResponseTypeAudio
+ /// - RuntimeResponseGenericRuntimeResponseTypeIframe
///
[JsonConverter(typeof(JsonSubtypes), "response_type")]
+ [JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeAudio), "audio")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeChannelTransfer), "channel_transfer")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeConnectToAgent), "connect_to_agent")]
+ [JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeIframe), "iframe")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeImage), "image")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeOption), "option")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeSuggestion), "suggestion")]
@@ -44,6 +49,7 @@ namespace IBM.Watson.Assistant.V2.Model
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeSearch), "search")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeText), "text")]
[JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeUserDefined), "user_defined")]
+ [JsonSubtypes.KnownSubType(typeof(RuntimeResponseGenericRuntimeResponseTypeVideo), "video")]
public class RuntimeResponseGeneric
{
/// This ctor is protected to prevent instantiation of this base class.
@@ -57,6 +63,9 @@ public class RuntimeResponseGeneric
/// - RuntimeResponseGenericRuntimeResponseTypeChannelTransfer
/// - RuntimeResponseGenericRuntimeResponseTypeSearch
/// - RuntimeResponseGenericRuntimeResponseTypeUserDefined
+ /// - RuntimeResponseGenericRuntimeResponseTypeVideo
+ /// - RuntimeResponseGenericRuntimeResponseTypeAudio
+ /// - RuntimeResponseGenericRuntimeResponseTypeIframe
protected RuntimeResponseGeneric()
{
}
@@ -189,5 +198,15 @@ public class PreferenceValue
///
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary UserDefined { get; protected set; }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public object ChannelOptions { get; protected set; }
+ ///
+ /// The URL of an image that shows a preview of the embedded content.
+ ///
+ [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
+ public string ImageUrl { get; protected set; }
}
}
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs
new file mode 100644
index 000000000..7033fb1a8
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs
@@ -0,0 +1,95 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V2.Model
+{
+ ///
+ /// RuntimeResponseGenericRuntimeResponseTypeAudio.
+ ///
+ public class RuntimeResponseGenericRuntimeResponseTypeAudio : RuntimeResponseGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the audio clip.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// The title or introductory text to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// The description to show with the the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public new object ChannelOptions
+ {
+ get { return base.ChannelOptions; }
+ set { base.ChannelOptions = value; }
+ }
+ ///
+ /// Descriptive text that can be used for screen readers or other situations where the audio player cannot be
+ /// seen.
+ ///
+ [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
+ public new string AltText
+ {
+ get { return base.AltText; }
+ set { base.AltText = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs.meta b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs.meta
new file mode 100644
index 000000000..8074dbf00
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeAudio.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: eaefd495a5ca947e5a7a8ffcc30c5748
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs
new file mode 100644
index 000000000..f82e5681d
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs
@@ -0,0 +1,85 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V2.Model
+{
+ ///
+ /// RuntimeResponseGenericRuntimeResponseTypeIframe.
+ ///
+ public class RuntimeResponseGenericRuntimeResponseTypeIframe : RuntimeResponseGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the embeddable content.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// The title or introductory text to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// The description to show with the the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// The URL of an image that shows a preview of the embedded content.
+ ///
+ [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ImageUrl
+ {
+ get { return base.ImageUrl; }
+ set { base.ImageUrl = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs.meta b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs.meta
new file mode 100644
index 000000000..858f56d55
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeIframe.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e950c1acdde3441e5bac19b3903de1b3
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs
new file mode 100644
index 000000000..c6a43b285
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs
@@ -0,0 +1,94 @@
+/**
+* (C) Copyright IBM Corp. 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Assistant.V2.Model
+{
+ ///
+ /// RuntimeResponseGenericRuntimeResponseTypeVideo.
+ ///
+ public class RuntimeResponseGenericRuntimeResponseTypeVideo : RuntimeResponseGeneric
+ {
+ ///
+ /// The type of response returned by the dialog node. The specified response type must be supported by the
+ /// client application or channel.
+ ///
+ [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
+ public new string ResponseType
+ {
+ get { return base.ResponseType; }
+ set { base.ResponseType = value; }
+ }
+ ///
+ /// The `https:` URL of the video.
+ ///
+ [JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Source
+ {
+ get { return base.Source; }
+ set { base.Source = value; }
+ }
+ ///
+ /// The title or introductory text to show before the response.
+ ///
+ [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Title
+ {
+ get { return base.Title; }
+ set { base.Title = value; }
+ }
+ ///
+ /// The description to show with the the response.
+ ///
+ [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
+ public new string Description
+ {
+ get { return base.Description; }
+ set { base.Description = value; }
+ }
+ ///
+ /// An array of objects specifying channels for which the response is intended. If **channels** is present, the
+ /// response is intended for a built-in integration and should not be handled by an API client.
+ ///
+ [JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
+ public new List Channels
+ {
+ get { return base.Channels; }
+ set { base.Channels = value; }
+ }
+ ///
+ /// For internal use only.
+ ///
+ [JsonProperty("channel_options", NullValueHandling = NullValueHandling.Ignore)]
+ public new object ChannelOptions
+ {
+ get { return base.ChannelOptions; }
+ set { base.ChannelOptions = value; }
+ }
+ ///
+ /// Descriptive text that can be used for screen readers or other situations where the video cannot be seen.
+ ///
+ [JsonProperty("alt_text", NullValueHandling = NullValueHandling.Ignore)]
+ public new string AltText
+ {
+ get { return base.AltText; }
+ set { base.AltText = value; }
+ }
+ }
+}
diff --git a/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs.meta b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs.meta
new file mode 100644
index 000000000..e2b28a6be
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/RuntimeResponseGenericRuntimeResponseTypeVideo.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 35dcc9473cfdd46ed89a35a55438ce2b
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Assistant/V2/Model/SearchResultAnswer.cs.meta b/Scripts/Services/Assistant/V2/Model/SearchResultAnswer.cs.meta
new file mode 100644
index 000000000..25e94c55e
--- /dev/null
+++ b/Scripts/Services/Assistant/V2/Model/SearchResultAnswer.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: bc0ac2a9373b64d498a344b8fe3c4e4b
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/CompareComply.meta b/Scripts/Services/CompareComply.meta
deleted file mode 100644
index 5473f591b..000000000
--- a/Scripts/Services/CompareComply.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: a6e07a6ab077d1843a2c1fa31922a742
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1.meta b/Scripts/Services/CompareComply/V1.meta
deleted file mode 100644
index b075aadb8..000000000
--- a/Scripts/Services/CompareComply/V1.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: d93d8af56cce6d84eae54172a3117a8a
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/CompareComplyService.cs b/Scripts/Services/CompareComply/V1/CompareComplyService.cs
deleted file mode 100644
index ee968f3d2..000000000
--- a/Scripts/Services/CompareComply/V1/CompareComplyService.cs
+++ /dev/null
@@ -1,1284 +0,0 @@
-/**
-* (C) Copyright IBM Corp. 2019, 2021.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-/**
-* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-a45d89ef-20201209-153452
-*/
-
-using System.Collections.Generic;
-using System.Text;
-using IBM.Cloud.SDK;
-using IBM.Cloud.SDK.Authentication;
-using IBM.Cloud.SDK.Connection;
-using IBM.Cloud.SDK.Utilities;
-using IBM.Watson.CompareComply.V1.Model;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
-using System;
-using UnityEngine.Networking;
-
-namespace IBM.Watson.CompareComply.V1
-{
- [System.Obsolete("On 30 November 2021, Compare and Comply will no longer be available." +
- "\nFor more information, see Compare and Comply Deprecation " +
- "(https://github.com/watson-developer-cloud/unity-sdk/tree/master#compare-and-comply-deprecation).")]
-
- public partial class CompareComplyService : BaseService
- {
- private const string defaultServiceName = "compare_comply";
- private const string defaultServiceUrl = "https://api.us-south.compare-comply.watson.cloud.ibm.com";
-
- #region Version
- private string version;
- ///
- /// Gets and sets the version of the service.
- /// Release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current
- /// version is `2018-10-15`.
- ///
- public string Version
- {
- get { return version; }
- set { version = value; }
- }
- #endregion
-
- #region DisableSslVerification
- private bool disableSslVerification = false;
- ///
- /// Gets and sets the option to disable ssl verification
- ///
- public bool DisableSslVerification
- {
- get { return disableSslVerification; }
- set { disableSslVerification = value; }
- }
- #endregion
-
- ///
- /// CompareComplyService constructor.
- ///
- /// Release date of the version of the API you want to use. Specify dates in YYYY-MM-DD
- /// format. The current version is `2018-10-15`.
- public CompareComplyService(string version) : this(version, defaultServiceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(defaultServiceName)) {}
-
- ///
- /// CompareComplyService constructor.
- ///
- /// Release date of the version of the API you want to use. Specify dates in YYYY-MM-DD
- /// format. The current version is `2018-10-15`.
- /// The service authenticator.
- public CompareComplyService(string version, Authenticator authenticator) : this(version, defaultServiceName, authenticator) {}
-
- ///
- /// CompareComplyService constructor.
- ///
- /// Release date of the version of the API you want to use. Specify dates in YYYY-MM-DD
- /// format. The current version is `2018-10-15`.
- /// The service name to be used when configuring the client instance
- public CompareComplyService(string version, string serviceName) : this(version, serviceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(serviceName)) {}
-
- ///
- /// CompareComplyService constructor.
- ///
- /// Release date of the version of the API you want to use. Specify dates in YYYY-MM-DD
- /// format. The current version is `2018-10-15`.
- /// The service name to be used when configuring the client instance
- /// The service authenticator.
- public CompareComplyService(string version, string serviceName, Authenticator authenticator) : base(authenticator, serviceName)
- {
- Authenticator = authenticator;
-
- if (string.IsNullOrEmpty(version))
- {
- throw new ArgumentNullException("`version` is required");
- }
- else
- {
- Version = version;
- }
-
- if (string.IsNullOrEmpty(GetServiceUrl()))
- {
- SetServiceUrl(defaultServiceUrl);
- }
- }
-
- ///
- /// Convert document to HTML.
- ///
- /// Converts a document to HTML.
- ///
- /// The callback function that is invoked when the operation completes.
- /// The document to convert.
- /// The content type of file. (optional)
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// HTMLReturn
- public bool ConvertToHtml(Callback callback, System.IO.MemoryStream file, string fileContentType = null, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `ConvertToHtml`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (file == null)
- throw new ArgumentNullException("`file` is required for `ConvertToHtml`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPOST,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "ConvertToHtml"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- req.Forms = new Dictionary();
- if (file != null)
- {
- req.Forms["file"] = new RESTConnector.Form(file, "filename", fileContentType);
- }
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnConvertToHtmlResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/html_conversion";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnConvertToHtmlResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnConvertToHtmlResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Classify the elements of a document.
- ///
- /// Analyzes the structural and semantic elements of a document.
- ///
- /// The callback function that is invoked when the operation completes.
- /// The document to classify.
- /// The content type of file. (optional)
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// ClassifyReturn
- public bool ClassifyElements(Callback callback, System.IO.MemoryStream file, string fileContentType = null, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `ClassifyElements`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (file == null)
- throw new ArgumentNullException("`file` is required for `ClassifyElements`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPOST,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "ClassifyElements"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- req.Forms = new Dictionary();
- if (file != null)
- {
- req.Forms["file"] = new RESTConnector.Form(file, "filename", fileContentType);
- }
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnClassifyElementsResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/element_classification";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnClassifyElementsResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnClassifyElementsResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Extract a document's tables.
- ///
- /// Analyzes the tables in a document.
- ///
- /// The callback function that is invoked when the operation completes.
- /// The document on which to run table extraction.
- /// The content type of file. (optional)
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// TableReturn
- public bool ExtractTables(Callback callback, System.IO.MemoryStream file, string fileContentType = null, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `ExtractTables`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (file == null)
- throw new ArgumentNullException("`file` is required for `ExtractTables`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPOST,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "ExtractTables"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- req.Forms = new Dictionary();
- if (file != null)
- {
- req.Forms["file"] = new RESTConnector.Form(file, "filename", fileContentType);
- }
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnExtractTablesResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/tables";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnExtractTablesResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnExtractTablesResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Compare two documents.
- ///
- /// Compares two input documents. Documents must be in the same format.
- ///
- /// The callback function that is invoked when the operation completes.
- /// The first document to compare.
- /// The second document to compare.
- /// The content type of file1. (optional)
- /// The content type of file2. (optional)
- /// A text label for the first document. (optional, default to file_1)
- /// A text label for the second document. (optional, default to file_2)
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// CompareReturn
- public bool CompareDocuments(Callback callback, System.IO.MemoryStream file1, System.IO.MemoryStream file2, string file1ContentType = null, string file2ContentType = null, string file1Label = null, string file2Label = null, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `CompareDocuments`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (file1 == null)
- throw new ArgumentNullException("`file1` is required for `CompareDocuments`");
- if (file2 == null)
- throw new ArgumentNullException("`file2` is required for `CompareDocuments`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPOST,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "CompareDocuments"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- req.Forms = new Dictionary();
- if (file1 != null)
- {
- req.Forms["file_1"] = new RESTConnector.Form(file1, "filename", file1ContentType);
- }
- if (file2 != null)
- {
- req.Forms["file_2"] = new RESTConnector.Form(file2, "filename", file2ContentType);
- }
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(file1Label))
- {
- req.Parameters["file_1_label"] = file1Label;
- }
- if (!string.IsNullOrEmpty(file2Label))
- {
- req.Parameters["file_2_label"] = file2Label;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnCompareDocumentsResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/comparison";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnCompareDocumentsResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnCompareDocumentsResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Add feedback.
- ///
- /// Adds feedback in the form of _labels_ from a subject-matter expert (SME) to a governing document.
- /// **Important:** Feedback is not immediately incorporated into the training model, nor is it guaranteed to be
- /// incorporated at a later date. Instead, submitted feedback is used to suggest future updates to the training
- /// model.
- ///
- /// The callback function that is invoked when the operation completes.
- /// Feedback data for submission.
- /// An optional string identifying the user. (optional)
- /// An optional comment on or description of the feedback. (optional)
- /// FeedbackReturn
- public bool AddFeedback(Callback callback, FeedbackDataInput feedbackData, string userId = null, string comment = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `AddFeedback`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (feedbackData == null)
- throw new ArgumentNullException("`feedbackData` is required for `AddFeedback`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPOST,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "AddFeedback"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- req.Headers["Content-Type"] = "application/json";
- req.Headers["Accept"] = "application/json";
-
- JObject bodyObject = new JObject();
- if (feedbackData != null)
- bodyObject["feedback_data"] = JToken.FromObject(feedbackData);
- if (!string.IsNullOrEmpty(userId))
- bodyObject["user_id"] = userId;
- if (!string.IsNullOrEmpty(comment))
- bodyObject["comment"] = comment;
- req.Send = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(bodyObject));
-
- req.OnResponse = OnAddFeedbackResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/feedback";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnAddFeedbackResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnAddFeedbackResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// List the feedback in a document.
- ///
- /// Lists the feedback in a document.
- ///
- /// The callback function that is invoked when the operation completes.
- /// An optional string that filters the output to include only feedback with the
- /// specified feedback type. The only permitted value is `element_classification`. (optional)
- /// An optional string that filters the output to include only feedback from the
- /// document with the specified `document_title`. (optional)
- /// An optional string that filters the output to include only feedback with the specified
- /// `model_id`. The only permitted value is `contracts`. (optional)
- /// An optional string that filters the output to include only feedback with the
- /// specified `model_version`. (optional)
- /// An optional string in the form of a comma-separated list of categories. If it
- /// is specified, the service filters the output to include only feedback that has at least one category from
- /// the list removed. (optional)
- /// An optional string in the form of a comma-separated list of categories. If this
- /// is specified, the service filters the output to include only feedback that has at least one category from
- /// the list added. (optional)
- /// An optional string in the form of a comma-separated list of categories. If
- /// this is specified, the service filters the output to include only feedback that has at least one category
- /// from the list unchanged. (optional)
- /// An optional string of comma-separated `nature`:`party` pairs. If this is
- /// specified, the service filters the output to include only feedback that has at least one `nature`:`party`
- /// pair from the list removed. (optional)
- /// An optional string of comma-separated `nature`:`party` pairs. If this is specified,
- /// the service filters the output to include only feedback that has at least one `nature`:`party` pair from the
- /// list removed. (optional)
- /// An optional string of comma-separated `nature`:`party` pairs. If this is
- /// specified, the service filters the output to include only feedback that has at least one `nature`:`party`
- /// pair from the list unchanged. (optional)
- /// An optional integer specifying the number of documents that you want the service to
- /// return. (optional)
- /// An optional string that returns the set of documents after the previous set. Use this
- /// parameter with the `page_limit` parameter. (optional)
- /// An optional comma-separated list of fields in the document to sort on. You can optionally
- /// specify the sort direction by prefixing the value of the field with `-` for descending order or `+` for
- /// ascending order (the default). Currently permitted sorting fields are `created`, `user_id`, and
- /// `document_title`. (optional)
- /// An optional boolean value. If specified as `true`, the `pagination` object in the
- /// output includes a value called `total` that gives the total count of feedback created. (optional)
- /// FeedbackList
- public bool ListFeedback(Callback callback, string feedbackType = null, string documentTitle = null, string modelId = null, string modelVersion = null, string categoryRemoved = null, string categoryAdded = null, string categoryNotChanged = null, string typeRemoved = null, string typeAdded = null, string typeNotChanged = null, long? pageLimit = null, string cursor = null, string sort = null, bool? includeTotal = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `ListFeedback`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbGET,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "ListFeedback"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(feedbackType))
- {
- req.Parameters["feedback_type"] = feedbackType;
- }
- if (!string.IsNullOrEmpty(documentTitle))
- {
- req.Parameters["document_title"] = documentTitle;
- }
- if (!string.IsNullOrEmpty(modelId))
- {
- req.Parameters["model_id"] = modelId;
- }
- if (!string.IsNullOrEmpty(modelVersion))
- {
- req.Parameters["model_version"] = modelVersion;
- }
- if (!string.IsNullOrEmpty(categoryRemoved))
- {
- req.Parameters["category_removed"] = categoryRemoved;
- }
- if (!string.IsNullOrEmpty(categoryAdded))
- {
- req.Parameters["category_added"] = categoryAdded;
- }
- if (!string.IsNullOrEmpty(categoryNotChanged))
- {
- req.Parameters["category_not_changed"] = categoryNotChanged;
- }
- if (!string.IsNullOrEmpty(typeRemoved))
- {
- req.Parameters["type_removed"] = typeRemoved;
- }
- if (!string.IsNullOrEmpty(typeAdded))
- {
- req.Parameters["type_added"] = typeAdded;
- }
- if (!string.IsNullOrEmpty(typeNotChanged))
- {
- req.Parameters["type_not_changed"] = typeNotChanged;
- }
- if (pageLimit != null)
- {
- req.Parameters["page_limit"] = pageLimit;
- }
- if (!string.IsNullOrEmpty(cursor))
- {
- req.Parameters["cursor"] = cursor;
- }
- if (!string.IsNullOrEmpty(sort))
- {
- req.Parameters["sort"] = sort;
- }
- if (includeTotal != null)
- {
- req.Parameters["include_total"] = (bool)includeTotal ? "true" : "false";
- }
-
- req.OnResponse = OnListFeedbackResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/feedback";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnListFeedbackResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnListFeedbackResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Get a specified feedback entry.
- ///
- /// Gets a feedback entry with a specified `feedback_id`.
- ///
- /// The callback function that is invoked when the operation completes.
- /// A string that specifies the feedback entry to be included in the output.
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// GetFeedback
- public bool GetFeedback(Callback callback, string feedbackId, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `GetFeedback`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (string.IsNullOrEmpty(feedbackId))
- throw new ArgumentNullException("`feedbackId` is required for `GetFeedback`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbGET,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "GetFeedback"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnGetFeedbackResponse;
-
- Connector.URL = GetServiceUrl() + string.Format("/v1/feedback/{0}", feedbackId);
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnGetFeedbackResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnGetFeedbackResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Delete a specified feedback entry.
- ///
- /// Deletes a feedback entry with a specified `feedback_id`.
- ///
- /// The callback function that is invoked when the operation completes.
- /// A string that specifies the feedback entry to be deleted from the document.
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// FeedbackDeleted
- public bool DeleteFeedback(Callback callback, string feedbackId, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `DeleteFeedback`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (string.IsNullOrEmpty(feedbackId))
- throw new ArgumentNullException("`feedbackId` is required for `DeleteFeedback`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbDELETE,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "DeleteFeedback"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnDeleteFeedbackResponse;
-
- Connector.URL = GetServiceUrl() + string.Format("/v1/feedback/{0}", feedbackId);
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnDeleteFeedbackResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnDeleteFeedbackResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Submit a batch-processing request.
- ///
- /// Run Compare and Comply methods over a collection of input documents.
- ///
- /// **Important:** Batch processing requires the use of the [IBM Cloud Object Storage
- /// service](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-about#about-ibm-cloud-object-storage).
- /// The use of IBM Cloud Object Storage with Compare and Comply is discussed at [Using batch
- /// processing](https://cloud.ibm.com/docs/compare-comply?topic=compare-comply-batching#before-you-batch).
- ///
- /// The callback function that is invoked when the operation completes.
- /// The Compare and Comply method to run across the submitted input documents.
- /// A JSON file containing the input Cloud Object Storage credentials. At a
- /// minimum, the credentials must enable `READ` permissions on the bucket defined by the `input_bucket_name`
- /// parameter.
- /// The geographical location of the Cloud Object Storage input bucket as
- /// listed on the **Endpoint** tab of your Cloud Object Storage instance; for example, `us-geo`, `eu-geo`, or
- /// `ap-geo`.
- /// The name of the Cloud Object Storage input bucket.
- /// A JSON file that lists the Cloud Object Storage output credentials. At a
- /// minimum, the credentials must enable `READ` and `WRITE` permissions on the bucket defined by the
- /// `output_bucket_name` parameter.
- /// The geographical location of the Cloud Object Storage output bucket as
- /// listed on the **Endpoint** tab of your Cloud Object Storage instance; for example, `us-geo`, `eu-geo`, or
- /// `ap-geo`.
- /// The name of the Cloud Object Storage output bucket.
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// BatchStatus
- public bool CreateBatch(Callback callback, string function, System.IO.MemoryStream inputCredentialsFile, string inputBucketLocation, string inputBucketName, System.IO.MemoryStream outputCredentialsFile, string outputBucketLocation, string outputBucketName, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `CreateBatch`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (string.IsNullOrEmpty(function))
- throw new ArgumentNullException("`function` is required for `CreateBatch`");
- if (inputCredentialsFile == null)
- throw new ArgumentNullException("`inputCredentialsFile` is required for `CreateBatch`");
- if (string.IsNullOrEmpty(inputBucketLocation))
- throw new ArgumentNullException("`inputBucketLocation` is required for `CreateBatch`");
- if (string.IsNullOrEmpty(inputBucketName))
- throw new ArgumentNullException("`inputBucketName` is required for `CreateBatch`");
- if (outputCredentialsFile == null)
- throw new ArgumentNullException("`outputCredentialsFile` is required for `CreateBatch`");
- if (string.IsNullOrEmpty(outputBucketLocation))
- throw new ArgumentNullException("`outputBucketLocation` is required for `CreateBatch`");
- if (string.IsNullOrEmpty(outputBucketName))
- throw new ArgumentNullException("`outputBucketName` is required for `CreateBatch`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPOST,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "CreateBatch"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- req.Forms = new Dictionary();
- if (inputCredentialsFile != null)
- {
- req.Forms["input_credentials_file"] = new RESTConnector.Form(inputCredentialsFile, "filename", "application/json");
- }
- if (!string.IsNullOrEmpty(inputBucketLocation))
- {
- req.Forms["input_bucket_location"] = new RESTConnector.Form(inputBucketLocation);
- }
- if (!string.IsNullOrEmpty(inputBucketName))
- {
- req.Forms["input_bucket_name"] = new RESTConnector.Form(inputBucketName);
- }
- if (outputCredentialsFile != null)
- {
- req.Forms["output_credentials_file"] = new RESTConnector.Form(outputCredentialsFile, "filename", "application/json");
- }
- if (!string.IsNullOrEmpty(outputBucketLocation))
- {
- req.Forms["output_bucket_location"] = new RESTConnector.Form(outputBucketLocation);
- }
- if (!string.IsNullOrEmpty(outputBucketName))
- {
- req.Forms["output_bucket_name"] = new RESTConnector.Form(outputBucketName);
- }
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(function))
- {
- req.Parameters["function"] = function;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnCreateBatchResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/batches";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnCreateBatchResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnCreateBatchResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// List submitted batch-processing jobs.
- ///
- /// Lists batch-processing jobs submitted by users.
- ///
- /// The callback function that is invoked when the operation completes.
- /// Batches
- public bool ListBatches(Callback callback)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `ListBatches`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbGET,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "ListBatches"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
-
- req.OnResponse = OnListBatchesResponse;
-
- Connector.URL = GetServiceUrl() + "/v1/batches";
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnListBatchesResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnListBatchesResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Get information about a specific batch-processing job.
- ///
- /// Gets information about a batch-processing job with a specified ID.
- ///
- /// The callback function that is invoked when the operation completes.
- /// The ID of the batch-processing job whose information you want to retrieve.
- /// BatchStatus
- public bool GetBatch(Callback callback, string batchId)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `GetBatch`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (string.IsNullOrEmpty(batchId))
- throw new ArgumentNullException("`batchId` is required for `GetBatch`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbGET,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "GetBatch"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
-
- req.OnResponse = OnGetBatchResponse;
-
- Connector.URL = GetServiceUrl() + string.Format("/v1/batches/{0}", batchId);
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnGetBatchResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnGetBatchResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
-
- ///
- /// Update a pending or active batch-processing job.
- ///
- /// Updates a pending or active batch-processing job. You can rescan the input bucket to check for new documents
- /// or cancel a job.
- ///
- /// The callback function that is invoked when the operation completes.
- /// The ID of the batch-processing job you want to update.
- /// The action you want to perform on the specified batch-processing job.
- /// The analysis model to be used by the service. For the **Element classification** and
- /// **Compare two documents** methods, the default is `contracts`. For the **Extract tables** method, the
- /// default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in
- /// batch-processing requests. (optional)
- /// BatchStatus
- public bool UpdateBatch(Callback callback, string batchId, string action, string model = null)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `UpdateBatch`");
- if (string.IsNullOrEmpty(Version))
- throw new ArgumentNullException("`Version` is required");
- if (string.IsNullOrEmpty(batchId))
- throw new ArgumentNullException("`batchId` is required for `UpdateBatch`");
- if (string.IsNullOrEmpty(action))
- throw new ArgumentNullException("`action` is required for `UpdateBatch`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPUT,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("compare-comply", "V1", "UpdateBatch"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- if (!string.IsNullOrEmpty(Version))
- {
- req.Parameters["version"] = Version;
- }
- if (!string.IsNullOrEmpty(action))
- {
- req.Parameters["action"] = action;
- }
- if (!string.IsNullOrEmpty(model))
- {
- req.Parameters["model"] = model;
- }
-
- req.OnResponse = OnUpdateBatchResponse;
-
- Connector.URL = GetServiceUrl() + string.Format("/v1/batches/{0}", batchId);
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnUpdateBatchResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("CompareComplyService.OnUpdateBatchResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject)req).Callback != null)
- ((RequestObject)req).Callback(response, resp.Error);
- }
- }
-}
\ No newline at end of file
diff --git a/Scripts/Services/CompareComply/V1/Model.meta b/Scripts/Services/CompareComply/V1/Model.meta
deleted file mode 100644
index 82931f305..000000000
--- a/Scripts/Services/CompareComply/V1/Model.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 8c98f4a77f7d72c468be480f5a4bf23a
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Address.cs b/Scripts/Services/CompareComply/V1/Model/Address.cs
deleted file mode 100644
index 44d616411..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Address.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A party's address.
- ///
- public class Address
- {
- ///
- /// A string listing the address.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/AlignedElement.cs b/Scripts/Services/CompareComply/V1/Model/AlignedElement.cs
deleted file mode 100644
index 417b439db..000000000
--- a/Scripts/Services/CompareComply/V1/Model/AlignedElement.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// AlignedElement.
- ///
- public class AlignedElement
- {
- ///
- /// Identifies two elements that semantically align between the compared documents.
- ///
- [JsonProperty("element_pair", NullValueHandling = NullValueHandling.Ignore)]
- public List ElementPair { get; set; }
- ///
- /// Specifies whether the aligned element is identical. Elements are considered identical despite minor
- /// differences such as leading punctuation, end-of-sentence punctuation, whitespace, the presence or absence of
- /// definite or indefinite articles, and others.
- ///
- [JsonProperty("identical_text", NullValueHandling = NullValueHandling.Ignore)]
- public bool? IdenticalText { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// Indicates that the elements aligned are contractual clauses of significance.
- ///
- [JsonProperty("significant_elements", NullValueHandling = NullValueHandling.Ignore)]
- public bool? SignificantElements { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Attribute.cs b/Scripts/Services/CompareComply/V1/Model/Attribute.cs
deleted file mode 100644
index 235592fff..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Attribute.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// List of document attributes.
- ///
- public class Attribute
- {
- ///
- /// The type of attribute.
- ///
- public class TypeValue
- {
- ///
- /// Constant CURRENCY for Currency
- ///
- public const string CURRENCY = "Currency";
- ///
- /// Constant DATETIME for DateTime
- ///
- public const string DATETIME = "DateTime";
- ///
- /// Constant DEFINEDTERM for DefinedTerm
- ///
- public const string DEFINEDTERM = "DefinedTerm";
- ///
- /// Constant DURATION for Duration
- ///
- public const string DURATION = "Duration";
- ///
- /// Constant LOCATION for Location
- ///
- public const string LOCATION = "Location";
- ///
- /// Constant NUMBER for Number
- ///
- public const string NUMBER = "Number";
- ///
- /// Constant ORGANIZATION for Organization
- ///
- public const string ORGANIZATION = "Organization";
- ///
- /// Constant PERCENTAGE for Percentage
- ///
- public const string PERCENTAGE = "Percentage";
- ///
- /// Constant PERSON for Person
- ///
- public const string PERSON = "Person";
-
- }
-
- ///
- /// The type of attribute.
- /// Constants for possible values can be found using Attribute.TypeValue
- ///
- [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
- public string Type { get; set; }
- ///
- /// The text associated with the attribute.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Attribute.cs.meta b/Scripts/Services/CompareComply/V1/Model/Attribute.cs.meta
deleted file mode 100644
index 8d4e9fc71..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Attribute.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: e87298f7eb36f9b49bf1882d1385af56
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/BatchStatus.cs b/Scripts/Services/CompareComply/V1/Model/BatchStatus.cs
deleted file mode 100644
index 030e38870..000000000
--- a/Scripts/Services/CompareComply/V1/Model/BatchStatus.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-using System;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The batch-request status.
- ///
- public class BatchStatus
- {
- ///
- /// The method to be run against the documents. Possible values are `html_conversion`, `element_classification`,
- /// and `tables`.
- ///
- public class FunctionValue
- {
- ///
- /// Constant ELEMENT_CLASSIFICATION for element_classification
- ///
- public const string ELEMENT_CLASSIFICATION = "element_classification";
- ///
- /// Constant HTML_CONVERSION for html_conversion
- ///
- public const string HTML_CONVERSION = "html_conversion";
- ///
- /// Constant TABLES for tables
- ///
- public const string TABLES = "tables";
-
- }
-
- ///
- /// The method to be run against the documents. Possible values are `html_conversion`, `element_classification`,
- /// and `tables`.
- /// Constants for possible values can be found using BatchStatus.FunctionValue
- ///
- [JsonProperty("function", NullValueHandling = NullValueHandling.Ignore)]
- public string Function { get; set; }
- ///
- /// The geographical location of the Cloud Object Storage input bucket as listed on the **Endpoint** tab of your
- /// COS instance; for example, `us-geo`, `eu-geo`, or `ap-geo`.
- ///
- [JsonProperty("input_bucket_location", NullValueHandling = NullValueHandling.Ignore)]
- public string InputBucketLocation { get; set; }
- ///
- /// The name of the Cloud Object Storage input bucket.
- ///
- [JsonProperty("input_bucket_name", NullValueHandling = NullValueHandling.Ignore)]
- public string InputBucketName { get; set; }
- ///
- /// The geographical location of the Cloud Object Storage output bucket as listed on the **Endpoint** tab of
- /// your COS instance; for example, `us-geo`, `eu-geo`, or `ap-geo`.
- ///
- [JsonProperty("output_bucket_location", NullValueHandling = NullValueHandling.Ignore)]
- public string OutputBucketLocation { get; set; }
- ///
- /// The name of the Cloud Object Storage output bucket.
- ///
- [JsonProperty("output_bucket_name", NullValueHandling = NullValueHandling.Ignore)]
- public string OutputBucketName { get; set; }
- ///
- /// The unique identifier for the batch request.
- ///
- [JsonProperty("batch_id", NullValueHandling = NullValueHandling.Ignore)]
- public string BatchId { get; set; }
- ///
- /// Document counts.
- ///
- [JsonProperty("document_counts", NullValueHandling = NullValueHandling.Ignore)]
- public DocCounts DocumentCounts { get; set; }
- ///
- /// The status of the batch request.
- ///
- [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
- public string Status { get; set; }
- ///
- /// The creation time of the batch request.
- ///
- [JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
- public DateTime? Created { get; set; }
- ///
- /// The time of the most recent update to the batch request.
- ///
- [JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
- public DateTime? Updated { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/BatchStatus.cs.meta b/Scripts/Services/CompareComply/V1/Model/BatchStatus.cs.meta
deleted file mode 100644
index b1dd866db..000000000
--- a/Scripts/Services/CompareComply/V1/Model/BatchStatus.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: d214f8e3d01f5b546b9368147be0f57b
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Batches.cs b/Scripts/Services/CompareComply/V1/Model/Batches.cs
deleted file mode 100644
index 4569bd06d..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Batches.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The results of a successful **List Batches** request.
- ///
- public class Batches
- {
- ///
- /// A list of the status of all batch requests.
- ///
- [JsonProperty("batches", NullValueHandling = NullValueHandling.Ignore)]
- public List _Batches { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Batches.cs.meta b/Scripts/Services/CompareComply/V1/Model/Batches.cs.meta
deleted file mode 100644
index ddd9d887f..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Batches.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8db13d80af3699641887dd81d59a21fa
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/BodyCells.cs b/Scripts/Services/CompareComply/V1/Model/BodyCells.cs
deleted file mode 100644
index eaff18586..000000000
--- a/Scripts/Services/CompareComply/V1/Model/BodyCells.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Cells that are not table header, column header, or row header cells.
- ///
- public class BodyCells
- {
- ///
- /// The unique ID of the cell in the current table.
- ///
- [JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
- public string CellId { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The textual contents of this cell from the input document without associated markup content.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The `begin` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexEnd { get; set; }
- ///
- /// The `begin` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexEnd { get; set; }
- ///
- /// An array that contains the `id` value of a row header that is applicable to this body cell.
- ///
- [JsonProperty("row_header_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List RowHeaderIds { get; set; }
- ///
- /// An array that contains the `text` value of a row header that is applicable to this body cell.
- ///
- [JsonProperty("row_header_texts", NullValueHandling = NullValueHandling.Ignore)]
- public List RowHeaderTexts { get; set; }
- ///
- /// If you provide customization input, the normalized version of the row header texts according to the
- /// customization; otherwise, the same value as `row_header_texts`.
- ///
- [JsonProperty("row_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public List RowHeaderTextsNormalized { get; set; }
- ///
- /// An array that contains the `id` value of a column header that is applicable to the current cell.
- ///
- [JsonProperty("column_header_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ColumnHeaderIds { get; set; }
- ///
- /// An array that contains the `text` value of a column header that is applicable to the current cell.
- ///
- [JsonProperty("column_header_texts", NullValueHandling = NullValueHandling.Ignore)]
- public List ColumnHeaderTexts { get; set; }
- ///
- /// If you provide customization input, the normalized version of the column header texts according to the
- /// customization; otherwise, the same value as `column_header_texts`.
- ///
- [JsonProperty("column_header_texts_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public List ColumnHeaderTextsNormalized { get; set; }
- ///
- /// Gets or Sets Attributes
- ///
- [JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)]
- public List Attributes { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/BodyCells.cs.meta b/Scripts/Services/CompareComply/V1/Model/BodyCells.cs.meta
deleted file mode 100644
index 2b07f11a1..000000000
--- a/Scripts/Services/CompareComply/V1/Model/BodyCells.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7d8a4a17ae8e5e244a25e4cb59c73505
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Category.cs b/Scripts/Services/CompareComply/V1/Model/Category.cs
deleted file mode 100644
index b77e8edf4..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Category.cs
+++ /dev/null
@@ -1,174 +0,0 @@
-/**
-* (C) Copyright IBM Corp. 2019, 2020.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Information defining an element's subject matter.
- ///
- public class Category
- {
- ///
- /// The category of the associated element.
- ///
- public class LabelValue
- {
- ///
- /// Constant AMENDMENTS for Amendments
- ///
- public const string AMENDMENTS = "Amendments";
- ///
- /// Constant ASSET_USE for Asset Use
- ///
- public const string ASSET_USE = "Asset Use";
- ///
- /// Constant ASSIGNMENTS for Assignments
- ///
- public const string ASSIGNMENTS = "Assignments";
- ///
- /// Constant AUDITS for Audits
- ///
- public const string AUDITS = "Audits";
- ///
- /// Constant BUSINESS_CONTINUITY for Business Continuity
- ///
- public const string BUSINESS_CONTINUITY = "Business Continuity";
- ///
- /// Constant COMMUNICATION for Communication
- ///
- public const string COMMUNICATION = "Communication";
- ///
- /// Constant CONFIDENTIALITY for Confidentiality
- ///
- public const string CONFIDENTIALITY = "Confidentiality";
- ///
- /// Constant DELIVERABLES for Deliverables
- ///
- public const string DELIVERABLES = "Deliverables";
- ///
- /// Constant DELIVERY for Delivery
- ///
- public const string DELIVERY = "Delivery";
- ///
- /// Constant DISPUTE_RESOLUTION for Dispute Resolution
- ///
- public const string DISPUTE_RESOLUTION = "Dispute Resolution";
- ///
- /// Constant FORCE_MAJEURE for Force Majeure
- ///
- public const string FORCE_MAJEURE = "Force Majeure";
- ///
- /// Constant INDEMNIFICATION for Indemnification
- ///
- public const string INDEMNIFICATION = "Indemnification";
- ///
- /// Constant INSURANCE for Insurance
- ///
- public const string INSURANCE = "Insurance";
- ///
- /// Constant INTELLECTUAL_PROPERTY for Intellectual Property
- ///
- public const string INTELLECTUAL_PROPERTY = "Intellectual Property";
- ///
- /// Constant LIABILITY for Liability
- ///
- public const string LIABILITY = "Liability";
- ///
- /// Constant ORDER_OF_PRECEDENCE for Order of Precedence
- ///
- public const string ORDER_OF_PRECEDENCE = "Order of Precedence";
- ///
- /// Constant PAYMENT_TERMS_BILLING for Payment Terms & Billing
- ///
- public const string PAYMENT_TERMS_BILLING = "Payment Terms & Billing";
- ///
- /// Constant PRICING_TAXES for Pricing & Taxes
- ///
- public const string PRICING_TAXES = "Pricing & Taxes";
- ///
- /// Constant PRIVACY for Privacy
- ///
- public const string PRIVACY = "Privacy";
- ///
- /// Constant RESPONSIBILITIES for Responsibilities
- ///
- public const string RESPONSIBILITIES = "Responsibilities";
- ///
- /// Constant SAFETY_AND_SECURITY for Safety and Security
- ///
- public const string SAFETY_AND_SECURITY = "Safety and Security";
- ///
- /// Constant SCOPE_OF_WORK for Scope of Work
- ///
- public const string SCOPE_OF_WORK = "Scope of Work";
- ///
- /// Constant SUBCONTRACTS for Subcontracts
- ///
- public const string SUBCONTRACTS = "Subcontracts";
- ///
- /// Constant TERM_TERMINATION for Term & Termination
- ///
- public const string TERM_TERMINATION = "Term & Termination";
- ///
- /// Constant WARRANTIES for Warranties
- ///
- public const string WARRANTIES = "Warranties";
-
- }
-
- ///
- /// The type of modification of the feedback entry in the updated labels response.
- ///
- public class ModificationValue
- {
- ///
- /// Constant ADDED for added
- ///
- public const string ADDED = "added";
- ///
- /// Constant UNCHANGED for unchanged
- ///
- public const string UNCHANGED = "unchanged";
- ///
- /// Constant REMOVED for removed
- ///
- public const string REMOVED = "removed";
-
- }
-
- ///
- /// The category of the associated element.
- /// Constants for possible values can be found using Category.LabelValue
- ///
- [JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
- public string Label { get; set; }
- ///
- /// The type of modification of the feedback entry in the updated labels response.
- /// Constants for possible values can be found using Category.ModificationValue
- ///
- [JsonProperty("modification", NullValueHandling = NullValueHandling.Ignore)]
- public string Modification { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Category.cs.meta b/Scripts/Services/CompareComply/V1/Model/Category.cs.meta
deleted file mode 100644
index e45041961..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Category.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 270afdae6768a284886cb982856c3331
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/CategoryComparison.cs b/Scripts/Services/CompareComply/V1/Model/CategoryComparison.cs
deleted file mode 100644
index 1e3346019..000000000
--- a/Scripts/Services/CompareComply/V1/Model/CategoryComparison.cs
+++ /dev/null
@@ -1,142 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Information defining an element's subject matter.
- ///
- public class CategoryComparison
- {
- ///
- /// The category of the associated element.
- ///
- public class LabelValue
- {
- ///
- /// Constant AMENDMENTS for Amendments
- ///
- public const string AMENDMENTS = "Amendments";
- ///
- /// Constant ASSET_USE for Asset Use
- ///
- public const string ASSET_USE = "Asset Use";
- ///
- /// Constant ASSIGNMENTS for Assignments
- ///
- public const string ASSIGNMENTS = "Assignments";
- ///
- /// Constant AUDITS for Audits
- ///
- public const string AUDITS = "Audits";
- ///
- /// Constant BUSINESS_CONTINUITY for Business Continuity
- ///
- public const string BUSINESS_CONTINUITY = "Business Continuity";
- ///
- /// Constant COMMUNICATION for Communication
- ///
- public const string COMMUNICATION = "Communication";
- ///
- /// Constant CONFIDENTIALITY for Confidentiality
- ///
- public const string CONFIDENTIALITY = "Confidentiality";
- ///
- /// Constant DELIVERABLES for Deliverables
- ///
- public const string DELIVERABLES = "Deliverables";
- ///
- /// Constant DELIVERY for Delivery
- ///
- public const string DELIVERY = "Delivery";
- ///
- /// Constant DISPUTE_RESOLUTION for Dispute Resolution
- ///
- public const string DISPUTE_RESOLUTION = "Dispute Resolution";
- ///
- /// Constant FORCE_MAJEURE for Force Majeure
- ///
- public const string FORCE_MAJEURE = "Force Majeure";
- ///
- /// Constant INDEMNIFICATION for Indemnification
- ///
- public const string INDEMNIFICATION = "Indemnification";
- ///
- /// Constant INSURANCE for Insurance
- ///
- public const string INSURANCE = "Insurance";
- ///
- /// Constant INTELLECTUAL_PROPERTY for Intellectual Property
- ///
- public const string INTELLECTUAL_PROPERTY = "Intellectual Property";
- ///
- /// Constant LIABILITY for Liability
- ///
- public const string LIABILITY = "Liability";
- ///
- /// Constant ORDER_OF_PRECEDENCE for Order of Precedence
- ///
- public const string ORDER_OF_PRECEDENCE = "Order of Precedence";
- ///
- /// Constant PAYMENT_TERMS_BILLING for Payment Terms & Billing
- ///
- public const string PAYMENT_TERMS_BILLING = "Payment Terms & Billing";
- ///
- /// Constant PRICING_TAXES for Pricing & Taxes
- ///
- public const string PRICING_TAXES = "Pricing & Taxes";
- ///
- /// Constant PRIVACY for Privacy
- ///
- public const string PRIVACY = "Privacy";
- ///
- /// Constant RESPONSIBILITIES for Responsibilities
- ///
- public const string RESPONSIBILITIES = "Responsibilities";
- ///
- /// Constant SAFETY_AND_SECURITY for Safety and Security
- ///
- public const string SAFETY_AND_SECURITY = "Safety and Security";
- ///
- /// Constant SCOPE_OF_WORK for Scope of Work
- ///
- public const string SCOPE_OF_WORK = "Scope of Work";
- ///
- /// Constant SUBCONTRACTS for Subcontracts
- ///
- public const string SUBCONTRACTS = "Subcontracts";
- ///
- /// Constant TERM_TERMINATION for Term & Termination
- ///
- public const string TERM_TERMINATION = "Term & Termination";
- ///
- /// Constant WARRANTIES for Warranties
- ///
- public const string WARRANTIES = "Warranties";
-
- }
-
- ///
- /// The category of the associated element.
- /// Constants for possible values can be found using CategoryComparison.LabelValue
- ///
- [JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
- public string Label { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/CategoryComparison.cs.meta b/Scripts/Services/CompareComply/V1/Model/CategoryComparison.cs.meta
deleted file mode 100644
index 622bf59f2..000000000
--- a/Scripts/Services/CompareComply/V1/Model/CategoryComparison.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: bd090fec16b0efc43b9a1ed9e2bde066
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs b/Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs
deleted file mode 100644
index a75421919..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The analysis of objects returned by the **Element classification** method.
- ///
- public class ClassifyReturn
- {
- ///
- /// Basic information about the input document.
- ///
- [JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
- public Document Document { get; set; }
- ///
- /// The analysis model used to classify the input document. For the **Element classification** method, the only
- /// valid value is `contracts`.
- ///
- [JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelId { get; set; }
- ///
- /// The version of the analysis model identified by the value of the `model_id` key.
- ///
- [JsonProperty("model_version", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelVersion { get; set; }
- ///
- /// Document elements identified by the service.
- ///
- [JsonProperty("elements", NullValueHandling = NullValueHandling.Ignore)]
- public List Elements { get; set; }
- ///
- /// The date or dates on which the document becomes effective.
- ///
- [JsonProperty("effective_dates", NullValueHandling = NullValueHandling.Ignore)]
- public List EffectiveDates { get; set; }
- ///
- /// The monetary amounts that identify the total amount of the contract that needs to be paid from one party to
- /// another.
- ///
- [JsonProperty("contract_amounts", NullValueHandling = NullValueHandling.Ignore)]
- public List ContractAmounts { get; set; }
- ///
- /// The dates on which the document is to be terminated.
- ///
- [JsonProperty("termination_dates", NullValueHandling = NullValueHandling.Ignore)]
- public List TerminationDates { get; set; }
- ///
- /// The contract type as declared in the document.
- ///
- [JsonProperty("contract_types", NullValueHandling = NullValueHandling.Ignore)]
- public List ContractTypes { get; set; }
- ///
- /// The durations of the contract.
- ///
- [JsonProperty("contract_terms", NullValueHandling = NullValueHandling.Ignore)]
- public List ContractTerms { get; set; }
- ///
- /// The document's payment durations.
- ///
- [JsonProperty("payment_terms", NullValueHandling = NullValueHandling.Ignore)]
- public List PaymentTerms { get; set; }
- ///
- /// The contract currencies as declared in the document.
- ///
- [JsonProperty("contract_currencies", NullValueHandling = NullValueHandling.Ignore)]
- public List ContractCurrencies { get; set; }
- ///
- /// Definition of tables identified in the input document.
- ///
- [JsonProperty("tables", NullValueHandling = NullValueHandling.Ignore)]
- public List Tables { get; set; }
- ///
- /// The structure of the input document.
- ///
- [JsonProperty("document_structure", NullValueHandling = NullValueHandling.Ignore)]
- public DocStructure DocumentStructure { get; set; }
- ///
- /// Definitions of the parties identified in the input document.
- ///
- [JsonProperty("parties", NullValueHandling = NullValueHandling.Ignore)]
- public List Parties { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs.meta b/Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs.meta
deleted file mode 100644
index 0a85199a0..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ClassifyReturn.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 663c8ed3de7594641b14b3759f8ae077
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ColumnHeaders.cs b/Scripts/Services/CompareComply/V1/Model/ColumnHeaders.cs
deleted file mode 100644
index 4aa1dd3b6..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ColumnHeaders.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Column-level cells, each applicable as a header to other cells in the same column as itself, of the current
- /// table.
- ///
- public class ColumnHeaders
- {
- ///
- /// The unique ID of the cell in the current table.
- ///
- [JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
- public string CellId { get; set; }
- ///
- /// The location of the column header cell in the current table as defined by its `begin` and `end` offsets,
- /// respectfully, in the input document.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public object Location { get; set; }
- ///
- /// The textual contents of this cell from the input document without associated markup content.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// If you provide customization input, the normalized version of the cell text according to the customization;
- /// otherwise, the same value as `text`.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// The `begin` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexEnd { get; set; }
- ///
- /// The `begin` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexEnd { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ColumnHeaders.cs.meta b/Scripts/Services/CompareComply/V1/Model/ColumnHeaders.cs.meta
deleted file mode 100644
index 93e845f73..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ColumnHeaders.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9a029e63bfb11b940a0c8fb15db7e734
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/CompareReturn.cs b/Scripts/Services/CompareComply/V1/Model/CompareReturn.cs
deleted file mode 100644
index bbb8cb1ff..000000000
--- a/Scripts/Services/CompareComply/V1/Model/CompareReturn.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The comparison of the two submitted documents.
- ///
- public class CompareReturn
- {
- ///
- /// The analysis model used to compare the input documents. For the **Compare two documents** method, the only
- /// valid value is `contracts`.
- ///
- [JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelId { get; set; }
- ///
- /// The version of the analysis model identified by the value of the `model_id` key.
- ///
- [JsonProperty("model_version", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelVersion { get; set; }
- ///
- /// Information about the documents being compared.
- ///
- [JsonProperty("documents", NullValueHandling = NullValueHandling.Ignore)]
- public List Documents { get; set; }
- ///
- /// A list of pairs of elements that semantically align between the compared documents.
- ///
- [JsonProperty("aligned_elements", NullValueHandling = NullValueHandling.Ignore)]
- public List AlignedElements { get; set; }
- ///
- /// A list of elements that do not semantically align between the compared documents.
- ///
- [JsonProperty("unaligned_elements", NullValueHandling = NullValueHandling.Ignore)]
- public List UnalignedElements { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/CompareReturn.cs.meta b/Scripts/Services/CompareComply/V1/Model/CompareReturn.cs.meta
deleted file mode 100644
index 0cf92b646..000000000
--- a/Scripts/Services/CompareComply/V1/Model/CompareReturn.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8fb9223226ee9d349b3c6760d0eb7bf1
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Contact.cs b/Scripts/Services/CompareComply/V1/Model/Contact.cs
deleted file mode 100644
index 844d1e351..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Contact.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A contact.
- ///
- public class Contact
- {
- ///
- /// A string listing the name of the contact.
- ///
- [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
- public string Name { get; set; }
- ///
- /// A string listing the role of the contact.
- ///
- [JsonProperty("role", NullValueHandling = NullValueHandling.Ignore)]
- public string Role { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Contact.cs.meta b/Scripts/Services/CompareComply/V1/Model/Contact.cs.meta
deleted file mode 100644
index aa73447c5..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Contact.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 87db66663fa0280448378206e07ab7bf
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Contexts.cs b/Scripts/Services/CompareComply/V1/Model/Contexts.cs
deleted file mode 100644
index b1d628e60..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Contexts.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Text that is related to the contents of the table and that precedes or follows the current table.
- ///
- public class Contexts
- {
- ///
- /// The related text.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Contexts.cs.meta b/Scripts/Services/CompareComply/V1/Model/Contexts.cs.meta
deleted file mode 100644
index da872adcb..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Contexts.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 455d03913cfcd45788021fcac02533ab
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractAmts.cs b/Scripts/Services/CompareComply/V1/Model/ContractAmts.cs
deleted file mode 100644
index 72eeb802d..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractAmts.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A monetary amount identified in the input document.
- ///
- public class ContractAmts
- {
- ///
- /// The confidence level in the identification of the contract amount.
- ///
- public class ConfidenceLevelValue
- {
- ///
- /// Constant HIGH for High
- ///
- public const string HIGH = "High";
- ///
- /// Constant MEDIUM for Medium
- ///
- public const string MEDIUM = "Medium";
- ///
- /// Constant LOW for Low
- ///
- public const string LOW = "Low";
-
- }
-
- ///
- /// The confidence level in the identification of the contract amount.
- /// Constants for possible values can be found using ContractAmts.ConfidenceLevelValue
- ///
- [JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
- public string ConfidenceLevel { get; set; }
- ///
- /// The monetary amount.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The normalized form of the amount, which is listed as a string. This element is optional; it is returned
- /// only if normalized text exists.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// The details of the normalized text, if applicable. This element is optional; it is returned only if
- /// normalized text exists.
- ///
- [JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
- public Interpretation Interpretation { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractAmts.cs.meta b/Scripts/Services/CompareComply/V1/Model/ContractAmts.cs.meta
deleted file mode 100644
index 3ebf9f1a3..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractAmts.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 32f204073ae87e84abcbf44028aa633f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractCurrencies.cs b/Scripts/Services/CompareComply/V1/Model/ContractCurrencies.cs
deleted file mode 100644
index e93b26916..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractCurrencies.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The contract currencies that are declared in the document.
- ///
- public class ContractCurrencies
- {
- ///
- /// The confidence level in the identification of the contract currency.
- ///
- public class ConfidenceLevelValue
- {
- ///
- /// Constant HIGH for High
- ///
- public const string HIGH = "High";
- ///
- /// Constant MEDIUM for Medium
- ///
- public const string MEDIUM = "Medium";
- ///
- /// Constant LOW for Low
- ///
- public const string LOW = "Low";
-
- }
-
- ///
- /// The confidence level in the identification of the contract currency.
- /// Constants for possible values can be found using ContractCurrencies.ConfidenceLevelValue
- ///
- [JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
- public string ConfidenceLevel { get; set; }
- ///
- /// The contract currency.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The normalized form of the contract currency, which is listed as a string in
- /// [ISO-4217](https://www.iso.org/iso-4217-currency-codes.html) format. This element is optional; it is
- /// returned only if normalized text exists.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractCurrencies.cs.meta b/Scripts/Services/CompareComply/V1/Model/ContractCurrencies.cs.meta
deleted file mode 100644
index ddbad6abd..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractCurrencies.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4682a2429680f48c9a42eb9502f77f3a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractTerms.cs b/Scripts/Services/CompareComply/V1/Model/ContractTerms.cs
deleted file mode 100644
index b07983253..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractTerms.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The duration or durations of the contract.
- ///
- public class ContractTerms
- {
- ///
- /// The confidence level in the identification of the contract term.
- ///
- public class ConfidenceLevelValue
- {
- ///
- /// Constant HIGH for High
- ///
- public const string HIGH = "High";
- ///
- /// Constant MEDIUM for Medium
- ///
- public const string MEDIUM = "Medium";
- ///
- /// Constant LOW for Low
- ///
- public const string LOW = "Low";
-
- }
-
- ///
- /// The confidence level in the identification of the contract term.
- /// Constants for possible values can be found using ContractTerms.ConfidenceLevelValue
- ///
- [JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
- public string ConfidenceLevel { get; set; }
- ///
- /// The contract term (duration).
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The normalized form of the contract term, which is listed as a string. This element is optional; it is
- /// returned only if normalized text exists.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// The details of the normalized text, if applicable. This element is optional; it is returned only if
- /// normalized text exists.
- ///
- [JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
- public Interpretation Interpretation { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractTerms.cs.meta b/Scripts/Services/CompareComply/V1/Model/ContractTerms.cs.meta
deleted file mode 100644
index 99d502fdc..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractTerms.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: a56d0df95350749668c595aeb120d4b3
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractTypes.cs b/Scripts/Services/CompareComply/V1/Model/ContractTypes.cs
deleted file mode 100644
index d3a9f20e9..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractTypes.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The contract type identified in the input document.
- ///
- public class ContractTypes
- {
- ///
- /// The confidence level in the identification of the contract type.
- ///
- public class ConfidenceLevelValue
- {
- ///
- /// Constant HIGH for High
- ///
- public const string HIGH = "High";
- ///
- /// Constant MEDIUM for Medium
- ///
- public const string MEDIUM = "Medium";
- ///
- /// Constant LOW for Low
- ///
- public const string LOW = "Low";
-
- }
-
- ///
- /// The confidence level in the identification of the contract type.
- /// Constants for possible values can be found using ContractTypes.ConfidenceLevelValue
- ///
- [JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
- public string ConfidenceLevel { get; set; }
- ///
- /// The contract type.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ContractTypes.cs.meta b/Scripts/Services/CompareComply/V1/Model/ContractTypes.cs.meta
deleted file mode 100644
index 5331d38b0..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ContractTypes.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: c9c9375bb991540e8b164435765c7081
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/DocCounts.cs b/Scripts/Services/CompareComply/V1/Model/DocCounts.cs
deleted file mode 100644
index 4fbbba2ea..000000000
--- a/Scripts/Services/CompareComply/V1/Model/DocCounts.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Document counts.
- ///
- public class DocCounts
- {
- ///
- /// Total number of documents.
- ///
- [JsonProperty("total", NullValueHandling = NullValueHandling.Ignore)]
- public long? Total { get; set; }
- ///
- /// Number of pending documents.
- ///
- [JsonProperty("pending", NullValueHandling = NullValueHandling.Ignore)]
- public long? Pending { get; set; }
- ///
- /// Number of documents successfully processed.
- ///
- [JsonProperty("successful", NullValueHandling = NullValueHandling.Ignore)]
- public long? Successful { get; set; }
- ///
- /// Number of documents not successfully processed.
- ///
- [JsonProperty("failed", NullValueHandling = NullValueHandling.Ignore)]
- public long? Failed { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/DocCounts.cs.meta b/Scripts/Services/CompareComply/V1/Model/DocCounts.cs.meta
deleted file mode 100644
index 21bcd2403..000000000
--- a/Scripts/Services/CompareComply/V1/Model/DocCounts.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 15bab54872d3764419aa948b67a028a6
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/DocInfo.cs b/Scripts/Services/CompareComply/V1/Model/DocInfo.cs
deleted file mode 100644
index 0b381c1a7..000000000
--- a/Scripts/Services/CompareComply/V1/Model/DocInfo.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Information about the parsed input document.
- ///
- public class DocInfo
- {
- ///
- /// The full text of the parsed document in HTML format.
- ///
- [JsonProperty("html", NullValueHandling = NullValueHandling.Ignore)]
- public string Html { get; set; }
- ///
- /// The title of the parsed document. If the service did not detect a title, the value of this element is
- /// `null`.
- ///
- [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
- public string Title { get; set; }
- ///
- /// The MD5 hash of the input document.
- ///
- [JsonProperty("hash", NullValueHandling = NullValueHandling.Ignore)]
- public string Hash { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/DocInfo.cs.meta b/Scripts/Services/CompareComply/V1/Model/DocInfo.cs.meta
deleted file mode 100644
index 20323dc27..000000000
--- a/Scripts/Services/CompareComply/V1/Model/DocInfo.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8cec52e55f8f8bb4fb6ead822a987203
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/DocStructure.cs b/Scripts/Services/CompareComply/V1/Model/DocStructure.cs
deleted file mode 100644
index 669e70835..000000000
--- a/Scripts/Services/CompareComply/V1/Model/DocStructure.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The structure of the input document.
- ///
- public class DocStructure
- {
- ///
- /// An array containing one object per section or subsection identified in the input document.
- ///
- [JsonProperty("section_titles", NullValueHandling = NullValueHandling.Ignore)]
- public List SectionTitles { get; set; }
- ///
- /// An array containing one object per section or subsection, in parallel with the `section_titles` array, that
- /// details the leading sentences in the corresponding section or subsection.
- ///
- [JsonProperty("leading_sentences", NullValueHandling = NullValueHandling.Ignore)]
- public List LeadingSentences { get; set; }
- ///
- /// An array containing one object per paragraph, in parallel with the `section_titles` and `leading_sentences`
- /// arrays.
- ///
- [JsonProperty("paragraphs", NullValueHandling = NullValueHandling.Ignore)]
- public List Paragraphs { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/DocStructure.cs.meta b/Scripts/Services/CompareComply/V1/Model/DocStructure.cs.meta
deleted file mode 100644
index 439657c9e..000000000
--- a/Scripts/Services/CompareComply/V1/Model/DocStructure.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8e01c215e75aef8428e8d3cb4e78548f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Document.cs b/Scripts/Services/CompareComply/V1/Model/Document.cs
deleted file mode 100644
index 449c6707c..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Document.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Basic information about the input document.
- ///
- public class Document
- {
- ///
- /// Document title, if detected.
- ///
- [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
- public string Title { get; set; }
- ///
- /// The input document converted into HTML format.
- ///
- [JsonProperty("html", NullValueHandling = NullValueHandling.Ignore)]
- public string Html { get; set; }
- ///
- /// The MD5 hash value of the input document.
- ///
- [JsonProperty("hash", NullValueHandling = NullValueHandling.Ignore)]
- public string Hash { get; set; }
- ///
- /// The label applied to the input document with the calling method's `file_1_label` or `file_2_label` value.
- /// This field is specified only in the output of the **Comparing two documents** method.
- ///
- [JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
- public string Label { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Document.cs.meta b/Scripts/Services/CompareComply/V1/Model/Document.cs.meta
deleted file mode 100644
index 22ed96b00..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Document.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 55993892496802645b64cf95fc19757e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/EffectiveDates.cs b/Scripts/Services/CompareComply/V1/Model/EffectiveDates.cs
deleted file mode 100644
index aad88d2ce..000000000
--- a/Scripts/Services/CompareComply/V1/Model/EffectiveDates.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// An effective date.
- ///
- public class EffectiveDates
- {
- ///
- /// The confidence level in the identification of the effective date.
- ///
- public class ConfidenceLevelValue
- {
- ///
- /// Constant HIGH for High
- ///
- public const string HIGH = "High";
- ///
- /// Constant MEDIUM for Medium
- ///
- public const string MEDIUM = "Medium";
- ///
- /// Constant LOW for Low
- ///
- public const string LOW = "Low";
-
- }
-
- ///
- /// The confidence level in the identification of the effective date.
- /// Constants for possible values can be found using EffectiveDates.ConfidenceLevelValue
- ///
- [JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
- public string ConfidenceLevel { get; set; }
- ///
- /// The effective date, listed as a string.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The normalized form of the effective date, which is listed as a string. This element is optional; it is
- /// returned only if normalized text exists.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/EffectiveDates.cs.meta b/Scripts/Services/CompareComply/V1/Model/EffectiveDates.cs.meta
deleted file mode 100644
index f4c4a0685..000000000
--- a/Scripts/Services/CompareComply/V1/Model/EffectiveDates.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 800d290376d1efc4cb994ec1de7baa6e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Element.cs b/Scripts/Services/CompareComply/V1/Model/Element.cs
deleted file mode 100644
index 32e6d9119..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Element.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A component part of the document.
- ///
- public class Element
- {
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The text of the element.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// Description of the action specified by the element and whom it affects.
- ///
- [JsonProperty("types", NullValueHandling = NullValueHandling.Ignore)]
- public List Types { get; set; }
- ///
- /// List of functional categories into which the element falls; in other words, the subject matter of the
- /// element.
- ///
- [JsonProperty("categories", NullValueHandling = NullValueHandling.Ignore)]
- public List Categories { get; set; }
- ///
- /// List of document attributes.
- ///
- [JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)]
- public List Attributes { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Element.cs.meta b/Scripts/Services/CompareComply/V1/Model/Element.cs.meta
deleted file mode 100644
index c50b48868..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Element.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 377a4b6a605d92a4ba8c02595a2ea42a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ElementLocations.cs b/Scripts/Services/CompareComply/V1/Model/ElementLocations.cs
deleted file mode 100644
index ef2febb83..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ElementLocations.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A list of `begin` and `end` indexes that indicate the locations of the elements in the input document.
- ///
- public class ElementLocations
- {
- ///
- /// An integer that indicates the starting position of the element in the input document.
- ///
- [JsonProperty("begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? Begin { get; set; }
- ///
- /// An integer that indicates the ending position of the element in the input document.
- ///
- [JsonProperty("end", NullValueHandling = NullValueHandling.Ignore)]
- public long? End { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ElementLocations.cs.meta b/Scripts/Services/CompareComply/V1/Model/ElementLocations.cs.meta
deleted file mode 100644
index ccf142e6e..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ElementLocations.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 476bbbbb00378ca42b29288b2c84a00a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ElementPair.cs b/Scripts/Services/CompareComply/V1/Model/ElementPair.cs
deleted file mode 100644
index 2881673db..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ElementPair.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Details of semantically aligned elements.
- ///
- public class ElementPair
- {
- ///
- /// The label of the document (that is, the value of either the `file_1_label` or `file_2_label` parameters) in
- /// which the element occurs.
- ///
- [JsonProperty("document_label", NullValueHandling = NullValueHandling.Ignore)]
- public string DocumentLabel { get; set; }
- ///
- /// The contents of the element.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// Description of the action specified by the element and whom it affects.
- ///
- [JsonProperty("types", NullValueHandling = NullValueHandling.Ignore)]
- public List Types { get; set; }
- ///
- /// List of functional categories into which the element falls; in other words, the subject matter of the
- /// element.
- ///
- [JsonProperty("categories", NullValueHandling = NullValueHandling.Ignore)]
- public List Categories { get; set; }
- ///
- /// List of document attributes.
- ///
- [JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)]
- public List Attributes { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ElementPair.cs.meta b/Scripts/Services/CompareComply/V1/Model/ElementPair.cs.meta
deleted file mode 100644
index 753208c8b..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ElementPair.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b83344b0561e82e40a32c05ab015e7bd
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackDataInput.cs b/Scripts/Services/CompareComply/V1/Model/FeedbackDataInput.cs
deleted file mode 100644
index ce0a33e95..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackDataInput.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Feedback data for submission.
- ///
- public class FeedbackDataInput
- {
- ///
- /// The type of feedback. The only permitted value is `element_classification`.
- ///
- [JsonProperty("feedback_type", NullValueHandling = NullValueHandling.Ignore)]
- public string FeedbackType { get; set; }
- ///
- /// Brief information about the input document.
- ///
- [JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
- public ShortDoc Document { get; set; }
- ///
- /// An optional string identifying the model ID. The only permitted value is `contracts`.
- ///
- [JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelId { get; set; }
- ///
- /// An optional string identifying the version of the model used.
- ///
- [JsonProperty("model_version", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelVersion { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The text on which to submit feedback.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The original labeling from the input document, without the submitted feedback.
- ///
- [JsonProperty("original_labels", NullValueHandling = NullValueHandling.Ignore)]
- public OriginalLabelsIn OriginalLabels { get; set; }
- ///
- /// The updated labeling from the input document, accounting for the submitted feedback.
- ///
- [JsonProperty("updated_labels", NullValueHandling = NullValueHandling.Ignore)]
- public UpdatedLabelsIn UpdatedLabels { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackDataInput.cs.meta b/Scripts/Services/CompareComply/V1/Model/FeedbackDataInput.cs.meta
deleted file mode 100644
index e3b87af2e..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackDataInput.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b129e4f617c94e34299cdef01a2c585a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackDataOutput.cs b/Scripts/Services/CompareComply/V1/Model/FeedbackDataOutput.cs
deleted file mode 100644
index 6e29b66ad..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackDataOutput.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Information returned from the **Add Feedback** method.
- ///
- public class FeedbackDataOutput
- {
- ///
- /// A string identifying the user adding the feedback. The only permitted value is `element_classification`.
- ///
- [JsonProperty("feedback_type", NullValueHandling = NullValueHandling.Ignore)]
- public string FeedbackType { get; set; }
- ///
- /// Brief information about the input document.
- ///
- [JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
- public ShortDoc Document { get; set; }
- ///
- /// An optional string identifying the model ID. The only permitted value is `contracts`.
- ///
- [JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelId { get; set; }
- ///
- /// An optional string identifying the version of the model used.
- ///
- [JsonProperty("model_version", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelVersion { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The text to which the feedback applies.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The original labeling from the input document, without the submitted feedback.
- ///
- [JsonProperty("original_labels", NullValueHandling = NullValueHandling.Ignore)]
- public OriginalLabelsOut OriginalLabels { get; set; }
- ///
- /// The updated labeling from the input document, accounting for the submitted feedback.
- ///
- [JsonProperty("updated_labels", NullValueHandling = NullValueHandling.Ignore)]
- public UpdatedLabelsOut UpdatedLabels { get; set; }
- ///
- /// Pagination details, if required by the length of the output.
- ///
- [JsonProperty("pagination", NullValueHandling = NullValueHandling.Ignore)]
- public Pagination Pagination { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackDataOutput.cs.meta b/Scripts/Services/CompareComply/V1/Model/FeedbackDataOutput.cs.meta
deleted file mode 100644
index c6797356b..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackDataOutput.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 29ba4cba205f60a48998c633fba3e6cb
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackDeleted.cs b/Scripts/Services/CompareComply/V1/Model/FeedbackDeleted.cs
deleted file mode 100644
index 4caab3adb..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackDeleted.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The status and message of the deletion request.
- ///
- public class FeedbackDeleted
- {
- ///
- /// HTTP return code.
- ///
- [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
- public long? Status { get; set; }
- ///
- /// Status message returned from the service.
- ///
- [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)]
- public string Message { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackDeleted.cs.meta b/Scripts/Services/CompareComply/V1/Model/FeedbackDeleted.cs.meta
deleted file mode 100644
index b56c62660..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackDeleted.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ca173ee1b4927554a81e3409daf365e5
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackList.cs b/Scripts/Services/CompareComply/V1/Model/FeedbackList.cs
deleted file mode 100644
index 62f539f59..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackList.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The results of a successful **List Feedback** request for all feedback.
- ///
- public class FeedbackList
- {
- ///
- /// A list of all feedback for the document.
- ///
- [JsonProperty("feedback", NullValueHandling = NullValueHandling.Ignore)]
- public List Feedback { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackList.cs.meta b/Scripts/Services/CompareComply/V1/Model/FeedbackList.cs.meta
deleted file mode 100644
index 4659ae309..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackList.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: c217267315277f74abc280500d739a7f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackReturn.cs b/Scripts/Services/CompareComply/V1/Model/FeedbackReturn.cs
deleted file mode 100644
index a9869c952..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackReturn.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-using System;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Information about the document and the submitted feedback.
- ///
- public class FeedbackReturn
- {
- ///
- /// The unique ID of the feedback object.
- ///
- [JsonProperty("feedback_id", NullValueHandling = NullValueHandling.Ignore)]
- public string FeedbackId { get; set; }
- ///
- /// An optional string identifying the person submitting feedback.
- ///
- [JsonProperty("user_id", NullValueHandling = NullValueHandling.Ignore)]
- public string UserId { get; set; }
- ///
- /// An optional comment from the person submitting the feedback.
- ///
- [JsonProperty("comment", NullValueHandling = NullValueHandling.Ignore)]
- public string Comment { get; set; }
- ///
- /// Timestamp listing the creation time of the feedback submission.
- ///
- [JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
- public DateTime? Created { get; set; }
- ///
- /// Information returned from the **Add Feedback** method.
- ///
- [JsonProperty("feedback_data", NullValueHandling = NullValueHandling.Ignore)]
- public FeedbackDataOutput FeedbackData { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/FeedbackReturn.cs.meta b/Scripts/Services/CompareComply/V1/Model/FeedbackReturn.cs.meta
deleted file mode 100644
index bcb3d01bd..000000000
--- a/Scripts/Services/CompareComply/V1/Model/FeedbackReturn.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 11f03a8c07f798842bd6944d596487bb
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/GetFeedback.cs b/Scripts/Services/CompareComply/V1/Model/GetFeedback.cs
deleted file mode 100644
index 0bcf4dbc7..000000000
--- a/Scripts/Services/CompareComply/V1/Model/GetFeedback.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-using System;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The results of a successful **Get Feedback** request for a single feedback entry.
- ///
- public class GetFeedback
- {
- ///
- /// A string uniquely identifying the feedback entry.
- ///
- [JsonProperty("feedback_id", NullValueHandling = NullValueHandling.Ignore)]
- public string FeedbackId { get; set; }
- ///
- /// A timestamp identifying the creation time of the feedback entry.
- ///
- [JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
- public DateTime? Created { get; set; }
- ///
- /// A string containing the user's comment about the feedback entry.
- ///
- [JsonProperty("comment", NullValueHandling = NullValueHandling.Ignore)]
- public string Comment { get; set; }
- ///
- /// Information returned from the **Add Feedback** method.
- ///
- [JsonProperty("feedback_data", NullValueHandling = NullValueHandling.Ignore)]
- public FeedbackDataOutput FeedbackData { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/GetFeedback.cs.meta b/Scripts/Services/CompareComply/V1/Model/GetFeedback.cs.meta
deleted file mode 100644
index db0477aef..000000000
--- a/Scripts/Services/CompareComply/V1/Model/GetFeedback.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 5c95535b13032af44baeb09694e5758b
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/HTMLReturn.cs b/Scripts/Services/CompareComply/V1/Model/HTMLReturn.cs
deleted file mode 100644
index 239c79649..000000000
--- a/Scripts/Services/CompareComply/V1/Model/HTMLReturn.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The HTML converted from an input document.
- ///
- public class HTMLReturn
- {
- ///
- /// The number of pages in the input document.
- ///
- [JsonProperty("num_pages", NullValueHandling = NullValueHandling.Ignore)]
- public string NumPages { get; set; }
- ///
- /// The author of the input document, if identified.
- ///
- [JsonProperty("author", NullValueHandling = NullValueHandling.Ignore)]
- public string Author { get; set; }
- ///
- /// The publication date of the input document, if identified.
- ///
- [JsonProperty("publication_date", NullValueHandling = NullValueHandling.Ignore)]
- public string PublicationDate { get; set; }
- ///
- /// The title of the input document, if identified.
- ///
- [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
- public string Title { get; set; }
- ///
- /// The HTML version of the input document.
- ///
- [JsonProperty("html", NullValueHandling = NullValueHandling.Ignore)]
- public string Html { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/HTMLReturn.cs.meta b/Scripts/Services/CompareComply/V1/Model/HTMLReturn.cs.meta
deleted file mode 100644
index 2e02210b9..000000000
--- a/Scripts/Services/CompareComply/V1/Model/HTMLReturn.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: abe5d9fbf3b256945b6875c55f1ccc88
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Interpretation.cs b/Scripts/Services/CompareComply/V1/Model/Interpretation.cs
deleted file mode 100644
index 86643d775..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Interpretation.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The details of the normalized text, if applicable. This element is optional; it is returned only if normalized
- /// text exists.
- ///
- public class Interpretation
- {
- ///
- /// The value that was located in the normalized text.
- ///
- [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
- public string Value { get; set; }
- ///
- /// An integer or float expressing the numeric value of the `value` key.
- ///
- [JsonProperty("numeric_value", NullValueHandling = NullValueHandling.Ignore)]
- public float? NumericValue { get; set; }
- ///
- /// A string listing the unit of the value that was found in the normalized text.
- ///
- /// **Note:** The value of `unit` is the [ISO-4217 currency
- /// code](https://www.iso.org/iso-4217-currency-codes.html) identified for the currency amount (for example,
- /// `USD` or `EUR`). If the service cannot disambiguate a currency symbol (for example, `$` or `£`), the value
- /// of `unit` contains the ambiguous symbol as-is.
- ///
- [JsonProperty("unit", NullValueHandling = NullValueHandling.Ignore)]
- public string Unit { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Interpretation.cs.meta b/Scripts/Services/CompareComply/V1/Model/Interpretation.cs.meta
deleted file mode 100644
index c5e611dcd..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Interpretation.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ef39af4f15bf5480da6cc0fe8a5cd895
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Key.cs b/Scripts/Services/CompareComply/V1/Model/Key.cs
deleted file mode 100644
index 2e0bfc501..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Key.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A key in a key-value pair.
- ///
- public class Key
- {
- ///
- /// The unique ID of the key in the table.
- ///
- [JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
- public string CellId { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The text content of the table cell without HTML markup.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Key.cs.meta b/Scripts/Services/CompareComply/V1/Model/Key.cs.meta
deleted file mode 100644
index f22ecc8c6..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Key.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: aca6f97c99cfb09429a685094600923e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/KeyValuePair.cs.meta b/Scripts/Services/CompareComply/V1/Model/KeyValuePair.cs.meta
deleted file mode 100644
index 56bae0ca5..000000000
--- a/Scripts/Services/CompareComply/V1/Model/KeyValuePair.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7713ca0e9b7acc744b7f401ec5a84cb7
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Label.cs b/Scripts/Services/CompareComply/V1/Model/Label.cs
deleted file mode 100644
index a19969c0b..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Label.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A pair of `nature` and `party` objects. The `nature` object identifies the effect of the element on the
- /// identified `party`, and the `party` object identifies the affected party.
- ///
- public class Label
- {
- ///
- /// The identified `nature` of the element.
- ///
- [JsonProperty("nature", NullValueHandling = NullValueHandling.Ignore)]
- public string Nature { get; set; }
- ///
- /// The identified `party` of the element.
- ///
- [JsonProperty("party", NullValueHandling = NullValueHandling.Ignore)]
- public string Party { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Label.cs.meta b/Scripts/Services/CompareComply/V1/Model/Label.cs.meta
deleted file mode 100644
index 3930f7c7e..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Label.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 6f46bafcf083e3a488ff62af92a7e87d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/LeadingSentence.cs b/Scripts/Services/CompareComply/V1/Model/LeadingSentence.cs
deleted file mode 100644
index b75ebf4b8..000000000
--- a/Scripts/Services/CompareComply/V1/Model/LeadingSentence.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The leading sentences in a section or subsection of the input document.
- ///
- public class LeadingSentence
- {
- ///
- /// The text of the leading sentence.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// An array of `location` objects that lists the locations of detected leading sentences.
- ///
- [JsonProperty("element_locations", NullValueHandling = NullValueHandling.Ignore)]
- public List ElementLocations { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/LeadingSentence.cs.meta b/Scripts/Services/CompareComply/V1/Model/LeadingSentence.cs.meta
deleted file mode 100644
index 8705d2adc..000000000
--- a/Scripts/Services/CompareComply/V1/Model/LeadingSentence.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 3eff22a7a74d6794dbde6f741a92e205
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Location.cs b/Scripts/Services/CompareComply/V1/Model/Location.cs
deleted file mode 100644
index 65bf83b68..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Location.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled `begin`
- /// and `end`.
- ///
- public class Location
- {
- ///
- /// The element's `begin` index.
- ///
- [JsonProperty("begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? Begin { get; set; }
- ///
- /// The element's `end` index.
- ///
- [JsonProperty("end", NullValueHandling = NullValueHandling.Ignore)]
- public long? End { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Location.cs.meta b/Scripts/Services/CompareComply/V1/Model/Location.cs.meta
deleted file mode 100644
index 5d0a49d66..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Location.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: a646ed50d2e025b44a6cbfe62143c9a8
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Mention.cs b/Scripts/Services/CompareComply/V1/Model/Mention.cs
deleted file mode 100644
index a57204a10..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Mention.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A mention of a party.
- ///
- public class Mention
- {
- ///
- /// The name of the party.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Mention.cs.meta b/Scripts/Services/CompareComply/V1/Model/Mention.cs.meta
deleted file mode 100644
index 261c7c116..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Mention.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b0988f51de70842d8adc0bcc1d703a3e
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsIn.cs b/Scripts/Services/CompareComply/V1/Model/OriginalLabelsIn.cs
deleted file mode 100644
index 58860ff79..000000000
--- a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsIn.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The original labeling from the input document, without the submitted feedback.
- ///
- public class OriginalLabelsIn
- {
- ///
- /// Description of the action specified by the element and whom it affects.
- ///
- [JsonProperty("types", NullValueHandling = NullValueHandling.Ignore)]
- public List Types { get; set; }
- ///
- /// List of functional categories into which the element falls; in other words, the subject matter of the
- /// element.
- ///
- [JsonProperty("categories", NullValueHandling = NullValueHandling.Ignore)]
- public List Categories { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsIn.cs.meta b/Scripts/Services/CompareComply/V1/Model/OriginalLabelsIn.cs.meta
deleted file mode 100644
index b7fbf846e..000000000
--- a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsIn.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ee9adc90d70171641a16c75e60c0fc3a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsOut.cs b/Scripts/Services/CompareComply/V1/Model/OriginalLabelsOut.cs
deleted file mode 100644
index a42be07c9..000000000
--- a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsOut.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-* (C) Copyright IBM Corp. 2019, 2020.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The original labeling from the input document, without the submitted feedback.
- ///
- public class OriginalLabelsOut
- {
- ///
- /// Description of the action specified by the element and whom it affects.
- ///
- [JsonProperty("types", NullValueHandling = NullValueHandling.Ignore)]
- public List Types { get; set; }
- ///
- /// List of functional categories into which the element falls; in other words, the subject matter of the
- /// element.
- ///
- [JsonProperty("categories", NullValueHandling = NullValueHandling.Ignore)]
- public List Categories { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsOut.cs.meta b/Scripts/Services/CompareComply/V1/Model/OriginalLabelsOut.cs.meta
deleted file mode 100644
index c793d6bd4..000000000
--- a/Scripts/Services/CompareComply/V1/Model/OriginalLabelsOut.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: aa71d5e25372b9e4b9b5f240f018ba59
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Pagination.cs b/Scripts/Services/CompareComply/V1/Model/Pagination.cs
deleted file mode 100644
index 462d54d83..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Pagination.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Pagination details, if required by the length of the output.
- ///
- public class Pagination
- {
- ///
- /// A token identifying the current page of results.
- ///
- [JsonProperty("refresh_cursor", NullValueHandling = NullValueHandling.Ignore)]
- public string RefreshCursor { get; set; }
- ///
- /// A token identifying the next page of results.
- ///
- [JsonProperty("next_cursor", NullValueHandling = NullValueHandling.Ignore)]
- public string NextCursor { get; set; }
- ///
- /// The URL that returns the current page of results.
- ///
- [JsonProperty("refresh_url", NullValueHandling = NullValueHandling.Ignore)]
- public string RefreshUrl { get; set; }
- ///
- /// The URL that returns the next page of results.
- ///
- [JsonProperty("next_url", NullValueHandling = NullValueHandling.Ignore)]
- public string NextUrl { get; set; }
- ///
- /// Reserved for future use.
- ///
- [JsonProperty("total", NullValueHandling = NullValueHandling.Ignore)]
- public long? Total { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Pagination.cs.meta b/Scripts/Services/CompareComply/V1/Model/Pagination.cs.meta
deleted file mode 100644
index c8f82612c..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Pagination.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 5c81c76522ff5f44bbd7c053ef25845f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Paragraphs.cs b/Scripts/Services/CompareComply/V1/Model/Paragraphs.cs
deleted file mode 100644
index 4fd666175..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Paragraphs.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The locations of each paragraph in the input document.
- ///
- public class Paragraphs
- {
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Paragraphs.cs.meta b/Scripts/Services/CompareComply/V1/Model/Paragraphs.cs.meta
deleted file mode 100644
index 9a94e6eb3..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Paragraphs.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: f23ab7e851359416bbe058520f0f0ee1
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Parties.cs b/Scripts/Services/CompareComply/V1/Model/Parties.cs
deleted file mode 100644
index cf5027854..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Parties.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A party and its corresponding role, including address and contact information if identified.
- ///
- public class Parties
- {
- ///
- /// A string that identifies the importance of the party.
- ///
- public class ImportanceValue
- {
- ///
- /// Constant PRIMARY for Primary
- ///
- public const string PRIMARY = "Primary";
- ///
- /// Constant UNKNOWN for Unknown
- ///
- public const string UNKNOWN = "Unknown";
-
- }
-
- ///
- /// A string that identifies the importance of the party.
- /// Constants for possible values can be found using Parties.ImportanceValue
- ///
- [JsonProperty("importance", NullValueHandling = NullValueHandling.Ignore)]
- public string Importance { get; set; }
- ///
- /// The normalized form of the party's name.
- ///
- [JsonProperty("party", NullValueHandling = NullValueHandling.Ignore)]
- public string Party { get; set; }
- ///
- /// A string identifying the party's role.
- ///
- [JsonProperty("role", NullValueHandling = NullValueHandling.Ignore)]
- public string Role { get; set; }
- ///
- /// A list of the party's address or addresses.
- ///
- [JsonProperty("addresses", NullValueHandling = NullValueHandling.Ignore)]
- public List Addresses { get; set; }
- ///
- /// A list of the names and roles of contacts identified in the input document.
- ///
- [JsonProperty("contacts", NullValueHandling = NullValueHandling.Ignore)]
- public List Contacts { get; set; }
- ///
- /// A list of the party's mentions in the input document.
- ///
- [JsonProperty("mentions", NullValueHandling = NullValueHandling.Ignore)]
- public List Mentions { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Parties.cs.meta b/Scripts/Services/CompareComply/V1/Model/Parties.cs.meta
deleted file mode 100644
index ac484f81b..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Parties.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 52228898f85aa5049ab8064e72a291f7
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/PaymentTerms.cs b/Scripts/Services/CompareComply/V1/Model/PaymentTerms.cs
deleted file mode 100644
index 9dd9ea8cd..000000000
--- a/Scripts/Services/CompareComply/V1/Model/PaymentTerms.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The document's payment duration or durations.
- ///
- public class PaymentTerms
- {
- ///
- /// The confidence level in the identification of the payment term.
- ///
- public class ConfidenceLevelValue
- {
- ///
- /// Constant HIGH for High
- ///
- public const string HIGH = "High";
- ///
- /// Constant MEDIUM for Medium
- ///
- public const string MEDIUM = "Medium";
- ///
- /// Constant LOW for Low
- ///
- public const string LOW = "Low";
-
- }
-
- ///
- /// The confidence level in the identification of the payment term.
- /// Constants for possible values can be found using PaymentTerms.ConfidenceLevelValue
- ///
- [JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
- public string ConfidenceLevel { get; set; }
- ///
- /// The payment term (duration).
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The normalized form of the payment term, which is listed as a string. This element is optional; it is
- /// returned only if normalized text exists.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// The details of the normalized text, if applicable. This element is optional; it is returned only if
- /// normalized text exists.
- ///
- [JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
- public Interpretation Interpretation { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/PaymentTerms.cs.meta b/Scripts/Services/CompareComply/V1/Model/PaymentTerms.cs.meta
deleted file mode 100644
index fb98777b8..000000000
--- a/Scripts/Services/CompareComply/V1/Model/PaymentTerms.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 0942fa37e2c364725a324618c721fc87
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/RowHeaders.cs b/Scripts/Services/CompareComply/V1/Model/RowHeaders.cs
deleted file mode 100644
index f9f457eb8..000000000
--- a/Scripts/Services/CompareComply/V1/Model/RowHeaders.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Row-level cells, each applicable as a header to other cells in the same row as itself, of the current table.
- ///
- public class RowHeaders
- {
- ///
- /// The unique ID of the cell in the current table.
- ///
- [JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
- public string CellId { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The textual contents of this cell from the input document without associated markup content.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// If you provide customization input, the normalized version of the cell text according to the customization;
- /// otherwise, the same value as `text`.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// The `begin` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexEnd { get; set; }
- ///
- /// The `begin` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexEnd { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/RowHeaders.cs.meta b/Scripts/Services/CompareComply/V1/Model/RowHeaders.cs.meta
deleted file mode 100644
index 1e26b5e43..000000000
--- a/Scripts/Services/CompareComply/V1/Model/RowHeaders.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 3a3f6dd057060484c9a5823274558de2
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/SectionTitle.cs b/Scripts/Services/CompareComply/V1/Model/SectionTitle.cs
deleted file mode 100644
index 1f0b570f5..000000000
--- a/Scripts/Services/CompareComply/V1/Model/SectionTitle.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The table's section title, if identified.
- ///
- public class SectionTitle
- {
- ///
- /// The text of the section title, if identified.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/SectionTitle.cs.meta b/Scripts/Services/CompareComply/V1/Model/SectionTitle.cs.meta
deleted file mode 100644
index 8b4355b68..000000000
--- a/Scripts/Services/CompareComply/V1/Model/SectionTitle.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 884e1a5784806e04a9fea3acb90f0163
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/SectionTitles.cs b/Scripts/Services/CompareComply/V1/Model/SectionTitles.cs
deleted file mode 100644
index 5720b6b11..000000000
--- a/Scripts/Services/CompareComply/V1/Model/SectionTitles.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// An array containing one object per section or subsection detected in the input document. Sections and
- /// subsections are not nested; instead, they are flattened out and can be placed back in order by using the `begin`
- /// and `end` values of the element and the `level` value of the section.
- ///
- public class SectionTitles
- {
- ///
- /// The text of the section title, if identified.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// An integer indicating the level at which the section is located in the input document. For example, `1`
- /// represents a top-level section, `2` represents a subsection within the level `1` section, and so forth.
- ///
- [JsonProperty("level", NullValueHandling = NullValueHandling.Ignore)]
- public long? Level { get; set; }
- ///
- /// An array of `location` objects that lists the locations of detected section titles.
- ///
- [JsonProperty("element_locations", NullValueHandling = NullValueHandling.Ignore)]
- public List ElementLocations { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/SectionTitles.cs.meta b/Scripts/Services/CompareComply/V1/Model/SectionTitles.cs.meta
deleted file mode 100644
index 91d6062b2..000000000
--- a/Scripts/Services/CompareComply/V1/Model/SectionTitles.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 143510193f0c5e34d887626e38d7fb17
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/ShortDoc.cs b/Scripts/Services/CompareComply/V1/Model/ShortDoc.cs
deleted file mode 100644
index cdd04e9b4..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ShortDoc.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Brief information about the input document.
- ///
- public class ShortDoc
- {
- ///
- /// The title of the input document, if identified.
- ///
- [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
- public string Title { get; set; }
- ///
- /// The MD5 hash of the input document.
- ///
- [JsonProperty("hash", NullValueHandling = NullValueHandling.Ignore)]
- public string Hash { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/ShortDoc.cs.meta b/Scripts/Services/CompareComply/V1/Model/ShortDoc.cs.meta
deleted file mode 100644
index 65f979240..000000000
--- a/Scripts/Services/CompareComply/V1/Model/ShortDoc.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1aba36cabe464e5498c8225a97e7fde2
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/TableHeaders.cs b/Scripts/Services/CompareComply/V1/Model/TableHeaders.cs
deleted file mode 100644
index 9c88128f0..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TableHeaders.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The contents of the current table's header.
- ///
- public class TableHeaders
- {
- ///
- /// The unique ID of the cell in the current table.
- ///
- [JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
- public string CellId { get; set; }
- ///
- /// The location of the table header cell in the current table as defined by its `begin` and `end` offsets,
- /// respectfully, in the input document.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public object Location { get; set; }
- ///
- /// The textual contents of the cell from the input document without associated markup content.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The `begin` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `row` location in the current table.
- ///
- [JsonProperty("row_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? RowIndexEnd { get; set; }
- ///
- /// The `begin` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_begin", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexBegin { get; set; }
- ///
- /// The `end` index of this cell's `column` location in the current table.
- ///
- [JsonProperty("column_index_end", NullValueHandling = NullValueHandling.Ignore)]
- public long? ColumnIndexEnd { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/TableHeaders.cs.meta b/Scripts/Services/CompareComply/V1/Model/TableHeaders.cs.meta
deleted file mode 100644
index 8738fd9eb..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TableHeaders.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7a5087cb157beed4a9e659001fe99c27
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/TableReturn.cs b/Scripts/Services/CompareComply/V1/Model/TableReturn.cs
deleted file mode 100644
index bc6dbfde5..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TableReturn.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The analysis of the document's tables.
- ///
- public class TableReturn
- {
- ///
- /// Information about the parsed input document.
- ///
- [JsonProperty("document", NullValueHandling = NullValueHandling.Ignore)]
- public DocInfo Document { get; set; }
- ///
- /// The ID of the model used to extract the table contents. The value for table extraction is `tables`.
- ///
- [JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelId { get; set; }
- ///
- /// The version of the `tables` model ID.
- ///
- [JsonProperty("model_version", NullValueHandling = NullValueHandling.Ignore)]
- public string ModelVersion { get; set; }
- ///
- /// Definitions of the tables identified in the input document.
- ///
- [JsonProperty("tables", NullValueHandling = NullValueHandling.Ignore)]
- public List Tables { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/TableReturn.cs.meta b/Scripts/Services/CompareComply/V1/Model/TableReturn.cs.meta
deleted file mode 100644
index d029f6f99..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TableReturn.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: bc9a0ab8c8432454a98ebfbafe8493da
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/TableTitle.cs b/Scripts/Services/CompareComply/V1/Model/TableTitle.cs
deleted file mode 100644
index 2750be78b..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TableTitle.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// If identified, the title or caption of the current table of the form `Table x.: ...`. Empty when no title is
- /// identified. When exposed, the `title` is also excluded from the `contexts` array of the same table.
- ///
- public class TableTitle
- {
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The text of the identified table title or caption.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/TableTitle.cs.meta b/Scripts/Services/CompareComply/V1/Model/TableTitle.cs.meta
deleted file mode 100644
index 8e497dc55..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TableTitle.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 448d10d7423084fe7a37edb800c6adb1
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Tables.cs b/Scripts/Services/CompareComply/V1/Model/Tables.cs
deleted file mode 100644
index e174d2d5d..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Tables.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The contents of the tables extracted from a document.
- ///
- public class Tables
- {
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The textual contents of the current table from the input document without associated markup content.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The table's section title, if identified.
- ///
- [JsonProperty("section_title", NullValueHandling = NullValueHandling.Ignore)]
- public SectionTitle SectionTitle { get; set; }
- ///
- /// If identified, the title or caption of the current table of the form `Table x.: ...`. Empty when no title is
- /// identified. When exposed, the `title` is also excluded from the `contexts` array of the same table.
- ///
- [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
- public TableTitle Title { get; set; }
- ///
- /// An array of table-level cells that apply as headers to all the other cells in the current table.
- ///
- [JsonProperty("table_headers", NullValueHandling = NullValueHandling.Ignore)]
- public List TableHeaders { get; set; }
- ///
- /// An array of row-level cells, each applicable as a header to other cells in the same row as itself, of the
- /// current table.
- ///
- [JsonProperty("row_headers", NullValueHandling = NullValueHandling.Ignore)]
- public List RowHeaders { get; set; }
- ///
- /// An array of column-level cells, each applicable as a header to other cells in the same column as itself, of
- /// the current table.
- ///
- [JsonProperty("column_headers", NullValueHandling = NullValueHandling.Ignore)]
- public List ColumnHeaders { get; set; }
- ///
- /// An array of cells that are neither table header nor column header nor row header cells, of the current table
- /// with corresponding row and column header associations.
- ///
- [JsonProperty("body_cells", NullValueHandling = NullValueHandling.Ignore)]
- public List BodyCells { get; set; }
- ///
- /// An array of objects that list text that is related to the table contents and that precedes or follows the
- /// current table.
- ///
- [JsonProperty("contexts", NullValueHandling = NullValueHandling.Ignore)]
- public List Contexts { get; set; }
- ///
- /// An array of key-value pairs identified in the current table.
- ///
- [JsonProperty("key_value_pairs", NullValueHandling = NullValueHandling.Ignore)]
- public List KeyValuePairs { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Tables.cs.meta b/Scripts/Services/CompareComply/V1/Model/Tables.cs.meta
deleted file mode 100644
index 61ae86f9e..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Tables.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 346be410d625ef74eb20ff8281fb10d1
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/TerminationDates.cs b/Scripts/Services/CompareComply/V1/Model/TerminationDates.cs
deleted file mode 100644
index b848f3047..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TerminationDates.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Termination dates identified in the input document.
- ///
- public class TerminationDates
- {
- ///
- /// The confidence level in the identification of the termination date.
- ///
- public class ConfidenceLevelValue
- {
- ///
- /// Constant HIGH for High
- ///
- public const string HIGH = "High";
- ///
- /// Constant MEDIUM for Medium
- ///
- public const string MEDIUM = "Medium";
- ///
- /// Constant LOW for Low
- ///
- public const string LOW = "Low";
-
- }
-
- ///
- /// The confidence level in the identification of the termination date.
- /// Constants for possible values can be found using TerminationDates.ConfidenceLevelValue
- ///
- [JsonProperty("confidence_level", NullValueHandling = NullValueHandling.Ignore)]
- public string ConfidenceLevel { get; set; }
- ///
- /// The termination date.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The normalized form of the termination date, which is listed as a string. This element is optional; it is
- /// returned only if normalized text exists.
- ///
- [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)]
- public string TextNormalized { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/TerminationDates.cs.meta b/Scripts/Services/CompareComply/V1/Model/TerminationDates.cs.meta
deleted file mode 100644
index 65f5acf2b..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TerminationDates.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 177f5623ff71e1b4c9cd4954007b8bbe
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/TypeLabel.cs b/Scripts/Services/CompareComply/V1/Model/TypeLabel.cs
deleted file mode 100644
index 64078f2f7..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TypeLabel.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
-* (C) Copyright IBM Corp. 2019, 2020.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Identification of a specific type.
- ///
- public class TypeLabel
- {
- ///
- /// The type of modification of the feedback entry in the updated labels response.
- ///
- public class ModificationValue
- {
- ///
- /// Constant ADDED for added
- ///
- public const string ADDED = "added";
- ///
- /// Constant UNCHANGED for unchanged
- ///
- public const string UNCHANGED = "unchanged";
- ///
- /// Constant REMOVED for removed
- ///
- public const string REMOVED = "removed";
-
- }
-
- ///
- /// The type of modification of the feedback entry in the updated labels response.
- /// Constants for possible values can be found using TypeLabel.ModificationValue
- ///
- [JsonProperty("modification", NullValueHandling = NullValueHandling.Ignore)]
- public string Modification { get; set; }
- ///
- /// A pair of `nature` and `party` objects. The `nature` object identifies the effect of the element on the
- /// identified `party`, and the `party` object identifies the affected party.
- ///
- [JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
- public Label Label { get; set; }
- ///
- /// Hashed values that you can send to IBM to provide feedback or receive support.
- ///
- [JsonProperty("provenance_ids", NullValueHandling = NullValueHandling.Ignore)]
- public List ProvenanceIds { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/TypeLabel.cs.meta b/Scripts/Services/CompareComply/V1/Model/TypeLabel.cs.meta
deleted file mode 100644
index 0f2743fd4..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TypeLabel.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 3914a585fd8e848489dda4a4d76af08f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/TypeLabelComparison.cs b/Scripts/Services/CompareComply/V1/Model/TypeLabelComparison.cs
deleted file mode 100644
index 7394420dd..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TypeLabelComparison.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Identification of a specific type.
- ///
- public class TypeLabelComparison
- {
- ///
- /// A pair of `nature` and `party` objects. The `nature` object identifies the effect of the element on the
- /// identified `party`, and the `party` object identifies the affected party.
- ///
- [JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
- public Label Label { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/TypeLabelComparison.cs.meta b/Scripts/Services/CompareComply/V1/Model/TypeLabelComparison.cs.meta
deleted file mode 100644
index 15a55794b..000000000
--- a/Scripts/Services/CompareComply/V1/Model/TypeLabelComparison.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8c8db3e8b10477c4990f6a549c2ed5ff
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/UnalignedElement.cs b/Scripts/Services/CompareComply/V1/Model/UnalignedElement.cs
deleted file mode 100644
index b264e158f..000000000
--- a/Scripts/Services/CompareComply/V1/Model/UnalignedElement.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// Element that does not align semantically between two compared documents.
- ///
- public class UnalignedElement
- {
- ///
- /// The label assigned to the document by the value of the `file_1_label` or `file_2_label` parameters on the
- /// **Compare two documents** method.
- ///
- [JsonProperty("document_label", NullValueHandling = NullValueHandling.Ignore)]
- public string DocumentLabel { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The text of the element.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// Description of the action specified by the element and whom it affects.
- ///
- [JsonProperty("types", NullValueHandling = NullValueHandling.Ignore)]
- public List Types { get; set; }
- ///
- /// List of functional categories into which the element falls; in other words, the subject matter of the
- /// element.
- ///
- [JsonProperty("categories", NullValueHandling = NullValueHandling.Ignore)]
- public List Categories { get; set; }
- ///
- /// List of document attributes.
- ///
- [JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)]
- public List Attributes { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/UnalignedElement.cs.meta b/Scripts/Services/CompareComply/V1/Model/UnalignedElement.cs.meta
deleted file mode 100644
index 03c1e8825..000000000
--- a/Scripts/Services/CompareComply/V1/Model/UnalignedElement.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: d584d7766891c7b4c857605a07b486f2
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsIn.cs b/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsIn.cs
deleted file mode 100644
index 7011727ef..000000000
--- a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsIn.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The updated labeling from the input document, accounting for the submitted feedback.
- ///
- public class UpdatedLabelsIn
- {
- ///
- /// Description of the action specified by the element and whom it affects.
- ///
- [JsonProperty("types", NullValueHandling = NullValueHandling.Ignore)]
- public List Types { get; set; }
- ///
- /// List of functional categories into which the element falls; in other words, the subject matter of the
- /// element.
- ///
- [JsonProperty("categories", NullValueHandling = NullValueHandling.Ignore)]
- public List Categories { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsIn.cs.meta b/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsIn.cs.meta
deleted file mode 100644
index 2f5512b1c..000000000
--- a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsIn.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7e29145ec4cb63a429c5ceb0d036f4b4
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsOut.cs b/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsOut.cs
deleted file mode 100644
index de7794f32..000000000
--- a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsOut.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-* (C) Copyright IBM Corp. 2019, 2020.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// The updated labeling from the input document, accounting for the submitted feedback.
- ///
- public class UpdatedLabelsOut
- {
- ///
- /// Description of the action specified by the element and whom it affects.
- ///
- [JsonProperty("types", NullValueHandling = NullValueHandling.Ignore)]
- public List Types { get; set; }
- ///
- /// List of functional categories into which the element falls; in other words, the subject matter of the
- /// element.
- ///
- [JsonProperty("categories", NullValueHandling = NullValueHandling.Ignore)]
- public List Categories { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsOut.cs.meta b/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsOut.cs.meta
deleted file mode 100644
index f7f4690f9..000000000
--- a/Scripts/Services/CompareComply/V1/Model/UpdatedLabelsOut.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9b46b8ce02f2e314e9bc4b9d83285025
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/Value.cs b/Scripts/Services/CompareComply/V1/Model/Value.cs
deleted file mode 100644
index fd417e403..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Value.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.CompareComply.V1.Model
-{
- ///
- /// A value in a key-value pair.
- ///
- public class Value
- {
- ///
- /// The unique ID of the value in the table.
- ///
- [JsonProperty("cell_id", NullValueHandling = NullValueHandling.Ignore)]
- public string CellId { get; set; }
- ///
- /// The numeric location of the identified element in the document, represented with two integers labeled
- /// `begin` and `end`.
- ///
- [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)]
- public Location Location { get; set; }
- ///
- /// The text content of the table cell without HTML markup.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- }
-}
diff --git a/Scripts/Services/CompareComply/V1/Model/Value.cs.meta b/Scripts/Services/CompareComply/V1/Model/Value.cs.meta
deleted file mode 100644
index bb05d2be7..000000000
--- a/Scripts/Services/CompareComply/V1/Model/Value.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b9a8d5fbde271054a980e9f4a03bd475
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/DiscoveryService.cs b/Scripts/Services/Discovery/V1/DiscoveryService.cs
index f5a0058f9..82a705985 100644
--- a/Scripts/Services/Discovery/V1/DiscoveryService.cs
+++ b/Scripts/Services/Discovery/V1/DiscoveryService.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@
*/
/**
-* IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
+* IBM OpenAPI SDK Code Generator Version: 3.46.0-a4e29da0-20220224-210428
*/
using System.Collections.Generic;
@@ -363,8 +363,8 @@ private void OnGetEnvironmentResponse(RESTConnector.Request req, RESTConnector.R
/// The ID of the environment.
/// Name that identifies the environment. (optional, default to )
/// Description of the environment. (optional, default to )
- /// Size that the environment should be increased to. Environment size cannot be modified
- /// when using a Lite plan. Environment size can only increased and not decreased. (optional)
+ /// Size to change the environment to. **Note:** Lite plan users cannot change the
+ /// environment size. (optional)
/// ModelEnvironment
public bool UpdateEnvironment(Callback callback, string environmentId, string name = null, string description = null, string size = null)
{
diff --git a/Scripts/Services/Discovery/V1/Model/Calculation.cs.meta b/Scripts/Services/Discovery/V1/Model/Calculation.cs.meta
deleted file mode 100644
index 6e67a5235..000000000
--- a/Scripts/Services/Discovery/V1/Model/Calculation.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7e5ae22015ee49741a61cd055c1f093c
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Enrichment.cs b/Scripts/Services/Discovery/V1/Model/Enrichment.cs
index 4acb7bab7..dba9f4ae1 100644
--- a/Scripts/Services/Discovery/V1/Model/Enrichment.cs
+++ b/Scripts/Services/Discovery/V1/Model/Enrichment.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -51,15 +51,10 @@ public class Enrichment
[JsonProperty("overwrite", NullValueHandling = NullValueHandling.Ignore)]
public bool? Overwrite { get; set; }
///
- /// Name of the enrichment service to call. Current options are `natural_language_understanding` and `elements`.
+ /// Name of the enrichment service to call. The only supported option is `natural_language_understanding`. The
+ /// `elements` option is deprecated and support ended on 10 July 2020.
///
- /// When using `natual_language_understanding`, the **options** object must contain Natural Language
- /// Understanding options.
- ///
- /// When using `elements` the **options** object must contain Element Classification options. Additionally, when
- /// using the `elements` enrichment the configuration specified and files ingested must meet all the criteria
- /// specified in [the
- /// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-element-classification#element-classification).
+ /// The **options** object must contain Natural Language Understanding options.
///
[JsonProperty("enrichment", NullValueHandling = NullValueHandling.Ignore)]
public string _Enrichment { get; set; }
@@ -70,7 +65,11 @@ public class Enrichment
[JsonProperty("ignore_downstream_errors", NullValueHandling = NullValueHandling.Ignore)]
public bool? IgnoreDownstreamErrors { get; set; }
///
- /// Options which are specific to a particular enrichment.
+ /// Options that are specific to a particular enrichment.
+ ///
+ /// The `elements` enrichment type is deprecated. Use the [Create a
+ /// project](https://cloud.ibm.com/apidocs/discovery-data#createproject) method of the Discovery v2 API to
+ /// create a `content_intelligence` project type instead.
///
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
public EnrichmentOptions Options { get; set; }
diff --git a/Scripts/Services/Discovery/V1/Model/EnrichmentOptions.cs b/Scripts/Services/Discovery/V1/Model/EnrichmentOptions.cs
index 1dd8b3db0..9fbae4da1 100644
--- a/Scripts/Services/Discovery/V1/Model/EnrichmentOptions.cs
+++ b/Scripts/Services/Discovery/V1/Model/EnrichmentOptions.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,11 @@
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Options which are specific to a particular enrichment.
+ /// Options that are specific to a particular enrichment.
+ ///
+ /// The `elements` enrichment type is deprecated. Use the [Create a
+ /// project](https://cloud.ibm.com/apidocs/discovery-data#createproject) method of the Discovery v2 API to create a
+ /// `content_intelligence` project type instead.
///
public class EnrichmentOptions
{
@@ -86,8 +90,7 @@ public class LanguageValue
[JsonProperty("features", NullValueHandling = NullValueHandling.Ignore)]
public NluEnrichmentFeatures Features { get; set; }
///
- /// For use with `elements` enrichments only. The element extraction model to use. The only model available is
- /// `contract`.
+ /// The element extraction model to use, which can be `contract` only. The `elements` enrichment is deprecated.
///
[JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)]
public string Model { get; set; }
diff --git a/Scripts/Services/Discovery/V1/Model/Filter.cs.meta b/Scripts/Services/Discovery/V1/Model/Filter.cs.meta
deleted file mode 100644
index 865246489..000000000
--- a/Scripts/Services/Discovery/V1/Model/Filter.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 3df678cb3cfe81b4ca6a3e9422b80bd4
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Histogram.cs.meta b/Scripts/Services/Discovery/V1/Model/Histogram.cs.meta
deleted file mode 100644
index f6701c2a5..000000000
--- a/Scripts/Services/Discovery/V1/Model/Histogram.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8d32fd8625267f44ba1cf197d15459de
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Nested.cs.meta b/Scripts/Services/Discovery/V1/Model/Nested.cs.meta
deleted file mode 100644
index 5a7325792..000000000
--- a/Scripts/Services/Discovery/V1/Model/Nested.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: de61b96777e01b045bbf4e7ad34502ec
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/QueryAggregation.cs b/Scripts/Services/Discovery/V1/Model/QueryAggregation.cs
index ba85bd68d..dc3442ce0 100644
--- a/Scripts/Services/Discovery/V1/Model/QueryAggregation.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
*
*/
-using System.Collections.Generic;
using JsonSubTypes;
using Newtonsoft.Json;
@@ -25,17 +24,17 @@ namespace IBM.Watson.Discovery.V1.Model
/// An aggregation produced by Discovery to analyze the input provided.
///
[JsonConverter(typeof(JsonSubtypes), "type")]
- [JsonSubtypes.KnownSubType(typeof(Histogram), "histogram")]
- [JsonSubtypes.KnownSubType(typeof(Calculation), "max")]
- [JsonSubtypes.KnownSubType(typeof(Calculation), "min")]
- [JsonSubtypes.KnownSubType(typeof(Calculation), "average")]
- [JsonSubtypes.KnownSubType(typeof(Calculation), "sum")]
- [JsonSubtypes.KnownSubType(typeof(Calculation), "unique_count")]
- [JsonSubtypes.KnownSubType(typeof(Term), "term")]
- [JsonSubtypes.KnownSubType(typeof(Filter), "filter")]
- [JsonSubtypes.KnownSubType(typeof(Nested), "nested")]
- [JsonSubtypes.KnownSubType(typeof(Timeslice), "timeslice")]
- [JsonSubtypes.KnownSubType(typeof(TopHits), "top_hits")]
+ [JsonSubtypes.KnownSubType(typeof(QueryHistogramAggregation), "histogram")]
+ [JsonSubtypes.KnownSubType(typeof(QueryCalculationAggregation), "max")]
+ [JsonSubtypes.KnownSubType(typeof(QueryCalculationAggregation), "min")]
+ [JsonSubtypes.KnownSubType(typeof(QueryCalculationAggregation), "average")]
+ [JsonSubtypes.KnownSubType(typeof(QueryCalculationAggregation), "sum")]
+ [JsonSubtypes.KnownSubType(typeof(QueryCalculationAggregation), "unique_count")]
+ [JsonSubtypes.KnownSubType(typeof(QueryTermAggregation), "term")]
+ [JsonSubtypes.KnownSubType(typeof(QueryFilterAggregation), "filter")]
+ [JsonSubtypes.KnownSubType(typeof(QueryNestedAggregation), "nested")]
+ [JsonSubtypes.KnownSubType(typeof(QueryTimesliceAggregation), "timeslice")]
+ [JsonSubtypes.KnownSubType(typeof(QueryTopHitsAggregation), "top_hits")]
public class QueryAggregation
{
///
@@ -43,20 +42,5 @@ public class QueryAggregation
///
[JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)]
public string Type { get; set; }
- ///
- /// Array of aggregation results.
- ///
- [JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)]
- public List Results { get; set; }
- ///
- /// Number of matching results.
- ///
- [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)]
- public long? MatchingResults { get; set; }
- ///
- /// Aggregations returned by Discovery.
- ///
- [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)]
- public List Aggregations { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/Calculation.cs b/Scripts/Services/Discovery/V1/Model/QueryCalculationAggregation.cs
similarity index 73%
rename from Scripts/Services/Discovery/V1/Model/Calculation.cs
rename to Scripts/Services/Discovery/V1/Model/QueryCalculationAggregation.cs
index ad96c64f8..a4aadb078 100644
--- a/Scripts/Services/Discovery/V1/Model/Calculation.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryCalculationAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,23 +15,23 @@
*
*/
-using System.Collections.Generic;
using Newtonsoft.Json;
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Calculation.
+ /// Returns a scalar calculation across all documents for the field specified. Possible calculations include min,
+ /// max, sum, average, and unique_count.
///
- public class Calculation : QueryAggregation
+ public class QueryCalculationAggregation : QueryAggregation
{
///
- /// The field where the aggregation is located in the document.
+ /// The field to perform the calculation on.
///
[JsonProperty("field", NullValueHandling = NullValueHandling.Ignore)]
public string Field { get; set; }
///
- /// Value of the aggregation.
+ /// The value of the calculation.
///
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
public double? Value { get; set; }
diff --git a/Scripts/Services/Discovery/V1/Model/QueryCalculationAggregation.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryCalculationAggregation.cs.meta
new file mode 100644
index 000000000..d7d87fc93
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryCalculationAggregation.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 1cebba47f0e94498095005ef39641ceb
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Filter.cs b/Scripts/Services/Discovery/V1/Model/QueryFilterAggregation.cs
similarity index 51%
rename from Scripts/Services/Discovery/V1/Model/Filter.cs
rename to Scripts/Services/Discovery/V1/Model/QueryFilterAggregation.cs
index 1119c55d7..1bcd0bf84 100644
--- a/Scripts/Services/Discovery/V1/Model/Filter.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryFilterAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,14 +21,25 @@
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Filter.
+ /// A modifier that narrows the document set of the sub-aggregations it precedes.
///
- public class Filter : QueryAggregation
+ public class QueryFilterAggregation : QueryAggregation
{
///
- /// The match the aggregated results queried for.
+ /// The filter that is written in Discovery Query Language syntax and is applied to the documents before
+ /// sub-aggregations are run.
///
[JsonProperty("match", NullValueHandling = NullValueHandling.Ignore)]
public string Match { get; set; }
+ ///
+ /// Number of documents that match the filter.
+ ///
+ [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MatchingResults { get; set; }
+ ///
+ /// An array of sub-aggregations.
+ ///
+ [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)]
+ public List Aggregations { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryFilterAggregation.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryFilterAggregation.cs.meta
new file mode 100644
index 000000000..3c6856db1
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryFilterAggregation.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: bda0edf135b654d8b84b53b6649596ac
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Histogram.cs b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregation.cs
similarity index 55%
rename from Scripts/Services/Discovery/V1/Model/Histogram.cs
rename to Scripts/Services/Discovery/V1/Model/QueryHistogramAggregation.cs
index 6f18dbb65..d5416e716 100644
--- a/Scripts/Services/Discovery/V1/Model/Histogram.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,19 +21,30 @@
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Histogram.
+ /// Numeric interval segments to categorize documents by using field values from a single numeric field to describe
+ /// the category.
///
- public class Histogram : QueryAggregation
+ public class QueryHistogramAggregation : QueryAggregation
{
///
- /// The field where the aggregation is located in the document.
+ /// The numeric field name used to create the histogram.
///
[JsonProperty("field", NullValueHandling = NullValueHandling.Ignore)]
public string Field { get; set; }
///
- /// Interval of the aggregation. (For 'histogram' type).
+ /// The size of the sections that the results are split into.
///
[JsonProperty("interval", NullValueHandling = NullValueHandling.Ignore)]
public long? Interval { get; set; }
+ ///
+ /// Identifier specified in the query request of this aggregation.
+ ///
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+ ///
+ /// Array of numeric intervals.
+ ///
+ [JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)]
+ public List Results { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregation.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregation.cs.meta
new file mode 100644
index 000000000..00d1cb255
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregation.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: d7b4d2d09e2b843589da00ddb5594344
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/CompareComply/V1/Model/KeyValuePair.cs b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregationResult.cs
similarity index 53%
rename from Scripts/Services/CompareComply/V1/Model/KeyValuePair.cs
rename to Scripts/Services/Discovery/V1/Model/QueryHistogramAggregationResult.cs
index e9e538f83..ad4461fcd 100644
--- a/Scripts/Services/CompareComply/V1/Model/KeyValuePair.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregationResult.cs
@@ -1,5 +1,5 @@
/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,22 +18,27 @@
using System.Collections.Generic;
using Newtonsoft.Json;
-namespace IBM.Watson.CompareComply.V1.Model
+namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Key-value pairs detected across cell boundaries.
+ /// Histogram numeric interval result.
///
- public class KeyValuePair
+ public class QueryHistogramAggregationResult
{
///
- /// A key in a key-value pair.
+ /// The value of the upper bound for the numeric segment.
///
[JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)]
- public Key Key { get; set; }
+ public long? Key { get; set; }
///
- /// A list of values in a key-value pair.
+ /// Number of documents with the specified key as the upper bound.
///
- [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
- public List Value { get; set; }
+ [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MatchingResults { get; set; }
+ ///
+ /// An array of sub-aggregations.
+ ///
+ [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)]
+ public List Aggregations { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregationResult.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregationResult.cs.meta
new file mode 100644
index 000000000..f43502490
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryHistogramAggregationResult.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 9121a07a19181412d98a66f68d259033
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Nested.cs b/Scripts/Services/Discovery/V1/Model/QueryNestedAggregation.cs
similarity index 51%
rename from Scripts/Services/Discovery/V1/Model/Nested.cs
rename to Scripts/Services/Discovery/V1/Model/QueryNestedAggregation.cs
index a5e69d677..7fafbc059 100644
--- a/Scripts/Services/Discovery/V1/Model/Nested.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryNestedAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,14 +21,25 @@
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Nested.
+ /// A restriction that alters the document set that is used for sub-aggregations it precedes to nested documents
+ /// found in the field specified.
///
- public class Nested : QueryAggregation
+ public class QueryNestedAggregation : QueryAggregation
{
///
- /// The area of the results the aggregation was restricted to.
+ /// The path to the document field to scope sub-aggregations to.
///
[JsonProperty("path", NullValueHandling = NullValueHandling.Ignore)]
public string Path { get; set; }
+ ///
+ /// Number of nested documents found in the specified field.
+ ///
+ [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MatchingResults { get; set; }
+ ///
+ /// An array of sub-aggregations.
+ ///
+ [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)]
+ public List Aggregations { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryNestedAggregation.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryNestedAggregation.cs.meta
new file mode 100644
index 000000000..118352c1a
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryNestedAggregation.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 69d7d2ff650164747a90e65b395a2328
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Term.cs b/Scripts/Services/Discovery/V1/Model/QueryTermAggregation.cs
similarity index 58%
rename from Scripts/Services/Discovery/V1/Model/Term.cs
rename to Scripts/Services/Discovery/V1/Model/QueryTermAggregation.cs
index f91e0acd5..73860ab18 100644
--- a/Scripts/Services/Discovery/V1/Model/Term.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryTermAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,19 +21,29 @@
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Term.
+ /// Returns the top values for the field specified.
///
- public class Term : QueryAggregation
+ public class QueryTermAggregation : QueryAggregation
{
///
- /// The field where the aggregation is located in the document.
+ /// The field in the document used to generate top values from.
///
[JsonProperty("field", NullValueHandling = NullValueHandling.Ignore)]
public string Field { get; set; }
///
- /// The number of terms identified.
+ /// The number of top values returned.
///
[JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)]
public long? Count { get; set; }
+ ///
+ /// Identifier specified in the query request of this aggregation.
+ ///
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+ ///
+ /// Array of top values for the field.
+ ///
+ [JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)]
+ public List Results { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTermAggregation.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryTermAggregation.cs.meta
new file mode 100644
index 000000000..9eefe9bd6
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTermAggregation.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 6d9465f9916254f78bb1d0a975b6d784
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTermAggregationResult.cs b/Scripts/Services/Discovery/V1/Model/QueryTermAggregationResult.cs
new file mode 100644
index 000000000..eaca59cfc
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTermAggregationResult.cs
@@ -0,0 +1,61 @@
+/**
+* (C) Copyright IBM Corp. 2019, 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Discovery.V1.Model
+{
+ ///
+ /// Top value result for the term aggregation.
+ ///
+ public class QueryTermAggregationResult
+ {
+ ///
+ /// Value of the field with a non-zero frequency in the document set.
+ ///
+ [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)]
+ public string Key { get; set; }
+ ///
+ /// Number of documents that contain the 'key'.
+ ///
+ [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MatchingResults { get; set; }
+ ///
+ /// The relevancy for this term.
+ ///
+ [JsonProperty("relevancy", NullValueHandling = NullValueHandling.Ignore)]
+ public double? Relevancy { get; set; }
+ ///
+ /// The number of documents which have the term as the value of specified field in the whole set of documents in
+ /// this collection. Returned only when the `relevancy` parameter is set to `true`.
+ ///
+ [JsonProperty("total_matching_documents", NullValueHandling = NullValueHandling.Ignore)]
+ public long? TotalMatchingDocuments { get; set; }
+ ///
+ /// The estimated number of documents which would match the query and also meet the condition. Returned only
+ /// when the `relevancy` parameter is set to `true`.
+ ///
+ [JsonProperty("estimated_matching_documents", NullValueHandling = NullValueHandling.Ignore)]
+ public long? EstimatedMatchingDocuments { get; set; }
+ ///
+ /// An array of sub-aggregations.
+ ///
+ [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)]
+ public List Aggregations { get; set; }
+ }
+}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTermAggregationResult.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryTermAggregationResult.cs.meta
new file mode 100644
index 000000000..5a7315016
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTermAggregationResult.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 1f322888d2e30417dada5bc30e59b37b
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Timeslice.cs b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregation.cs
similarity index 58%
rename from Scripts/Services/Discovery/V1/Model/Timeslice.cs
rename to Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregation.cs
index 9b60ff1c6..10a73adc7 100644
--- a/Scripts/Services/Discovery/V1/Model/Timeslice.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2019, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,26 +21,29 @@
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Timeslice.
+ /// A specialized histogram aggregation that uses dates to create interval segments.
///
- public class Timeslice : QueryAggregation
+ public class QueryTimesliceAggregation : QueryAggregation
{
///
- /// The field where the aggregation is located in the document.
+ /// The date field name used to create the timeslice.
///
[JsonProperty("field", NullValueHandling = NullValueHandling.Ignore)]
public string Field { get; set; }
///
- /// Interval of the aggregation. Valid date interval values are second/seconds minute/minutes, hour/hours,
- /// day/days, week/weeks, month/months, and year/years.
+ /// The date interval value. Valid values are seconds, minutes, hours, days, weeks, and years.
///
[JsonProperty("interval", NullValueHandling = NullValueHandling.Ignore)]
public string Interval { get; set; }
///
- /// Used to indicate that anomaly detection should be performed. Anomaly detection is used to locate unusual
- /// datapoints within a time series.
+ /// Identifier specified in the query request of this aggregation.
///
- [JsonProperty("anomaly", NullValueHandling = NullValueHandling.Ignore)]
- public bool? Anomaly { get; set; }
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+ ///
+ /// Array of aggregation results.
+ ///
+ [JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)]
+ public List Results { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregation.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregation.cs.meta
new file mode 100644
index 000000000..c96dd0a09
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregation.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 317f4338641d24070bb979ddaf4dcd42
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregationResult.cs b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregationResult.cs
new file mode 100644
index 000000000..55f8a83b4
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregationResult.cs
@@ -0,0 +1,49 @@
+/**
+* (C) Copyright IBM Corp. 2019, 2022.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+using System.Collections.Generic;
+using Newtonsoft.Json;
+
+namespace IBM.Watson.Discovery.V1.Model
+{
+ ///
+ /// A timeslice interval segment.
+ ///
+ public class QueryTimesliceAggregationResult
+ {
+ ///
+ /// String date value of the upper bound for the timeslice interval in ISO-8601 format.
+ ///
+ [JsonProperty("key_as_string", NullValueHandling = NullValueHandling.Ignore)]
+ public string KeyAsString { get; set; }
+ ///
+ /// Numeric date value of the upper bound for the timeslice interval in UNIX milliseconds since epoch.
+ ///
+ [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)]
+ public long? Key { get; set; }
+ ///
+ /// Number of documents with the specified key as the upper bound.
+ ///
+ [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)]
+ public long? MatchingResults { get; set; }
+ ///
+ /// An array of sub-aggregations.
+ ///
+ [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)]
+ public List Aggregations { get; set; }
+ }
+}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregationResult.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregationResult.cs.meta
new file mode 100644
index 000000000..1994fd16e
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTimesliceAggregationResult.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 919d385b0ab914768a3f3ec5f5c1602a
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/TopHits.cs b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregation.cs
similarity index 65%
rename from Scripts/Services/Discovery/V1/Model/TopHits.cs
rename to Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregation.cs
index 9bd2a63bc..649b1aeda 100644
--- a/Scripts/Services/Discovery/V1/Model/TopHits.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregation.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2019, 2021.
+* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,25 +15,29 @@
*
*/
-using System.Collections.Generic;
using Newtonsoft.Json;
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// TopHits.
+ /// Returns the top documents ranked by the score of the query.
///
- public class TopHits : QueryAggregation
+ public class QueryTopHitsAggregation : QueryAggregation
{
///
- /// Number of top hits returned by the aggregation.
+ /// The number of documents to return.
///
[JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)]
public long? Size { get; set; }
///
+ /// Identifier specified in the query request of this aggregation.
+ ///
+ [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
+ public string Name { get; set; }
+ ///
/// Gets or Sets Hits
///
[JsonProperty("hits", NullValueHandling = NullValueHandling.Ignore)]
- public TopHitsResults Hits { get; set; }
+ public QueryTopHitsAggregationResult Hits { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregation.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregation.cs.meta
new file mode 100644
index 000000000..fbb52198e
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregation.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: be46f56f129354dc28874488f41e10bb
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/TopHitsResults.cs b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregationResult.cs
similarity index 78%
rename from Scripts/Services/Discovery/V1/Model/TopHitsResults.cs
rename to Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregationResult.cs
index 69c498520..fe5c24aac 100644
--- a/Scripts/Services/Discovery/V1/Model/TopHitsResults.cs
+++ b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregationResult.cs
@@ -1,5 +1,5 @@
/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
+* (C) Copyright IBM Corp. 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,9 +21,9 @@
namespace IBM.Watson.Discovery.V1.Model
{
///
- /// Top hit information for this query.
+ /// A query response that contains the matching documents for the preceding aggregations.
///
- public class TopHitsResults
+ public class QueryTopHitsAggregationResult
{
///
/// Number of matching results.
@@ -31,9 +31,9 @@ public class TopHitsResults
[JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)]
public long? MatchingResults { get; set; }
///
- /// Top results returned by the aggregation.
+ /// An array of the document results.
///
[JsonProperty("hits", NullValueHandling = NullValueHandling.Ignore)]
- public List Hits { get; set; }
+ public List> Hits { get; set; }
}
}
diff --git a/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregationResult.cs.meta b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregationResult.cs.meta
new file mode 100644
index 000000000..38e57da9f
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/QueryTopHitsAggregationResult.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: bfe684abf638844ebb9dccb3a99ea4ac
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/StatusDetails.cs b/Scripts/Services/Discovery/V1/Model/StatusDetails.cs
index fd2778b2c..59a731244 100644
--- a/Scripts/Services/Discovery/V1/Model/StatusDetails.cs
+++ b/Scripts/Services/Discovery/V1/Model/StatusDetails.cs
@@ -1,5 +1,5 @@
/**
-* (C) Copyright IBM Corp. 2021.
+* (C) Copyright IBM Corp. 2021, 2022.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ public class StatusDetails
[JsonProperty("authenticated", NullValueHandling = NullValueHandling.Ignore)]
public bool? Authenticated { get; set; }
///
- /// If `authenticated` is `false`, a message describes why the authentication was unsuccessful.
+ /// If `authenticated` is `false`, a message describes why authentication is unsuccessful.
///
[JsonProperty("error_message", NullValueHandling = NullValueHandling.Ignore)]
public string ErrorMessage { get; set; }
diff --git a/Scripts/Services/Discovery/V1/Model/StatusDetails.cs.meta b/Scripts/Services/Discovery/V1/Model/StatusDetails.cs.meta
new file mode 100644
index 000000000..7e140f131
--- /dev/null
+++ b/Scripts/Services/Discovery/V1/Model/StatusDetails.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 186551033a6494ea2b956ca7ba8ee1b4
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Term.cs.meta b/Scripts/Services/Discovery/V1/Model/Term.cs.meta
deleted file mode 100644
index a8aa14515..000000000
--- a/Scripts/Services/Discovery/V1/Model/Term.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 274e040661cdd2c4680e45b7f0785d49
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/Timeslice.cs.meta b/Scripts/Services/Discovery/V1/Model/Timeslice.cs.meta
deleted file mode 100644
index 54d4d752c..000000000
--- a/Scripts/Services/Discovery/V1/Model/Timeslice.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 0b752d297bf82034db4a0a5b93cd9e0c
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/TopHits.cs.meta b/Scripts/Services/Discovery/V1/Model/TopHits.cs.meta
deleted file mode 100644
index 51fe64af4..000000000
--- a/Scripts/Services/Discovery/V1/Model/TopHits.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b6893aacbf9b24144b93b27ffd2cfa91
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/Discovery/V1/Model/TopHitsResults.cs.meta b/Scripts/Services/Discovery/V1/Model/TopHitsResults.cs.meta
deleted file mode 100644
index 506ff4325..000000000
--- a/Scripts/Services/Discovery/V1/Model/TopHitsResults.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: cf666932f338e964484a8bf613cf322d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier.meta b/Scripts/Services/NaturalLanguageClassifier.meta
deleted file mode 100644
index 02410c165..000000000
--- a/Scripts/Services/NaturalLanguageClassifier.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 09111bbc26a2c864086243411613366d
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1.meta b/Scripts/Services/NaturalLanguageClassifier/V1.meta
deleted file mode 100644
index 43927f9c7..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 313cc3ca3252c784382e233d88514d66
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model.meta
deleted file mode 100644
index 3a1230f80..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 760595cbdf7bcb147af276e3d1a42ef4
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classification.cs b/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classification.cs
deleted file mode 100644
index 71db684e7..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classification.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1.Model
-{
- ///
- /// Response from the classifier for a phrase.
- ///
- public class Classification
- {
- ///
- /// Unique identifier for this classifier.
- ///
- [JsonProperty("classifier_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ClassifierId { get; set; }
- ///
- /// Link to the classifier.
- ///
- [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
- public string Url { get; set; }
- ///
- /// The submitted phrase.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The class with the highest confidence.
- ///
- [JsonProperty("top_class", NullValueHandling = NullValueHandling.Ignore)]
- public string TopClass { get; set; }
- ///
- /// An array of up to ten class-confidence pairs sorted in descending order of confidence.
- ///
- [JsonProperty("classes", NullValueHandling = NullValueHandling.Ignore)]
- public List Classes { get; set; }
- }
-}
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classification.cs.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classification.cs.meta
deleted file mode 100644
index 74c87b406..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classification.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 72779b8862eca054ba87541499f9f981
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassificationCollection.cs b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassificationCollection.cs
deleted file mode 100644
index e9ce93b22..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassificationCollection.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1.Model
-{
- ///
- /// Response from the classifier for multiple phrases.
- ///
- public class ClassificationCollection
- {
- ///
- /// Unique identifier for this classifier.
- ///
- [JsonProperty("classifier_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ClassifierId { get; set; }
- ///
- /// Link to the classifier.
- ///
- [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
- public string Url { get; set; }
- ///
- /// An array of classifier responses for each submitted phrase.
- ///
- [JsonProperty("collection", NullValueHandling = NullValueHandling.Ignore)]
- public List Collection { get; set; }
- }
-}
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassificationCollection.cs.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassificationCollection.cs.meta
deleted file mode 100644
index 64e69a216..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassificationCollection.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 486eeebdd42317b4a81f72dda40d4702
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifiedClass.cs b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifiedClass.cs
deleted file mode 100644
index b4162967b..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifiedClass.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1.Model
-{
- ///
- /// Class and confidence.
- ///
- public class ClassifiedClass
- {
- ///
- /// A decimal percentage that represents the confidence that Watson has in this class. Higher values represent
- /// higher confidences.
- ///
- [JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)]
- public double? Confidence { get; set; }
- ///
- /// Class label.
- ///
- [JsonProperty("class_name", NullValueHandling = NullValueHandling.Ignore)]
- public string ClassName { get; set; }
- }
-}
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifiedClass.cs.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifiedClass.cs.meta
deleted file mode 100644
index 9758ec8ba..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifiedClass.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: eb12aa18897785046aab147f959d9a08
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classifier.cs b/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classifier.cs
deleted file mode 100644
index 955e44d01..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classifier.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-using System;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1.Model
-{
- ///
- /// A classifier for natural language phrases.
- ///
- public class Classifier
- {
- ///
- /// The state of the classifier.
- ///
- public class StatusValue
- {
- ///
- /// Constant NON_EXISTENT for Non Existent
- ///
- public const string NON_EXISTENT = "Non Existent";
- ///
- /// Constant TRAINING for Training
- ///
- public const string TRAINING = "Training";
- ///
- /// Constant FAILED for Failed
- ///
- public const string FAILED = "Failed";
- ///
- /// Constant AVAILABLE for Available
- ///
- public const string AVAILABLE = "Available";
- ///
- /// Constant UNAVAILABLE for Unavailable
- ///
- public const string UNAVAILABLE = "Unavailable";
-
- }
-
- ///
- /// The state of the classifier.
- /// Constants for possible values can be found using Classifier.StatusValue
- ///
- [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
- public string Status { get; set; }
- ///
- /// User-supplied name for the classifier.
- ///
- [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
- public string Name { get; set; }
- ///
- /// Link to the classifier.
- ///
- [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
- public string Url { get; set; }
- ///
- /// Unique identifier for this classifier.
- ///
- [JsonProperty("classifier_id", NullValueHandling = NullValueHandling.Ignore)]
- public string ClassifierId { get; set; }
- ///
- /// Date and time (UTC) the classifier was created.
- ///
- [JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
- public virtual DateTime? Created { get; private set; }
- ///
- /// Additional detail about the status.
- ///
- [JsonProperty("status_description", NullValueHandling = NullValueHandling.Ignore)]
- public virtual string StatusDescription { get; private set; }
- ///
- /// The language used for the classifier.
- ///
- [JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)]
- public string Language { get; set; }
- }
-}
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classifier.cs.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classifier.cs.meta
deleted file mode 100644
index d51ba9ecf..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/Classifier.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ea1f35fcd07ed6a4cb45f367f32c7050
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifierList.cs b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifierList.cs
deleted file mode 100644
index 84af7dc3e..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifierList.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1.Model
-{
- ///
- /// List of available classifiers.
- ///
- public class ClassifierList
- {
- ///
- /// The classifiers available to the user. Returns an empty array if no classifiers are available.
- ///
- [JsonProperty("classifiers", NullValueHandling = NullValueHandling.Ignore)]
- public List Classifiers { get; set; }
- }
-}
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifierList.cs.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifierList.cs.meta
deleted file mode 100644
index 74fb8cca8..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifierList.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 46f53e49e7ce071479f6816d9ee67f4d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifyInput.cs b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifyInput.cs
deleted file mode 100644
index dd620e6ec..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifyInput.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using Newtonsoft.Json;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1.Model
-{
- ///
- /// Request payload to classify.
- ///
- public class ClassifyInput
- {
- ///
- /// The submitted phrase. The maximum length is 2048 characters.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- }
-}
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifyInput.cs.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifyInput.cs.meta
deleted file mode 100644
index 5456c1d99..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/ClassifyInput.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b95ad911cefc2b54dad1b9f1f95a0df7
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/CollectionItem.cs b/Scripts/Services/NaturalLanguageClassifier/V1/Model/CollectionItem.cs
deleted file mode 100644
index 01a5b4f8e..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/CollectionItem.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-using System.Collections.Generic;
-using Newtonsoft.Json;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1.Model
-{
- ///
- /// Response from the classifier for a phrase in a collection.
- ///
- public class CollectionItem
- {
- ///
- /// The submitted phrase. The maximum length is 2048 characters.
- ///
- [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
- public string Text { get; set; }
- ///
- /// The class with the highest confidence.
- ///
- [JsonProperty("top_class", NullValueHandling = NullValueHandling.Ignore)]
- public string TopClass { get; set; }
- ///
- /// An array of up to ten class-confidence pairs sorted in descending order of confidence.
- ///
- [JsonProperty("classes", NullValueHandling = NullValueHandling.Ignore)]
- public List Classes { get; set; }
- }
-}
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/Model/CollectionItem.cs.meta b/Scripts/Services/NaturalLanguageClassifier/V1/Model/CollectionItem.cs.meta
deleted file mode 100644
index 36b3cc5d7..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/Model/CollectionItem.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 52fef546a02f7fa4cb6f60aaf5f1281c
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Scripts/Services/NaturalLanguageClassifier/V1/NaturalLanguageClassifierService.cs b/Scripts/Services/NaturalLanguageClassifier/V1/NaturalLanguageClassifierService.cs
deleted file mode 100644
index f5fc68217..000000000
--- a/Scripts/Services/NaturalLanguageClassifier/V1/NaturalLanguageClassifierService.cs
+++ /dev/null
@@ -1,536 +0,0 @@
-/**
-* (C) Copyright IBM Corp. 2019, 2021.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
-
-/**
-* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-a45d89ef-20201209-153452
-*/
-
-using System.Collections.Generic;
-using System.Text;
-using IBM.Cloud.SDK;
-using IBM.Cloud.SDK.Authentication;
-using IBM.Cloud.SDK.Connection;
-using IBM.Cloud.SDK.Utilities;
-using IBM.Watson.NaturalLanguageClassifier.V1.Model;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
-using System;
-using UnityEngine.Networking;
-
-namespace IBM.Watson.NaturalLanguageClassifier.V1
-{
- public partial class NaturalLanguageClassifierService : BaseService
- {
- [System.Obsolete("On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service." +
- "\nThe service will no longer be available from 8 August 2022. As of 9 September 2021, you will not be able to create new instances." +
- "\nExisting instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted." +
- "\nFor more information, see https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating")]
-
- private const string defaultServiceName = "natural_language_classifier";
- private const string defaultServiceUrl = "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com";
-
- #region DisableSslVerification
- private bool disableSslVerification = false;
- ///
- /// Gets and sets the option to disable ssl verification
- ///
- public bool DisableSslVerification
- {
- get { return disableSslVerification; }
- set { disableSslVerification = value; }
- }
- #endregion
-
- ///
- /// NaturalLanguageClassifierService constructor.
- ///
- public NaturalLanguageClassifierService() : this(defaultServiceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(defaultServiceName)) {}
-
- ///
- /// NaturalLanguageClassifierService constructor.
- ///
- /// The service authenticator.
- public NaturalLanguageClassifierService(Authenticator authenticator) : this(defaultServiceName, authenticator) {}
-
- ///
- /// NaturalLanguageClassifierService constructor.
- ///
- /// The service name to be used when configuring the client instance
- public NaturalLanguageClassifierService(string serviceName) : this(serviceName, ConfigBasedAuthenticatorFactory.GetAuthenticator(serviceName)) {}
-
- ///
- /// NaturalLanguageClassifierService constructor.
- ///
- /// The service name to be used when configuring the client instance
- /// The service authenticator.
- public NaturalLanguageClassifierService(string serviceName, Authenticator authenticator) : base(authenticator, serviceName)
- {
- Authenticator = authenticator;
-
- if (string.IsNullOrEmpty(GetServiceUrl()))
- {
- SetServiceUrl(defaultServiceUrl);
- }
- }
-
- ///
- /// Classify a phrase.
- ///
- /// Returns label information for the input. The status must be `Available` before you can use the classifier to
- /// classify text.
- ///
- /// The callback function that is invoked when the operation completes.
- /// Classifier ID to use.
- /// The submitted phrase. The maximum length is 2048 characters.
- /// Classification
- public bool Classify(Callback callback, string classifierId, string text)
- {
- if (callback == null)
- throw new ArgumentNullException("`callback` is required for `Classify`");
- if (string.IsNullOrEmpty(classifierId))
- throw new ArgumentNullException("`classifierId` is required for `Classify`");
- if (string.IsNullOrEmpty(text))
- throw new ArgumentNullException("`text` is required for `Classify`");
-
- RequestObject req = new RequestObject
- {
- Callback = callback,
- HttpMethod = UnityWebRequest.kHttpVerbPOST,
- DisableSslVerification = DisableSslVerification
- };
-
- foreach (KeyValuePair kvp in customRequestHeaders)
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- ClearCustomRequestHeaders();
-
- foreach (KeyValuePair kvp in Common.GetSdkHeaders("natural_language_classifier", "V1", "Classify"))
- {
- req.Headers.Add(kvp.Key, kvp.Value);
- }
-
- req.Headers["Content-Type"] = "application/json";
- req.Headers["Accept"] = "application/json";
-
- JObject bodyObject = new JObject();
- if (!string.IsNullOrEmpty(text))
- bodyObject["text"] = text;
- req.Send = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(bodyObject));
-
- req.OnResponse = OnClassifyResponse;
-
- Connector.URL = GetServiceUrl() + string.Format("/v1/classifiers/{0}/classify", classifierId);
- Authenticator.Authenticate(Connector);
-
- return Connector.Send(req);
- }
-
- private void OnClassifyResponse(RESTConnector.Request req, RESTConnector.Response resp)
- {
- DetailedResponse response = new DetailedResponse();
- foreach (KeyValuePair kvp in resp.Headers)
- {
- response.Headers.Add(kvp.Key, kvp.Value);
- }
- response.StatusCode = resp.HttpResponseCode;
-
- try
- {
- string json = Encoding.UTF8.GetString(resp.Data);
- response.Result = JsonConvert.DeserializeObject(json);
- response.Response = json;
- }
- catch (Exception e)
- {
- Log.Error("NaturalLanguageClassifierService.OnClassifyResponse()", "Exception: {0}", e.ToString());
- resp.Success = false;
- }
-
- if (((RequestObject