Skip to content

Commit 0f95a92

Browse files
committed
feat: regenerate service sdks 7/30/18
1 parent b0510c8 commit 0f95a92

File tree

8 files changed

+673
-135
lines changed

8 files changed

+673
-135
lines changed

assistant/v1.ts

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

conversation/v1-generated.ts

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

discovery/v1-generated.ts

Lines changed: 17 additions & 10 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_fields': _params.return_fields,
1346+
'return': _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_fields': _params.return_fields,
1445+
'return': _params.return_fields,
14461446
'offset': _params.offset,
14471447
'sort': _params.sort,
14481448
'highlight': _params.highlight,
@@ -1526,6 +1526,7 @@ 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.
15291530
* @param {Object} [params.headers] - Custom request headers
15301531
* @param {Function} [callback] - The callback that handles the response.
15311532
* @returns {NodeJS.ReadableStream|void}
@@ -1573,6 +1574,7 @@ class DiscoveryV1 extends BaseService {
15731574
headers: extend(true, {
15741575
'Accept': 'application/json',
15751576
'Content-Type': 'application/json',
1577+
'X-Watson-Logging-Opt-Out': _params.logging_opt_out
15761578
}, _params.headers),
15771579
}),
15781580
};
@@ -1710,7 +1712,7 @@ class DiscoveryV1 extends BaseService {
17101712
'passages': _params.passages,
17111713
'aggregation': _params.aggregation,
17121714
'count': _params.count,
1713-
'return_fields': _params.return_fields,
1715+
'return': _params.return_fields,
17141716
'offset': _params.offset,
17151717
'sort': _params.sort,
17161718
'highlight': _params.highlight,
@@ -2416,7 +2418,7 @@ class DiscoveryV1 extends BaseService {
24162418
* @param {Function} [callback] - The callback that handles the response.
24172419
* @returns {NodeJS.ReadableStream|void}
24182420
*/
2419-
public getSourceCredentials(params: DiscoveryV1.GetCredentialsParams, callback?: DiscoveryV1.Callback<DiscoveryV1.Credentials>): NodeJS.ReadableStream | void {
2421+
public getSourceCredentials(params: DiscoveryV1.GetSourceCredentialsParams, callback?: DiscoveryV1.Callback<DiscoveryV1.Credentials>): NodeJS.ReadableStream | void {
24202422
const _params = extend({}, params);
24212423
const _callback = (callback) ? callback : () => { /* noop */ };
24222424
const requiredParams = ['environment_id', 'credential_id'];
@@ -2761,6 +2763,7 @@ namespace DiscoveryV1 {
27612763
JA = 'ja',
27622764
KO = 'ko',
27632765
PT = 'pt',
2766+
NL = 'nl',
27642767
}
27652768
}
27662769

@@ -3046,6 +3049,8 @@ namespace DiscoveryV1 {
30463049
similar_document_ids?: string[];
30473050
/** 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. */
30483051
similar_fields?: string[];
3052+
/** If `true`, queries are not stored in the Discovery **Logs** endpoint. */
3053+
logging_opt_out?: boolean;
30493054
headers?: Object;
30503055
}
30513056

@@ -3296,8 +3301,8 @@ namespace DiscoveryV1 {
32963301
headers?: Object;
32973302
}
32983303

3299-
/** Parameters for the `getCredentials` operation. */
3300-
export interface GetCredentialsParams {
3304+
/** Parameters for the `getSourceCredentials` operation. */
3305+
export interface GetSourceCredentialsParams {
33013306
/** The ID of the environment. */
33023307
environment_id: string;
33033308
/** The unique identifier for a set of source credentials. */
@@ -3601,6 +3606,8 @@ namespace DiscoveryV1 {
36013606
export interface EnrichmentOptions {
36023607
/** An object representing the enrichment features that will be applied to the specified field. */
36033608
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;
36043611
/** *For use with `elements` enrichments only.* The element extraction model to use. Models available are: `contract`. */
36053612
model?: string;
36063613
}
@@ -4019,7 +4026,7 @@ namespace DiscoveryV1 {
40194026
aggregations?: QueryAggregation[];
40204027
passages?: QueryPassages[];
40214028
duplicates_removed?: number;
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. */
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. */
40234030
session_token?: string;
40244031
}
40254032

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

40404047
/** Metadata of a query result. */
40414048
export interface QueryResultResultMetadata {
4042-
/** The raw score of the result. A higher score indicates a greater match to the query parameters. */
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. */
40434050
score?: number;
4044-
/** The confidence score of the result's analysis. A higher score indicates greater confidence. */
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. */
40454052
confidence?: number;
40464053
}
40474054

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

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-
* @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.
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.
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,6 +365,12 @@ 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+
368374
/** Disambiguation information for the entity. */
369375
export interface DisambiguationResult {
370376
/** Common entity name. */
@@ -495,12 +501,6 @@ namespace NaturalLanguageUnderstandingV1 {
495501
link?: string;
496502
}
497503

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)