@huaweicloud/huaweicloud-sdk-metastudio 3.1.157 → 3.1.159
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/package.json +2 -2
- package/v1/MetaStudioClient.d.ts +188 -0
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +506 -0
- package/v1/MetaStudioClient.js.map +1 -1
- package/v1/model/AsrVocabularyAssociation.d.ts +19 -0
- package/v1/model/AsrVocabularyAssociation.d.ts.map +1 -0
- package/v1/model/AsrVocabularyAssociation.js +43 -0
- package/v1/model/AsrVocabularyAssociation.js.map +1 -0
- package/v1/model/AsrVocabularyInfo.d.ts +28 -0
- package/v1/model/AsrVocabularyInfo.d.ts.map +1 -0
- package/v1/model/AsrVocabularyInfo.js +61 -0
- package/v1/model/AsrVocabularyInfo.js.map +1 -0
- package/v1/model/AsrVocabularyTypeEnum.d.ts +4 -0
- package/v1/model/AsrVocabularyTypeEnum.d.ts.map +1 -0
- package/v1/model/AsrVocabularyTypeEnum.js +9 -0
- package/v1/model/AsrVocabularyTypeEnum.js.map +1 -0
- package/v1/model/CreateAsrVocabularyReq.d.ts +19 -0
- package/v1/model/CreateAsrVocabularyReq.d.ts.map +1 -0
- package/v1/model/CreateAsrVocabularyReq.js +40 -0
- package/v1/model/CreateAsrVocabularyReq.js.map +1 -0
- package/v1/model/CreateAsrVocabularyRequest.d.ts +23 -0
- package/v1/model/CreateAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/CreateAsrVocabularyRequest.js +53 -0
- package/v1/model/CreateAsrVocabularyRequest.js.map +1 -0
- package/v1/model/CreateAsrVocabularyResponse.d.ts +33 -0
- package/v1/model/CreateAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/CreateAsrVocabularyResponse.js +73 -0
- package/v1/model/CreateAsrVocabularyResponse.js.map +1 -0
- package/v1/model/DeleteAsrVocabularyRequest.d.ts +24 -0
- package/v1/model/DeleteAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/DeleteAsrVocabularyRequest.js +60 -0
- package/v1/model/DeleteAsrVocabularyRequest.js.map +1 -0
- package/v1/model/DeleteAsrVocabularyResponse.d.ts +9 -0
- package/v1/model/DeleteAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/DeleteAsrVocabularyResponse.js +21 -0
- package/v1/model/DeleteAsrVocabularyResponse.js.map +1 -0
- package/v1/model/ListAsrVocabularyRequest.d.ts +49 -0
- package/v1/model/ListAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/ListAsrVocabularyRequest.js +92 -0
- package/v1/model/ListAsrVocabularyRequest.js.map +1 -0
- package/v1/model/ListAsrVocabularyResponse.d.ts +18 -0
- package/v1/model/ListAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/ListAsrVocabularyResponse.js +37 -0
- package/v1/model/ListAsrVocabularyResponse.js.map +1 -0
- package/v1/model/MobvoiVocabulary.d.ts +6 -0
- package/v1/model/MobvoiVocabulary.d.ts.map +1 -0
- package/v1/model/MobvoiVocabulary.js +14 -0
- package/v1/model/MobvoiVocabulary.js.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.d.ts +28 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.js +68 -0
- package/v1/model/ShowAsrVocabularyAssociationRequest.js.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.d.ts +18 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.js +37 -0
- package/v1/model/ShowAsrVocabularyAssociationResponse.js.map +1 -0
- package/v1/model/ShowAsrVocabularyRequest.d.ts +24 -0
- package/v1/model/ShowAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyRequest.js +60 -0
- package/v1/model/ShowAsrVocabularyRequest.js.map +1 -0
- package/v1/model/ShowAsrVocabularyResponse.d.ts +33 -0
- package/v1/model/ShowAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/ShowAsrVocabularyResponse.js +73 -0
- package/v1/model/ShowAsrVocabularyResponse.js.map +1 -0
- package/v1/model/UpdateAsrVocabularyReq.d.ts +19 -0
- package/v1/model/UpdateAsrVocabularyReq.d.ts.map +1 -0
- package/v1/model/UpdateAsrVocabularyReq.js +38 -0
- package/v1/model/UpdateAsrVocabularyReq.js.map +1 -0
- package/v1/model/UpdateAsrVocabularyRequest.d.ts +27 -0
- package/v1/model/UpdateAsrVocabularyRequest.d.ts.map +1 -0
- package/v1/model/UpdateAsrVocabularyRequest.js +64 -0
- package/v1/model/UpdateAsrVocabularyRequest.js.map +1 -0
- package/v1/model/UpdateAsrVocabularyResponse.d.ts +33 -0
- package/v1/model/UpdateAsrVocabularyResponse.d.ts.map +1 -0
- package/v1/model/UpdateAsrVocabularyResponse.js +73 -0
- package/v1/model/UpdateAsrVocabularyResponse.js.map +1 -0
- package/v1/public-api.d.ts +18 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +18 -0
- package/v1/public-api.js.map +1 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -21,6 +21,7 @@ const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHuman
|
|
|
21
21
|
const Create2dModelTrainingJobRequest_1 = require("./model/Create2dModelTrainingJobRequest");
|
|
22
22
|
const CreateActiveCodeRequest_1 = require("./model/CreateActiveCodeRequest");
|
|
23
23
|
const CreateAgencyWithRoleTypeRequest_1 = require("./model/CreateAgencyWithRoleTypeRequest");
|
|
24
|
+
const CreateAsrVocabularyRequest_1 = require("./model/CreateAsrVocabularyRequest");
|
|
24
25
|
const CreateAssetByReplicationInfoRequest_1 = require("./model/CreateAssetByReplicationInfoRequest");
|
|
25
26
|
const CreateAsyncTtsJobRequest_1 = require("./model/CreateAsyncTtsJobRequest");
|
|
26
27
|
const CreateBatchKnowledgeQuestionRequest_1 = require("./model/CreateBatchKnowledgeQuestionRequest");
|
|
@@ -63,6 +64,7 @@ const CreateWelcomeSpeechRequest_1 = require("./model/CreateWelcomeSpeechRequest
|
|
|
63
64
|
const Delete2dModelTrainingJobRequest_1 = require("./model/Delete2dModelTrainingJobRequest");
|
|
64
65
|
const DeleteActiveCodeRequest_1 = require("./model/DeleteActiveCodeRequest");
|
|
65
66
|
const DeleteAgencyWithRoleTypeRequest_1 = require("./model/DeleteAgencyWithRoleTypeRequest");
|
|
67
|
+
const DeleteAsrVocabularyRequest_1 = require("./model/DeleteAsrVocabularyRequest");
|
|
66
68
|
const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
|
|
67
69
|
const DeleteDialogReportConfigRequest_1 = require("./model/DeleteDialogReportConfigRequest");
|
|
68
70
|
const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
|
|
@@ -89,6 +91,7 @@ const ExecuteVideoMotionCaptureCommandRequest_1 = require("./model/ExecuteVideoM
|
|
|
89
91
|
const ExportKnowledgeSkillRequest_1 = require("./model/ExportKnowledgeSkillRequest");
|
|
90
92
|
const List2dModelTrainingJobRequest_1 = require("./model/List2dModelTrainingJobRequest");
|
|
91
93
|
const ListActiveCodeRequest_1 = require("./model/ListActiveCodeRequest");
|
|
94
|
+
const ListAsrVocabularyRequest_1 = require("./model/ListAsrVocabularyRequest");
|
|
92
95
|
const ListAssetSummaryRequest_1 = require("./model/ListAssetSummaryRequest");
|
|
93
96
|
const ListAssetsRequest_1 = require("./model/ListAssetsRequest");
|
|
94
97
|
const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanBusinessCardRequest");
|
|
@@ -133,6 +136,8 @@ const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVide
|
|
|
133
136
|
const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
|
|
134
137
|
const ShowActiveCodeRequest_1 = require("./model/ShowActiveCodeRequest");
|
|
135
138
|
const ShowAgencyRequest_1 = require("./model/ShowAgencyRequest");
|
|
139
|
+
const ShowAsrVocabularyAssociationRequest_1 = require("./model/ShowAsrVocabularyAssociationRequest");
|
|
140
|
+
const ShowAsrVocabularyRequest_1 = require("./model/ShowAsrVocabularyRequest");
|
|
136
141
|
const ShowAssetReplicationInfoRequest_1 = require("./model/ShowAssetReplicationInfoRequest");
|
|
137
142
|
const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
|
|
138
143
|
const ShowAsyncTtsJobRequest_1 = require("./model/ShowAsyncTtsJobRequest");
|
|
@@ -177,6 +182,7 @@ const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
|
|
|
177
182
|
const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
|
|
178
183
|
const Update2dModelTrainingJobRequest_1 = require("./model/Update2dModelTrainingJobRequest");
|
|
179
184
|
const UpdateActiveCodeRequest_1 = require("./model/UpdateActiveCodeRequest");
|
|
185
|
+
const UpdateAsrVocabularyRequest_1 = require("./model/UpdateAsrVocabularyRequest");
|
|
180
186
|
const UpdateBatchKnowledgeQuestionRequest_1 = require("./model/UpdateBatchKnowledgeQuestionRequest");
|
|
181
187
|
const UpdateDialogReportConfigRequest_1 = require("./model/UpdateDialogReportConfigRequest");
|
|
182
188
|
const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
|
|
@@ -383,6 +389,132 @@ class MetaStudioClient {
|
|
|
383
389
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
384
390
|
return this.hcClient.sendRequest(options);
|
|
385
391
|
}
|
|
392
|
+
/**
|
|
393
|
+
* 该接口用于创建热词表。
|
|
394
|
+
*
|
|
395
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
396
|
+
*
|
|
397
|
+
* @summary 创建热词表
|
|
398
|
+
* @param {CreateAsrVocabularyReq} createAsrVocabularyRequestBody 创建热词表请求。
|
|
399
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
400
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
401
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
402
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
createAsrVocabulary(createAsrVocabularyRequest) {
|
|
407
|
+
const options = (0, exports.ParamCreater)().createAsrVocabulary(createAsrVocabularyRequest);
|
|
408
|
+
// @ts-ignore
|
|
409
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
410
|
+
return this.hcClient.sendRequest(options);
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* 该接口用于删除热词表。
|
|
414
|
+
*
|
|
415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
416
|
+
*
|
|
417
|
+
* @summary 删除热词表
|
|
418
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
419
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
420
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
421
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
422
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
deleteAsrVocabulary(deleteAsrVocabularyRequest) {
|
|
427
|
+
const options = (0, exports.ParamCreater)().deleteAsrVocabulary(deleteAsrVocabularyRequest);
|
|
428
|
+
// @ts-ignore
|
|
429
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
430
|
+
return this.hcClient.sendRequest(options);
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* 该接口用于查询热词表列表。
|
|
434
|
+
*
|
|
435
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
436
|
+
*
|
|
437
|
+
* @summary 查询热词表列表
|
|
438
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
439
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
440
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
441
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
442
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
443
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
444
|
+
* @param {'MOBVOI'} [vocabularyType] 词表类型。 > MOBVOI:使用的语音识别服务为MOBVOI时选择此类型
|
|
445
|
+
* @param {'CN' | 'EN' | 'ESP' | 'por' | 'Arabic' | 'Thai'} [language] 智能交互语言 * CN:中文。 * EN:英文。 * ESP:西班牙语(仅海外站点支持) * por:葡萄牙语(仅海外站点支持) * Arabic:阿拉伯语(仅海外站点支持) * Thai:泰语(仅海外站点支持)
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
*/
|
|
449
|
+
listAsrVocabulary(listAsrVocabularyRequest) {
|
|
450
|
+
const options = (0, exports.ParamCreater)().listAsrVocabulary(listAsrVocabularyRequest);
|
|
451
|
+
// @ts-ignore
|
|
452
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
453
|
+
return this.hcClient.sendRequest(options);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 该接口用于查询热词表详情。
|
|
457
|
+
*
|
|
458
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
459
|
+
*
|
|
460
|
+
* @summary 查询热词表详情
|
|
461
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
462
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
463
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
464
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
465
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
showAsrVocabulary(showAsrVocabularyRequest) {
|
|
470
|
+
const options = (0, exports.ParamCreater)().showAsrVocabulary(showAsrVocabularyRequest);
|
|
471
|
+
// @ts-ignore
|
|
472
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
473
|
+
return this.hcClient.sendRequest(options);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* 该接口用于查询热词表关联详情。
|
|
477
|
+
*
|
|
478
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
479
|
+
*
|
|
480
|
+
* @summary 查询热词表关联详情
|
|
481
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
482
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
483
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
484
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
485
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
486
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
487
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @throws {RequiredError}
|
|
490
|
+
*/
|
|
491
|
+
showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest) {
|
|
492
|
+
const options = (0, exports.ParamCreater)().showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest);
|
|
493
|
+
// @ts-ignore
|
|
494
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
495
|
+
return this.hcClient.sendRequest(options);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* 该接口用于修改热词表。
|
|
499
|
+
*
|
|
500
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
501
|
+
*
|
|
502
|
+
* @summary 修改热词表
|
|
503
|
+
* @param {string} asrVocabularyId 热词表ID。
|
|
504
|
+
* @param {UpdateAsrVocabularyReq} updateAsrVocabularyRequestBody 修改热词表请求。
|
|
505
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
506
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
507
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
508
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
509
|
+
* @param {*} [options] Override http request option.
|
|
510
|
+
* @throws {RequiredError}
|
|
511
|
+
*/
|
|
512
|
+
updateAsrVocabulary(updateAsrVocabularyRequest) {
|
|
513
|
+
const options = (0, exports.ParamCreater)().updateAsrVocabulary(updateAsrVocabularyRequest);
|
|
514
|
+
// @ts-ignore
|
|
515
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
516
|
+
return this.hcClient.sendRequest(options);
|
|
517
|
+
}
|
|
386
518
|
/**
|
|
387
519
|
* 该接口用于创建对话链接。
|
|
388
520
|
*
|
|
@@ -4795,6 +4927,380 @@ const ParamCreater = function () {
|
|
|
4795
4927
|
options.headers = localVarHeaderParameter;
|
|
4796
4928
|
return options;
|
|
4797
4929
|
},
|
|
4930
|
+
/**
|
|
4931
|
+
* 该接口用于创建热词表。
|
|
4932
|
+
*
|
|
4933
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4934
|
+
*/
|
|
4935
|
+
createAsrVocabulary(createAsrVocabularyRequest) {
|
|
4936
|
+
const options = {
|
|
4937
|
+
method: "POST",
|
|
4938
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary",
|
|
4939
|
+
contentType: "application/json",
|
|
4940
|
+
queryParams: {},
|
|
4941
|
+
pathParams: {},
|
|
4942
|
+
headers: {},
|
|
4943
|
+
data: {}
|
|
4944
|
+
};
|
|
4945
|
+
const localVarHeaderParameter = {};
|
|
4946
|
+
let body;
|
|
4947
|
+
let authorization;
|
|
4948
|
+
let xSdkDate;
|
|
4949
|
+
let xProjectId;
|
|
4950
|
+
let xAppUserId;
|
|
4951
|
+
if (createAsrVocabularyRequest !== null && createAsrVocabularyRequest !== undefined) {
|
|
4952
|
+
if (createAsrVocabularyRequest instanceof CreateAsrVocabularyRequest_1.CreateAsrVocabularyRequest) {
|
|
4953
|
+
body = createAsrVocabularyRequest.body;
|
|
4954
|
+
authorization = createAsrVocabularyRequest.authorization;
|
|
4955
|
+
xSdkDate = createAsrVocabularyRequest.xSdkDate;
|
|
4956
|
+
xProjectId = createAsrVocabularyRequest.xProjectId;
|
|
4957
|
+
xAppUserId = createAsrVocabularyRequest.xAppUserId;
|
|
4958
|
+
}
|
|
4959
|
+
else {
|
|
4960
|
+
body = createAsrVocabularyRequest['body'];
|
|
4961
|
+
authorization = createAsrVocabularyRequest['Authorization'];
|
|
4962
|
+
xSdkDate = createAsrVocabularyRequest['X-Sdk-Date'];
|
|
4963
|
+
xProjectId = createAsrVocabularyRequest['X-Project-Id'];
|
|
4964
|
+
xAppUserId = createAsrVocabularyRequest['X-App-UserId'];
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
if (body === null || body === undefined) {
|
|
4968
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4969
|
+
}
|
|
4970
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4971
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4972
|
+
}
|
|
4973
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4974
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4975
|
+
}
|
|
4976
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4977
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4978
|
+
}
|
|
4979
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4980
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4981
|
+
}
|
|
4982
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4983
|
+
options.data = body !== undefined ? body : {};
|
|
4984
|
+
options.headers = localVarHeaderParameter;
|
|
4985
|
+
return options;
|
|
4986
|
+
},
|
|
4987
|
+
/**
|
|
4988
|
+
* 该接口用于删除热词表。
|
|
4989
|
+
*
|
|
4990
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4991
|
+
*/
|
|
4992
|
+
deleteAsrVocabulary(deleteAsrVocabularyRequest) {
|
|
4993
|
+
const options = {
|
|
4994
|
+
method: "DELETE",
|
|
4995
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
|
|
4996
|
+
contentType: "application/json",
|
|
4997
|
+
queryParams: {},
|
|
4998
|
+
pathParams: {},
|
|
4999
|
+
headers: {}
|
|
5000
|
+
};
|
|
5001
|
+
const localVarHeaderParameter = {};
|
|
5002
|
+
let asrVocabularyId;
|
|
5003
|
+
let authorization;
|
|
5004
|
+
let xSdkDate;
|
|
5005
|
+
let xProjectId;
|
|
5006
|
+
let xAppUserId;
|
|
5007
|
+
if (deleteAsrVocabularyRequest !== null && deleteAsrVocabularyRequest !== undefined) {
|
|
5008
|
+
if (deleteAsrVocabularyRequest instanceof DeleteAsrVocabularyRequest_1.DeleteAsrVocabularyRequest) {
|
|
5009
|
+
asrVocabularyId = deleteAsrVocabularyRequest.asrVocabularyId;
|
|
5010
|
+
authorization = deleteAsrVocabularyRequest.authorization;
|
|
5011
|
+
xSdkDate = deleteAsrVocabularyRequest.xSdkDate;
|
|
5012
|
+
xProjectId = deleteAsrVocabularyRequest.xProjectId;
|
|
5013
|
+
xAppUserId = deleteAsrVocabularyRequest.xAppUserId;
|
|
5014
|
+
}
|
|
5015
|
+
else {
|
|
5016
|
+
asrVocabularyId = deleteAsrVocabularyRequest['asr_vocabulary_id'];
|
|
5017
|
+
authorization = deleteAsrVocabularyRequest['Authorization'];
|
|
5018
|
+
xSdkDate = deleteAsrVocabularyRequest['X-Sdk-Date'];
|
|
5019
|
+
xProjectId = deleteAsrVocabularyRequest['X-Project-Id'];
|
|
5020
|
+
xAppUserId = deleteAsrVocabularyRequest['X-App-UserId'];
|
|
5021
|
+
}
|
|
5022
|
+
}
|
|
5023
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5024
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling deleteAsrVocabulary.');
|
|
5025
|
+
}
|
|
5026
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5027
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5028
|
+
}
|
|
5029
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5030
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5031
|
+
}
|
|
5032
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5033
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5034
|
+
}
|
|
5035
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5036
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5037
|
+
}
|
|
5038
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5039
|
+
options.headers = localVarHeaderParameter;
|
|
5040
|
+
return options;
|
|
5041
|
+
},
|
|
5042
|
+
/**
|
|
5043
|
+
* 该接口用于查询热词表列表。
|
|
5044
|
+
*
|
|
5045
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5046
|
+
*/
|
|
5047
|
+
listAsrVocabulary(listAsrVocabularyRequest) {
|
|
5048
|
+
const options = {
|
|
5049
|
+
method: "GET",
|
|
5050
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary",
|
|
5051
|
+
contentType: "application/json",
|
|
5052
|
+
queryParams: {},
|
|
5053
|
+
pathParams: {},
|
|
5054
|
+
headers: {}
|
|
5055
|
+
};
|
|
5056
|
+
const localVarHeaderParameter = {};
|
|
5057
|
+
const localVarQueryParameter = {};
|
|
5058
|
+
let authorization;
|
|
5059
|
+
let xSdkDate;
|
|
5060
|
+
let xProjectId;
|
|
5061
|
+
let xAppUserId;
|
|
5062
|
+
let offset;
|
|
5063
|
+
let limit;
|
|
5064
|
+
let vocabularyType;
|
|
5065
|
+
let language;
|
|
5066
|
+
if (listAsrVocabularyRequest !== null && listAsrVocabularyRequest !== undefined) {
|
|
5067
|
+
if (listAsrVocabularyRequest instanceof ListAsrVocabularyRequest_1.ListAsrVocabularyRequest) {
|
|
5068
|
+
authorization = listAsrVocabularyRequest.authorization;
|
|
5069
|
+
xSdkDate = listAsrVocabularyRequest.xSdkDate;
|
|
5070
|
+
xProjectId = listAsrVocabularyRequest.xProjectId;
|
|
5071
|
+
xAppUserId = listAsrVocabularyRequest.xAppUserId;
|
|
5072
|
+
offset = listAsrVocabularyRequest.offset;
|
|
5073
|
+
limit = listAsrVocabularyRequest.limit;
|
|
5074
|
+
vocabularyType = listAsrVocabularyRequest.vocabularyType;
|
|
5075
|
+
language = listAsrVocabularyRequest.language;
|
|
5076
|
+
}
|
|
5077
|
+
else {
|
|
5078
|
+
authorization = listAsrVocabularyRequest['Authorization'];
|
|
5079
|
+
xSdkDate = listAsrVocabularyRequest['X-Sdk-Date'];
|
|
5080
|
+
xProjectId = listAsrVocabularyRequest['X-Project-Id'];
|
|
5081
|
+
xAppUserId = listAsrVocabularyRequest['X-App-UserId'];
|
|
5082
|
+
offset = listAsrVocabularyRequest['offset'];
|
|
5083
|
+
limit = listAsrVocabularyRequest['limit'];
|
|
5084
|
+
vocabularyType = listAsrVocabularyRequest['vocabulary_type'];
|
|
5085
|
+
language = listAsrVocabularyRequest['language'];
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
if (offset !== null && offset !== undefined) {
|
|
5089
|
+
localVarQueryParameter['offset'] = offset;
|
|
5090
|
+
}
|
|
5091
|
+
if (limit !== null && limit !== undefined) {
|
|
5092
|
+
localVarQueryParameter['limit'] = limit;
|
|
5093
|
+
}
|
|
5094
|
+
if (vocabularyType !== null && vocabularyType !== undefined) {
|
|
5095
|
+
localVarQueryParameter['vocabulary_type'] = vocabularyType;
|
|
5096
|
+
}
|
|
5097
|
+
if (language !== null && language !== undefined) {
|
|
5098
|
+
localVarQueryParameter['language'] = language;
|
|
5099
|
+
}
|
|
5100
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5101
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5102
|
+
}
|
|
5103
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5104
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5105
|
+
}
|
|
5106
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5107
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5108
|
+
}
|
|
5109
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5110
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5111
|
+
}
|
|
5112
|
+
options.queryParams = localVarQueryParameter;
|
|
5113
|
+
options.headers = localVarHeaderParameter;
|
|
5114
|
+
return options;
|
|
5115
|
+
},
|
|
5116
|
+
/**
|
|
5117
|
+
* 该接口用于查询热词表详情。
|
|
5118
|
+
*
|
|
5119
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5120
|
+
*/
|
|
5121
|
+
showAsrVocabulary(showAsrVocabularyRequest) {
|
|
5122
|
+
const options = {
|
|
5123
|
+
method: "GET",
|
|
5124
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
|
|
5125
|
+
contentType: "application/json",
|
|
5126
|
+
queryParams: {},
|
|
5127
|
+
pathParams: {},
|
|
5128
|
+
headers: {}
|
|
5129
|
+
};
|
|
5130
|
+
const localVarHeaderParameter = {};
|
|
5131
|
+
let asrVocabularyId;
|
|
5132
|
+
let authorization;
|
|
5133
|
+
let xSdkDate;
|
|
5134
|
+
let xProjectId;
|
|
5135
|
+
let xAppUserId;
|
|
5136
|
+
if (showAsrVocabularyRequest !== null && showAsrVocabularyRequest !== undefined) {
|
|
5137
|
+
if (showAsrVocabularyRequest instanceof ShowAsrVocabularyRequest_1.ShowAsrVocabularyRequest) {
|
|
5138
|
+
asrVocabularyId = showAsrVocabularyRequest.asrVocabularyId;
|
|
5139
|
+
authorization = showAsrVocabularyRequest.authorization;
|
|
5140
|
+
xSdkDate = showAsrVocabularyRequest.xSdkDate;
|
|
5141
|
+
xProjectId = showAsrVocabularyRequest.xProjectId;
|
|
5142
|
+
xAppUserId = showAsrVocabularyRequest.xAppUserId;
|
|
5143
|
+
}
|
|
5144
|
+
else {
|
|
5145
|
+
asrVocabularyId = showAsrVocabularyRequest['asr_vocabulary_id'];
|
|
5146
|
+
authorization = showAsrVocabularyRequest['Authorization'];
|
|
5147
|
+
xSdkDate = showAsrVocabularyRequest['X-Sdk-Date'];
|
|
5148
|
+
xProjectId = showAsrVocabularyRequest['X-Project-Id'];
|
|
5149
|
+
xAppUserId = showAsrVocabularyRequest['X-App-UserId'];
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5153
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling showAsrVocabulary.');
|
|
5154
|
+
}
|
|
5155
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5156
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5157
|
+
}
|
|
5158
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5159
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5160
|
+
}
|
|
5161
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5162
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5163
|
+
}
|
|
5164
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5165
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5166
|
+
}
|
|
5167
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5168
|
+
options.headers = localVarHeaderParameter;
|
|
5169
|
+
return options;
|
|
5170
|
+
},
|
|
5171
|
+
/**
|
|
5172
|
+
* 该接口用于查询热词表关联详情。
|
|
5173
|
+
*
|
|
5174
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5175
|
+
*/
|
|
5176
|
+
showAsrVocabularyAssociation(showAsrVocabularyAssociationRequest) {
|
|
5177
|
+
const options = {
|
|
5178
|
+
method: "GET",
|
|
5179
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/association/{asr_vocabulary_id}",
|
|
5180
|
+
contentType: "application/json",
|
|
5181
|
+
queryParams: {},
|
|
5182
|
+
pathParams: {},
|
|
5183
|
+
headers: {}
|
|
5184
|
+
};
|
|
5185
|
+
const localVarHeaderParameter = {};
|
|
5186
|
+
const localVarQueryParameter = {};
|
|
5187
|
+
let asrVocabularyId;
|
|
5188
|
+
let authorization;
|
|
5189
|
+
let xSdkDate;
|
|
5190
|
+
let xProjectId;
|
|
5191
|
+
let xAppUserId;
|
|
5192
|
+
let offset;
|
|
5193
|
+
let limit;
|
|
5194
|
+
if (showAsrVocabularyAssociationRequest !== null && showAsrVocabularyAssociationRequest !== undefined) {
|
|
5195
|
+
if (showAsrVocabularyAssociationRequest instanceof ShowAsrVocabularyAssociationRequest_1.ShowAsrVocabularyAssociationRequest) {
|
|
5196
|
+
asrVocabularyId = showAsrVocabularyAssociationRequest.asrVocabularyId;
|
|
5197
|
+
authorization = showAsrVocabularyAssociationRequest.authorization;
|
|
5198
|
+
xSdkDate = showAsrVocabularyAssociationRequest.xSdkDate;
|
|
5199
|
+
xProjectId = showAsrVocabularyAssociationRequest.xProjectId;
|
|
5200
|
+
xAppUserId = showAsrVocabularyAssociationRequest.xAppUserId;
|
|
5201
|
+
offset = showAsrVocabularyAssociationRequest.offset;
|
|
5202
|
+
limit = showAsrVocabularyAssociationRequest.limit;
|
|
5203
|
+
}
|
|
5204
|
+
else {
|
|
5205
|
+
asrVocabularyId = showAsrVocabularyAssociationRequest['asr_vocabulary_id'];
|
|
5206
|
+
authorization = showAsrVocabularyAssociationRequest['Authorization'];
|
|
5207
|
+
xSdkDate = showAsrVocabularyAssociationRequest['X-Sdk-Date'];
|
|
5208
|
+
xProjectId = showAsrVocabularyAssociationRequest['X-Project-Id'];
|
|
5209
|
+
xAppUserId = showAsrVocabularyAssociationRequest['X-App-UserId'];
|
|
5210
|
+
offset = showAsrVocabularyAssociationRequest['offset'];
|
|
5211
|
+
limit = showAsrVocabularyAssociationRequest['limit'];
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5215
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling showAsrVocabularyAssociation.');
|
|
5216
|
+
}
|
|
5217
|
+
if (offset !== null && offset !== undefined) {
|
|
5218
|
+
localVarQueryParameter['offset'] = offset;
|
|
5219
|
+
}
|
|
5220
|
+
if (limit !== null && limit !== undefined) {
|
|
5221
|
+
localVarQueryParameter['limit'] = limit;
|
|
5222
|
+
}
|
|
5223
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5224
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5225
|
+
}
|
|
5226
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5227
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5228
|
+
}
|
|
5229
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5230
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5231
|
+
}
|
|
5232
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5233
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5234
|
+
}
|
|
5235
|
+
options.queryParams = localVarQueryParameter;
|
|
5236
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5237
|
+
options.headers = localVarHeaderParameter;
|
|
5238
|
+
return options;
|
|
5239
|
+
},
|
|
5240
|
+
/**
|
|
5241
|
+
* 该接口用于修改热词表。
|
|
5242
|
+
*
|
|
5243
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5244
|
+
*/
|
|
5245
|
+
updateAsrVocabulary(updateAsrVocabularyRequest) {
|
|
5246
|
+
const options = {
|
|
5247
|
+
method: "PUT",
|
|
5248
|
+
url: "/v1/{project_id}/digital-human-chat/asr-vocabulary/{asr_vocabulary_id}",
|
|
5249
|
+
contentType: "application/json",
|
|
5250
|
+
queryParams: {},
|
|
5251
|
+
pathParams: {},
|
|
5252
|
+
headers: {},
|
|
5253
|
+
data: {}
|
|
5254
|
+
};
|
|
5255
|
+
const localVarHeaderParameter = {};
|
|
5256
|
+
let body;
|
|
5257
|
+
let asrVocabularyId;
|
|
5258
|
+
let authorization;
|
|
5259
|
+
let xSdkDate;
|
|
5260
|
+
let xProjectId;
|
|
5261
|
+
let xAppUserId;
|
|
5262
|
+
if (updateAsrVocabularyRequest !== null && updateAsrVocabularyRequest !== undefined) {
|
|
5263
|
+
if (updateAsrVocabularyRequest instanceof UpdateAsrVocabularyRequest_1.UpdateAsrVocabularyRequest) {
|
|
5264
|
+
asrVocabularyId = updateAsrVocabularyRequest.asrVocabularyId;
|
|
5265
|
+
body = updateAsrVocabularyRequest.body;
|
|
5266
|
+
authorization = updateAsrVocabularyRequest.authorization;
|
|
5267
|
+
xSdkDate = updateAsrVocabularyRequest.xSdkDate;
|
|
5268
|
+
xProjectId = updateAsrVocabularyRequest.xProjectId;
|
|
5269
|
+
xAppUserId = updateAsrVocabularyRequest.xAppUserId;
|
|
5270
|
+
}
|
|
5271
|
+
else {
|
|
5272
|
+
asrVocabularyId = updateAsrVocabularyRequest['asr_vocabulary_id'];
|
|
5273
|
+
body = updateAsrVocabularyRequest['body'];
|
|
5274
|
+
authorization = updateAsrVocabularyRequest['Authorization'];
|
|
5275
|
+
xSdkDate = updateAsrVocabularyRequest['X-Sdk-Date'];
|
|
5276
|
+
xProjectId = updateAsrVocabularyRequest['X-Project-Id'];
|
|
5277
|
+
xAppUserId = updateAsrVocabularyRequest['X-App-UserId'];
|
|
5278
|
+
}
|
|
5279
|
+
}
|
|
5280
|
+
if (asrVocabularyId === null || asrVocabularyId === undefined) {
|
|
5281
|
+
throw new RequiredError('asrVocabularyId', 'Required parameter asrVocabularyId was null or undefined when calling updateAsrVocabulary.');
|
|
5282
|
+
}
|
|
5283
|
+
if (body === null || body === undefined) {
|
|
5284
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
5285
|
+
}
|
|
5286
|
+
if (authorization !== undefined && authorization !== null) {
|
|
5287
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5288
|
+
}
|
|
5289
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
5290
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
5291
|
+
}
|
|
5292
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
5293
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
5294
|
+
}
|
|
5295
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
5296
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
5297
|
+
}
|
|
5298
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5299
|
+
options.data = body !== undefined ? body : {};
|
|
5300
|
+
options.pathParams = { 'asr_vocabulary_id': asrVocabularyId, };
|
|
5301
|
+
options.headers = localVarHeaderParameter;
|
|
5302
|
+
return options;
|
|
5303
|
+
},
|
|
4798
5304
|
/**
|
|
4799
5305
|
* 该接口用于创建对话链接。
|
|
4800
5306
|
*
|