@huaweicloud/huaweicloud-sdk-metastudio 3.1.124 → 3.1.126
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 +250 -92
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +840 -478
- package/v1/MetaStudioClient.js.map +1 -1
- package/v1/model/AccessTypeEnum.d.ts +4 -0
- package/v1/model/AccessTypeEnum.d.ts.map +1 -0
- package/v1/model/AccessTypeEnum.js +9 -0
- package/v1/model/AccessTypeEnum.js.map +1 -0
- package/v1/model/ChardMode.d.ts +4 -0
- package/v1/model/ChardMode.d.ts.map +1 -0
- package/v1/model/ChardMode.js +9 -0
- package/v1/model/ChardMode.js.map +1 -0
- package/v1/model/CommitJobReq.d.ts +8 -0
- package/v1/model/CommitJobReq.d.ts.map +1 -1
- package/v1/model/CommitJobReq.js +20 -0
- package/v1/model/CommitJobReq.js.map +1 -1
- package/v1/model/Create2dModelTrainingJobReq.d.ts +0 -4
- package/v1/model/Create2dModelTrainingJobReq.d.ts.map +1 -1
- package/v1/model/Create2dModelTrainingJobReq.js +0 -10
- package/v1/model/Create2dModelTrainingJobReq.js.map +1 -1
- package/v1/model/CreateLivePlatformReq.d.ts +16 -0
- package/v1/model/CreateLivePlatformReq.d.ts.map +1 -0
- package/v1/model/CreateLivePlatformReq.js +36 -0
- package/v1/model/CreateLivePlatformReq.js.map +1 -0
- package/v1/model/CreateLivePlatformRequest.d.ts +23 -0
- package/v1/model/CreateLivePlatformRequest.d.ts.map +1 -0
- package/v1/model/{CreateBeautyPreviewJobRequest.js → CreateLivePlatformRequest.js} +4 -4
- package/v1/model/CreateLivePlatformRequest.js.map +1 -0
- package/v1/model/CreateLivePlatformResponse.d.ts +13 -0
- package/v1/model/CreateLivePlatformResponse.d.ts.map +1 -0
- package/v1/model/CreateLivePlatformResponse.js +31 -0
- package/v1/model/CreateLivePlatformResponse.js.map +1 -0
- package/v1/model/CreateTrainingJobReq.d.ts +8 -0
- package/v1/model/CreateTrainingJobReq.d.ts.map +1 -1
- package/v1/model/CreateTrainingJobReq.js +20 -0
- package/v1/model/CreateTrainingJobReq.js.map +1 -1
- package/v1/model/CustomPlatformAuthConfig.d.ts +6 -0
- package/v1/model/CustomPlatformAuthConfig.d.ts.map +1 -0
- package/v1/model/CustomPlatformAuthConfig.js +14 -0
- package/v1/model/CustomPlatformAuthConfig.js.map +1 -0
- package/v1/model/DeleteLivePlatformRequest.d.ts +24 -0
- package/v1/model/DeleteLivePlatformRequest.d.ts.map +1 -0
- package/v1/model/{StartBeautyPreviewJobRequest.js → DeleteLivePlatformRequest.js} +12 -12
- package/v1/model/DeleteLivePlatformRequest.js.map +1 -0
- package/v1/model/{StartBeautyPreviewJobResponse.d.ts → DeleteLivePlatformResponse.d.ts} +3 -3
- package/v1/model/DeleteLivePlatformResponse.d.ts.map +1 -0
- package/v1/model/{StartBeautyPreviewJobResponse.js → DeleteLivePlatformResponse.js} +4 -4
- package/v1/model/DeleteLivePlatformResponse.js.map +1 -0
- package/v1/model/ListLivePlatformProductsRequest.d.ts +28 -0
- package/v1/model/ListLivePlatformProductsRequest.d.ts.map +1 -0
- package/v1/model/ListLivePlatformProductsRequest.js +69 -0
- package/v1/model/ListLivePlatformProductsRequest.js.map +1 -0
- package/v1/model/ListLivePlatformProductsResponse.d.ts +14 -0
- package/v1/model/ListLivePlatformProductsResponse.d.ts.map +1 -0
- package/v1/model/ListLivePlatformProductsResponse.js +29 -0
- package/v1/model/ListLivePlatformProductsResponse.js.map +1 -0
- package/v1/model/ListLivePlatformsRequest.d.ts +24 -0
- package/v1/model/ListLivePlatformsRequest.d.ts.map +1 -0
- package/v1/model/ListLivePlatformsRequest.js +57 -0
- package/v1/model/ListLivePlatformsRequest.js.map +1 -0
- package/v1/model/ListLivePlatformsResponse.d.ts +14 -0
- package/v1/model/ListLivePlatformsResponse.d.ts.map +1 -0
- package/v1/model/ListLivePlatformsResponse.js +31 -0
- package/v1/model/ListLivePlatformsResponse.js.map +1 -0
- package/v1/model/ListVoiceTrainingJobRequest.d.ts +4 -0
- package/v1/model/ListVoiceTrainingJobRequest.d.ts.map +1 -1
- package/v1/model/ListVoiceTrainingJobRequest.js +10 -0
- package/v1/model/ListVoiceTrainingJobRequest.js.map +1 -1
- package/v1/model/LivePlatformInfo.d.ts +30 -0
- package/v1/model/LivePlatformInfo.d.ts.map +1 -0
- package/v1/model/LivePlatformInfo.js +63 -0
- package/v1/model/LivePlatformInfo.js.map +1 -0
- package/v1/model/PlatformAuthorizationInfo.d.ts +26 -0
- package/v1/model/PlatformAuthorizationInfo.d.ts.map +1 -0
- package/v1/model/PlatformAuthorizationInfo.js +52 -0
- package/v1/model/PlatformAuthorizationInfo.js.map +1 -0
- package/v1/model/PlatformProductInfo.d.ts +12 -0
- package/v1/model/PlatformProductInfo.d.ts.map +1 -0
- package/v1/model/PlatformProductInfo.js +29 -0
- package/v1/model/PlatformProductInfo.js.map +1 -0
- package/v1/model/SetJobBatchNameReq.d.ts +12 -0
- package/v1/model/SetJobBatchNameReq.d.ts.map +1 -0
- package/v1/model/SetJobBatchNameReq.js +29 -0
- package/v1/model/SetJobBatchNameReq.js.map +1 -0
- package/v1/model/SetJobBatchNameRequest.d.ts +7 -0
- package/v1/model/SetJobBatchNameRequest.d.ts.map +1 -0
- package/v1/model/SetJobBatchNameRequest.js +13 -0
- package/v1/model/SetJobBatchNameRequest.js.map +1 -0
- package/v1/model/SetJobBatchNameResponse.d.ts +5 -0
- package/v1/model/SetJobBatchNameResponse.d.ts.map +1 -0
- package/v1/model/SetJobBatchNameResponse.js +11 -0
- package/v1/model/SetJobBatchNameResponse.js.map +1 -0
- package/v1/model/Show2dModelTrainingJobResponse.d.ts +0 -4
- package/v1/model/Show2dModelTrainingJobResponse.d.ts.map +1 -1
- package/v1/model/Show2dModelTrainingJobResponse.js +0 -10
- package/v1/model/Show2dModelTrainingJobResponse.js.map +1 -1
- package/v1/model/ShowLivePlatformRequest.d.ts +24 -0
- package/v1/model/ShowLivePlatformRequest.d.ts.map +1 -0
- package/v1/model/{ShowBeautyPreviewJobRequest.js → ShowLivePlatformRequest.js} +12 -12
- package/v1/model/ShowLivePlatformRequest.js.map +1 -0
- package/v1/model/ShowLivePlatformResponse.d.ts +35 -0
- package/v1/model/ShowLivePlatformResponse.d.ts.map +1 -0
- package/v1/model/ShowLivePlatformResponse.js +75 -0
- package/v1/model/ShowLivePlatformResponse.js.map +1 -0
- package/v1/model/ShowTenantDurationCfgRequest.d.ts +4 -0
- package/v1/model/ShowTenantDurationCfgRequest.d.ts.map +1 -0
- package/v1/model/ShowTenantDurationCfgRequest.js +9 -0
- package/v1/model/ShowTenantDurationCfgRequest.js.map +1 -0
- package/v1/model/ShowTenantDurationCfgResponse.d.ts +81 -0
- package/v1/model/ShowTenantDurationCfgResponse.d.ts.map +1 -0
- package/v1/model/ShowTenantDurationCfgResponse.js +201 -0
- package/v1/model/ShowTenantDurationCfgResponse.js.map +1 -0
- package/v1/model/ShowVoiceTrainingJobResponse.d.ts +5 -0
- package/v1/model/ShowVoiceTrainingJobResponse.d.ts.map +1 -1
- package/v1/model/ShowVoiceTrainingJobResponse.js +10 -0
- package/v1/model/ShowVoiceTrainingJobResponse.js.map +1 -1
- package/v1/model/StandardPlatformApiConfig.d.ts +18 -0
- package/v1/model/StandardPlatformApiConfig.d.ts.map +1 -0
- package/v1/model/StandardPlatformApiConfig.js +34 -0
- package/v1/model/StandardPlatformApiConfig.js.map +1 -0
- package/v1/model/TrainingJobInfo.d.ts +5 -0
- package/v1/model/TrainingJobInfo.d.ts.map +1 -1
- package/v1/model/TrainingJobInfo.js +10 -0
- package/v1/model/TrainingJobInfo.js.map +1 -1
- package/v1/model/Update2dModelTrainingJobReq.d.ts +0 -4
- package/v1/model/Update2dModelTrainingJobReq.d.ts.map +1 -1
- package/v1/model/Update2dModelTrainingJobReq.js +0 -10
- package/v1/model/Update2dModelTrainingJobReq.js.map +1 -1
- package/v1/model/UpdateLivePlatformRequest.d.ts +27 -0
- package/v1/model/UpdateLivePlatformRequest.d.ts.map +1 -0
- package/v1/model/UpdateLivePlatformRequest.js +64 -0
- package/v1/model/UpdateLivePlatformRequest.js.map +1 -0
- package/v1/model/UpdateLivePlatformResponse.d.ts +13 -0
- package/v1/model/UpdateLivePlatformResponse.d.ts.map +1 -0
- package/v1/model/UpdateLivePlatformResponse.js +31 -0
- package/v1/model/UpdateLivePlatformResponse.js.map +1 -0
- package/v1/model/VoiceLanguage.d.ts +4 -0
- package/v1/model/VoiceLanguage.d.ts.map +1 -0
- package/v1/model/VoiceLanguage.js +9 -0
- package/v1/model/VoiceLanguage.js.map +1 -0
- package/v1/model/VoiceModelAssetMeta.d.ts +3 -3
- package/v1/model/VoiceModelAssetMeta.d.ts.map +1 -1
- package/v1/model/VoiceModelAssetMeta.js.map +1 -1
- package/v1/model/VoiceTrainingAllocatedResource.d.ts +17 -0
- package/v1/model/VoiceTrainingAllocatedResource.d.ts.map +1 -0
- package/v1/model/VoiceTrainingAllocatedResource.js +39 -0
- package/v1/model/VoiceTrainingAllocatedResource.js.map +1 -0
- package/v1/public-api.d.ts +27 -8
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +27 -8
- package/v1/public-api.js.map +1 -1
- package/v1/model/CreateBeautyPreviewJobReq.d.ts +0 -8
- package/v1/model/CreateBeautyPreviewJobReq.d.ts.map +0 -1
- package/v1/model/CreateBeautyPreviewJobReq.js +0 -18
- package/v1/model/CreateBeautyPreviewJobReq.js.map +0 -1
- package/v1/model/CreateBeautyPreviewJobRequest.d.ts +0 -23
- package/v1/model/CreateBeautyPreviewJobRequest.d.ts.map +0 -1
- package/v1/model/CreateBeautyPreviewJobRequest.js.map +0 -1
- package/v1/model/CreateBeautyPreviewJobResponse.d.ts +0 -17
- package/v1/model/CreateBeautyPreviewJobResponse.d.ts.map +0 -1
- package/v1/model/CreateBeautyPreviewJobResponse.js +0 -41
- package/v1/model/CreateBeautyPreviewJobResponse.js.map +0 -1
- package/v1/model/Language.d.ts +0 -4
- package/v1/model/Language.d.ts.map +0 -1
- package/v1/model/Language.js +0 -9
- package/v1/model/Language.js.map +0 -1
- package/v1/model/ShowBeautyPreviewJobRequest.d.ts +0 -24
- package/v1/model/ShowBeautyPreviewJobRequest.d.ts.map +0 -1
- package/v1/model/ShowBeautyPreviewJobRequest.js.map +0 -1
- package/v1/model/ShowBeautyPreviewJobResponse.d.ts +0 -26
- package/v1/model/ShowBeautyPreviewJobResponse.d.ts.map +0 -1
- package/v1/model/ShowBeautyPreviewJobResponse.js +0 -47
- package/v1/model/ShowBeautyPreviewJobResponse.js.map +0 -1
- package/v1/model/StartBeautyPreviewJobRequest.d.ts +0 -24
- package/v1/model/StartBeautyPreviewJobRequest.d.ts.map +0 -1
- package/v1/model/StartBeautyPreviewJobRequest.js.map +0 -1
- package/v1/model/StartBeautyPreviewJobResponse.d.ts.map +0 -1
- package/v1/model/StartBeautyPreviewJobResponse.js.map +0 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -21,7 +21,6 @@ const CreateAgencyWithRoleTypeRequest_1 = require("./model/CreateAgencyWithRoleT
|
|
|
21
21
|
const CreateAssetByReplicationInfoRequest_1 = require("./model/CreateAssetByReplicationInfoRequest");
|
|
22
22
|
const CreateAsyncTtsJobRequest_1 = require("./model/CreateAsyncTtsJobRequest");
|
|
23
23
|
const CreateBatchKnowledgeQuestionRequest_1 = require("./model/CreateBatchKnowledgeQuestionRequest");
|
|
24
|
-
const CreateBeautyPreviewJobRequest_1 = require("./model/CreateBeautyPreviewJobRequest");
|
|
25
24
|
const CreateDialogUrlRequest_1 = require("./model/CreateDialogUrlRequest");
|
|
26
25
|
const CreateDigitalAssetRequest_1 = require("./model/CreateDigitalAssetRequest");
|
|
27
26
|
const CreateDigitalHumanBusinessCardRequest_1 = require("./model/CreateDigitalHumanBusinessCardRequest");
|
|
@@ -35,6 +34,7 @@ const CreateKnowledgeIntentRequest_1 = require("./model/CreateKnowledgeIntentReq
|
|
|
35
34
|
const CreateKnowledgeQuestionRequest_1 = require("./model/CreateKnowledgeQuestionRequest");
|
|
36
35
|
const CreateKnowledgeSkillRequest_1 = require("./model/CreateKnowledgeSkillRequest");
|
|
37
36
|
const CreateLargeFileRequest_1 = require("./model/CreateLargeFileRequest");
|
|
37
|
+
const CreateLivePlatformRequest_1 = require("./model/CreateLivePlatformRequest");
|
|
38
38
|
const CreateOnceCodeRequest_1 = require("./model/CreateOnceCodeRequest");
|
|
39
39
|
const CreatePacifyWordsRequest_1 = require("./model/CreatePacifyWordsRequest");
|
|
40
40
|
const CreatePhotoDetectionRequest_1 = require("./model/CreatePhotoDetectionRequest");
|
|
@@ -66,6 +66,7 @@ const DeleteInteractionRuleGroupRequest_1 = require("./model/DeleteInteractionRu
|
|
|
66
66
|
const DeleteKnowledgeIntentRequest_1 = require("./model/DeleteKnowledgeIntentRequest");
|
|
67
67
|
const DeleteKnowledgeQuestionRequest_1 = require("./model/DeleteKnowledgeQuestionRequest");
|
|
68
68
|
const DeleteKnowledgeSkillRequest_1 = require("./model/DeleteKnowledgeSkillRequest");
|
|
69
|
+
const DeleteLivePlatformRequest_1 = require("./model/DeleteLivePlatformRequest");
|
|
69
70
|
const DeletePacifyWordsRequest_1 = require("./model/DeletePacifyWordsRequest");
|
|
70
71
|
const DeleteProductRequest_1 = require("./model/DeleteProductRequest");
|
|
71
72
|
const DeleteRobotRequest_1 = require("./model/DeleteRobotRequest");
|
|
@@ -92,6 +93,8 @@ const ListJobOperationLogRequest_1 = require("./model/ListJobOperationLogRequest
|
|
|
92
93
|
const ListKnowledgeIntentRequest_1 = require("./model/ListKnowledgeIntentRequest");
|
|
93
94
|
const ListKnowledgeQuestionRequest_1 = require("./model/ListKnowledgeQuestionRequest");
|
|
94
95
|
const ListKnowledgeSkillRequest_1 = require("./model/ListKnowledgeSkillRequest");
|
|
96
|
+
const ListLivePlatformProductsRequest_1 = require("./model/ListLivePlatformProductsRequest");
|
|
97
|
+
const ListLivePlatformsRequest_1 = require("./model/ListLivePlatformsRequest");
|
|
95
98
|
const ListPacifyWordsRequest_1 = require("./model/ListPacifyWordsRequest");
|
|
96
99
|
const ListPictureModelingJobsRequest_1 = require("./model/ListPictureModelingJobsRequest");
|
|
97
100
|
const ListProductsRequest_1 = require("./model/ListProductsRequest");
|
|
@@ -111,6 +114,7 @@ const ListWelcomeSpeechRequest_1 = require("./model/ListWelcomeSpeechRequest");
|
|
|
111
114
|
const LiveEventReportRequest_1 = require("./model/LiveEventReportRequest");
|
|
112
115
|
const ResetActiveCodeRequest_1 = require("./model/ResetActiveCodeRequest");
|
|
113
116
|
const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
|
|
117
|
+
const SetJobBatchNameRequest_1 = require("./model/SetJobBatchNameRequest");
|
|
114
118
|
const SetProductAssetRequest_1 = require("./model/SetProductAssetRequest");
|
|
115
119
|
const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
|
|
116
120
|
const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
|
|
@@ -119,7 +123,6 @@ const ShowAgencyRequest_1 = require("./model/ShowAgencyRequest");
|
|
|
119
123
|
const ShowAssetReplicationInfoRequest_1 = require("./model/ShowAssetReplicationInfoRequest");
|
|
120
124
|
const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
|
|
121
125
|
const ShowAsyncTtsJobRequest_1 = require("./model/ShowAsyncTtsJobRequest");
|
|
122
|
-
const ShowBeautyPreviewJobRequest_1 = require("./model/ShowBeautyPreviewJobRequest");
|
|
123
126
|
const ShowDigitalHumanBusinessCardRequest_1 = require("./model/ShowDigitalHumanBusinessCardRequest");
|
|
124
127
|
const ShowHotQuestionRequest_1 = require("./model/ShowHotQuestionRequest");
|
|
125
128
|
const ShowHotWordsRequest_1 = require("./model/ShowHotWordsRequest");
|
|
@@ -129,6 +132,7 @@ const ShowJobUploadingAddressRequest_1 = require("./model/ShowJobUploadingAddres
|
|
|
129
132
|
const ShowKnowledgeIntentRequest_1 = require("./model/ShowKnowledgeIntentRequest");
|
|
130
133
|
const ShowKnowledgeQuestionRequest_1 = require("./model/ShowKnowledgeQuestionRequest");
|
|
131
134
|
const ShowKnowledgeSkillRequest_1 = require("./model/ShowKnowledgeSkillRequest");
|
|
135
|
+
const ShowLivePlatformRequest_1 = require("./model/ShowLivePlatformRequest");
|
|
132
136
|
const ShowPacifyWordsIntentRequest_1 = require("./model/ShowPacifyWordsIntentRequest");
|
|
133
137
|
const ShowPacifyWordsRequest_1 = require("./model/ShowPacifyWordsRequest");
|
|
134
138
|
const ShowPacifyWordsSwitchRequest_1 = require("./model/ShowPacifyWordsSwitchRequest");
|
|
@@ -151,7 +155,6 @@ const ShowVideoScriptRequest_1 = require("./model/ShowVideoScriptRequest");
|
|
|
151
155
|
const ShowVoiceTrainingJobRequest_1 = require("./model/ShowVoiceTrainingJobRequest");
|
|
152
156
|
const ShowWelcomeSpeechRequest_1 = require("./model/ShowWelcomeSpeechRequest");
|
|
153
157
|
const ShowWelcomeSpeechSwitchRequest_1 = require("./model/ShowWelcomeSpeechSwitchRequest");
|
|
154
|
-
const StartBeautyPreviewJobRequest_1 = require("./model/StartBeautyPreviewJobRequest");
|
|
155
158
|
const StartSmartChatJobRequest_1 = require("./model/StartSmartChatJobRequest");
|
|
156
159
|
const StartSmartLiveRequest_1 = require("./model/StartSmartLiveRequest");
|
|
157
160
|
const StopSmartChatJobRequest_1 = require("./model/StopSmartChatJobRequest");
|
|
@@ -169,6 +172,7 @@ const UpdateInteractionRuleGroupRequest_1 = require("./model/UpdateInteractionRu
|
|
|
169
172
|
const UpdateKnowledgeIntentRequest_1 = require("./model/UpdateKnowledgeIntentRequest");
|
|
170
173
|
const UpdateKnowledgeQuestionRequest_1 = require("./model/UpdateKnowledgeQuestionRequest");
|
|
171
174
|
const UpdateKnowledgeSkillRequest_1 = require("./model/UpdateKnowledgeSkillRequest");
|
|
175
|
+
const UpdateLivePlatformRequest_1 = require("./model/UpdateLivePlatformRequest");
|
|
172
176
|
const UpdatePacifyWordsRequest_1 = require("./model/UpdatePacifyWordsRequest");
|
|
173
177
|
const UpdatePacifyWordsSwitchRequest_1 = require("./model/UpdatePacifyWordsSwitchRequest");
|
|
174
178
|
const UpdatePacifyWordsTriggerTimeRequest_1 = require("./model/UpdatePacifyWordsTriggerTimeRequest");
|
|
@@ -182,7 +186,8 @@ const UpdateWelcomeSpeechSwitchRequest_1 = require("./model/UpdateWelcomeSpeechS
|
|
|
182
186
|
const ValidateRobotRequest_1 = require("./model/ValidateRobotRequest");
|
|
183
187
|
class MetaStudioClient {
|
|
184
188
|
static newBuilder() {
|
|
185
|
-
|
|
189
|
+
let client = new ClientBuilder_1.ClientBuilder(newClient);
|
|
190
|
+
return client;
|
|
186
191
|
}
|
|
187
192
|
constructor(client) {
|
|
188
193
|
this.hcClient = client;
|
|
@@ -362,66 +367,6 @@ class MetaStudioClient {
|
|
|
362
367
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
363
368
|
return this.hcClient.sendRequest(options);
|
|
364
369
|
}
|
|
365
|
-
/**
|
|
366
|
-
* 该接口用于创建美白预览任务。
|
|
367
|
-
*
|
|
368
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
369
|
-
*
|
|
370
|
-
* @summary 创建美白预览任务
|
|
371
|
-
* @param {CreateBeautyPreviewJobReq} createBeautyPreviewJobRequestBody 创建分身数字人模型训练任务请求。
|
|
372
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
373
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
374
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
375
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
376
|
-
* @param {*} [options] Override http request option.
|
|
377
|
-
* @throws {RequiredError}
|
|
378
|
-
*/
|
|
379
|
-
createBeautyPreviewJob(createBeautyPreviewJobRequest) {
|
|
380
|
-
const options = (0, exports.ParamCreater)().createBeautyPreviewJob(createBeautyPreviewJobRequest);
|
|
381
|
-
// @ts-ignore
|
|
382
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
383
|
-
return this.hcClient.sendRequest(options);
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* 该接口用于查询美白预览任务。
|
|
387
|
-
*
|
|
388
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
389
|
-
*
|
|
390
|
-
* @summary 查询美白预览任务
|
|
391
|
-
* @param {string} jobId 任务ID。
|
|
392
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
393
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
394
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
395
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
396
|
-
* @param {*} [options] Override http request option.
|
|
397
|
-
* @throws {RequiredError}
|
|
398
|
-
*/
|
|
399
|
-
showBeautyPreviewJob(showBeautyPreviewJobRequest) {
|
|
400
|
-
const options = (0, exports.ParamCreater)().showBeautyPreviewJob(showBeautyPreviewJobRequest);
|
|
401
|
-
// @ts-ignore
|
|
402
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
403
|
-
return this.hcClient.sendRequest(options);
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* 该接口用于启动美白预览任务。
|
|
407
|
-
*
|
|
408
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
409
|
-
*
|
|
410
|
-
* @summary 启动美白预览任务
|
|
411
|
-
* @param {string} jobId 任务ID。
|
|
412
|
-
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
413
|
-
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
414
|
-
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
415
|
-
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
416
|
-
* @param {*} [options] Override http request option.
|
|
417
|
-
* @throws {RequiredError}
|
|
418
|
-
*/
|
|
419
|
-
startBeautyPreviewJob(startBeautyPreviewJobRequest) {
|
|
420
|
-
const options = (0, exports.ParamCreater)().startBeautyPreviewJob(startBeautyPreviewJobRequest);
|
|
421
|
-
// @ts-ignore
|
|
422
|
-
options['responseHeaders'] = ['X-Request-Id'];
|
|
423
|
-
return this.hcClient.sendRequest(options);
|
|
424
|
-
}
|
|
425
370
|
/**
|
|
426
371
|
* 该接口用于创建对话链接。
|
|
427
372
|
*
|
|
@@ -1747,6 +1692,130 @@ class MetaStudioClient {
|
|
|
1747
1692
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
1748
1693
|
return this.hcClient.sendRequest(options);
|
|
1749
1694
|
}
|
|
1695
|
+
/**
|
|
1696
|
+
* 该接口用于创建第三方直播平台。
|
|
1697
|
+
*
|
|
1698
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1699
|
+
*
|
|
1700
|
+
* @summary 创建第三方直播平台
|
|
1701
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1702
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1703
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1704
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1705
|
+
* @param {CreateLivePlatformReq} [createLivePlatformRequestBody] 直播事件回调接口
|
|
1706
|
+
* @param {*} [options] Override http request option.
|
|
1707
|
+
* @throws {RequiredError}
|
|
1708
|
+
*/
|
|
1709
|
+
createLivePlatform(createLivePlatformRequest) {
|
|
1710
|
+
const options = (0, exports.ParamCreater)().createLivePlatform(createLivePlatformRequest);
|
|
1711
|
+
// @ts-ignore
|
|
1712
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1713
|
+
return this.hcClient.sendRequest(options);
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* 该接口用于删除第三方直播平台信息。
|
|
1717
|
+
*
|
|
1718
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1719
|
+
*
|
|
1720
|
+
* @summary 删除第三方直播平台信息
|
|
1721
|
+
* @param {string} platformId 直播平台ID。
|
|
1722
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1723
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1724
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1725
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1726
|
+
* @param {*} [options] Override http request option.
|
|
1727
|
+
* @throws {RequiredError}
|
|
1728
|
+
*/
|
|
1729
|
+
deleteLivePlatform(deleteLivePlatformRequest) {
|
|
1730
|
+
const options = (0, exports.ParamCreater)().deleteLivePlatform(deleteLivePlatformRequest);
|
|
1731
|
+
// @ts-ignore
|
|
1732
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1733
|
+
return this.hcClient.sendRequest(options);
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* 该接口用于查询第三方直播平台商品列表。
|
|
1737
|
+
*
|
|
1738
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1739
|
+
*
|
|
1740
|
+
* @summary 查询第三方直播平台商品列表
|
|
1741
|
+
* @param {string} platformId 第三方直播平台id
|
|
1742
|
+
* @param {string} liveId 第三方直播平台直播Id。
|
|
1743
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1744
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1745
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1746
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1747
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
1748
|
+
* @param {*} [options] Override http request option.
|
|
1749
|
+
* @throws {RequiredError}
|
|
1750
|
+
*/
|
|
1751
|
+
listLivePlatformProducts(listLivePlatformProductsRequest) {
|
|
1752
|
+
const options = (0, exports.ParamCreater)().listLivePlatformProducts(listLivePlatformProductsRequest);
|
|
1753
|
+
// @ts-ignore
|
|
1754
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1755
|
+
return this.hcClient.sendRequest(options);
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* 该接口用于查询直播平台列表。
|
|
1759
|
+
*
|
|
1760
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1761
|
+
*
|
|
1762
|
+
* @summary 查询直播平台列表
|
|
1763
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1764
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1765
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1766
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1767
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
1768
|
+
* @param {string} [accessType] 平台对接类型。
|
|
1769
|
+
* @param {*} [options] Override http request option.
|
|
1770
|
+
* @throws {RequiredError}
|
|
1771
|
+
*/
|
|
1772
|
+
listLivePlatforms(listLivePlatformsRequest) {
|
|
1773
|
+
const options = (0, exports.ParamCreater)().listLivePlatforms(listLivePlatformsRequest);
|
|
1774
|
+
// @ts-ignore
|
|
1775
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1776
|
+
return this.hcClient.sendRequest(options);
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* 该接口用于查询第三方直播平台信息。
|
|
1780
|
+
*
|
|
1781
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1782
|
+
*
|
|
1783
|
+
* @summary 查询第三方直播平台信息
|
|
1784
|
+
* @param {string} platformId 直播平台ID。
|
|
1785
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1786
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1787
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1788
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1789
|
+
* @param {*} [options] Override http request option.
|
|
1790
|
+
* @throws {RequiredError}
|
|
1791
|
+
*/
|
|
1792
|
+
showLivePlatform(showLivePlatformRequest) {
|
|
1793
|
+
const options = (0, exports.ParamCreater)().showLivePlatform(showLivePlatformRequest);
|
|
1794
|
+
// @ts-ignore
|
|
1795
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1796
|
+
return this.hcClient.sendRequest(options);
|
|
1797
|
+
}
|
|
1798
|
+
/**
|
|
1799
|
+
* 该接口用于更新第三方直播平台信息。
|
|
1800
|
+
*
|
|
1801
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1802
|
+
*
|
|
1803
|
+
* @summary 更新第三方直播平台信息
|
|
1804
|
+
* @param {string} platformId 直播平台ID。
|
|
1805
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1806
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1807
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1808
|
+
* @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。
|
|
1809
|
+
* @param {CreateLivePlatformReq} [createLivePlatformRequestBody] 直播事件回调接口
|
|
1810
|
+
* @param {*} [options] Override http request option.
|
|
1811
|
+
* @throws {RequiredError}
|
|
1812
|
+
*/
|
|
1813
|
+
updateLivePlatform(updateLivePlatformRequest) {
|
|
1814
|
+
const options = (0, exports.ParamCreater)().updateLivePlatform(updateLivePlatformRequest);
|
|
1815
|
+
// @ts-ignore
|
|
1816
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1817
|
+
return this.hcClient.sendRequest(options);
|
|
1818
|
+
}
|
|
1750
1819
|
/**
|
|
1751
1820
|
* 该接口用于创建一次性鉴权码,有效期5分钟,鉴权码只能使用一次,每次使用后需要重新获取。
|
|
1752
1821
|
* > 接口只能通过第三方后台调用,不能在浏览器前台直接调用,否则会有跨域问题。
|
|
@@ -2122,7 +2191,7 @@ class MetaStudioClient {
|
|
|
2122
2191
|
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
2123
2192
|
* @param {string} [name] 按名称模糊查询。
|
|
2124
2193
|
* @param {string} [tag] 按标签模糊查询。
|
|
2125
|
-
* @param {string} [state]
|
|
2194
|
+
* @param {string} [state] 按状态查询,多状态使用英文逗号分隔。
|
|
2126
2195
|
* @param {*} [options] Override http request option.
|
|
2127
2196
|
* @throws {RequiredError}
|
|
2128
2197
|
*/
|
|
@@ -3088,6 +3157,7 @@ class MetaStudioClient {
|
|
|
3088
3157
|
* @param {string} [voiceName] 声音名称。
|
|
3089
3158
|
* @param {string} [tag] 任务标签。
|
|
3090
3159
|
* @param {string} [jobType] 训练类型。 * BASIC: 基础版(20句话) * MIDDLE: 进阶版(100句话) * ADVANCE: 高级版 * THIRD_PARTY: 第三方出门问问训练版 * THIRD_PARTY_LJZN: 第三方逻辑智能训练版 * FLEXUS: Flexus版---用的是大模型特征提取
|
|
3160
|
+
* @param {string} [batchName] 批次名称。
|
|
3091
3161
|
* @param {*} [options] Override http request option.
|
|
3092
3162
|
* @throws {RequiredError}
|
|
3093
3163
|
*/
|
|
@@ -3097,6 +3167,23 @@ class MetaStudioClient {
|
|
|
3097
3167
|
options['responseHeaders'] = [''];
|
|
3098
3168
|
return this.hcClient.sendRequest(options);
|
|
3099
3169
|
}
|
|
3170
|
+
/**
|
|
3171
|
+
* 用户设置任务批次,该接口用于批量任务管理场景,设置任务的批次
|
|
3172
|
+
* * 需要开通NA租户权限后才能正常调用
|
|
3173
|
+
*
|
|
3174
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3175
|
+
*
|
|
3176
|
+
* @summary 设置任务批次
|
|
3177
|
+
* @param {SetJobBatchNameReq} setJobBatchNameRequestBody 设置任务批次请求
|
|
3178
|
+
* @param {*} [options] Override http request option.
|
|
3179
|
+
* @throws {RequiredError}
|
|
3180
|
+
*/
|
|
3181
|
+
setJobBatchName(setJobBatchNameRequest) {
|
|
3182
|
+
const options = (0, exports.ParamCreater)().setJobBatchName(setJobBatchNameRequest);
|
|
3183
|
+
// @ts-ignore
|
|
3184
|
+
options['responseHeaders'] = [''];
|
|
3185
|
+
return this.hcClient.sendRequest(options);
|
|
3186
|
+
}
|
|
3100
3187
|
/**
|
|
3101
3188
|
* 获取语音训练任务审核结果。
|
|
3102
3189
|
*
|
|
@@ -3129,6 +3216,21 @@ class MetaStudioClient {
|
|
|
3129
3216
|
options['responseHeaders'] = [''];
|
|
3130
3217
|
return this.hcClient.sendRequest(options);
|
|
3131
3218
|
}
|
|
3219
|
+
/**
|
|
3220
|
+
* 查询用户配置的个性化音频时长
|
|
3221
|
+
*
|
|
3222
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3223
|
+
*
|
|
3224
|
+
* @summary 查询用户配置的个性化音频时长
|
|
3225
|
+
* @param {*} [options] Override http request option.
|
|
3226
|
+
* @throws {RequiredError}
|
|
3227
|
+
*/
|
|
3228
|
+
showTenantDurationCfg(showTenantDurationCfgRequest) {
|
|
3229
|
+
const options = (0, exports.ParamCreater)().showTenantDurationCfg();
|
|
3230
|
+
// @ts-ignore
|
|
3231
|
+
options['responseHeaders'] = [''];
|
|
3232
|
+
return this.hcClient.sendRequest(options);
|
|
3233
|
+
}
|
|
3132
3234
|
/**
|
|
3133
3235
|
* 获取在线录音确认结果。
|
|
3134
3236
|
*
|
|
@@ -3398,6 +3500,10 @@ class MetaStudioClient {
|
|
|
3398
3500
|
/**
|
|
3399
3501
|
* 该接口用于对外生成音频文件
|
|
3400
3502
|
*
|
|
3503
|
+
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
3504
|
+
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|
|
3505
|
+
* > 如需使用第三方声音进行语音合成,请购买出门问问声音套餐,操作请参考《用户指南》的“购买出门问问声音套餐”章节。
|
|
3506
|
+
*
|
|
3401
3507
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3402
3508
|
*
|
|
3403
3509
|
* @summary 创建TTS语音异步任务
|
|
@@ -4318,14 +4424,14 @@ const ParamCreater = function () {
|
|
|
4318
4424
|
return options;
|
|
4319
4425
|
},
|
|
4320
4426
|
/**
|
|
4321
|
-
*
|
|
4427
|
+
* 该接口用于创建对话链接。
|
|
4322
4428
|
*
|
|
4323
4429
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4324
4430
|
*/
|
|
4325
|
-
|
|
4431
|
+
createDialogUrl(createDialogUrlRequest) {
|
|
4326
4432
|
const options = {
|
|
4327
4433
|
method: "POST",
|
|
4328
|
-
url: "/v1/{project_id}/digital-human-
|
|
4434
|
+
url: "/v1/{project_id}/digital-human-chat/create-dialog-url",
|
|
4329
4435
|
contentType: "application/json",
|
|
4330
4436
|
queryParams: {},
|
|
4331
4437
|
pathParams: {},
|
|
@@ -4338,20 +4444,20 @@ const ParamCreater = function () {
|
|
|
4338
4444
|
let xSdkDate;
|
|
4339
4445
|
let xProjectId;
|
|
4340
4446
|
let xAppUserId;
|
|
4341
|
-
if (
|
|
4342
|
-
if (
|
|
4343
|
-
body =
|
|
4344
|
-
authorization =
|
|
4345
|
-
xSdkDate =
|
|
4346
|
-
xProjectId =
|
|
4347
|
-
xAppUserId =
|
|
4447
|
+
if (createDialogUrlRequest !== null && createDialogUrlRequest !== undefined) {
|
|
4448
|
+
if (createDialogUrlRequest instanceof CreateDialogUrlRequest_1.CreateDialogUrlRequest) {
|
|
4449
|
+
body = createDialogUrlRequest.body;
|
|
4450
|
+
authorization = createDialogUrlRequest.authorization;
|
|
4451
|
+
xSdkDate = createDialogUrlRequest.xSdkDate;
|
|
4452
|
+
xProjectId = createDialogUrlRequest.xProjectId;
|
|
4453
|
+
xAppUserId = createDialogUrlRequest.xAppUserId;
|
|
4348
4454
|
}
|
|
4349
4455
|
else {
|
|
4350
|
-
body =
|
|
4351
|
-
authorization =
|
|
4352
|
-
xSdkDate =
|
|
4353
|
-
xProjectId =
|
|
4354
|
-
xAppUserId =
|
|
4456
|
+
body = createDialogUrlRequest['body'];
|
|
4457
|
+
authorization = createDialogUrlRequest['Authorization'];
|
|
4458
|
+
xSdkDate = createDialogUrlRequest['X-Sdk-Date'];
|
|
4459
|
+
xProjectId = createDialogUrlRequest['X-Project-Id'];
|
|
4460
|
+
xAppUserId = createDialogUrlRequest['X-App-UserId'];
|
|
4355
4461
|
}
|
|
4356
4462
|
}
|
|
4357
4463
|
if (body === null || body === undefined) {
|
|
@@ -4375,43 +4481,49 @@ const ParamCreater = function () {
|
|
|
4375
4481
|
return options;
|
|
4376
4482
|
},
|
|
4377
4483
|
/**
|
|
4378
|
-
*
|
|
4484
|
+
* 该接口用于查询数字人智能交互任务。
|
|
4379
4485
|
*
|
|
4380
4486
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4381
4487
|
*/
|
|
4382
|
-
|
|
4488
|
+
showSmartChatJob(showSmartChatJobRequest) {
|
|
4383
4489
|
const options = {
|
|
4384
4490
|
method: "GET",
|
|
4385
|
-
url: "/v1/{project_id}/digital-human-
|
|
4491
|
+
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/state",
|
|
4386
4492
|
contentType: "application/json",
|
|
4387
4493
|
queryParams: {},
|
|
4388
4494
|
pathParams: {},
|
|
4389
4495
|
headers: {}
|
|
4390
4496
|
};
|
|
4391
4497
|
const localVarHeaderParameter = {};
|
|
4498
|
+
let roomId;
|
|
4392
4499
|
let jobId;
|
|
4393
4500
|
let authorization;
|
|
4394
4501
|
let xSdkDate;
|
|
4395
4502
|
let xProjectId;
|
|
4396
4503
|
let xAppUserId;
|
|
4397
|
-
if (
|
|
4398
|
-
if (
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4504
|
+
if (showSmartChatJobRequest !== null && showSmartChatJobRequest !== undefined) {
|
|
4505
|
+
if (showSmartChatJobRequest instanceof ShowSmartChatJobRequest_1.ShowSmartChatJobRequest) {
|
|
4506
|
+
roomId = showSmartChatJobRequest.roomId;
|
|
4507
|
+
jobId = showSmartChatJobRequest.jobId;
|
|
4508
|
+
authorization = showSmartChatJobRequest.authorization;
|
|
4509
|
+
xSdkDate = showSmartChatJobRequest.xSdkDate;
|
|
4510
|
+
xProjectId = showSmartChatJobRequest.xProjectId;
|
|
4511
|
+
xAppUserId = showSmartChatJobRequest.xAppUserId;
|
|
4404
4512
|
}
|
|
4405
4513
|
else {
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4514
|
+
roomId = showSmartChatJobRequest['room_id'];
|
|
4515
|
+
jobId = showSmartChatJobRequest['job_id'];
|
|
4516
|
+
authorization = showSmartChatJobRequest['Authorization'];
|
|
4517
|
+
xSdkDate = showSmartChatJobRequest['X-Sdk-Date'];
|
|
4518
|
+
xProjectId = showSmartChatJobRequest['X-Project-Id'];
|
|
4519
|
+
xAppUserId = showSmartChatJobRequest['X-App-UserId'];
|
|
4411
4520
|
}
|
|
4412
4521
|
}
|
|
4522
|
+
if (roomId === null || roomId === undefined) {
|
|
4523
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling showSmartChatJob.');
|
|
4524
|
+
}
|
|
4413
4525
|
if (jobId === null || jobId === undefined) {
|
|
4414
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling
|
|
4526
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showSmartChatJob.');
|
|
4415
4527
|
}
|
|
4416
4528
|
if (authorization !== undefined && authorization !== null) {
|
|
4417
4529
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -4425,48 +4537,62 @@ const ParamCreater = function () {
|
|
|
4425
4537
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4426
4538
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4427
4539
|
}
|
|
4428
|
-
options.pathParams = { 'job_id': jobId, };
|
|
4540
|
+
options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
|
|
4429
4541
|
options.headers = localVarHeaderParameter;
|
|
4430
4542
|
return options;
|
|
4431
4543
|
},
|
|
4432
4544
|
/**
|
|
4433
|
-
*
|
|
4545
|
+
* 该接口用于启动数字人智能交互任务。
|
|
4434
4546
|
*
|
|
4435
4547
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4436
4548
|
*/
|
|
4437
|
-
|
|
4549
|
+
startSmartChatJob(startSmartChatJobRequest) {
|
|
4438
4550
|
const options = {
|
|
4439
4551
|
method: "POST",
|
|
4440
|
-
url: "/v1/{project_id}/digital-human-
|
|
4552
|
+
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs",
|
|
4441
4553
|
contentType: "application/json",
|
|
4442
4554
|
queryParams: {},
|
|
4443
4555
|
pathParams: {},
|
|
4444
|
-
headers: {}
|
|
4556
|
+
headers: {},
|
|
4557
|
+
data: {}
|
|
4445
4558
|
};
|
|
4446
4559
|
const localVarHeaderParameter = {};
|
|
4447
|
-
|
|
4560
|
+
const localVarQueryParameter = {};
|
|
4561
|
+
let body;
|
|
4562
|
+
let roomId;
|
|
4563
|
+
let robotId;
|
|
4448
4564
|
let authorization;
|
|
4449
4565
|
let xSdkDate;
|
|
4450
4566
|
let xProjectId;
|
|
4451
4567
|
let xAppUserId;
|
|
4452
|
-
if (
|
|
4453
|
-
if (
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4568
|
+
if (startSmartChatJobRequest !== null && startSmartChatJobRequest !== undefined) {
|
|
4569
|
+
if (startSmartChatJobRequest instanceof StartSmartChatJobRequest_1.StartSmartChatJobRequest) {
|
|
4570
|
+
roomId = startSmartChatJobRequest.roomId;
|
|
4571
|
+
robotId = startSmartChatJobRequest.robotId;
|
|
4572
|
+
authorization = startSmartChatJobRequest.authorization;
|
|
4573
|
+
xSdkDate = startSmartChatJobRequest.xSdkDate;
|
|
4574
|
+
xProjectId = startSmartChatJobRequest.xProjectId;
|
|
4575
|
+
xAppUserId = startSmartChatJobRequest.xAppUserId;
|
|
4576
|
+
body = startSmartChatJobRequest.body;
|
|
4459
4577
|
}
|
|
4460
4578
|
else {
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4579
|
+
roomId = startSmartChatJobRequest['room_id'];
|
|
4580
|
+
robotId = startSmartChatJobRequest['robot_id'];
|
|
4581
|
+
authorization = startSmartChatJobRequest['Authorization'];
|
|
4582
|
+
xSdkDate = startSmartChatJobRequest['X-Sdk-Date'];
|
|
4583
|
+
xProjectId = startSmartChatJobRequest['X-Project-Id'];
|
|
4584
|
+
xAppUserId = startSmartChatJobRequest['X-App-UserId'];
|
|
4585
|
+
body = startSmartChatJobRequest['body'];
|
|
4466
4586
|
}
|
|
4467
4587
|
}
|
|
4468
|
-
if (
|
|
4469
|
-
throw new RequiredError('
|
|
4588
|
+
if (roomId === null || roomId === undefined) {
|
|
4589
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling startSmartChatJob.');
|
|
4590
|
+
}
|
|
4591
|
+
if (robotId === null || robotId === undefined) {
|
|
4592
|
+
throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling startSmartChatJob.');
|
|
4593
|
+
}
|
|
4594
|
+
if (robotId !== null && robotId !== undefined) {
|
|
4595
|
+
localVarQueryParameter['robot_id'] = robotId;
|
|
4470
4596
|
}
|
|
4471
4597
|
if (authorization !== undefined && authorization !== null) {
|
|
4472
4598
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -4480,217 +4606,30 @@ const ParamCreater = function () {
|
|
|
4480
4606
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4481
4607
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4482
4608
|
}
|
|
4483
|
-
|
|
4609
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4610
|
+
options.data = body !== undefined ? body : {};
|
|
4611
|
+
options.queryParams = localVarQueryParameter;
|
|
4612
|
+
options.pathParams = { 'room_id': roomId, };
|
|
4484
4613
|
options.headers = localVarHeaderParameter;
|
|
4485
4614
|
return options;
|
|
4486
4615
|
},
|
|
4487
4616
|
/**
|
|
4488
|
-
*
|
|
4617
|
+
* 该接口用于结束数字人智能交互任务。
|
|
4489
4618
|
*
|
|
4490
4619
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4491
4620
|
*/
|
|
4492
|
-
|
|
4621
|
+
stopSmartChatJob(stopSmartChatJobRequest) {
|
|
4493
4622
|
const options = {
|
|
4494
4623
|
method: "POST",
|
|
4495
|
-
url: "/v1/{project_id}/digital-human-chat/
|
|
4624
|
+
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/stop",
|
|
4496
4625
|
contentType: "application/json",
|
|
4497
4626
|
queryParams: {},
|
|
4498
4627
|
pathParams: {},
|
|
4499
|
-
headers: {}
|
|
4500
|
-
data: {}
|
|
4628
|
+
headers: {}
|
|
4501
4629
|
};
|
|
4502
4630
|
const localVarHeaderParameter = {};
|
|
4503
|
-
let
|
|
4504
|
-
let
|
|
4505
|
-
let xSdkDate;
|
|
4506
|
-
let xProjectId;
|
|
4507
|
-
let xAppUserId;
|
|
4508
|
-
if (createDialogUrlRequest !== null && createDialogUrlRequest !== undefined) {
|
|
4509
|
-
if (createDialogUrlRequest instanceof CreateDialogUrlRequest_1.CreateDialogUrlRequest) {
|
|
4510
|
-
body = createDialogUrlRequest.body;
|
|
4511
|
-
authorization = createDialogUrlRequest.authorization;
|
|
4512
|
-
xSdkDate = createDialogUrlRequest.xSdkDate;
|
|
4513
|
-
xProjectId = createDialogUrlRequest.xProjectId;
|
|
4514
|
-
xAppUserId = createDialogUrlRequest.xAppUserId;
|
|
4515
|
-
}
|
|
4516
|
-
else {
|
|
4517
|
-
body = createDialogUrlRequest['body'];
|
|
4518
|
-
authorization = createDialogUrlRequest['Authorization'];
|
|
4519
|
-
xSdkDate = createDialogUrlRequest['X-Sdk-Date'];
|
|
4520
|
-
xProjectId = createDialogUrlRequest['X-Project-Id'];
|
|
4521
|
-
xAppUserId = createDialogUrlRequest['X-App-UserId'];
|
|
4522
|
-
}
|
|
4523
|
-
}
|
|
4524
|
-
if (body === null || body === undefined) {
|
|
4525
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4526
|
-
}
|
|
4527
|
-
if (authorization !== undefined && authorization !== null) {
|
|
4528
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4529
|
-
}
|
|
4530
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4531
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4532
|
-
}
|
|
4533
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4534
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4535
|
-
}
|
|
4536
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4537
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4538
|
-
}
|
|
4539
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4540
|
-
options.data = body !== undefined ? body : {};
|
|
4541
|
-
options.headers = localVarHeaderParameter;
|
|
4542
|
-
return options;
|
|
4543
|
-
},
|
|
4544
|
-
/**
|
|
4545
|
-
* 该接口用于查询数字人智能交互任务。
|
|
4546
|
-
*
|
|
4547
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4548
|
-
*/
|
|
4549
|
-
showSmartChatJob(showSmartChatJobRequest) {
|
|
4550
|
-
const options = {
|
|
4551
|
-
method: "GET",
|
|
4552
|
-
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/state",
|
|
4553
|
-
contentType: "application/json",
|
|
4554
|
-
queryParams: {},
|
|
4555
|
-
pathParams: {},
|
|
4556
|
-
headers: {}
|
|
4557
|
-
};
|
|
4558
|
-
const localVarHeaderParameter = {};
|
|
4559
|
-
let roomId;
|
|
4560
|
-
let jobId;
|
|
4561
|
-
let authorization;
|
|
4562
|
-
let xSdkDate;
|
|
4563
|
-
let xProjectId;
|
|
4564
|
-
let xAppUserId;
|
|
4565
|
-
if (showSmartChatJobRequest !== null && showSmartChatJobRequest !== undefined) {
|
|
4566
|
-
if (showSmartChatJobRequest instanceof ShowSmartChatJobRequest_1.ShowSmartChatJobRequest) {
|
|
4567
|
-
roomId = showSmartChatJobRequest.roomId;
|
|
4568
|
-
jobId = showSmartChatJobRequest.jobId;
|
|
4569
|
-
authorization = showSmartChatJobRequest.authorization;
|
|
4570
|
-
xSdkDate = showSmartChatJobRequest.xSdkDate;
|
|
4571
|
-
xProjectId = showSmartChatJobRequest.xProjectId;
|
|
4572
|
-
xAppUserId = showSmartChatJobRequest.xAppUserId;
|
|
4573
|
-
}
|
|
4574
|
-
else {
|
|
4575
|
-
roomId = showSmartChatJobRequest['room_id'];
|
|
4576
|
-
jobId = showSmartChatJobRequest['job_id'];
|
|
4577
|
-
authorization = showSmartChatJobRequest['Authorization'];
|
|
4578
|
-
xSdkDate = showSmartChatJobRequest['X-Sdk-Date'];
|
|
4579
|
-
xProjectId = showSmartChatJobRequest['X-Project-Id'];
|
|
4580
|
-
xAppUserId = showSmartChatJobRequest['X-App-UserId'];
|
|
4581
|
-
}
|
|
4582
|
-
}
|
|
4583
|
-
if (roomId === null || roomId === undefined) {
|
|
4584
|
-
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling showSmartChatJob.');
|
|
4585
|
-
}
|
|
4586
|
-
if (jobId === null || jobId === undefined) {
|
|
4587
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showSmartChatJob.');
|
|
4588
|
-
}
|
|
4589
|
-
if (authorization !== undefined && authorization !== null) {
|
|
4590
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4591
|
-
}
|
|
4592
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4593
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4594
|
-
}
|
|
4595
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4596
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4597
|
-
}
|
|
4598
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4599
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4600
|
-
}
|
|
4601
|
-
options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
|
|
4602
|
-
options.headers = localVarHeaderParameter;
|
|
4603
|
-
return options;
|
|
4604
|
-
},
|
|
4605
|
-
/**
|
|
4606
|
-
* 该接口用于启动数字人智能交互任务。
|
|
4607
|
-
*
|
|
4608
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4609
|
-
*/
|
|
4610
|
-
startSmartChatJob(startSmartChatJobRequest) {
|
|
4611
|
-
const options = {
|
|
4612
|
-
method: "POST",
|
|
4613
|
-
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs",
|
|
4614
|
-
contentType: "application/json",
|
|
4615
|
-
queryParams: {},
|
|
4616
|
-
pathParams: {},
|
|
4617
|
-
headers: {},
|
|
4618
|
-
data: {}
|
|
4619
|
-
};
|
|
4620
|
-
const localVarHeaderParameter = {};
|
|
4621
|
-
const localVarQueryParameter = {};
|
|
4622
|
-
let body;
|
|
4623
|
-
let roomId;
|
|
4624
|
-
let robotId;
|
|
4625
|
-
let authorization;
|
|
4626
|
-
let xSdkDate;
|
|
4627
|
-
let xProjectId;
|
|
4628
|
-
let xAppUserId;
|
|
4629
|
-
if (startSmartChatJobRequest !== null && startSmartChatJobRequest !== undefined) {
|
|
4630
|
-
if (startSmartChatJobRequest instanceof StartSmartChatJobRequest_1.StartSmartChatJobRequest) {
|
|
4631
|
-
roomId = startSmartChatJobRequest.roomId;
|
|
4632
|
-
robotId = startSmartChatJobRequest.robotId;
|
|
4633
|
-
authorization = startSmartChatJobRequest.authorization;
|
|
4634
|
-
xSdkDate = startSmartChatJobRequest.xSdkDate;
|
|
4635
|
-
xProjectId = startSmartChatJobRequest.xProjectId;
|
|
4636
|
-
xAppUserId = startSmartChatJobRequest.xAppUserId;
|
|
4637
|
-
body = startSmartChatJobRequest.body;
|
|
4638
|
-
}
|
|
4639
|
-
else {
|
|
4640
|
-
roomId = startSmartChatJobRequest['room_id'];
|
|
4641
|
-
robotId = startSmartChatJobRequest['robot_id'];
|
|
4642
|
-
authorization = startSmartChatJobRequest['Authorization'];
|
|
4643
|
-
xSdkDate = startSmartChatJobRequest['X-Sdk-Date'];
|
|
4644
|
-
xProjectId = startSmartChatJobRequest['X-Project-Id'];
|
|
4645
|
-
xAppUserId = startSmartChatJobRequest['X-App-UserId'];
|
|
4646
|
-
body = startSmartChatJobRequest['body'];
|
|
4647
|
-
}
|
|
4648
|
-
}
|
|
4649
|
-
if (roomId === null || roomId === undefined) {
|
|
4650
|
-
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling startSmartChatJob.');
|
|
4651
|
-
}
|
|
4652
|
-
if (robotId === null || robotId === undefined) {
|
|
4653
|
-
throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling startSmartChatJob.');
|
|
4654
|
-
}
|
|
4655
|
-
if (robotId !== null && robotId !== undefined) {
|
|
4656
|
-
localVarQueryParameter['robot_id'] = robotId;
|
|
4657
|
-
}
|
|
4658
|
-
if (authorization !== undefined && authorization !== null) {
|
|
4659
|
-
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4660
|
-
}
|
|
4661
|
-
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4662
|
-
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4663
|
-
}
|
|
4664
|
-
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4665
|
-
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4666
|
-
}
|
|
4667
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4668
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4669
|
-
}
|
|
4670
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4671
|
-
options.data = body !== undefined ? body : {};
|
|
4672
|
-
options.queryParams = localVarQueryParameter;
|
|
4673
|
-
options.pathParams = { 'room_id': roomId, };
|
|
4674
|
-
options.headers = localVarHeaderParameter;
|
|
4675
|
-
return options;
|
|
4676
|
-
},
|
|
4677
|
-
/**
|
|
4678
|
-
* 该接口用于结束数字人智能交互任务。
|
|
4679
|
-
*
|
|
4680
|
-
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4681
|
-
*/
|
|
4682
|
-
stopSmartChatJob(stopSmartChatJobRequest) {
|
|
4683
|
-
const options = {
|
|
4684
|
-
method: "POST",
|
|
4685
|
-
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/stop",
|
|
4686
|
-
contentType: "application/json",
|
|
4687
|
-
queryParams: {},
|
|
4688
|
-
pathParams: {},
|
|
4689
|
-
headers: {}
|
|
4690
|
-
};
|
|
4691
|
-
const localVarHeaderParameter = {};
|
|
4692
|
-
let roomId;
|
|
4693
|
-
let jobId;
|
|
4631
|
+
let roomId;
|
|
4632
|
+
let jobId;
|
|
4694
4633
|
let authorization;
|
|
4695
4634
|
let xSdkDate;
|
|
4696
4635
|
let xProjectId;
|
|
@@ -7976,15 +7915,377 @@ const ParamCreater = function () {
|
|
|
7976
7915
|
xAppUserId = updateBatchKnowledgeQuestionRequest.xAppUserId;
|
|
7977
7916
|
}
|
|
7978
7917
|
else {
|
|
7979
|
-
body = updateBatchKnowledgeQuestionRequest['body'];
|
|
7980
|
-
authorization = updateBatchKnowledgeQuestionRequest['Authorization'];
|
|
7981
|
-
xSdkDate = updateBatchKnowledgeQuestionRequest['X-Sdk-Date'];
|
|
7982
|
-
xProjectId = updateBatchKnowledgeQuestionRequest['X-Project-Id'];
|
|
7983
|
-
xAppUserId = updateBatchKnowledgeQuestionRequest['X-App-UserId'];
|
|
7918
|
+
body = updateBatchKnowledgeQuestionRequest['body'];
|
|
7919
|
+
authorization = updateBatchKnowledgeQuestionRequest['Authorization'];
|
|
7920
|
+
xSdkDate = updateBatchKnowledgeQuestionRequest['X-Sdk-Date'];
|
|
7921
|
+
xProjectId = updateBatchKnowledgeQuestionRequest['X-Project-Id'];
|
|
7922
|
+
xAppUserId = updateBatchKnowledgeQuestionRequest['X-App-UserId'];
|
|
7923
|
+
}
|
|
7924
|
+
}
|
|
7925
|
+
if (body === null || body === undefined) {
|
|
7926
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
7927
|
+
}
|
|
7928
|
+
if (authorization !== undefined && authorization !== null) {
|
|
7929
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7930
|
+
}
|
|
7931
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
7932
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
7933
|
+
}
|
|
7934
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
7935
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
7936
|
+
}
|
|
7937
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7938
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7939
|
+
}
|
|
7940
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7941
|
+
options.data = body !== undefined ? body : {};
|
|
7942
|
+
options.headers = localVarHeaderParameter;
|
|
7943
|
+
return options;
|
|
7944
|
+
},
|
|
7945
|
+
/**
|
|
7946
|
+
* 该接口用于修改知识库问法。
|
|
7947
|
+
*
|
|
7948
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7949
|
+
*/
|
|
7950
|
+
updateKnowledgeQuestion(updateKnowledgeQuestionRequest) {
|
|
7951
|
+
const options = {
|
|
7952
|
+
method: "PUT",
|
|
7953
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/question/{question_id}",
|
|
7954
|
+
contentType: "application/json",
|
|
7955
|
+
queryParams: {},
|
|
7956
|
+
pathParams: {},
|
|
7957
|
+
headers: {},
|
|
7958
|
+
data: {}
|
|
7959
|
+
};
|
|
7960
|
+
const localVarHeaderParameter = {};
|
|
7961
|
+
let body;
|
|
7962
|
+
let questionId;
|
|
7963
|
+
let authorization;
|
|
7964
|
+
let xSdkDate;
|
|
7965
|
+
let xProjectId;
|
|
7966
|
+
let xAppUserId;
|
|
7967
|
+
if (updateKnowledgeQuestionRequest !== null && updateKnowledgeQuestionRequest !== undefined) {
|
|
7968
|
+
if (updateKnowledgeQuestionRequest instanceof UpdateKnowledgeQuestionRequest_1.UpdateKnowledgeQuestionRequest) {
|
|
7969
|
+
questionId = updateKnowledgeQuestionRequest.questionId;
|
|
7970
|
+
body = updateKnowledgeQuestionRequest.body;
|
|
7971
|
+
authorization = updateKnowledgeQuestionRequest.authorization;
|
|
7972
|
+
xSdkDate = updateKnowledgeQuestionRequest.xSdkDate;
|
|
7973
|
+
xProjectId = updateKnowledgeQuestionRequest.xProjectId;
|
|
7974
|
+
xAppUserId = updateKnowledgeQuestionRequest.xAppUserId;
|
|
7975
|
+
}
|
|
7976
|
+
else {
|
|
7977
|
+
questionId = updateKnowledgeQuestionRequest['question_id'];
|
|
7978
|
+
body = updateKnowledgeQuestionRequest['body'];
|
|
7979
|
+
authorization = updateKnowledgeQuestionRequest['Authorization'];
|
|
7980
|
+
xSdkDate = updateKnowledgeQuestionRequest['X-Sdk-Date'];
|
|
7981
|
+
xProjectId = updateKnowledgeQuestionRequest['X-Project-Id'];
|
|
7982
|
+
xAppUserId = updateKnowledgeQuestionRequest['X-App-UserId'];
|
|
7983
|
+
}
|
|
7984
|
+
}
|
|
7985
|
+
if (questionId === null || questionId === undefined) {
|
|
7986
|
+
throw new RequiredError('questionId', 'Required parameter questionId was null or undefined when calling updateKnowledgeQuestion.');
|
|
7987
|
+
}
|
|
7988
|
+
if (body === null || body === undefined) {
|
|
7989
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
7990
|
+
}
|
|
7991
|
+
if (authorization !== undefined && authorization !== null) {
|
|
7992
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7993
|
+
}
|
|
7994
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
7995
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
7996
|
+
}
|
|
7997
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
7998
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
7999
|
+
}
|
|
8000
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8001
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8002
|
+
}
|
|
8003
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8004
|
+
options.data = body !== undefined ? body : {};
|
|
8005
|
+
options.pathParams = { 'question_id': questionId, };
|
|
8006
|
+
options.headers = localVarHeaderParameter;
|
|
8007
|
+
return options;
|
|
8008
|
+
},
|
|
8009
|
+
/**
|
|
8010
|
+
* 该接口用于创建知识库技能。一个技能用于特定场景的交互问答,包含若干个意图等。
|
|
8011
|
+
*
|
|
8012
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8013
|
+
*/
|
|
8014
|
+
createKnowledgeSkill(createKnowledgeSkillRequest) {
|
|
8015
|
+
const options = {
|
|
8016
|
+
method: "POST",
|
|
8017
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/skill",
|
|
8018
|
+
contentType: "application/json",
|
|
8019
|
+
queryParams: {},
|
|
8020
|
+
pathParams: {},
|
|
8021
|
+
headers: {},
|
|
8022
|
+
data: {}
|
|
8023
|
+
};
|
|
8024
|
+
const localVarHeaderParameter = {};
|
|
8025
|
+
let body;
|
|
8026
|
+
let authorization;
|
|
8027
|
+
let xSdkDate;
|
|
8028
|
+
let xProjectId;
|
|
8029
|
+
let xAppUserId;
|
|
8030
|
+
if (createKnowledgeSkillRequest !== null && createKnowledgeSkillRequest !== undefined) {
|
|
8031
|
+
if (createKnowledgeSkillRequest instanceof CreateKnowledgeSkillRequest_1.CreateKnowledgeSkillRequest) {
|
|
8032
|
+
body = createKnowledgeSkillRequest.body;
|
|
8033
|
+
authorization = createKnowledgeSkillRequest.authorization;
|
|
8034
|
+
xSdkDate = createKnowledgeSkillRequest.xSdkDate;
|
|
8035
|
+
xProjectId = createKnowledgeSkillRequest.xProjectId;
|
|
8036
|
+
xAppUserId = createKnowledgeSkillRequest.xAppUserId;
|
|
8037
|
+
}
|
|
8038
|
+
else {
|
|
8039
|
+
body = createKnowledgeSkillRequest['body'];
|
|
8040
|
+
authorization = createKnowledgeSkillRequest['Authorization'];
|
|
8041
|
+
xSdkDate = createKnowledgeSkillRequest['X-Sdk-Date'];
|
|
8042
|
+
xProjectId = createKnowledgeSkillRequest['X-Project-Id'];
|
|
8043
|
+
xAppUserId = createKnowledgeSkillRequest['X-App-UserId'];
|
|
8044
|
+
}
|
|
8045
|
+
}
|
|
8046
|
+
if (body === null || body === undefined) {
|
|
8047
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
8048
|
+
}
|
|
8049
|
+
if (authorization !== undefined && authorization !== null) {
|
|
8050
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
8051
|
+
}
|
|
8052
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
8053
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
8054
|
+
}
|
|
8055
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
8056
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
8057
|
+
}
|
|
8058
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8059
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8060
|
+
}
|
|
8061
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8062
|
+
options.data = body !== undefined ? body : {};
|
|
8063
|
+
options.headers = localVarHeaderParameter;
|
|
8064
|
+
return options;
|
|
8065
|
+
},
|
|
8066
|
+
/**
|
|
8067
|
+
* 该接口用于删除知识库技能。
|
|
8068
|
+
*
|
|
8069
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8070
|
+
*/
|
|
8071
|
+
deleteKnowledgeSkill(deleteKnowledgeSkillRequest) {
|
|
8072
|
+
const options = {
|
|
8073
|
+
method: "POST",
|
|
8074
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/skill/delete",
|
|
8075
|
+
contentType: "application/json",
|
|
8076
|
+
queryParams: {},
|
|
8077
|
+
pathParams: {},
|
|
8078
|
+
headers: {},
|
|
8079
|
+
data: {}
|
|
8080
|
+
};
|
|
8081
|
+
const localVarHeaderParameter = {};
|
|
8082
|
+
let body;
|
|
8083
|
+
let authorization;
|
|
8084
|
+
let xSdkDate;
|
|
8085
|
+
let xProjectId;
|
|
8086
|
+
let xAppUserId;
|
|
8087
|
+
if (deleteKnowledgeSkillRequest !== null && deleteKnowledgeSkillRequest !== undefined) {
|
|
8088
|
+
if (deleteKnowledgeSkillRequest instanceof DeleteKnowledgeSkillRequest_1.DeleteKnowledgeSkillRequest) {
|
|
8089
|
+
body = deleteKnowledgeSkillRequest.body;
|
|
8090
|
+
authorization = deleteKnowledgeSkillRequest.authorization;
|
|
8091
|
+
xSdkDate = deleteKnowledgeSkillRequest.xSdkDate;
|
|
8092
|
+
xProjectId = deleteKnowledgeSkillRequest.xProjectId;
|
|
8093
|
+
xAppUserId = deleteKnowledgeSkillRequest.xAppUserId;
|
|
8094
|
+
}
|
|
8095
|
+
else {
|
|
8096
|
+
body = deleteKnowledgeSkillRequest['body'];
|
|
8097
|
+
authorization = deleteKnowledgeSkillRequest['Authorization'];
|
|
8098
|
+
xSdkDate = deleteKnowledgeSkillRequest['X-Sdk-Date'];
|
|
8099
|
+
xProjectId = deleteKnowledgeSkillRequest['X-Project-Id'];
|
|
8100
|
+
xAppUserId = deleteKnowledgeSkillRequest['X-App-UserId'];
|
|
8101
|
+
}
|
|
8102
|
+
}
|
|
8103
|
+
if (body === null || body === undefined) {
|
|
8104
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
8105
|
+
}
|
|
8106
|
+
if (authorization !== undefined && authorization !== null) {
|
|
8107
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
8108
|
+
}
|
|
8109
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
8110
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
8111
|
+
}
|
|
8112
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
8113
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
8114
|
+
}
|
|
8115
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8116
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8117
|
+
}
|
|
8118
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8119
|
+
options.data = body !== undefined ? body : {};
|
|
8120
|
+
options.headers = localVarHeaderParameter;
|
|
8121
|
+
return options;
|
|
8122
|
+
},
|
|
8123
|
+
/**
|
|
8124
|
+
* 该接口用于导出知识库技能。
|
|
8125
|
+
*
|
|
8126
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8127
|
+
*/
|
|
8128
|
+
exportKnowledgeSkill(exportKnowledgeSkillRequest) {
|
|
8129
|
+
const options = {
|
|
8130
|
+
method: "GET",
|
|
8131
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/skill/{skill_id}/export",
|
|
8132
|
+
contentType: "application/json",
|
|
8133
|
+
queryParams: {},
|
|
8134
|
+
pathParams: {},
|
|
8135
|
+
headers: {}
|
|
8136
|
+
};
|
|
8137
|
+
const localVarHeaderParameter = {};
|
|
8138
|
+
const localVarQueryParameter = {};
|
|
8139
|
+
let skillId;
|
|
8140
|
+
let exportType;
|
|
8141
|
+
let authorization;
|
|
8142
|
+
let xSdkDate;
|
|
8143
|
+
let xProjectId;
|
|
8144
|
+
let xAppUserId;
|
|
8145
|
+
if (exportKnowledgeSkillRequest !== null && exportKnowledgeSkillRequest !== undefined) {
|
|
8146
|
+
if (exportKnowledgeSkillRequest instanceof ExportKnowledgeSkillRequest_1.ExportKnowledgeSkillRequest) {
|
|
8147
|
+
skillId = exportKnowledgeSkillRequest.skillId;
|
|
8148
|
+
exportType = exportKnowledgeSkillRequest.exportType;
|
|
8149
|
+
authorization = exportKnowledgeSkillRequest.authorization;
|
|
8150
|
+
xSdkDate = exportKnowledgeSkillRequest.xSdkDate;
|
|
8151
|
+
xProjectId = exportKnowledgeSkillRequest.xProjectId;
|
|
8152
|
+
xAppUserId = exportKnowledgeSkillRequest.xAppUserId;
|
|
8153
|
+
}
|
|
8154
|
+
else {
|
|
8155
|
+
skillId = exportKnowledgeSkillRequest['skill_id'];
|
|
8156
|
+
exportType = exportKnowledgeSkillRequest['export_type'];
|
|
8157
|
+
authorization = exportKnowledgeSkillRequest['Authorization'];
|
|
8158
|
+
xSdkDate = exportKnowledgeSkillRequest['X-Sdk-Date'];
|
|
8159
|
+
xProjectId = exportKnowledgeSkillRequest['X-Project-Id'];
|
|
8160
|
+
xAppUserId = exportKnowledgeSkillRequest['X-App-UserId'];
|
|
8161
|
+
}
|
|
8162
|
+
}
|
|
8163
|
+
if (skillId === null || skillId === undefined) {
|
|
8164
|
+
throw new RequiredError('skillId', 'Required parameter skillId was null or undefined when calling exportKnowledgeSkill.');
|
|
8165
|
+
}
|
|
8166
|
+
if (exportType === null || exportType === undefined) {
|
|
8167
|
+
throw new RequiredError('exportType', 'Required parameter exportType was null or undefined when calling exportKnowledgeSkill.');
|
|
8168
|
+
}
|
|
8169
|
+
if (exportType !== null && exportType !== undefined) {
|
|
8170
|
+
localVarQueryParameter['export_type'] = exportType;
|
|
8171
|
+
}
|
|
8172
|
+
if (authorization !== undefined && authorization !== null) {
|
|
8173
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
8174
|
+
}
|
|
8175
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
8176
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
8177
|
+
}
|
|
8178
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
8179
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
8180
|
+
}
|
|
8181
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8182
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8183
|
+
}
|
|
8184
|
+
options.queryParams = localVarQueryParameter;
|
|
8185
|
+
options.pathParams = { 'skill_id': skillId, };
|
|
8186
|
+
options.headers = localVarHeaderParameter;
|
|
8187
|
+
return options;
|
|
8188
|
+
},
|
|
8189
|
+
/**
|
|
8190
|
+
* 该接口用于查询知识库技能列表。
|
|
8191
|
+
*
|
|
8192
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8193
|
+
*/
|
|
8194
|
+
listKnowledgeSkill(listKnowledgeSkillRequest) {
|
|
8195
|
+
const options = {
|
|
8196
|
+
method: "GET",
|
|
8197
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/skill",
|
|
8198
|
+
contentType: "application/json",
|
|
8199
|
+
queryParams: {},
|
|
8200
|
+
pathParams: {},
|
|
8201
|
+
headers: {}
|
|
8202
|
+
};
|
|
8203
|
+
const localVarHeaderParameter = {};
|
|
8204
|
+
const localVarQueryParameter = {};
|
|
8205
|
+
let authorization;
|
|
8206
|
+
let xSdkDate;
|
|
8207
|
+
let xProjectId;
|
|
8208
|
+
let xAppUserId;
|
|
8209
|
+
let offset;
|
|
8210
|
+
let limit;
|
|
8211
|
+
if (listKnowledgeSkillRequest !== null && listKnowledgeSkillRequest !== undefined) {
|
|
8212
|
+
if (listKnowledgeSkillRequest instanceof ListKnowledgeSkillRequest_1.ListKnowledgeSkillRequest) {
|
|
8213
|
+
authorization = listKnowledgeSkillRequest.authorization;
|
|
8214
|
+
xSdkDate = listKnowledgeSkillRequest.xSdkDate;
|
|
8215
|
+
xProjectId = listKnowledgeSkillRequest.xProjectId;
|
|
8216
|
+
xAppUserId = listKnowledgeSkillRequest.xAppUserId;
|
|
8217
|
+
offset = listKnowledgeSkillRequest.offset;
|
|
8218
|
+
limit = listKnowledgeSkillRequest.limit;
|
|
8219
|
+
}
|
|
8220
|
+
else {
|
|
8221
|
+
authorization = listKnowledgeSkillRequest['Authorization'];
|
|
8222
|
+
xSdkDate = listKnowledgeSkillRequest['X-Sdk-Date'];
|
|
8223
|
+
xProjectId = listKnowledgeSkillRequest['X-Project-Id'];
|
|
8224
|
+
xAppUserId = listKnowledgeSkillRequest['X-App-UserId'];
|
|
8225
|
+
offset = listKnowledgeSkillRequest['offset'];
|
|
8226
|
+
limit = listKnowledgeSkillRequest['limit'];
|
|
8227
|
+
}
|
|
8228
|
+
}
|
|
8229
|
+
if (offset !== null && offset !== undefined) {
|
|
8230
|
+
localVarQueryParameter['offset'] = offset;
|
|
8231
|
+
}
|
|
8232
|
+
if (limit !== null && limit !== undefined) {
|
|
8233
|
+
localVarQueryParameter['limit'] = limit;
|
|
8234
|
+
}
|
|
8235
|
+
if (authorization !== undefined && authorization !== null) {
|
|
8236
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
8237
|
+
}
|
|
8238
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
8239
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
8240
|
+
}
|
|
8241
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
8242
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
8243
|
+
}
|
|
8244
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8245
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8246
|
+
}
|
|
8247
|
+
options.queryParams = localVarQueryParameter;
|
|
8248
|
+
options.headers = localVarHeaderParameter;
|
|
8249
|
+
return options;
|
|
8250
|
+
},
|
|
8251
|
+
/**
|
|
8252
|
+
* 该接口用于查询知识库技能详情。
|
|
8253
|
+
*
|
|
8254
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8255
|
+
*/
|
|
8256
|
+
showKnowledgeSkill(showKnowledgeSkillRequest) {
|
|
8257
|
+
const options = {
|
|
8258
|
+
method: "GET",
|
|
8259
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/skill/{skill_id}",
|
|
8260
|
+
contentType: "application/json",
|
|
8261
|
+
queryParams: {},
|
|
8262
|
+
pathParams: {},
|
|
8263
|
+
headers: {}
|
|
8264
|
+
};
|
|
8265
|
+
const localVarHeaderParameter = {};
|
|
8266
|
+
let skillId;
|
|
8267
|
+
let authorization;
|
|
8268
|
+
let xSdkDate;
|
|
8269
|
+
let xProjectId;
|
|
8270
|
+
let xAppUserId;
|
|
8271
|
+
if (showKnowledgeSkillRequest !== null && showKnowledgeSkillRequest !== undefined) {
|
|
8272
|
+
if (showKnowledgeSkillRequest instanceof ShowKnowledgeSkillRequest_1.ShowKnowledgeSkillRequest) {
|
|
8273
|
+
skillId = showKnowledgeSkillRequest.skillId;
|
|
8274
|
+
authorization = showKnowledgeSkillRequest.authorization;
|
|
8275
|
+
xSdkDate = showKnowledgeSkillRequest.xSdkDate;
|
|
8276
|
+
xProjectId = showKnowledgeSkillRequest.xProjectId;
|
|
8277
|
+
xAppUserId = showKnowledgeSkillRequest.xAppUserId;
|
|
8278
|
+
}
|
|
8279
|
+
else {
|
|
8280
|
+
skillId = showKnowledgeSkillRequest['skill_id'];
|
|
8281
|
+
authorization = showKnowledgeSkillRequest['Authorization'];
|
|
8282
|
+
xSdkDate = showKnowledgeSkillRequest['X-Sdk-Date'];
|
|
8283
|
+
xProjectId = showKnowledgeSkillRequest['X-Project-Id'];
|
|
8284
|
+
xAppUserId = showKnowledgeSkillRequest['X-App-UserId'];
|
|
7984
8285
|
}
|
|
7985
8286
|
}
|
|
7986
|
-
if (
|
|
7987
|
-
throw new RequiredError('
|
|
8287
|
+
if (skillId === null || skillId === undefined) {
|
|
8288
|
+
throw new RequiredError('skillId', 'Required parameter skillId was null or undefined when calling showKnowledgeSkill.');
|
|
7988
8289
|
}
|
|
7989
8290
|
if (authorization !== undefined && authorization !== null) {
|
|
7990
8291
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -7998,20 +8299,19 @@ const ParamCreater = function () {
|
|
|
7998
8299
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7999
8300
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8000
8301
|
}
|
|
8001
|
-
|
|
8002
|
-
options.data = body !== undefined ? body : {};
|
|
8302
|
+
options.pathParams = { 'skill_id': skillId, };
|
|
8003
8303
|
options.headers = localVarHeaderParameter;
|
|
8004
8304
|
return options;
|
|
8005
8305
|
},
|
|
8006
8306
|
/**
|
|
8007
|
-
*
|
|
8307
|
+
* 该接口用于修改知识库技能。
|
|
8008
8308
|
*
|
|
8009
8309
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8010
8310
|
*/
|
|
8011
|
-
|
|
8311
|
+
updateKnowledgeSkill(updateKnowledgeSkillRequest) {
|
|
8012
8312
|
const options = {
|
|
8013
8313
|
method: "PUT",
|
|
8014
|
-
url: "/v1/{project_id}/digital-human-chat/knowledge/
|
|
8314
|
+
url: "/v1/{project_id}/digital-human-chat/knowledge/skill/{skill_id}",
|
|
8015
8315
|
contentType: "application/json",
|
|
8016
8316
|
queryParams: {},
|
|
8017
8317
|
pathParams: {},
|
|
@@ -8020,31 +8320,31 @@ const ParamCreater = function () {
|
|
|
8020
8320
|
};
|
|
8021
8321
|
const localVarHeaderParameter = {};
|
|
8022
8322
|
let body;
|
|
8023
|
-
let
|
|
8323
|
+
let skillId;
|
|
8024
8324
|
let authorization;
|
|
8025
8325
|
let xSdkDate;
|
|
8026
8326
|
let xProjectId;
|
|
8027
8327
|
let xAppUserId;
|
|
8028
|
-
if (
|
|
8029
|
-
if (
|
|
8030
|
-
|
|
8031
|
-
body =
|
|
8032
|
-
authorization =
|
|
8033
|
-
xSdkDate =
|
|
8034
|
-
xProjectId =
|
|
8035
|
-
xAppUserId =
|
|
8328
|
+
if (updateKnowledgeSkillRequest !== null && updateKnowledgeSkillRequest !== undefined) {
|
|
8329
|
+
if (updateKnowledgeSkillRequest instanceof UpdateKnowledgeSkillRequest_1.UpdateKnowledgeSkillRequest) {
|
|
8330
|
+
skillId = updateKnowledgeSkillRequest.skillId;
|
|
8331
|
+
body = updateKnowledgeSkillRequest.body;
|
|
8332
|
+
authorization = updateKnowledgeSkillRequest.authorization;
|
|
8333
|
+
xSdkDate = updateKnowledgeSkillRequest.xSdkDate;
|
|
8334
|
+
xProjectId = updateKnowledgeSkillRequest.xProjectId;
|
|
8335
|
+
xAppUserId = updateKnowledgeSkillRequest.xAppUserId;
|
|
8036
8336
|
}
|
|
8037
8337
|
else {
|
|
8038
|
-
|
|
8039
|
-
body =
|
|
8040
|
-
authorization =
|
|
8041
|
-
xSdkDate =
|
|
8042
|
-
xProjectId =
|
|
8043
|
-
xAppUserId =
|
|
8338
|
+
skillId = updateKnowledgeSkillRequest['skill_id'];
|
|
8339
|
+
body = updateKnowledgeSkillRequest['body'];
|
|
8340
|
+
authorization = updateKnowledgeSkillRequest['Authorization'];
|
|
8341
|
+
xSdkDate = updateKnowledgeSkillRequest['X-Sdk-Date'];
|
|
8342
|
+
xProjectId = updateKnowledgeSkillRequest['X-Project-Id'];
|
|
8343
|
+
xAppUserId = updateKnowledgeSkillRequest['X-App-UserId'];
|
|
8044
8344
|
}
|
|
8045
8345
|
}
|
|
8046
|
-
if (
|
|
8047
|
-
throw new RequiredError('
|
|
8346
|
+
if (skillId === null || skillId === undefined) {
|
|
8347
|
+
throw new RequiredError('skillId', 'Required parameter skillId was null or undefined when calling updateKnowledgeSkill.');
|
|
8048
8348
|
}
|
|
8049
8349
|
if (body === null || body === undefined) {
|
|
8050
8350
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
@@ -8063,19 +8363,19 @@ const ParamCreater = function () {
|
|
|
8063
8363
|
}
|
|
8064
8364
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8065
8365
|
options.data = body !== undefined ? body : {};
|
|
8066
|
-
options.pathParams = { '
|
|
8366
|
+
options.pathParams = { 'skill_id': skillId, };
|
|
8067
8367
|
options.headers = localVarHeaderParameter;
|
|
8068
8368
|
return options;
|
|
8069
8369
|
},
|
|
8070
8370
|
/**
|
|
8071
|
-
*
|
|
8371
|
+
* 该接口用于创建第三方直播平台。
|
|
8072
8372
|
*
|
|
8073
8373
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8074
8374
|
*/
|
|
8075
|
-
|
|
8375
|
+
createLivePlatform(createLivePlatformRequest) {
|
|
8076
8376
|
const options = {
|
|
8077
8377
|
method: "POST",
|
|
8078
|
-
url: "/v1/{project_id}/
|
|
8378
|
+
url: "/v1/{project_id}/live-platforms/platforms",
|
|
8079
8379
|
contentType: "application/json",
|
|
8080
8380
|
queryParams: {},
|
|
8081
8381
|
pathParams: {},
|
|
@@ -8088,25 +8388,22 @@ const ParamCreater = function () {
|
|
|
8088
8388
|
let xSdkDate;
|
|
8089
8389
|
let xProjectId;
|
|
8090
8390
|
let xAppUserId;
|
|
8091
|
-
if (
|
|
8092
|
-
if (
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8391
|
+
if (createLivePlatformRequest !== null && createLivePlatformRequest !== undefined) {
|
|
8392
|
+
if (createLivePlatformRequest instanceof CreateLivePlatformRequest_1.CreateLivePlatformRequest) {
|
|
8393
|
+
authorization = createLivePlatformRequest.authorization;
|
|
8394
|
+
xSdkDate = createLivePlatformRequest.xSdkDate;
|
|
8395
|
+
xProjectId = createLivePlatformRequest.xProjectId;
|
|
8396
|
+
xAppUserId = createLivePlatformRequest.xAppUserId;
|
|
8397
|
+
body = createLivePlatformRequest.body;
|
|
8098
8398
|
}
|
|
8099
8399
|
else {
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8400
|
+
authorization = createLivePlatformRequest['Authorization'];
|
|
8401
|
+
xSdkDate = createLivePlatformRequest['X-Sdk-Date'];
|
|
8402
|
+
xProjectId = createLivePlatformRequest['X-Project-Id'];
|
|
8403
|
+
xAppUserId = createLivePlatformRequest['X-App-UserId'];
|
|
8404
|
+
body = createLivePlatformRequest['body'];
|
|
8105
8405
|
}
|
|
8106
8406
|
}
|
|
8107
|
-
if (body === null || body === undefined) {
|
|
8108
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
8109
|
-
}
|
|
8110
8407
|
if (authorization !== undefined && authorization !== null) {
|
|
8111
8408
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
8112
8409
|
}
|
|
@@ -8125,44 +8422,43 @@ const ParamCreater = function () {
|
|
|
8125
8422
|
return options;
|
|
8126
8423
|
},
|
|
8127
8424
|
/**
|
|
8128
|
-
*
|
|
8425
|
+
* 该接口用于删除第三方直播平台信息。
|
|
8129
8426
|
*
|
|
8130
8427
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8131
8428
|
*/
|
|
8132
|
-
|
|
8429
|
+
deleteLivePlatform(deleteLivePlatformRequest) {
|
|
8133
8430
|
const options = {
|
|
8134
|
-
method: "
|
|
8135
|
-
url: "/v1/{project_id}/
|
|
8431
|
+
method: "DELETE",
|
|
8432
|
+
url: "/v1/{project_id}/live-platforms/platforms/{platform_id}",
|
|
8136
8433
|
contentType: "application/json",
|
|
8137
8434
|
queryParams: {},
|
|
8138
8435
|
pathParams: {},
|
|
8139
|
-
headers: {}
|
|
8140
|
-
data: {}
|
|
8436
|
+
headers: {}
|
|
8141
8437
|
};
|
|
8142
8438
|
const localVarHeaderParameter = {};
|
|
8143
|
-
let
|
|
8439
|
+
let platformId;
|
|
8144
8440
|
let authorization;
|
|
8145
8441
|
let xSdkDate;
|
|
8146
8442
|
let xProjectId;
|
|
8147
8443
|
let xAppUserId;
|
|
8148
|
-
if (
|
|
8149
|
-
if (
|
|
8150
|
-
|
|
8151
|
-
authorization =
|
|
8152
|
-
xSdkDate =
|
|
8153
|
-
xProjectId =
|
|
8154
|
-
xAppUserId =
|
|
8444
|
+
if (deleteLivePlatformRequest !== null && deleteLivePlatformRequest !== undefined) {
|
|
8445
|
+
if (deleteLivePlatformRequest instanceof DeleteLivePlatformRequest_1.DeleteLivePlatformRequest) {
|
|
8446
|
+
platformId = deleteLivePlatformRequest.platformId;
|
|
8447
|
+
authorization = deleteLivePlatformRequest.authorization;
|
|
8448
|
+
xSdkDate = deleteLivePlatformRequest.xSdkDate;
|
|
8449
|
+
xProjectId = deleteLivePlatformRequest.xProjectId;
|
|
8450
|
+
xAppUserId = deleteLivePlatformRequest.xAppUserId;
|
|
8155
8451
|
}
|
|
8156
8452
|
else {
|
|
8157
|
-
|
|
8158
|
-
authorization =
|
|
8159
|
-
xSdkDate =
|
|
8160
|
-
xProjectId =
|
|
8161
|
-
xAppUserId =
|
|
8453
|
+
platformId = deleteLivePlatformRequest['platform_id'];
|
|
8454
|
+
authorization = deleteLivePlatformRequest['Authorization'];
|
|
8455
|
+
xSdkDate = deleteLivePlatformRequest['X-Sdk-Date'];
|
|
8456
|
+
xProjectId = deleteLivePlatformRequest['X-Project-Id'];
|
|
8457
|
+
xAppUserId = deleteLivePlatformRequest['X-App-UserId'];
|
|
8162
8458
|
}
|
|
8163
8459
|
}
|
|
8164
|
-
if (
|
|
8165
|
-
throw new RequiredError('
|
|
8460
|
+
if (platformId === null || platformId === undefined) {
|
|
8461
|
+
throw new RequiredError('platformId', 'Required parameter platformId was null or undefined when calling deleteLivePlatform.');
|
|
8166
8462
|
}
|
|
8167
8463
|
if (authorization !== undefined && authorization !== null) {
|
|
8168
8464
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -8176,20 +8472,19 @@ const ParamCreater = function () {
|
|
|
8176
8472
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8177
8473
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8178
8474
|
}
|
|
8179
|
-
|
|
8180
|
-
options.data = body !== undefined ? body : {};
|
|
8475
|
+
options.pathParams = { 'platform_id': platformId, };
|
|
8181
8476
|
options.headers = localVarHeaderParameter;
|
|
8182
8477
|
return options;
|
|
8183
8478
|
},
|
|
8184
8479
|
/**
|
|
8185
|
-
*
|
|
8480
|
+
* 该接口用于查询第三方直播平台商品列表。
|
|
8186
8481
|
*
|
|
8187
8482
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8188
8483
|
*/
|
|
8189
|
-
|
|
8484
|
+
listLivePlatformProducts(listLivePlatformProductsRequest) {
|
|
8190
8485
|
const options = {
|
|
8191
8486
|
method: "GET",
|
|
8192
|
-
url: "/v1/{project_id}/
|
|
8487
|
+
url: "/v1/{project_id}/live-platforms/products",
|
|
8193
8488
|
contentType: "application/json",
|
|
8194
8489
|
queryParams: {},
|
|
8195
8490
|
pathParams: {},
|
|
@@ -8197,38 +8492,50 @@ const ParamCreater = function () {
|
|
|
8197
8492
|
};
|
|
8198
8493
|
const localVarHeaderParameter = {};
|
|
8199
8494
|
const localVarQueryParameter = {};
|
|
8200
|
-
let
|
|
8201
|
-
let
|
|
8495
|
+
let platformId;
|
|
8496
|
+
let liveId;
|
|
8202
8497
|
let authorization;
|
|
8203
8498
|
let xSdkDate;
|
|
8204
8499
|
let xProjectId;
|
|
8205
|
-
let
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8500
|
+
let offset;
|
|
8501
|
+
let limit;
|
|
8502
|
+
if (listLivePlatformProductsRequest !== null && listLivePlatformProductsRequest !== undefined) {
|
|
8503
|
+
if (listLivePlatformProductsRequest instanceof ListLivePlatformProductsRequest_1.ListLivePlatformProductsRequest) {
|
|
8504
|
+
platformId = listLivePlatformProductsRequest.platformId;
|
|
8505
|
+
liveId = listLivePlatformProductsRequest.liveId;
|
|
8506
|
+
authorization = listLivePlatformProductsRequest.authorization;
|
|
8507
|
+
xSdkDate = listLivePlatformProductsRequest.xSdkDate;
|
|
8508
|
+
xProjectId = listLivePlatformProductsRequest.xProjectId;
|
|
8509
|
+
offset = listLivePlatformProductsRequest.offset;
|
|
8510
|
+
limit = listLivePlatformProductsRequest.limit;
|
|
8214
8511
|
}
|
|
8215
8512
|
else {
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
authorization =
|
|
8219
|
-
xSdkDate =
|
|
8220
|
-
xProjectId =
|
|
8221
|
-
|
|
8513
|
+
platformId = listLivePlatformProductsRequest['platform_id'];
|
|
8514
|
+
liveId = listLivePlatformProductsRequest['live_id'];
|
|
8515
|
+
authorization = listLivePlatformProductsRequest['Authorization'];
|
|
8516
|
+
xSdkDate = listLivePlatformProductsRequest['X-Sdk-Date'];
|
|
8517
|
+
xProjectId = listLivePlatformProductsRequest['X-Project-Id'];
|
|
8518
|
+
offset = listLivePlatformProductsRequest['offset'];
|
|
8519
|
+
limit = listLivePlatformProductsRequest['limit'];
|
|
8222
8520
|
}
|
|
8223
8521
|
}
|
|
8224
|
-
if (
|
|
8225
|
-
throw new RequiredError('
|
|
8522
|
+
if (platformId === null || platformId === undefined) {
|
|
8523
|
+
throw new RequiredError('platformId', 'Required parameter platformId was null or undefined when calling listLivePlatformProducts.');
|
|
8226
8524
|
}
|
|
8227
|
-
if (
|
|
8228
|
-
|
|
8525
|
+
if (platformId !== null && platformId !== undefined) {
|
|
8526
|
+
localVarQueryParameter['platform_id'] = platformId;
|
|
8229
8527
|
}
|
|
8230
|
-
if (
|
|
8231
|
-
|
|
8528
|
+
if (liveId === null || liveId === undefined) {
|
|
8529
|
+
throw new RequiredError('liveId', 'Required parameter liveId was null or undefined when calling listLivePlatformProducts.');
|
|
8530
|
+
}
|
|
8531
|
+
if (liveId !== null && liveId !== undefined) {
|
|
8532
|
+
localVarQueryParameter['live_id'] = liveId;
|
|
8533
|
+
}
|
|
8534
|
+
if (offset !== null && offset !== undefined) {
|
|
8535
|
+
localVarQueryParameter['offset'] = offset;
|
|
8536
|
+
}
|
|
8537
|
+
if (limit !== null && limit !== undefined) {
|
|
8538
|
+
localVarQueryParameter['limit'] = limit;
|
|
8232
8539
|
}
|
|
8233
8540
|
if (authorization !== undefined && authorization !== null) {
|
|
8234
8541
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -8239,23 +8546,19 @@ const ParamCreater = function () {
|
|
|
8239
8546
|
if (xProjectId !== undefined && xProjectId !== null) {
|
|
8240
8547
|
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
8241
8548
|
}
|
|
8242
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8243
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8244
|
-
}
|
|
8245
8549
|
options.queryParams = localVarQueryParameter;
|
|
8246
|
-
options.pathParams = { 'skill_id': skillId, };
|
|
8247
8550
|
options.headers = localVarHeaderParameter;
|
|
8248
8551
|
return options;
|
|
8249
8552
|
},
|
|
8250
8553
|
/**
|
|
8251
|
-
*
|
|
8554
|
+
* 该接口用于查询直播平台列表。
|
|
8252
8555
|
*
|
|
8253
8556
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8254
8557
|
*/
|
|
8255
|
-
|
|
8558
|
+
listLivePlatforms(listLivePlatformsRequest) {
|
|
8256
8559
|
const options = {
|
|
8257
8560
|
method: "GET",
|
|
8258
|
-
url: "/v1/{project_id}/
|
|
8561
|
+
url: "/v1/{project_id}/live-platforms/platforms",
|
|
8259
8562
|
contentType: "application/json",
|
|
8260
8563
|
queryParams: {},
|
|
8261
8564
|
pathParams: {},
|
|
@@ -8266,25 +8569,25 @@ const ParamCreater = function () {
|
|
|
8266
8569
|
let authorization;
|
|
8267
8570
|
let xSdkDate;
|
|
8268
8571
|
let xProjectId;
|
|
8269
|
-
let xAppUserId;
|
|
8270
8572
|
let offset;
|
|
8271
8573
|
let limit;
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
offset =
|
|
8279
|
-
limit =
|
|
8574
|
+
let accessType;
|
|
8575
|
+
if (listLivePlatformsRequest !== null && listLivePlatformsRequest !== undefined) {
|
|
8576
|
+
if (listLivePlatformsRequest instanceof ListLivePlatformsRequest_1.ListLivePlatformsRequest) {
|
|
8577
|
+
authorization = listLivePlatformsRequest.authorization;
|
|
8578
|
+
xSdkDate = listLivePlatformsRequest.xSdkDate;
|
|
8579
|
+
xProjectId = listLivePlatformsRequest.xProjectId;
|
|
8580
|
+
offset = listLivePlatformsRequest.offset;
|
|
8581
|
+
limit = listLivePlatformsRequest.limit;
|
|
8582
|
+
accessType = listLivePlatformsRequest.accessType;
|
|
8280
8583
|
}
|
|
8281
8584
|
else {
|
|
8282
|
-
authorization =
|
|
8283
|
-
xSdkDate =
|
|
8284
|
-
xProjectId =
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8585
|
+
authorization = listLivePlatformsRequest['Authorization'];
|
|
8586
|
+
xSdkDate = listLivePlatformsRequest['X-Sdk-Date'];
|
|
8587
|
+
xProjectId = listLivePlatformsRequest['X-Project-Id'];
|
|
8588
|
+
offset = listLivePlatformsRequest['offset'];
|
|
8589
|
+
limit = listLivePlatformsRequest['limit'];
|
|
8590
|
+
accessType = listLivePlatformsRequest['access_type'];
|
|
8288
8591
|
}
|
|
8289
8592
|
}
|
|
8290
8593
|
if (offset !== null && offset !== undefined) {
|
|
@@ -8293,6 +8596,9 @@ const ParamCreater = function () {
|
|
|
8293
8596
|
if (limit !== null && limit !== undefined) {
|
|
8294
8597
|
localVarQueryParameter['limit'] = limit;
|
|
8295
8598
|
}
|
|
8599
|
+
if (accessType !== null && accessType !== undefined) {
|
|
8600
|
+
localVarQueryParameter['access_type'] = accessType;
|
|
8601
|
+
}
|
|
8296
8602
|
if (authorization !== undefined && authorization !== null) {
|
|
8297
8603
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
8298
8604
|
}
|
|
@@ -8302,51 +8608,48 @@ const ParamCreater = function () {
|
|
|
8302
8608
|
if (xProjectId !== undefined && xProjectId !== null) {
|
|
8303
8609
|
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
8304
8610
|
}
|
|
8305
|
-
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8306
|
-
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8307
|
-
}
|
|
8308
8611
|
options.queryParams = localVarQueryParameter;
|
|
8309
8612
|
options.headers = localVarHeaderParameter;
|
|
8310
8613
|
return options;
|
|
8311
8614
|
},
|
|
8312
8615
|
/**
|
|
8313
|
-
*
|
|
8616
|
+
* 该接口用于查询第三方直播平台信息。
|
|
8314
8617
|
*
|
|
8315
8618
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8316
8619
|
*/
|
|
8317
|
-
|
|
8620
|
+
showLivePlatform(showLivePlatformRequest) {
|
|
8318
8621
|
const options = {
|
|
8319
8622
|
method: "GET",
|
|
8320
|
-
url: "/v1/{project_id}/
|
|
8623
|
+
url: "/v1/{project_id}/live-platforms/platforms/{platform_id}",
|
|
8321
8624
|
contentType: "application/json",
|
|
8322
8625
|
queryParams: {},
|
|
8323
8626
|
pathParams: {},
|
|
8324
8627
|
headers: {}
|
|
8325
8628
|
};
|
|
8326
8629
|
const localVarHeaderParameter = {};
|
|
8327
|
-
let
|
|
8630
|
+
let platformId;
|
|
8328
8631
|
let authorization;
|
|
8329
8632
|
let xSdkDate;
|
|
8330
8633
|
let xProjectId;
|
|
8331
8634
|
let xAppUserId;
|
|
8332
|
-
if (
|
|
8333
|
-
if (
|
|
8334
|
-
|
|
8335
|
-
authorization =
|
|
8336
|
-
xSdkDate =
|
|
8337
|
-
xProjectId =
|
|
8338
|
-
xAppUserId =
|
|
8635
|
+
if (showLivePlatformRequest !== null && showLivePlatformRequest !== undefined) {
|
|
8636
|
+
if (showLivePlatformRequest instanceof ShowLivePlatformRequest_1.ShowLivePlatformRequest) {
|
|
8637
|
+
platformId = showLivePlatformRequest.platformId;
|
|
8638
|
+
authorization = showLivePlatformRequest.authorization;
|
|
8639
|
+
xSdkDate = showLivePlatformRequest.xSdkDate;
|
|
8640
|
+
xProjectId = showLivePlatformRequest.xProjectId;
|
|
8641
|
+
xAppUserId = showLivePlatformRequest.xAppUserId;
|
|
8339
8642
|
}
|
|
8340
8643
|
else {
|
|
8341
|
-
|
|
8342
|
-
authorization =
|
|
8343
|
-
xSdkDate =
|
|
8344
|
-
xProjectId =
|
|
8345
|
-
xAppUserId =
|
|
8644
|
+
platformId = showLivePlatformRequest['platform_id'];
|
|
8645
|
+
authorization = showLivePlatformRequest['Authorization'];
|
|
8646
|
+
xSdkDate = showLivePlatformRequest['X-Sdk-Date'];
|
|
8647
|
+
xProjectId = showLivePlatformRequest['X-Project-Id'];
|
|
8648
|
+
xAppUserId = showLivePlatformRequest['X-App-UserId'];
|
|
8346
8649
|
}
|
|
8347
8650
|
}
|
|
8348
|
-
if (
|
|
8349
|
-
throw new RequiredError('
|
|
8651
|
+
if (platformId === null || platformId === undefined) {
|
|
8652
|
+
throw new RequiredError('platformId', 'Required parameter platformId was null or undefined when calling showLivePlatform.');
|
|
8350
8653
|
}
|
|
8351
8654
|
if (authorization !== undefined && authorization !== null) {
|
|
8352
8655
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -8360,19 +8663,19 @@ const ParamCreater = function () {
|
|
|
8360
8663
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
8361
8664
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
8362
8665
|
}
|
|
8363
|
-
options.pathParams = { '
|
|
8666
|
+
options.pathParams = { 'platform_id': platformId, };
|
|
8364
8667
|
options.headers = localVarHeaderParameter;
|
|
8365
8668
|
return options;
|
|
8366
8669
|
},
|
|
8367
8670
|
/**
|
|
8368
|
-
*
|
|
8671
|
+
* 该接口用于更新第三方直播平台信息。
|
|
8369
8672
|
*
|
|
8370
8673
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
8371
8674
|
*/
|
|
8372
|
-
|
|
8675
|
+
updateLivePlatform(updateLivePlatformRequest) {
|
|
8373
8676
|
const options = {
|
|
8374
8677
|
method: "PUT",
|
|
8375
|
-
url: "/v1/{project_id}/
|
|
8678
|
+
url: "/v1/{project_id}/live-platforms/platforms/{platform_id}",
|
|
8376
8679
|
contentType: "application/json",
|
|
8377
8680
|
queryParams: {},
|
|
8378
8681
|
pathParams: {},
|
|
@@ -8381,34 +8684,31 @@ const ParamCreater = function () {
|
|
|
8381
8684
|
};
|
|
8382
8685
|
const localVarHeaderParameter = {};
|
|
8383
8686
|
let body;
|
|
8384
|
-
let
|
|
8687
|
+
let platformId;
|
|
8385
8688
|
let authorization;
|
|
8386
8689
|
let xSdkDate;
|
|
8387
8690
|
let xProjectId;
|
|
8388
8691
|
let xAppUserId;
|
|
8389
|
-
if (
|
|
8390
|
-
if (
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8692
|
+
if (updateLivePlatformRequest !== null && updateLivePlatformRequest !== undefined) {
|
|
8693
|
+
if (updateLivePlatformRequest instanceof UpdateLivePlatformRequest_1.UpdateLivePlatformRequest) {
|
|
8694
|
+
platformId = updateLivePlatformRequest.platformId;
|
|
8695
|
+
authorization = updateLivePlatformRequest.authorization;
|
|
8696
|
+
xSdkDate = updateLivePlatformRequest.xSdkDate;
|
|
8697
|
+
xProjectId = updateLivePlatformRequest.xProjectId;
|
|
8698
|
+
xAppUserId = updateLivePlatformRequest.xAppUserId;
|
|
8699
|
+
body = updateLivePlatformRequest.body;
|
|
8397
8700
|
}
|
|
8398
8701
|
else {
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8702
|
+
platformId = updateLivePlatformRequest['platform_id'];
|
|
8703
|
+
authorization = updateLivePlatformRequest['Authorization'];
|
|
8704
|
+
xSdkDate = updateLivePlatformRequest['X-Sdk-Date'];
|
|
8705
|
+
xProjectId = updateLivePlatformRequest['X-Project-Id'];
|
|
8706
|
+
xAppUserId = updateLivePlatformRequest['X-App-UserId'];
|
|
8707
|
+
body = updateLivePlatformRequest['body'];
|
|
8405
8708
|
}
|
|
8406
8709
|
}
|
|
8407
|
-
if (
|
|
8408
|
-
throw new RequiredError('
|
|
8409
|
-
}
|
|
8410
|
-
if (body === null || body === undefined) {
|
|
8411
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
8710
|
+
if (platformId === null || platformId === undefined) {
|
|
8711
|
+
throw new RequiredError('platformId', 'Required parameter platformId was null or undefined when calling updateLivePlatform.');
|
|
8412
8712
|
}
|
|
8413
8713
|
if (authorization !== undefined && authorization !== null) {
|
|
8414
8714
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -8424,7 +8724,7 @@ const ParamCreater = function () {
|
|
|
8424
8724
|
}
|
|
8425
8725
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8426
8726
|
options.data = body !== undefined ? body : {};
|
|
8427
|
-
options.pathParams = { '
|
|
8727
|
+
options.pathParams = { 'platform_id': platformId, };
|
|
8428
8728
|
options.headers = localVarHeaderParameter;
|
|
8429
8729
|
return options;
|
|
8430
8730
|
},
|
|
@@ -12456,6 +12756,7 @@ const ParamCreater = function () {
|
|
|
12456
12756
|
let voiceName;
|
|
12457
12757
|
let tag;
|
|
12458
12758
|
let jobType;
|
|
12759
|
+
let batchName;
|
|
12459
12760
|
if (listVoiceTrainingJobRequest !== null && listVoiceTrainingJobRequest !== undefined) {
|
|
12460
12761
|
if (listVoiceTrainingJobRequest instanceof ListVoiceTrainingJobRequest_1.ListVoiceTrainingJobRequest) {
|
|
12461
12762
|
offset = listVoiceTrainingJobRequest.offset;
|
|
@@ -12468,6 +12769,7 @@ const ParamCreater = function () {
|
|
|
12468
12769
|
voiceName = listVoiceTrainingJobRequest.voiceName;
|
|
12469
12770
|
tag = listVoiceTrainingJobRequest.tag;
|
|
12470
12771
|
jobType = listVoiceTrainingJobRequest.jobType;
|
|
12772
|
+
batchName = listVoiceTrainingJobRequest.batchName;
|
|
12471
12773
|
}
|
|
12472
12774
|
else {
|
|
12473
12775
|
offset = listVoiceTrainingJobRequest['offset'];
|
|
@@ -12480,6 +12782,7 @@ const ParamCreater = function () {
|
|
|
12480
12782
|
voiceName = listVoiceTrainingJobRequest['voice_name'];
|
|
12481
12783
|
tag = listVoiceTrainingJobRequest['tag'];
|
|
12482
12784
|
jobType = listVoiceTrainingJobRequest['job_type'];
|
|
12785
|
+
batchName = listVoiceTrainingJobRequest['batch_name'];
|
|
12483
12786
|
}
|
|
12484
12787
|
}
|
|
12485
12788
|
if (offset !== null && offset !== undefined) {
|
|
@@ -12509,6 +12812,9 @@ const ParamCreater = function () {
|
|
|
12509
12812
|
if (jobType !== null && jobType !== undefined) {
|
|
12510
12813
|
localVarQueryParameter['job_type'] = jobType;
|
|
12511
12814
|
}
|
|
12815
|
+
if (batchName !== null && batchName !== undefined) {
|
|
12816
|
+
localVarQueryParameter['batch_name'] = batchName;
|
|
12817
|
+
}
|
|
12512
12818
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
12513
12819
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
12514
12820
|
}
|
|
@@ -12516,6 +12822,40 @@ const ParamCreater = function () {
|
|
|
12516
12822
|
options.headers = localVarHeaderParameter;
|
|
12517
12823
|
return options;
|
|
12518
12824
|
},
|
|
12825
|
+
/**
|
|
12826
|
+
* 用户设置任务批次,该接口用于批量任务管理场景,设置任务的批次
|
|
12827
|
+
* * 需要开通NA租户权限后才能正常调用
|
|
12828
|
+
*
|
|
12829
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12830
|
+
*/
|
|
12831
|
+
setJobBatchName(setJobBatchNameRequest) {
|
|
12832
|
+
const options = {
|
|
12833
|
+
method: "PUT",
|
|
12834
|
+
url: "/v1/{project_id}/voice-training-manage/user/batch",
|
|
12835
|
+
contentType: "application/json",
|
|
12836
|
+
queryParams: {},
|
|
12837
|
+
pathParams: {},
|
|
12838
|
+
headers: {},
|
|
12839
|
+
data: {}
|
|
12840
|
+
};
|
|
12841
|
+
const localVarHeaderParameter = {};
|
|
12842
|
+
let body;
|
|
12843
|
+
if (setJobBatchNameRequest !== null && setJobBatchNameRequest !== undefined) {
|
|
12844
|
+
if (setJobBatchNameRequest instanceof SetJobBatchNameRequest_1.SetJobBatchNameRequest) {
|
|
12845
|
+
body = setJobBatchNameRequest.body;
|
|
12846
|
+
}
|
|
12847
|
+
else {
|
|
12848
|
+
body = setJobBatchNameRequest['body'];
|
|
12849
|
+
}
|
|
12850
|
+
}
|
|
12851
|
+
if (body === null || body === undefined) {
|
|
12852
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
12853
|
+
}
|
|
12854
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12855
|
+
options.data = body !== undefined ? body : {};
|
|
12856
|
+
options.headers = localVarHeaderParameter;
|
|
12857
|
+
return options;
|
|
12858
|
+
},
|
|
12519
12859
|
/**
|
|
12520
12860
|
* 获取语音训练任务审核结果。
|
|
12521
12861
|
*
|
|
@@ -12578,6 +12918,24 @@ const ParamCreater = function () {
|
|
|
12578
12918
|
options.headers = localVarHeaderParameter;
|
|
12579
12919
|
return options;
|
|
12580
12920
|
},
|
|
12921
|
+
/**
|
|
12922
|
+
* 查询用户配置的个性化音频时长
|
|
12923
|
+
*
|
|
12924
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
12925
|
+
*/
|
|
12926
|
+
showTenantDurationCfg() {
|
|
12927
|
+
const options = {
|
|
12928
|
+
method: "GET",
|
|
12929
|
+
url: "/v1/{project_id}/voice-training-manage/user/tenant-duration-cfg",
|
|
12930
|
+
contentType: "application/json",
|
|
12931
|
+
queryParams: {},
|
|
12932
|
+
pathParams: {},
|
|
12933
|
+
headers: {}
|
|
12934
|
+
};
|
|
12935
|
+
const localVarHeaderParameter = {};
|
|
12936
|
+
options.headers = localVarHeaderParameter;
|
|
12937
|
+
return options;
|
|
12938
|
+
},
|
|
12581
12939
|
/**
|
|
12582
12940
|
* 获取在线录音确认结果。
|
|
12583
12941
|
*
|
|
@@ -13339,6 +13697,10 @@ const ParamCreater = function () {
|
|
|
13339
13697
|
/**
|
|
13340
13698
|
* 该接口用于对外生成音频文件
|
|
13341
13699
|
*
|
|
13700
|
+
* > 使用本接口前,需要在MetaStudio控制台服务概览页面,开通“声音合成”的按需计费。
|
|
13701
|
+
* > 详细操作为:单击“声音合成”卡片中的“去开通”,在弹出的“开通按需计费服务提示”对话框中,勾选同意协议。单击“确定”,开通按需计费。
|
|
13702
|
+
* > 如需使用第三方声音进行语音合成,请购买出门问问声音套餐,操作请参考《用户指南》的“购买出门问问声音套餐”章节。
|
|
13703
|
+
*
|
|
13342
13704
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
13343
13705
|
*/
|
|
13344
13706
|
createAsyncTtsJob(createAsyncTtsJobRequest) {
|