Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
url: '/v1/classifiers',
method: 'GET',
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, sdkHeaders, {
'Accept': 'application/json',
'Content-Type': 'application/json',
}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
NaturalLanguageClassifierV1.URL = 'https://gateway.watsonplatform.net/natural-language-classifier/api';
return NaturalLanguageClassifierV1;
}(ibm_cloud_sdk_core_1.BaseService));
NaturalLanguageClassifierV1.prototype.name = 'natural_language_classifier';
NaturalLanguageClassifierV1.prototype.serviceVersion = 'v1';
module.exports = NaturalLanguageClassifierV1;
//# sourceMappingURL=v1-generated.js.map
url: '/v3/models',
method: 'GET',
qs: query,
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, sdkHeaders, {
'Accept': 'application/json',
}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
LanguageTranslatorV3.URL = 'https://gateway.watsonplatform.net/language-translator/api';
return LanguageTranslatorV3;
}(ibm_cloud_sdk_core_1.BaseService));
LanguageTranslatorV3.prototype.name = 'language_translator';
LanguageTranslatorV3.prototype.serviceVersion = 'v3';
module.exports = LanguageTranslatorV3;
//# sourceMappingURL=v3.js.map
url: '/v1/models',
method: 'GET',
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, sdkHeaders, {
'Accept': 'application/json',
'Content-Type': 'application/json',
}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
NaturalLanguageUnderstandingV1.URL = 'https://gateway.watsonplatform.net/natural-language-understanding/api';
return NaturalLanguageUnderstandingV1;
}(ibm_cloud_sdk_core_1.BaseService));
NaturalLanguageUnderstandingV1.prototype.name = 'natural-language-understanding';
NaturalLanguageUnderstandingV1.prototype.serviceVersion = 'v1';
module.exports = NaturalLanguageUnderstandingV1;
//# sourceMappingURL=v1-generated.js.map
qs: query,
path: path,
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, sdkHeaders, {
'Accept': 'application/json',
'Content-Type': 'application/json',
}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
CompareComplyV1.URL = 'https://gateway.watsonplatform.net/compare-comply/api';
return CompareComplyV1;
}(ibm_cloud_sdk_core_1.BaseService));
CompareComplyV1.prototype.name = 'compare-comply';
CompareComplyV1.prototype.serviceVersion = 'v1';
/*************************
* interfaces
************************/
(function (CompareComplyV1) {
/** Constants for the `convertToHtml` operation. */
var ConvertToHtmlConstants;
(function (ConvertToHtmlConstants) {
/** The analysis model to be used by the service. For the `/v1/element_classification` and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables` method, the default is `tables`. These defaults apply to the standalone methods as well as to the methods' use in batch-processing requests. */
var ModelId;
(function (ModelId) {
ModelId["CONTRACTS"] = "contracts";
ModelId["TABLES"] = "tables";
})(ModelId = ConvertToHtmlConstants.ModelId || (ConvertToHtmlConstants.ModelId = {}));
/** The content type of file. */
url: '/v1/user_data',
method: 'DELETE',
qs: query,
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, {
'Accept': 'application/json',
}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
ConversationV1.URL = 'https://gateway.watsonplatform.net/conversation/api';
return ConversationV1;
}(ibm_cloud_sdk_core_1.BaseService));
ConversationV1.prototype.name = 'conversation';
ConversationV1.prototype.serviceVersion = 'v1';
/*************************
* interfaces
************************/
(function (ConversationV1) {
/** Constants for the `createValue` operation. */
var CreateValueConstants;
(function (CreateValueConstants) {
/** Specifies the type of value. */
var ValueType;
(function (ValueType) {
ValueType["SYNONYMS"] = "synonyms";
ValueType["PATTERNS"] = "patterns";
})(ValueType = CreateValueConstants.ValueType || (CreateValueConstants.ValueType = {}));
})(CreateValueConstants = ConversationV1.CreateValueConstants || (ConversationV1.CreateValueConstants = {}));
if (!params.url) {
callback(new Error('Missing required parameters: url'));
return;
}
var parameters = {
options: {
method: 'GET',
url: '/v1/token?url=' + params.url
},
defaultOptions: this._options
};
return this.createRequest(parameters, callback);
};
AuthorizationV1.URL = 'https://stream.watsonplatform.net/authorization/api';
return AuthorizationV1;
}(ibm_cloud_sdk_core_1.BaseService));
AuthorizationV1.prototype.name = 'authorization';
AuthorizationV1.prototype.serviceVersion = 'v1';
module.exports = AuthorizationV1;
//# sourceMappingURL=v1.js.map
var parameters = {
options: {
url: '/v1/user_data',
method: 'DELETE',
qs: query,
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, sdkHeaders, {}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
TextToSpeechV1.URL = 'https://stream.watsonplatform.net/text-to-speech/api';
return TextToSpeechV1;
}(ibm_cloud_sdk_core_1.BaseService));
TextToSpeechV1.prototype.name = 'text_to_speech';
TextToSpeechV1.prototype.serviceVersion = 'v1';
/*************************
* interfaces
************************/
(function (TextToSpeechV1) {
/** Constants for the `getVoice` operation. */
var GetVoiceConstants;
(function (GetVoiceConstants) {
/** The voice for which information is to be returned. */
var Voice;
(function (Voice) {
Voice["EN_US_ALLISONVOICE"] = "en-US_AllisonVoice";
Voice["EN_US_LISAVOICE"] = "en-US_LisaVoice";
Voice["EN_US_MICHAELVOICE"] = "en-US_MichaelVoice";
Voice["EN_GB_KATEVOICE"] = "en-GB_KateVoice";
qs: pick(_params, ['include_raw']),
headers: headers
},
defaultOptions: this._options
};
if (_params.csv) {
parameters.options.headers.Accept = 'text/csv';
if (_params.csv_headers) {
parameters.options.qs.headers = 'true';
}
}
return this.createRequest(parameters, callback);
};
PersonalityInsightsV2.URL = 'https://gateway.watsonplatform.net/personality-insights/api';
return PersonalityInsightsV2;
}(ibm_cloud_sdk_core_1.BaseService));
PersonalityInsightsV2.prototype.name = 'personality_insights';
PersonalityInsightsV2.prototype.serviceVersion = 'v2';
module.exports = PersonalityInsightsV2;
//# sourceMappingURL=v2.js.map
method: 'DELETE',
qs: query,
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, sdkHeaders, {
'Accept': 'application/json',
'Content-Type': 'application/json',
}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
VisualRecognitionV3.URL = 'https://gateway.watsonplatform.net/visual-recognition/api';
return VisualRecognitionV3;
}(ibm_cloud_sdk_core_1.BaseService));
VisualRecognitionV3.prototype.name = 'watson_vision_combined';
VisualRecognitionV3.prototype.serviceVersion = 'v3';
/*************************
* interfaces
************************/
(function (VisualRecognitionV3) {
/** Constants for the `classify` operation. */
var ClassifyConstants;
(function (ClassifyConstants) {
/** The desired language of parts of the response. See the response for details. */
var AcceptLanguage;
(function (AcceptLanguage) {
AcceptLanguage["EN"] = "en";
AcceptLanguage["AR"] = "ar";
AcceptLanguage["DE"] = "de";
AcceptLanguage["ES"] = "es";
body: body,
path: path,
},
defaultOptions: extend(true, {}, this._options, {
headers: extend(true, sdkHeaders, {
'Accept': 'application/json',
'Content-Type': 'application/json',
}, _params.headers),
}),
};
return this.createRequest(parameters, _callback);
};
;
AssistantV2.URL = 'https://gateway.watsonplatform.net/assistant/api';
return AssistantV2;
}(ibm_cloud_sdk_core_1.BaseService));
AssistantV2.prototype.name = 'conversation';
AssistantV2.prototype.serviceVersion = 'v2';
module.exports = AssistantV2;
//# sourceMappingURL=v2.js.map