oci-ailanguage 2.67.0 → 2.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +45 -35
- package/lib/client.js +98 -36
- package/lib/client.js.map +1 -1
- package/lib/model/batch-language-translation-details.d.ts +24 -24
- package/lib/model/capabilities.d.ts +31 -0
- package/lib/model/capabilities.js +61 -0
- package/lib/model/capabilities.js.map +1 -0
- package/lib/model/capability.d.ts +28 -0
- package/lib/model/capability.js +32 -0
- package/lib/model/capability.js.map +1 -0
- package/lib/model/class-metrics.d.ts +4 -0
- package/lib/model/class-metrics.js.map +1 -1
- package/lib/model/classification-multi-class-mode-details.d.ts +4 -0
- package/lib/model/classification-multi-class-mode-details.js.map +1 -1
- package/lib/model/classification-multi-label-mode-details.d.ts +4 -0
- package/lib/model/classification-multi-label-mode-details.js.map +1 -1
- package/lib/model/create-model-details.d.ts +2 -2
- package/lib/model/create-model-details.js.map +1 -1
- package/lib/model/entity-document-result.d.ts +24 -24
- package/lib/model/index.d.ts +26 -0
- package/lib/model/index.js +29 -3
- package/lib/model/index.js.map +1 -1
- package/lib/model/key-phrase-document-result.d.ts +24 -24
- package/lib/model/model-details.js +40 -0
- package/lib/model/model-details.js.map +1 -1
- package/lib/model/model-summary.d.ts +3 -2
- package/lib/model/model-summary.js.map +1 -1
- package/lib/model/model-type-info.d.ts +35 -0
- package/lib/model/model-type-info.js +61 -0
- package/lib/model/model-type-info.js.map +1 -0
- package/lib/model/model.d.ts +3 -2
- package/lib/model/model.js.map +1 -1
- package/lib/model/named-entity-recognition-model-details.d.ts +4 -0
- package/lib/model/named-entity-recognition-model-details.js.map +1 -1
- package/lib/model/named-entity-recognition-model-metrics.d.ts +2 -2
- package/lib/model/pii-entity-document-result.d.ts +24 -24
- package/lib/model/pre-trained-health-nlu-model-details.d.ts +33 -0
- package/lib/model/pre-trained-health-nlu-model-details.js +57 -0
- package/lib/model/pre-trained-health-nlu-model-details.js.map +1 -0
- package/lib/model/pre-trained-key-phrase-extraction-model-details.d.ts +33 -0
- package/lib/model/pre-trained-key-phrase-extraction-model-details.js +57 -0
- package/lib/model/pre-trained-key-phrase-extraction-model-details.js.map +1 -0
- package/lib/model/pre-trained-language-detection-model-details.d.ts +33 -0
- package/lib/model/pre-trained-language-detection-model-details.js +57 -0
- package/lib/model/pre-trained-language-detection-model-details.js.map +1 -0
- package/lib/model/pre-trained-named-entity-recognition-model-details.d.ts +33 -0
- package/lib/model/pre-trained-named-entity-recognition-model-details.js +57 -0
- package/lib/model/pre-trained-named-entity-recognition-model-details.js.map +1 -0
- package/lib/model/pre-trained-phi-model-details.d.ts +33 -0
- package/lib/model/pre-trained-phi-model-details.js +57 -0
- package/lib/model/pre-trained-phi-model-details.js.map +1 -0
- package/lib/model/pre-trained-pii-model-details.d.ts +33 -0
- package/lib/model/pre-trained-pii-model-details.js +57 -0
- package/lib/model/pre-trained-pii-model-details.js.map +1 -0
- package/lib/model/pre-trained-sentiment-analysis-model-details.d.ts +33 -0
- package/lib/model/pre-trained-sentiment-analysis-model-details.js +57 -0
- package/lib/model/pre-trained-sentiment-analysis-model-details.js.map +1 -0
- package/lib/model/pre-trained-summarization.d.ts +33 -0
- package/lib/model/pre-trained-summarization.js +55 -0
- package/lib/model/pre-trained-summarization.js.map +1 -0
- package/lib/model/pre-trained-text-classification-model-details.d.ts +33 -0
- package/lib/model/pre-trained-text-classification-model-details.js +57 -0
- package/lib/model/pre-trained-text-classification-model-details.js.map +1 -0
- package/lib/model/pre-trained-universal-model.d.ts +33 -0
- package/lib/model/pre-trained-universal-model.js +55 -0
- package/lib/model/pre-trained-universal-model.js.map +1 -0
- package/lib/model/sentiment-document-result.d.ts +24 -24
- package/lib/model/text-classification-document-result.d.ts +24 -24
- package/lib/model/text-classification-model-metrics.d.ts +2 -2
- package/lib/model/text-document.d.ts +1 -26
- package/lib/model/text-document.js.map +1 -1
- package/lib/model/translation-document-result.d.ts +48 -48
- package/lib/request/batch-detect-dominant-language-request.d.ts +1 -1
- package/lib/request/batch-detect-language-entities-request.d.ts +1 -1
- package/lib/request/batch-detect-language-key-phrases-request.d.ts +1 -1
- package/lib/request/batch-detect-language-pii-entities-request.d.ts +1 -1
- package/lib/request/batch-detect-language-sentiments-request.d.ts +1 -1
- package/lib/request/batch-detect-language-text-classification-request.d.ts +1 -1
- package/lib/request/batch-language-translation-request.d.ts +1 -1
- package/lib/request/change-endpoint-compartment-request.d.ts +1 -1
- package/lib/request/change-model-compartment-request.d.ts +1 -1
- package/lib/request/change-project-compartment-request.d.ts +1 -1
- package/lib/request/create-endpoint-request.d.ts +1 -1
- package/lib/request/create-model-request.d.ts +1 -1
- package/lib/request/create-project-request.d.ts +1 -1
- package/lib/request/delete-endpoint-request.d.ts +1 -1
- package/lib/request/delete-model-request.d.ts +1 -1
- package/lib/request/delete-project-request.d.ts +1 -1
- package/lib/request/detect-dominant-language-request.d.ts +1 -1
- package/lib/request/detect-language-entities-request.d.ts +1 -1
- package/lib/request/detect-language-key-phrases-request.d.ts +1 -1
- package/lib/request/detect-language-sentiments-request.d.ts +1 -1
- package/lib/request/detect-language-text-classification-request.d.ts +1 -1
- package/lib/request/get-endpoint-request.d.ts +1 -1
- package/lib/request/get-model-request.d.ts +1 -1
- package/lib/request/get-model-type-request.d.ts +26 -0
- package/lib/request/get-model-type-request.js +15 -0
- package/lib/request/get-model-type-request.js.map +1 -0
- package/lib/request/get-project-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +2 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-endpoints-request.d.ts +1 -1
- package/lib/request/list-evaluation-results-request.d.ts +1 -1
- package/lib/request/list-models-request.d.ts +1 -1
- package/lib/request/list-projects-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/update-endpoint-request.d.ts +1 -1
- package/lib/request/update-model-request.d.ts +1 -1
- package/lib/request/update-project-request.d.ts +1 -1
- package/lib/response/get-model-type-response.d.ts +25 -0
- package/lib/response/get-model-type-response.js +15 -0
- package/lib/response/get-model-type-response.js.map +1 -0
- package/lib/response/index.d.ts +2 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -64,6 +64,7 @@ class AIServiceLanguageClient {
|
|
|
64
64
|
this["_defaultHeaders"] = {};
|
|
65
65
|
this._circuitBreaker = null;
|
|
66
66
|
this._httpOptions = undefined;
|
|
67
|
+
this._bodyDuplexMode = undefined;
|
|
67
68
|
this.targetService = "AIServiceLanguage";
|
|
68
69
|
this._regionId = "";
|
|
69
70
|
this._lastSetRegionOrRegionId = "";
|
|
@@ -78,6 +79,9 @@ class AIServiceLanguageClient {
|
|
|
78
79
|
this._httpOptions = clientConfiguration.httpOptions
|
|
79
80
|
? clientConfiguration.httpOptions
|
|
80
81
|
: undefined;
|
|
82
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
83
|
+
? clientConfiguration.bodyDuplexMode
|
|
84
|
+
: undefined;
|
|
81
85
|
}
|
|
82
86
|
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
83
87
|
const specCircuitBreakerEnabled = true;
|
|
@@ -88,7 +92,7 @@ class AIServiceLanguageClient {
|
|
|
88
92
|
}
|
|
89
93
|
this._httpClient =
|
|
90
94
|
params.httpClient ||
|
|
91
|
-
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
95
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
92
96
|
if (params.authenticationDetailsProvider &&
|
|
93
97
|
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
94
98
|
const provider = params.authenticationDetailsProvider;
|
|
@@ -190,7 +194,7 @@ class AIServiceLanguageClient {
|
|
|
190
194
|
* @param BatchDetectDominantLanguageRequest
|
|
191
195
|
* @return BatchDetectDominantLanguageResponse
|
|
192
196
|
* @throws OciError when an error occurs
|
|
193
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
197
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/BatchDetectDominantLanguage.ts.html |here} to see how to use BatchDetectDominantLanguage API.
|
|
194
198
|
*/
|
|
195
199
|
batchDetectDominantLanguage(batchDetectDominantLanguageRequest) {
|
|
196
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -255,7 +259,7 @@ class AIServiceLanguageClient {
|
|
|
255
259
|
* @param BatchDetectLanguageEntitiesRequest
|
|
256
260
|
* @return BatchDetectLanguageEntitiesResponse
|
|
257
261
|
* @throws OciError when an error occurs
|
|
258
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
262
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/BatchDetectLanguageEntities.ts.html |here} to see how to use BatchDetectLanguageEntities API.
|
|
259
263
|
*/
|
|
260
264
|
batchDetectLanguageEntities(batchDetectLanguageEntitiesRequest) {
|
|
261
265
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -318,7 +322,7 @@ class AIServiceLanguageClient {
|
|
|
318
322
|
* @param BatchDetectLanguageKeyPhrasesRequest
|
|
319
323
|
* @return BatchDetectLanguageKeyPhrasesResponse
|
|
320
324
|
* @throws OciError when an error occurs
|
|
321
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
325
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/BatchDetectLanguageKeyPhrases.ts.html |here} to see how to use BatchDetectLanguageKeyPhrases API.
|
|
322
326
|
*/
|
|
323
327
|
batchDetectLanguageKeyPhrases(batchDetectLanguageKeyPhrasesRequest) {
|
|
324
328
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -381,7 +385,7 @@ class AIServiceLanguageClient {
|
|
|
381
385
|
* @param BatchDetectLanguagePiiEntitiesRequest
|
|
382
386
|
* @return BatchDetectLanguagePiiEntitiesResponse
|
|
383
387
|
* @throws OciError when an error occurs
|
|
384
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
388
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/BatchDetectLanguagePiiEntities.ts.html |here} to see how to use BatchDetectLanguagePiiEntities API.
|
|
385
389
|
*/
|
|
386
390
|
batchDetectLanguagePiiEntities(batchDetectLanguagePiiEntitiesRequest) {
|
|
387
391
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -450,7 +454,7 @@ class AIServiceLanguageClient {
|
|
|
450
454
|
* @param BatchDetectLanguageSentimentsRequest
|
|
451
455
|
* @return BatchDetectLanguageSentimentsResponse
|
|
452
456
|
* @throws OciError when an error occurs
|
|
453
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
457
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/BatchDetectLanguageSentiments.ts.html |here} to see how to use BatchDetectLanguageSentiments API.
|
|
454
458
|
*/
|
|
455
459
|
batchDetectLanguageSentiments(batchDetectLanguageSentimentsRequest) {
|
|
456
460
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -519,7 +523,7 @@ class AIServiceLanguageClient {
|
|
|
519
523
|
* @param BatchDetectLanguageTextClassificationRequest
|
|
520
524
|
* @return BatchDetectLanguageTextClassificationResponse
|
|
521
525
|
* @throws OciError when an error occurs
|
|
522
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
526
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/BatchDetectLanguageTextClassification.ts.html |here} to see how to use BatchDetectLanguageTextClassification API.
|
|
523
527
|
*/
|
|
524
528
|
batchDetectLanguageTextClassification(batchDetectLanguageTextClassificationRequest) {
|
|
525
529
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -582,7 +586,7 @@ class AIServiceLanguageClient {
|
|
|
582
586
|
* @param BatchLanguageTranslationRequest
|
|
583
587
|
* @return BatchLanguageTranslationResponse
|
|
584
588
|
* @throws OciError when an error occurs
|
|
585
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
589
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/BatchLanguageTranslation.ts.html |here} to see how to use BatchLanguageTranslation API.
|
|
586
590
|
*/
|
|
587
591
|
batchLanguageTranslation(batchLanguageTranslationRequest) {
|
|
588
592
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -639,7 +643,7 @@ class AIServiceLanguageClient {
|
|
|
639
643
|
* @param ChangeEndpointCompartmentRequest
|
|
640
644
|
* @return ChangeEndpointCompartmentResponse
|
|
641
645
|
* @throws OciError when an error occurs
|
|
642
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
646
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ChangeEndpointCompartment.ts.html |here} to see how to use ChangeEndpointCompartment API.
|
|
643
647
|
*/
|
|
644
648
|
changeEndpointCompartment(changeEndpointCompartmentRequest) {
|
|
645
649
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -696,7 +700,7 @@ class AIServiceLanguageClient {
|
|
|
696
700
|
* @param ChangeModelCompartmentRequest
|
|
697
701
|
* @return ChangeModelCompartmentResponse
|
|
698
702
|
* @throws OciError when an error occurs
|
|
699
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
703
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ChangeModelCompartment.ts.html |here} to see how to use ChangeModelCompartment API.
|
|
700
704
|
*/
|
|
701
705
|
changeModelCompartment(changeModelCompartmentRequest) {
|
|
702
706
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -753,7 +757,7 @@ class AIServiceLanguageClient {
|
|
|
753
757
|
* @param ChangeProjectCompartmentRequest
|
|
754
758
|
* @return ChangeProjectCompartmentResponse
|
|
755
759
|
* @throws OciError when an error occurs
|
|
756
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
760
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ChangeProjectCompartment.ts.html |here} to see how to use ChangeProjectCompartment API.
|
|
757
761
|
*/
|
|
758
762
|
changeProjectCompartment(changeProjectCompartmentRequest) {
|
|
759
763
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -811,7 +815,7 @@ class AIServiceLanguageClient {
|
|
|
811
815
|
* @param CreateEndpointRequest
|
|
812
816
|
* @return CreateEndpointResponse
|
|
813
817
|
* @throws OciError when an error occurs
|
|
814
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
818
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/CreateEndpoint.ts.html |here} to see how to use CreateEndpoint API.
|
|
815
819
|
*/
|
|
816
820
|
createEndpoint(createEndpointRequest) {
|
|
817
821
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -885,7 +889,7 @@ class AIServiceLanguageClient {
|
|
|
885
889
|
* @param CreateModelRequest
|
|
886
890
|
* @return CreateModelResponse
|
|
887
891
|
* @throws OciError when an error occurs
|
|
888
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
892
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/CreateModel.ts.html |here} to see how to use CreateModel API.
|
|
889
893
|
*/
|
|
890
894
|
createModel(createModelRequest) {
|
|
891
895
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -959,7 +963,7 @@ class AIServiceLanguageClient {
|
|
|
959
963
|
* @param CreateProjectRequest
|
|
960
964
|
* @return CreateProjectResponse
|
|
961
965
|
* @throws OciError when an error occurs
|
|
962
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
966
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/CreateProject.ts.html |here} to see how to use CreateProject API.
|
|
963
967
|
*/
|
|
964
968
|
createProject(createProjectRequest) {
|
|
965
969
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1027,7 +1031,7 @@ class AIServiceLanguageClient {
|
|
|
1027
1031
|
* @param DeleteEndpointRequest
|
|
1028
1032
|
* @return DeleteEndpointResponse
|
|
1029
1033
|
* @throws OciError when an error occurs
|
|
1030
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1034
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DeleteEndpoint.ts.html |here} to see how to use DeleteEndpoint API.
|
|
1031
1035
|
*/
|
|
1032
1036
|
deleteEndpoint(deleteEndpointRequest) {
|
|
1033
1037
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1087,7 +1091,7 @@ class AIServiceLanguageClient {
|
|
|
1087
1091
|
* @param DeleteModelRequest
|
|
1088
1092
|
* @return DeleteModelResponse
|
|
1089
1093
|
* @throws OciError when an error occurs
|
|
1090
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1094
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DeleteModel.ts.html |here} to see how to use DeleteModel API.
|
|
1091
1095
|
*/
|
|
1092
1096
|
deleteModel(deleteModelRequest) {
|
|
1093
1097
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1147,7 +1151,7 @@ class AIServiceLanguageClient {
|
|
|
1147
1151
|
* @param DeleteProjectRequest
|
|
1148
1152
|
* @return DeleteProjectResponse
|
|
1149
1153
|
* @throws OciError when an error occurs
|
|
1150
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1154
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DeleteProject.ts.html |here} to see how to use DeleteProject API.
|
|
1151
1155
|
*/
|
|
1152
1156
|
deleteProject(deleteProjectRequest) {
|
|
1153
1157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1214,7 +1218,7 @@ class AIServiceLanguageClient {
|
|
|
1214
1218
|
* @param DetectDominantLanguageRequest
|
|
1215
1219
|
* @return DetectDominantLanguageResponse
|
|
1216
1220
|
* @throws OciError when an error occurs
|
|
1217
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1221
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DetectDominantLanguage.ts.html |here} to see how to use DetectDominantLanguage API.
|
|
1218
1222
|
*/
|
|
1219
1223
|
detectDominantLanguage(detectDominantLanguageRequest) {
|
|
1220
1224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1281,7 +1285,7 @@ class AIServiceLanguageClient {
|
|
|
1281
1285
|
* @param DetectLanguageEntitiesRequest
|
|
1282
1286
|
* @return DetectLanguageEntitiesResponse
|
|
1283
1287
|
* @throws OciError when an error occurs
|
|
1284
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1288
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DetectLanguageEntities.ts.html |here} to see how to use DetectLanguageEntities API.
|
|
1285
1289
|
*/
|
|
1286
1290
|
detectLanguageEntities(detectLanguageEntitiesRequest) {
|
|
1287
1291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1351,7 +1355,7 @@ class AIServiceLanguageClient {
|
|
|
1351
1355
|
* @param DetectLanguageKeyPhrasesRequest
|
|
1352
1356
|
* @return DetectLanguageKeyPhrasesResponse
|
|
1353
1357
|
* @throws OciError when an error occurs
|
|
1354
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1358
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DetectLanguageKeyPhrases.ts.html |here} to see how to use DetectLanguageKeyPhrases API.
|
|
1355
1359
|
*/
|
|
1356
1360
|
detectLanguageKeyPhrases(detectLanguageKeyPhrasesRequest) {
|
|
1357
1361
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1424,7 +1428,7 @@ class AIServiceLanguageClient {
|
|
|
1424
1428
|
* @param DetectLanguageSentimentsRequest
|
|
1425
1429
|
* @return DetectLanguageSentimentsResponse
|
|
1426
1430
|
* @throws OciError when an error occurs
|
|
1427
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1431
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DetectLanguageSentiments.ts.html |here} to see how to use DetectLanguageSentiments API.
|
|
1428
1432
|
*/
|
|
1429
1433
|
detectLanguageSentiments(detectLanguageSentimentsRequest) {
|
|
1430
1434
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1493,7 +1497,7 @@ class AIServiceLanguageClient {
|
|
|
1493
1497
|
* @param DetectLanguageTextClassificationRequest
|
|
1494
1498
|
* @return DetectLanguageTextClassificationResponse
|
|
1495
1499
|
* @throws OciError when an error occurs
|
|
1496
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1500
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/DetectLanguageTextClassification.ts.html |here} to see how to use DetectLanguageTextClassification API.
|
|
1497
1501
|
*/
|
|
1498
1502
|
detectLanguageTextClassification(detectLanguageTextClassificationRequest) {
|
|
1499
1503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1555,7 +1559,7 @@ class AIServiceLanguageClient {
|
|
|
1555
1559
|
* @param GetEndpointRequest
|
|
1556
1560
|
* @return GetEndpointResponse
|
|
1557
1561
|
* @throws OciError when an error occurs
|
|
1558
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1562
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/GetEndpoint.ts.html |here} to see how to use GetEndpoint API.
|
|
1559
1563
|
*/
|
|
1560
1564
|
getEndpoint(getEndpointRequest) {
|
|
1561
1565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1618,7 +1622,7 @@ class AIServiceLanguageClient {
|
|
|
1618
1622
|
* @param GetModelRequest
|
|
1619
1623
|
* @return GetModelResponse
|
|
1620
1624
|
* @throws OciError when an error occurs
|
|
1621
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1625
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/GetModel.ts.html |here} to see how to use GetModel API.
|
|
1622
1626
|
*/
|
|
1623
1627
|
getModel(getModelRequest) {
|
|
1624
1628
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1675,13 +1679,71 @@ class AIServiceLanguageClient {
|
|
|
1675
1679
|
}
|
|
1676
1680
|
});
|
|
1677
1681
|
}
|
|
1682
|
+
/**
|
|
1683
|
+
* Gets model capabilities
|
|
1684
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1685
|
+
* @param GetModelTypeRequest
|
|
1686
|
+
* @return GetModelTypeResponse
|
|
1687
|
+
* @throws OciError when an error occurs
|
|
1688
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/GetModelType.ts.html |here} to see how to use GetModelType API.
|
|
1689
|
+
*/
|
|
1690
|
+
getModelType(getModelTypeRequest) {
|
|
1691
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1692
|
+
if (this.logger)
|
|
1693
|
+
this.logger.debug("Calling operation AIServiceLanguageClient#getModelType.");
|
|
1694
|
+
const operationName = "getModelType";
|
|
1695
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/ModelTypeInfo/GetModelType";
|
|
1696
|
+
const pathParams = {
|
|
1697
|
+
"{modelType}": getModelTypeRequest.modelType
|
|
1698
|
+
};
|
|
1699
|
+
const queryParams = {};
|
|
1700
|
+
let headerParams = {
|
|
1701
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1702
|
+
"opc-request-id": getModelTypeRequest.opcRequestId
|
|
1703
|
+
};
|
|
1704
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1705
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getModelTypeRequest.retryConfiguration, specRetryConfiguration);
|
|
1706
|
+
if (this.logger)
|
|
1707
|
+
retrier.logger = this.logger;
|
|
1708
|
+
const request = yield oci_common_1.composeRequest({
|
|
1709
|
+
baseEndpoint: this._endpoint,
|
|
1710
|
+
defaultHeaders: this._defaultHeaders,
|
|
1711
|
+
path: "/modelTypes/{modelType}",
|
|
1712
|
+
method: "GET",
|
|
1713
|
+
pathParams: pathParams,
|
|
1714
|
+
headerParams: headerParams,
|
|
1715
|
+
queryParams: queryParams
|
|
1716
|
+
});
|
|
1717
|
+
try {
|
|
1718
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1719
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1720
|
+
responseObject: {},
|
|
1721
|
+
body: yield response.json(),
|
|
1722
|
+
bodyKey: "modelTypeInfo",
|
|
1723
|
+
bodyModel: model.ModelTypeInfo,
|
|
1724
|
+
type: "model.ModelTypeInfo",
|
|
1725
|
+
responseHeaders: [
|
|
1726
|
+
{
|
|
1727
|
+
value: response.headers.get("opc-request-id"),
|
|
1728
|
+
key: "opcRequestId",
|
|
1729
|
+
dataType: "string"
|
|
1730
|
+
}
|
|
1731
|
+
]
|
|
1732
|
+
});
|
|
1733
|
+
return sdkResponse;
|
|
1734
|
+
}
|
|
1735
|
+
catch (err) {
|
|
1736
|
+
throw err;
|
|
1737
|
+
}
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1678
1740
|
/**
|
|
1679
1741
|
* Gets a Project by identifier
|
|
1680
1742
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1681
1743
|
* @param GetProjectRequest
|
|
1682
1744
|
* @return GetProjectResponse
|
|
1683
1745
|
* @throws OciError when an error occurs
|
|
1684
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1746
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/GetProject.ts.html |here} to see how to use GetProject API.
|
|
1685
1747
|
*/
|
|
1686
1748
|
getProject(getProjectRequest) {
|
|
1687
1749
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1744,7 +1806,7 @@ class AIServiceLanguageClient {
|
|
|
1744
1806
|
* @param GetWorkRequestRequest
|
|
1745
1807
|
* @return GetWorkRequestResponse
|
|
1746
1808
|
* @throws OciError when an error occurs
|
|
1747
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1809
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1748
1810
|
*/
|
|
1749
1811
|
getWorkRequest(getWorkRequestRequest) {
|
|
1750
1812
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1808,7 +1870,7 @@ class AIServiceLanguageClient {
|
|
|
1808
1870
|
* @param ListEndpointsRequest
|
|
1809
1871
|
* @return ListEndpointsResponse
|
|
1810
1872
|
* @throws OciError when an error occurs
|
|
1811
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1873
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ListEndpoints.ts.html |here} to see how to use ListEndpoints API.
|
|
1812
1874
|
*/
|
|
1813
1875
|
listEndpoints(listEndpointsRequest) {
|
|
1814
1876
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1880,7 +1942,7 @@ class AIServiceLanguageClient {
|
|
|
1880
1942
|
* @param ListEvaluationResultsRequest
|
|
1881
1943
|
* @return ListEvaluationResultsResponse
|
|
1882
1944
|
* @throws OciError when an error occurs
|
|
1883
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1945
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ListEvaluationResults.ts.html |here} to see how to use ListEvaluationResults API.
|
|
1884
1946
|
*/
|
|
1885
1947
|
listEvaluationResults(listEvaluationResultsRequest) {
|
|
1886
1948
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1947,7 +2009,7 @@ class AIServiceLanguageClient {
|
|
|
1947
2009
|
* @param ListModelsRequest
|
|
1948
2010
|
* @return ListModelsResponse
|
|
1949
2011
|
* @throws OciError when an error occurs
|
|
1950
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2012
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ListModels.ts.html |here} to see how to use ListModels API.
|
|
1951
2013
|
*/
|
|
1952
2014
|
listModels(listModelsRequest) {
|
|
1953
2015
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2019,7 +2081,7 @@ class AIServiceLanguageClient {
|
|
|
2019
2081
|
* @param ListProjectsRequest
|
|
2020
2082
|
* @return ListProjectsResponse
|
|
2021
2083
|
* @throws OciError when an error occurs
|
|
2022
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2084
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ListProjects.ts.html |here} to see how to use ListProjects API.
|
|
2023
2085
|
*/
|
|
2024
2086
|
listProjects(listProjectsRequest) {
|
|
2025
2087
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2090,7 +2152,7 @@ class AIServiceLanguageClient {
|
|
|
2090
2152
|
* @param ListWorkRequestErrorsRequest
|
|
2091
2153
|
* @return ListWorkRequestErrorsResponse
|
|
2092
2154
|
* @throws OciError when an error occurs
|
|
2093
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2155
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
2094
2156
|
*/
|
|
2095
2157
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
2096
2158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2159,7 +2221,7 @@ class AIServiceLanguageClient {
|
|
|
2159
2221
|
* @param ListWorkRequestLogsRequest
|
|
2160
2222
|
* @return ListWorkRequestLogsResponse
|
|
2161
2223
|
* @throws OciError when an error occurs
|
|
2162
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2224
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
2163
2225
|
*/
|
|
2164
2226
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
2165
2227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2228,7 +2290,7 @@ class AIServiceLanguageClient {
|
|
|
2228
2290
|
* @param ListWorkRequestsRequest
|
|
2229
2291
|
* @return ListWorkRequestsResponse
|
|
2230
2292
|
* @throws OciError when an error occurs
|
|
2231
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2293
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2232
2294
|
*/
|
|
2233
2295
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2234
2296
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2297,7 +2359,7 @@ class AIServiceLanguageClient {
|
|
|
2297
2359
|
* @param UpdateEndpointRequest
|
|
2298
2360
|
* @return UpdateEndpointResponse
|
|
2299
2361
|
* @throws OciError when an error occurs
|
|
2300
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2362
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/UpdateEndpoint.ts.html |here} to see how to use UpdateEndpoint API.
|
|
2301
2363
|
*/
|
|
2302
2364
|
updateEndpoint(updateEndpointRequest) {
|
|
2303
2365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2358,7 +2420,7 @@ class AIServiceLanguageClient {
|
|
|
2358
2420
|
* @param UpdateModelRequest
|
|
2359
2421
|
* @return UpdateModelResponse
|
|
2360
2422
|
* @throws OciError when an error occurs
|
|
2361
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2423
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/UpdateModel.ts.html |here} to see how to use UpdateModel API.
|
|
2362
2424
|
*/
|
|
2363
2425
|
updateModel(updateModelRequest) {
|
|
2364
2426
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2419,7 +2481,7 @@ class AIServiceLanguageClient {
|
|
|
2419
2481
|
* @param UpdateProjectRequest
|
|
2420
2482
|
* @return UpdateProjectResponse
|
|
2421
2483
|
* @throws OciError when an error occurs
|
|
2422
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2484
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.68.0/ailanguage/UpdateProject.ts.html |here} to see how to use UpdateProject API.
|
|
2423
2485
|
*/
|
|
2424
2486
|
updateProject(updateProjectRequest) {
|
|
2425
2487
|
return __awaiter(this, void 0, void 0, function* () {
|