Skip to content

Commit b0510c8

Browse files
committed
chore: Revert "regenerate services 7/30/18"
This reverts commit 0125aaa.
1 parent 0125aaa commit b0510c8

File tree

8 files changed

+135
-673
lines changed

8 files changed

+135
-673
lines changed

assistant/v1.ts

Lines changed: 18 additions & 293 deletions
Large diffs are not rendered by default.

conversation/v1-generated.ts

Lines changed: 18 additions & 293 deletions
Large diffs are not rendered by default.

discovery/v1-generated.ts

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ class DiscoveryV1 extends BaseService {
13431343
'natural_language_query': _params.natural_language_query,
13441344
'aggregation': _params.aggregation,
13451345
'count': _params.count,
1346-
'return': _params.return_fields,
1346+
'return_fields': _params.return_fields,
13471347
'offset': _params.offset,
13481348
'sort': _params.sort,
13491349
'highlight': _params.highlight,
@@ -1442,7 +1442,7 @@ class DiscoveryV1 extends BaseService {
14421442
'natural_language_query': _params.natural_language_query,
14431443
'aggregation': _params.aggregation,
14441444
'count': _params.count,
1445-
'return': _params.return_fields,
1445+
'return_fields': _params.return_fields,
14461446
'offset': _params.offset,
14471447
'sort': _params.sort,
14481448
'highlight': _params.highlight,
@@ -1526,7 +1526,6 @@ class DiscoveryV1 extends BaseService {
15261526
* **query** are subsequently applied and reduce the query scope.
15271527
* @param {string[]} [params.similar_fields] - A comma-separated list of field names that will be used as a basis for
15281528
* comparison to identify similar documents. If not specified, the entire document is used for comparison.
1529-
* @param {boolean} [params.logging_opt_out] - If `true`, queries are not stored in the Discovery **Logs** endpoint.
15301529
* @param {Object} [params.headers] - Custom request headers
15311530
* @param {Function} [callback] - The callback that handles the response.
15321531
* @returns {NodeJS.ReadableStream|void}
@@ -1574,7 +1573,6 @@ class DiscoveryV1 extends BaseService {
15741573
headers: extend(true, {
15751574
'Accept': 'application/json',
15761575
'Content-Type': 'application/json',
1577-
'X-Watson-Logging-Opt-Out': _params.logging_opt_out
15781576
}, _params.headers),
15791577
}),
15801578
};
@@ -1712,7 +1710,7 @@ class DiscoveryV1 extends BaseService {
17121710
'passages': _params.passages,
17131711
'aggregation': _params.aggregation,
17141712
'count': _params.count,
1715-
'return': _params.return_fields,
1713+
'return_fields': _params.return_fields,
17161714
'offset': _params.offset,
17171715
'sort': _params.sort,
17181716
'highlight': _params.highlight,
@@ -2418,7 +2416,7 @@ class DiscoveryV1 extends BaseService {
24182416
* @param {Function} [callback] - The callback that handles the response.
24192417
* @returns {NodeJS.ReadableStream|void}
24202418
*/
2421-
public getSourceCredentials(params: DiscoveryV1.GetSourceCredentialsParams, callback?: DiscoveryV1.Callback<DiscoveryV1.Credentials>): NodeJS.ReadableStream | void {
2419+
public getSourceCredentials(params: DiscoveryV1.GetCredentialsParams, callback?: DiscoveryV1.Callback<DiscoveryV1.Credentials>): NodeJS.ReadableStream | void {
24222420
const _params = extend({}, params);
24232421
const _callback = (callback) ? callback : () => { /* noop */ };
24242422
const requiredParams = ['environment_id', 'credential_id'];
@@ -2763,7 +2761,6 @@ namespace DiscoveryV1 {
27632761
JA = 'ja',
27642762
KO = 'ko',
27652763
PT = 'pt',
2766-
NL = 'nl',
27672764
}
27682765
}
27692766

@@ -3049,8 +3046,6 @@ namespace DiscoveryV1 {
30493046
similar_document_ids?: string[];
30503047
/** A comma-separated list of field names that will be used as a basis for comparison to identify similar documents. If not specified, the entire document is used for comparison. */
30513048
similar_fields?: string[];
3052-
/** If `true`, queries are not stored in the Discovery **Logs** endpoint. */
3053-
logging_opt_out?: boolean;
30543049
headers?: Object;
30553050
}
30563051

@@ -3301,8 +3296,8 @@ namespace DiscoveryV1 {
33013296
headers?: Object;
33023297
}
33033298

3304-
/** Parameters for the `getSourceCredentials` operation. */
3305-
export interface GetSourceCredentialsParams {
3299+
/** Parameters for the `getCredentials` operation. */
3300+
export interface GetCredentialsParams {
33063301
/** The ID of the environment. */
33073302
environment_id: string;
33083303
/** The unique identifier for a set of source credentials. */
@@ -3606,8 +3601,6 @@ namespace DiscoveryV1 {
36063601
export interface EnrichmentOptions {
36073602
/** An object representing the enrichment features that will be applied to the specified field. */
36083603
features?: NluEnrichmentFeatures;
3609-
/** ISO 639-1 code indicating the language to use for the analysis. This code overrides the automatic language detection performed by the service. Valid codes are `ar` (Arabic), `en` (English), `fr` (French), `de` (German), `it` (Italian), `pt` (Portuguese), `ru` (Russian), `es` (Spanish), and `sv` (Swedish). **Note:** Not all features support all languages, automatic detection is recommended. */
3610-
language?: string;
36113604
/** *For use with `elements` enrichments only.* The element extraction model to use. Models available are: `contract`. */
36123605
model?: string;
36133606
}
@@ -4026,7 +4019,7 @@ namespace DiscoveryV1 {
40264019
aggregations?: QueryAggregation[];
40274020
passages?: QueryPassages[];
40284021
duplicates_removed?: number;
4029-
/** The session token for this query. The session token can be used to add events associated with this query to the query and event log. **Important:** Session tokens are case sensitive. */
4022+
/** The session token for this query. The session token can be used to add events associated with this query to the query and event log. */
40304023
session_token?: string;
40314024
}
40324025

@@ -4046,9 +4039,9 @@ namespace DiscoveryV1 {
40464039

40474040
/** Metadata of a query result. */
40484041
export interface QueryResultResultMetadata {
4049-
/** An unbounded measure of the relevance of a particular result, dependent on the query and matching document. A higher score indicates a greater match to the query parameters. */
4042+
/** The raw score of the result. A higher score indicates a greater match to the query parameters. */
40504043
score?: number;
4051-
/** The confidence score for the given result. Calculated based on how relevant the result is estimated to be, compared to a trained relevancy model. confidence can range from `0.0` to `1.0`. The higher the number, the more relevant the document. */
4044+
/** The confidence score of the result's analysis. A higher score indicates greater confidence. */
40524045
confidence?: number;
40534046
}
40544047

@@ -4253,7 +4246,7 @@ namespace DiscoveryV1 {
42534246
field?: string;
42544247
/** Interval of the aggregation. Valid date interval values are second/seconds minute/minutes, hour/hours, day/days, week/weeks, month/months, and year/years. */
42554248
interval?: string;
4256-
/** Used to indicate that anomaly detection should be performed. Anomaly detection is used to locate unusual datapoints within a time series. */
4249+
/** Used to inducate that anomaly detection should be performed. Anomaly detection is used to locate unusual datapoints within a time series. */
42574250
anomaly?: boolean;
42584251
}
42594252

language-translator/v2-generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { getMissingParams } from '../lib/helper';
2121
import { FileObject } from '../lib/helper';
2222

2323
/**
24-
* --- Language Translator v3 is [available](https://www.ibm.com/watson/developercloud/language-translator/api/v3/). See the [migration guide](https://console.bluemix.net/docs/services/language-translator/migrating.html). --- IBM Watson&trade; Language Translator translates text from one language to another. The service offers multiple domain-specific models that you can customize based on your unique terminology and language. Use Language Translator to take news from across the globe and present it in your language, communicate with your customers in their own language, and more.
24+
* @deprecated Language Translator v3 is [available](https://www.ibm.com/watson/developercloud/language-translator/api/v3/). See the [migration guide](https://console.bluemix.net/docs/services/language-translator/migrating.html). --- IBM Watson&trade; Language Translator translates text from one language to another. The service offers multiple domain-specific models that you can customize based on your unique terminology and language. Use Language Translator to take news from across the globe and present it in your language, communicate with your customers in their own language, and more.
2525
*/
2626

2727
class LanguageTranslatorV2 extends BaseService {

natural-language-understanding/v1-generated.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,6 @@ namespace NaturalLanguageUnderstandingV1 {
365365
dbpedia_resource?: string;
366366
}
367367

368-
/** Delete model results. */
369-
export interface InlineResponse200 {
370-
/** model_id of the deleted model. */
371-
deleted?: string;
372-
}
373-
374368
/** Disambiguation information for the entity. */
375369
export interface DisambiguationResult {
376370
/** Common entity name. */
@@ -501,6 +495,12 @@ namespace NaturalLanguageUnderstandingV1 {
501495
link?: string;
502496
}
503497

498+
/** InlineResponse200. */
499+
export interface InlineResponse200 {
500+
/** model_id of the deleted model. */
501+
deleted?: string;
502+
}
503+
504504
/** An option indicating whether or not important keywords from the analyzed content should be returned. */
505505
export interface KeywordsOptions {
506506
/** Maximum number of keywords to return. */

0 commit comments

Comments
 (0)