@huaweicloud/huaweicloud-sdk-metastudio 3.1.74 → 3.1.76
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 +535 -68
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +1333 -96
- package/v1/MetaStudioClient.js.map +1 -1
- package/v1/model/ChatSubtitleConfig.d.ts +12 -0
- package/v1/model/ChatSubtitleConfig.d.ts.map +1 -0
- package/v1/model/ChatSubtitleConfig.js +25 -0
- package/v1/model/ChatSubtitleConfig.js.map +1 -0
- package/v1/model/ChatVideoConfigRsp.d.ts +8 -0
- package/v1/model/ChatVideoConfigRsp.d.ts.map +1 -0
- package/v1/model/ChatVideoConfigRsp.js +17 -0
- package/v1/model/ChatVideoConfigRsp.js.map +1 -0
- package/v1/model/CreateDialogUrlReq.d.ts +12 -0
- package/v1/model/CreateDialogUrlReq.d.ts.map +1 -0
- package/v1/model/CreateDialogUrlReq.js +31 -0
- package/v1/model/CreateDialogUrlReq.js.map +1 -0
- package/v1/model/CreateDialogUrlRequest.d.ts +23 -0
- package/v1/model/CreateDialogUrlRequest.d.ts.map +1 -0
- package/v1/model/CreateDialogUrlRequest.js +53 -0
- package/v1/model/CreateDialogUrlRequest.js.map +1 -0
- package/v1/model/CreateDialogUrlResponse.d.ts +11 -0
- package/v1/model/CreateDialogUrlResponse.d.ts.map +1 -0
- package/v1/model/CreateDialogUrlResponse.js +25 -0
- package/v1/model/CreateDialogUrlResponse.js.map +1 -0
- package/v1/model/CreateOnceCodeRequest.d.ts +20 -0
- package/v1/model/CreateOnceCodeRequest.d.ts.map +1 -0
- package/v1/model/CreateOnceCodeRequest.js +49 -0
- package/v1/model/CreateOnceCodeRequest.js.map +1 -0
- package/v1/model/CreateOnceCodeResponse.d.ts +13 -0
- package/v1/model/CreateOnceCodeResponse.d.ts.map +1 -0
- package/v1/model/CreateOnceCodeResponse.js +31 -0
- package/v1/model/CreateOnceCodeResponse.js.map +1 -0
- package/v1/model/CreateRobotReq.d.ts +27 -0
- package/v1/model/CreateRobotReq.d.ts.map +1 -0
- package/v1/model/CreateRobotReq.js +60 -0
- package/v1/model/CreateRobotReq.js.map +1 -0
- package/v1/model/CreateRobotRequest.d.ts +23 -0
- package/v1/model/CreateRobotRequest.d.ts.map +1 -0
- package/v1/model/CreateRobotRequest.js +53 -0
- package/v1/model/CreateRobotRequest.js.map +1 -0
- package/v1/model/CreateRobotResponse.d.ts +13 -0
- package/v1/model/CreateRobotResponse.d.ts.map +1 -0
- package/v1/model/CreateRobotResponse.js +31 -0
- package/v1/model/CreateRobotResponse.js.map +1 -0
- package/v1/model/CreateSmartChatRoomReq.d.ts +52 -0
- package/v1/model/CreateSmartChatRoomReq.d.ts.map +1 -0
- package/v1/model/CreateSmartChatRoomReq.js +115 -0
- package/v1/model/CreateSmartChatRoomReq.js.map +1 -0
- package/v1/model/CreateSmartChatRoomRequest.d.ts +23 -0
- package/v1/model/CreateSmartChatRoomRequest.d.ts.map +1 -0
- package/v1/model/CreateSmartChatRoomRequest.js +53 -0
- package/v1/model/CreateSmartChatRoomRequest.js.map +1 -0
- package/v1/model/CreateSmartChatRoomResponse.d.ts +13 -0
- package/v1/model/CreateSmartChatRoomResponse.d.ts.map +1 -0
- package/v1/model/CreateSmartChatRoomResponse.js +31 -0
- package/v1/model/CreateSmartChatRoomResponse.js.map +1 -0
- package/v1/model/DeleteRobotRequest.d.ts +22 -0
- package/v1/model/DeleteRobotRequest.d.ts.map +1 -0
- package/v1/model/DeleteRobotRequest.js +53 -0
- package/v1/model/DeleteRobotRequest.js.map +1 -0
- package/v1/model/DeleteRobotResponse.d.ts +9 -0
- package/v1/model/DeleteRobotResponse.d.ts.map +1 -0
- package/v1/model/DeleteRobotResponse.js +21 -0
- package/v1/model/DeleteRobotResponse.js.map +1 -0
- package/v1/model/DeleteSmartChatRoomRequest.d.ts +24 -0
- package/v1/model/DeleteSmartChatRoomRequest.d.ts.map +1 -0
- package/v1/model/DeleteSmartChatRoomRequest.js +60 -0
- package/v1/model/DeleteSmartChatRoomRequest.js.map +1 -0
- package/v1/model/DeleteSmartChatRoomResponse.d.ts +9 -0
- package/v1/model/DeleteSmartChatRoomResponse.d.ts.map +1 -0
- package/v1/model/DeleteSmartChatRoomResponse.js +21 -0
- package/v1/model/DeleteSmartChatRoomResponse.js.map +1 -0
- package/v1/model/HuaweiEiCbs.d.ts +14 -0
- package/v1/model/HuaweiEiCbs.d.ts.map +1 -0
- package/v1/model/HuaweiEiCbs.js +33 -0
- package/v1/model/HuaweiEiCbs.js.map +1 -0
- package/v1/model/IflytekAiuiConfig.d.ts +16 -0
- package/v1/model/IflytekAiuiConfig.d.ts.map +1 -0
- package/v1/model/IflytekAiuiConfig.js +39 -0
- package/v1/model/IflytekAiuiConfig.js.map +1 -0
- package/v1/model/IflytekSpark.d.ts +16 -0
- package/v1/model/IflytekSpark.d.ts.map +1 -0
- package/v1/model/IflytekSpark.js +39 -0
- package/v1/model/IflytekSpark.js.map +1 -0
- package/v1/model/ListDigitalHumanVideoRequest.d.ts +4 -0
- package/v1/model/ListDigitalHumanVideoRequest.d.ts.map +1 -1
- package/v1/model/ListDigitalHumanVideoRequest.js +10 -0
- package/v1/model/ListDigitalHumanVideoRequest.js.map +1 -1
- package/v1/model/ListRobotRequest.d.ts +24 -0
- package/v1/model/ListRobotRequest.d.ts.map +1 -0
- package/v1/model/ListRobotRequest.js +57 -0
- package/v1/model/ListRobotRequest.js.map +1 -0
- package/v1/model/ListRobotResponse.d.ts +18 -0
- package/v1/model/ListRobotResponse.d.ts.map +1 -0
- package/v1/model/ListRobotResponse.js +37 -0
- package/v1/model/ListRobotResponse.js.map +1 -0
- package/v1/model/ListSmartChatRoomsRequest.d.ts +40 -0
- package/v1/model/ListSmartChatRoomsRequest.d.ts.map +1 -0
- package/v1/model/ListSmartChatRoomsRequest.js +97 -0
- package/v1/model/ListSmartChatRoomsRequest.js.map +1 -0
- package/v1/model/ListSmartChatRoomsResponse.d.ts +16 -0
- package/v1/model/ListSmartChatRoomsResponse.d.ts.map +1 -0
- package/v1/model/ListSmartChatRoomsResponse.js +35 -0
- package/v1/model/ListSmartChatRoomsResponse.js.map +1 -0
- package/v1/model/Pages.d.ts +10 -0
- package/v1/model/Pages.d.ts.map +1 -0
- package/v1/model/Pages.js +21 -0
- package/v1/model/Pages.js.map +1 -0
- package/v1/model/RobotInfo.d.ts +34 -0
- package/v1/model/RobotInfo.d.ts.map +1 -0
- package/v1/model/RobotInfo.js +81 -0
- package/v1/model/RobotInfo.js.map +1 -0
- package/v1/model/ShowRobotRequest.d.ts +24 -0
- package/v1/model/ShowRobotRequest.d.ts.map +1 -0
- package/v1/model/ShowRobotRequest.js +60 -0
- package/v1/model/ShowRobotRequest.js.map +1 -0
- package/v1/model/ShowRobotResponse.d.ts +39 -0
- package/v1/model/ShowRobotResponse.d.ts.map +1 -0
- package/v1/model/ShowRobotResponse.js +93 -0
- package/v1/model/ShowRobotResponse.js.map +1 -0
- package/v1/model/ShowSmartChatJobRequest.d.ts +28 -0
- package/v1/model/ShowSmartChatJobRequest.d.ts.map +1 -0
- package/v1/model/ShowSmartChatJobRequest.js +71 -0
- package/v1/model/ShowSmartChatJobRequest.js.map +1 -0
- package/v1/model/ShowSmartChatJobResponse.d.ts +65 -0
- package/v1/model/ShowSmartChatJobResponse.d.ts.map +1 -0
- package/v1/model/ShowSmartChatJobResponse.js +132 -0
- package/v1/model/ShowSmartChatJobResponse.js.map +1 -0
- package/v1/model/ShowSmartChatRoomRequest.d.ts +24 -0
- package/v1/model/ShowSmartChatRoomRequest.d.ts.map +1 -0
- package/v1/model/ShowSmartChatRoomRequest.js +60 -0
- package/v1/model/ShowSmartChatRoomRequest.js.map +1 -0
- package/v1/model/ShowSmartChatRoomResponse.d.ts +73 -0
- package/v1/model/ShowSmartChatRoomResponse.d.ts.map +1 -0
- package/v1/model/ShowSmartChatRoomResponse.js +167 -0
- package/v1/model/ShowSmartChatRoomResponse.js.map +1 -0
- package/v1/model/SmartChatRoomBaseInfo.d.ts +42 -0
- package/v1/model/SmartChatRoomBaseInfo.d.ts.map +1 -0
- package/v1/model/SmartChatRoomBaseInfo.js +99 -0
- package/v1/model/SmartChatRoomBaseInfo.js.map +1 -0
- package/v1/model/SmartLiveRoomBaseInfo.d.ts +2 -1
- package/v1/model/SmartLiveRoomBaseInfo.d.ts.map +1 -1
- package/v1/model/SmartLiveRoomBaseInfo.js +1 -0
- package/v1/model/SmartLiveRoomBaseInfo.js.map +1 -1
- package/v1/model/StartSmartChatJobRequest.d.ts +28 -0
- package/v1/model/StartSmartChatJobRequest.d.ts.map +1 -0
- package/v1/model/StartSmartChatJobRequest.js +71 -0
- package/v1/model/StartSmartChatJobRequest.js.map +1 -0
- package/v1/model/StartSmartChatJobResponse.d.ts +28 -0
- package/v1/model/StartSmartChatJobResponse.d.ts.map +1 -0
- package/v1/model/StartSmartChatJobResponse.js +61 -0
- package/v1/model/StartSmartChatJobResponse.js.map +1 -0
- package/v1/model/StopSmartChatJobRequest.d.ts +28 -0
- package/v1/model/StopSmartChatJobRequest.d.ts.map +1 -0
- package/v1/model/StopSmartChatJobRequest.js +71 -0
- package/v1/model/StopSmartChatJobRequest.js.map +1 -0
- package/v1/model/StopSmartChatJobResponse.d.ts +9 -0
- package/v1/model/StopSmartChatJobResponse.d.ts.map +1 -0
- package/v1/model/StopSmartChatJobResponse.js +21 -0
- package/v1/model/StopSmartChatJobResponse.js.map +1 -0
- package/v1/model/UpdateRobotReq.d.ts +27 -0
- package/v1/model/UpdateRobotReq.d.ts.map +1 -0
- package/v1/model/UpdateRobotReq.js +57 -0
- package/v1/model/UpdateRobotReq.js.map +1 -0
- package/v1/model/UpdateRobotRequest.d.ts +27 -0
- package/v1/model/UpdateRobotRequest.d.ts.map +1 -0
- package/v1/model/UpdateRobotRequest.js +64 -0
- package/v1/model/UpdateRobotRequest.js.map +1 -0
- package/v1/model/UpdateRobotResponse.d.ts +9 -0
- package/v1/model/UpdateRobotResponse.d.ts.map +1 -0
- package/v1/model/UpdateRobotResponse.js +21 -0
- package/v1/model/UpdateRobotResponse.js.map +1 -0
- package/v1/model/UpdateSmartChatRoomRequest.d.ts +27 -0
- package/v1/model/UpdateSmartChatRoomRequest.d.ts.map +1 -0
- package/v1/model/UpdateSmartChatRoomRequest.js +64 -0
- package/v1/model/UpdateSmartChatRoomRequest.js.map +1 -0
- package/v1/model/UpdateSmartChatRoomResponse.d.ts +73 -0
- package/v1/model/UpdateSmartChatRoomResponse.d.ts.map +1 -0
- package/v1/model/UpdateSmartChatRoomResponse.js +167 -0
- package/v1/model/UpdateSmartChatRoomResponse.js.map +1 -0
- package/v1/public-api.d.ts +42 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +42 -0
- package/v1/public-api.js.map +1 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -14,15 +14,19 @@ const ConfirmFileUploadRequest_1 = require("./model/ConfirmFileUploadRequest");
|
|
|
14
14
|
const ConfirmTrainingSegmentRequest_1 = require("./model/ConfirmTrainingSegmentRequest");
|
|
15
15
|
const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHumanVideoRequest");
|
|
16
16
|
const Create2dModelTrainingJobRequest_1 = require("./model/Create2dModelTrainingJobRequest");
|
|
17
|
+
const CreateDialogUrlRequest_1 = require("./model/CreateDialogUrlRequest");
|
|
17
18
|
const CreateDigitalAssetRequest_1 = require("./model/CreateDigitalAssetRequest");
|
|
18
19
|
const CreateDigitalHumanBusinessCardRequest_1 = require("./model/CreateDigitalHumanBusinessCardRequest");
|
|
19
20
|
const CreateFacialAnimationsRequest_1 = require("./model/CreateFacialAnimationsRequest");
|
|
20
21
|
const CreateFileRequest_1 = require("./model/CreateFileRequest");
|
|
21
22
|
const CreateInteractionRuleGroupRequest_1 = require("./model/CreateInteractionRuleGroupRequest");
|
|
23
|
+
const CreateOnceCodeRequest_1 = require("./model/CreateOnceCodeRequest");
|
|
22
24
|
const CreatePhotoDetectionRequest_1 = require("./model/CreatePhotoDetectionRequest");
|
|
23
25
|
const CreatePhotoDigitalHumanVideoRequest_1 = require("./model/CreatePhotoDigitalHumanVideoRequest");
|
|
24
26
|
const CreatePictureModelingByUrlJobRequest_1 = require("./model/CreatePictureModelingByUrlJobRequest");
|
|
25
27
|
const CreatePictureModelingJobRequest_1 = require("./model/CreatePictureModelingJobRequest");
|
|
28
|
+
const CreateRobotRequest_1 = require("./model/CreateRobotRequest");
|
|
29
|
+
const CreateSmartChatRoomRequest_1 = require("./model/CreateSmartChatRoomRequest");
|
|
26
30
|
const CreateSmartLiveRoomRequest_1 = require("./model/CreateSmartLiveRoomRequest");
|
|
27
31
|
const CreateTrainingAdvanceJobRequest_1 = require("./model/CreateTrainingAdvanceJobRequest");
|
|
28
32
|
const CreateTrainingBasicJobRequest_1 = require("./model/CreateTrainingBasicJobRequest");
|
|
@@ -36,6 +40,8 @@ const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
|
|
|
36
40
|
const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
|
|
37
41
|
const DeleteFileRequest_1 = require("./model/DeleteFileRequest");
|
|
38
42
|
const DeleteInteractionRuleGroupRequest_1 = require("./model/DeleteInteractionRuleGroupRequest");
|
|
43
|
+
const DeleteRobotRequest_1 = require("./model/DeleteRobotRequest");
|
|
44
|
+
const DeleteSmartChatRoomRequest_1 = require("./model/DeleteSmartChatRoomRequest");
|
|
39
45
|
const DeleteSmartLiveRoomRequest_1 = require("./model/DeleteSmartLiveRoomRequest");
|
|
40
46
|
const DeleteVideoScriptRequest_1 = require("./model/DeleteVideoScriptRequest");
|
|
41
47
|
const DeleteVoiceTrainingJobRequest_1 = require("./model/DeleteVoiceTrainingJobRequest");
|
|
@@ -50,6 +56,8 @@ const ListDigitalHumanVideoRequest_1 = require("./model/ListDigitalHumanVideoReq
|
|
|
50
56
|
const ListFacialAnimationsDataRequest_1 = require("./model/ListFacialAnimationsDataRequest");
|
|
51
57
|
const ListInteractionRuleGroupsRequest_1 = require("./model/ListInteractionRuleGroupsRequest");
|
|
52
58
|
const ListPictureModelingJobsRequest_1 = require("./model/ListPictureModelingJobsRequest");
|
|
59
|
+
const ListRobotRequest_1 = require("./model/ListRobotRequest");
|
|
60
|
+
const ListSmartChatRoomsRequest_1 = require("./model/ListSmartChatRoomsRequest");
|
|
53
61
|
const ListSmartLiveRequest_1 = require("./model/ListSmartLiveRequest");
|
|
54
62
|
const ListSmartLiveRoomsRequest_1 = require("./model/ListSmartLiveRoomsRequest");
|
|
55
63
|
const ListStylesRequest_1 = require("./model/ListStylesRequest");
|
|
@@ -69,6 +77,9 @@ const ShowJobUploadingAddressRequest_1 = require("./model/ShowJobUploadingAddres
|
|
|
69
77
|
const ShowPhotoDetectionRequest_1 = require("./model/ShowPhotoDetectionRequest");
|
|
70
78
|
const ShowPhotoDigitalHumanVideoRequest_1 = require("./model/ShowPhotoDigitalHumanVideoRequest");
|
|
71
79
|
const ShowPictureModelingJobRequest_1 = require("./model/ShowPictureModelingJobRequest");
|
|
80
|
+
const ShowRobotRequest_1 = require("./model/ShowRobotRequest");
|
|
81
|
+
const ShowSmartChatJobRequest_1 = require("./model/ShowSmartChatJobRequest");
|
|
82
|
+
const ShowSmartChatRoomRequest_1 = require("./model/ShowSmartChatRoomRequest");
|
|
72
83
|
const ShowSmartLiveRequest_1 = require("./model/ShowSmartLiveRequest");
|
|
73
84
|
const ShowSmartLiveRoomRequest_1 = require("./model/ShowSmartLiveRoomRequest");
|
|
74
85
|
const ShowTrainingSegmentInfoRequest_1 = require("./model/ShowTrainingSegmentInfoRequest");
|
|
@@ -76,13 +87,17 @@ const ShowTtsAuditionFileRequest_1 = require("./model/ShowTtsAuditionFileRequest
|
|
|
76
87
|
const ShowVideoMotionCaptureJobRequest_1 = require("./model/ShowVideoMotionCaptureJobRequest");
|
|
77
88
|
const ShowVideoScriptRequest_1 = require("./model/ShowVideoScriptRequest");
|
|
78
89
|
const ShowVoiceTrainingJobRequest_1 = require("./model/ShowVoiceTrainingJobRequest");
|
|
90
|
+
const StartSmartChatJobRequest_1 = require("./model/StartSmartChatJobRequest");
|
|
79
91
|
const StartSmartLiveRequest_1 = require("./model/StartSmartLiveRequest");
|
|
92
|
+
const StopSmartChatJobRequest_1 = require("./model/StopSmartChatJobRequest");
|
|
80
93
|
const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
|
|
81
94
|
const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
|
|
82
95
|
const Update2dModelTrainingJobRequest_1 = require("./model/Update2dModelTrainingJobRequest");
|
|
83
96
|
const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
|
|
84
97
|
const UpdateDigitalHumanBusinessCardRequest_1 = require("./model/UpdateDigitalHumanBusinessCardRequest");
|
|
85
98
|
const UpdateInteractionRuleGroupRequest_1 = require("./model/UpdateInteractionRuleGroupRequest");
|
|
99
|
+
const UpdateRobotRequest_1 = require("./model/UpdateRobotRequest");
|
|
100
|
+
const UpdateSmartChatRoomRequest_1 = require("./model/UpdateSmartChatRoomRequest");
|
|
86
101
|
const UpdateSmartLiveRoomRequest_1 = require("./model/UpdateSmartLiveRoomRequest");
|
|
87
102
|
const UpdateVideoScriptRequest_1 = require("./model/UpdateVideoScriptRequest");
|
|
88
103
|
class MetaStudioClient {
|
|
@@ -95,6 +110,89 @@ class MetaStudioClient {
|
|
|
95
110
|
getPath() {
|
|
96
111
|
return __dirname;
|
|
97
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* 该接口用于创建对话链接。
|
|
115
|
+
*
|
|
116
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
117
|
+
*
|
|
118
|
+
* @summary 创建对话链接
|
|
119
|
+
* @param {CreateDialogUrlReq} createDialogUrlRequestBody 创建对话链接请求。
|
|
120
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
121
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
122
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
123
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
createDialogUrl(createDialogUrlRequest) {
|
|
128
|
+
const options = (0, exports.ParamCreater)().createDialogUrl(createDialogUrlRequest);
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
131
|
+
return this.hcClient.sendRequest(options);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* 该接口用于查询数字人智能交互任务。
|
|
135
|
+
*
|
|
136
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
137
|
+
*
|
|
138
|
+
* @summary 查询数字人智能交互任务
|
|
139
|
+
* @param {string} roomId 直播间ID。
|
|
140
|
+
* @param {string} jobId 任务ID。
|
|
141
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
142
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
143
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
144
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
showSmartChatJob(showSmartChatJobRequest) {
|
|
149
|
+
const options = (0, exports.ParamCreater)().showSmartChatJob(showSmartChatJobRequest);
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
152
|
+
return this.hcClient.sendRequest(options);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* 该接口用于启动数字人智能交互任务。
|
|
156
|
+
*
|
|
157
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
158
|
+
*
|
|
159
|
+
* @summary 启动数字人智能交互任务
|
|
160
|
+
* @param {string} roomId 直播间ID。
|
|
161
|
+
* @param {string} robotId 机器人ID。
|
|
162
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
163
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
164
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
165
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
startSmartChatJob(startSmartChatJobRequest) {
|
|
170
|
+
const options = (0, exports.ParamCreater)().startSmartChatJob(startSmartChatJobRequest);
|
|
171
|
+
// @ts-ignore
|
|
172
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
173
|
+
return this.hcClient.sendRequest(options);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* 该接口用于结束数字人智能交互任务。
|
|
177
|
+
*
|
|
178
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
179
|
+
*
|
|
180
|
+
* @summary 结束数字人智能交互任务
|
|
181
|
+
* @param {string} roomId 直播间ID。
|
|
182
|
+
* @param {string} jobId 任务ID。
|
|
183
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
184
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
185
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
186
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
stopSmartChatJob(stopSmartChatJobRequest) {
|
|
191
|
+
const options = (0, exports.ParamCreater)().stopSmartChatJob(stopSmartChatJobRequest);
|
|
192
|
+
// @ts-ignore
|
|
193
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
194
|
+
return this.hcClient.sendRequest(options);
|
|
195
|
+
}
|
|
98
196
|
/**
|
|
99
197
|
* 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。
|
|
100
198
|
* * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。
|
|
@@ -107,7 +205,7 @@ class MetaStudioClient {
|
|
|
107
205
|
* @param {CreateDigitalAssetRequestBody} createDigitalAssetRequestBody 创建资产
|
|
108
206
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
109
207
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
110
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
208
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
111
209
|
* @param {*} [options] Override http request option.
|
|
112
210
|
* @throws {RequiredError}
|
|
113
211
|
*/
|
|
@@ -126,7 +224,7 @@ class MetaStudioClient {
|
|
|
126
224
|
* @param {string} assetId 资产ID。
|
|
127
225
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
128
226
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
129
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
227
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
130
228
|
* @param {string} [mode] 删除模式
|
|
131
229
|
* @param {*} [options] Override http request option.
|
|
132
230
|
* @throws {RequiredError}
|
|
@@ -163,7 +261,7 @@ class MetaStudioClient {
|
|
|
163
261
|
* @summary 查询资产列表
|
|
164
262
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
165
263
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
166
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
264
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
167
265
|
* @param {number} [limit] 每页显示的条目数量。
|
|
168
266
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
169
267
|
* @param {string} [name] 按名称模糊查询。
|
|
@@ -199,7 +297,7 @@ class MetaStudioClient {
|
|
|
199
297
|
* @param {string} assetId 资产ID。
|
|
200
298
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
201
299
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
202
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
300
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
203
301
|
* @param {*} [options] Override http request option.
|
|
204
302
|
* @throws {RequiredError}
|
|
205
303
|
*/
|
|
@@ -218,7 +316,7 @@ class MetaStudioClient {
|
|
|
218
316
|
* @param {string} assetId 资产ID。
|
|
219
317
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
220
318
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
221
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
319
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
222
320
|
* @param {*} [options] Override http request option.
|
|
223
321
|
* @throws {RequiredError}
|
|
224
322
|
*/
|
|
@@ -238,7 +336,7 @@ class MetaStudioClient {
|
|
|
238
336
|
* @param {UpdateDigitalAssetRequestBody} updateDigitalAssetRequestBody 创建资产
|
|
239
337
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
240
338
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
241
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
339
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
242
340
|
* @param {*} [options] Override http request option.
|
|
243
341
|
* @throws {RequiredError}
|
|
244
342
|
*/
|
|
@@ -258,7 +356,7 @@ class MetaStudioClient {
|
|
|
258
356
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
259
357
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
260
358
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
261
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
359
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
262
360
|
* @param {*} [options] Override http request option.
|
|
263
361
|
* @throws {RequiredError}
|
|
264
362
|
*/
|
|
@@ -278,7 +376,7 @@ class MetaStudioClient {
|
|
|
278
376
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
279
377
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
280
378
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
281
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
379
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
282
380
|
* @param {*} [options] Override http request option.
|
|
283
381
|
* @throws {RequiredError}
|
|
284
382
|
*/
|
|
@@ -297,7 +395,7 @@ class MetaStudioClient {
|
|
|
297
395
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
298
396
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
299
397
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
300
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
398
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
301
399
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
302
400
|
* @param {number} [limit] 每页显示的条目数量。
|
|
303
401
|
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
@@ -325,7 +423,7 @@ class MetaStudioClient {
|
|
|
325
423
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
326
424
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
327
425
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
328
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
426
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
329
427
|
* @param {*} [options] Override http request option.
|
|
330
428
|
* @throws {RequiredError}
|
|
331
429
|
*/
|
|
@@ -346,7 +444,7 @@ class MetaStudioClient {
|
|
|
346
444
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
347
445
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
348
446
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
349
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
447
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
350
448
|
* @param {*} [options] Override http request option.
|
|
351
449
|
* @throws {RequiredError}
|
|
352
450
|
*/
|
|
@@ -365,7 +463,7 @@ class MetaStudioClient {
|
|
|
365
463
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
366
464
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
367
465
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
368
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
466
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
369
467
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
370
468
|
* @param {number} [limit] 每页显示的条目数量。
|
|
371
469
|
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
@@ -375,6 +473,7 @@ class MetaStudioClient {
|
|
|
375
473
|
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
376
474
|
* @param {string} [scriptId] 剧本ID。
|
|
377
475
|
* @param {string} [assetName] 输出视频资产名称。
|
|
476
|
+
* @param {string} [jobType] 任务类型。 * 2D_DIGITAL_HUMAN_VIDEO: 分身数字人视频制作任务 * PHOTO_DIGITAL_HUMAN_VIDEO: 照片数字人视频制作任务
|
|
378
477
|
* @param {*} [options] Override http request option.
|
|
379
478
|
* @throws {RequiredError}
|
|
380
479
|
*/
|
|
@@ -394,7 +493,7 @@ class MetaStudioClient {
|
|
|
394
493
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
395
494
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
396
495
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
397
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
496
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
398
497
|
* @param {*} [options] Override http request option.
|
|
399
498
|
* @throws {RequiredError}
|
|
400
499
|
*/
|
|
@@ -414,7 +513,7 @@ class MetaStudioClient {
|
|
|
414
513
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
415
514
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
416
515
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
417
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
516
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
418
517
|
* @param {*} [options] Override http request option.
|
|
419
518
|
* @throws {RequiredError}
|
|
420
519
|
*/
|
|
@@ -434,7 +533,7 @@ class MetaStudioClient {
|
|
|
434
533
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
435
534
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
436
535
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
437
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
536
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
438
537
|
* @param {boolean} [showScript] 是否需要返回剧本参数配置。
|
|
439
538
|
* @param {*} [options] Override http request option.
|
|
440
539
|
* @throws {RequiredError}
|
|
@@ -455,7 +554,7 @@ class MetaStudioClient {
|
|
|
455
554
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
456
555
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
457
556
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
458
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
557
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
459
558
|
* @param {*} [options] Override http request option.
|
|
460
559
|
* @throws {RequiredError}
|
|
461
560
|
*/
|
|
@@ -475,7 +574,7 @@ class MetaStudioClient {
|
|
|
475
574
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
476
575
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
477
576
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
478
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
577
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
479
578
|
* @param {*} [options] Override http request option.
|
|
480
579
|
* @throws {RequiredError}
|
|
481
580
|
*/
|
|
@@ -495,7 +594,7 @@ class MetaStudioClient {
|
|
|
495
594
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
496
595
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
497
596
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
498
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
597
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
499
598
|
* @param {*} [options] Override http request option.
|
|
500
599
|
* @throws {RequiredError}
|
|
501
600
|
*/
|
|
@@ -515,7 +614,7 @@ class MetaStudioClient {
|
|
|
515
614
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
516
615
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
517
616
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
518
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
617
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
519
618
|
* @param {*} [options] Override http request option.
|
|
520
619
|
* @throws {RequiredError}
|
|
521
620
|
*/
|
|
@@ -535,7 +634,7 @@ class MetaStudioClient {
|
|
|
535
634
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
536
635
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
537
636
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
538
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
637
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
539
638
|
* @param {boolean} [showScript] 是否需要返回剧本参数配置。
|
|
540
639
|
* @param {*} [options] Override http request option.
|
|
541
640
|
* @throws {RequiredError}
|
|
@@ -556,7 +655,7 @@ class MetaStudioClient {
|
|
|
556
655
|
* @param {ConfirmFileUploadRequestBody} confirmFileUploadRequestBody 确认媒资上传
|
|
557
656
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
558
657
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
559
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
658
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
560
659
|
* @param {*} [options] Override http request option.
|
|
561
660
|
* @throws {RequiredError}
|
|
562
661
|
*/
|
|
@@ -575,7 +674,7 @@ class MetaStudioClient {
|
|
|
575
674
|
* @param {FilesCreateReq} createFileRequestBody 创建文件请求。
|
|
576
675
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
577
676
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
578
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
677
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
579
678
|
* @param {*} [options] Override http request option.
|
|
580
679
|
* @throws {RequiredError}
|
|
581
680
|
*/
|
|
@@ -594,7 +693,7 @@ class MetaStudioClient {
|
|
|
594
693
|
* @param {string} fileId 文件ID。
|
|
595
694
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
596
695
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
597
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
696
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
598
697
|
* @param {*} [options] Override http request option.
|
|
599
698
|
* @throws {RequiredError}
|
|
600
699
|
*/
|
|
@@ -604,6 +703,25 @@ class MetaStudioClient {
|
|
|
604
703
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
605
704
|
return this.hcClient.sendRequest(options);
|
|
606
705
|
}
|
|
706
|
+
/**
|
|
707
|
+
* 该接口用于创建一次性鉴权码。
|
|
708
|
+
*
|
|
709
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
710
|
+
*
|
|
711
|
+
* @summary 创建一次性鉴权码
|
|
712
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
713
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
714
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
715
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
createOnceCode(createOnceCodeRequest) {
|
|
720
|
+
const options = (0, exports.ParamCreater)().createOnceCode(createOnceCodeRequest);
|
|
721
|
+
// @ts-ignore
|
|
722
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
723
|
+
return this.hcClient.sendRequest(options);
|
|
724
|
+
}
|
|
607
725
|
/**
|
|
608
726
|
* 该接口用于从URL中获取图片进行照片建模任务。
|
|
609
727
|
*
|
|
@@ -614,7 +732,7 @@ class MetaStudioClient {
|
|
|
614
732
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
615
733
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
616
734
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
617
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
735
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
618
736
|
* @param {*} [options] Override http request option.
|
|
619
737
|
* @throws {RequiredError}
|
|
620
738
|
*/
|
|
@@ -636,7 +754,7 @@ class MetaStudioClient {
|
|
|
636
754
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
637
755
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
638
756
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
639
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
757
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
640
758
|
* @param {string} [notifyUrl] 照片建模任务结束的回调地址。
|
|
641
759
|
* @param {*} [options] Override http request option.
|
|
642
760
|
* @throws {RequiredError}
|
|
@@ -656,7 +774,7 @@ class MetaStudioClient {
|
|
|
656
774
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
657
775
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
658
776
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
659
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
777
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
660
778
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
661
779
|
* @param {number} [limit] 每页显示的条目数量。
|
|
662
780
|
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
@@ -683,7 +801,7 @@ class MetaStudioClient {
|
|
|
683
801
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
684
802
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
685
803
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
686
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
804
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
687
805
|
* @param {*} [options] Override http request option.
|
|
688
806
|
* @throws {RequiredError}
|
|
689
807
|
*/
|
|
@@ -693,6 +811,214 @@ class MetaStudioClient {
|
|
|
693
811
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
694
812
|
return this.hcClient.sendRequest(options);
|
|
695
813
|
}
|
|
814
|
+
/**
|
|
815
|
+
* 该接口用于创建应用。
|
|
816
|
+
*
|
|
817
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
818
|
+
*
|
|
819
|
+
* @summary 创建应用
|
|
820
|
+
* @param {CreateRobotReq} createRobotRequestBody 创建应用请求。
|
|
821
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
822
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
823
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
824
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
*/
|
|
828
|
+
createRobot(createRobotRequest) {
|
|
829
|
+
const options = (0, exports.ParamCreater)().createRobot(createRobotRequest);
|
|
830
|
+
// @ts-ignore
|
|
831
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
832
|
+
return this.hcClient.sendRequest(options);
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* 该接口用于删除应用。
|
|
836
|
+
*
|
|
837
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
838
|
+
*
|
|
839
|
+
* @summary 删除应用
|
|
840
|
+
* @param {Array<string>} deleteRobotRequestBody 应用ID列表
|
|
841
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
842
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
843
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
844
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
deleteRobot(deleteRobotRequest) {
|
|
849
|
+
const options = (0, exports.ParamCreater)().deleteRobot(deleteRobotRequest);
|
|
850
|
+
// @ts-ignore
|
|
851
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
852
|
+
return this.hcClient.sendRequest(options);
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* 该接口用于查询应用列表。
|
|
856
|
+
*
|
|
857
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
858
|
+
*
|
|
859
|
+
* @summary 查询应用列表
|
|
860
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
861
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
862
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
863
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
864
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
865
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
listRobot(listRobotRequest) {
|
|
870
|
+
const options = (0, exports.ParamCreater)().listRobot(listRobotRequest);
|
|
871
|
+
// @ts-ignore
|
|
872
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
873
|
+
return this.hcClient.sendRequest(options);
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* 该接口用于查询应用详情。
|
|
877
|
+
*
|
|
878
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
879
|
+
*
|
|
880
|
+
* @summary 查询应用详情
|
|
881
|
+
* @param {string} robotId 应用ID。
|
|
882
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
883
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
884
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
885
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
886
|
+
* @param {*} [options] Override http request option.
|
|
887
|
+
* @throws {RequiredError}
|
|
888
|
+
*/
|
|
889
|
+
showRobot(showRobotRequest) {
|
|
890
|
+
const options = (0, exports.ParamCreater)().showRobot(showRobotRequest);
|
|
891
|
+
// @ts-ignore
|
|
892
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
893
|
+
return this.hcClient.sendRequest(options);
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* 该接口用于修改应用。
|
|
897
|
+
*
|
|
898
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
899
|
+
*
|
|
900
|
+
* @summary 修改应用
|
|
901
|
+
* @param {string} robotId 应用ID。
|
|
902
|
+
* @param {UpdateRobotReq} updateRobotRequestBody 修改应用请求。
|
|
903
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
904
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
905
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
906
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
907
|
+
* @param {*} [options] Override http request option.
|
|
908
|
+
* @throws {RequiredError}
|
|
909
|
+
*/
|
|
910
|
+
updateRobot(updateRobotRequest) {
|
|
911
|
+
const options = (0, exports.ParamCreater)().updateRobot(updateRobotRequest);
|
|
912
|
+
// @ts-ignore
|
|
913
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
914
|
+
return this.hcClient.sendRequest(options);
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* 该接口用于创建智能交互对话直播间。
|
|
918
|
+
*
|
|
919
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
920
|
+
*
|
|
921
|
+
* @summary 创建智能交互对话直播间
|
|
922
|
+
* @param {CreateSmartChatRoomReq} createSmartChatRoomRequestBody 创建智能交互对话直播间请求。
|
|
923
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
924
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
925
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
926
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
createSmartChatRoom(createSmartChatRoomRequest) {
|
|
931
|
+
const options = (0, exports.ParamCreater)().createSmartChatRoom(createSmartChatRoomRequest);
|
|
932
|
+
// @ts-ignore
|
|
933
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
934
|
+
return this.hcClient.sendRequest(options);
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* 该接口用于删除智能交互对话直播间。
|
|
938
|
+
*
|
|
939
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
940
|
+
*
|
|
941
|
+
* @summary 删除智能交互对话直播间
|
|
942
|
+
* @param {string} roomId 剧本ID。
|
|
943
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
944
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
945
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
946
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
deleteSmartChatRoom(deleteSmartChatRoomRequest) {
|
|
951
|
+
const options = (0, exports.ParamCreater)().deleteSmartChatRoom(deleteSmartChatRoomRequest);
|
|
952
|
+
// @ts-ignore
|
|
953
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
954
|
+
return this.hcClient.sendRequest(options);
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* 该接口用于智能交互对话直播间列表。
|
|
958
|
+
*
|
|
959
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
960
|
+
*
|
|
961
|
+
* @summary 查询智能交互对话直播间列表
|
|
962
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
963
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
964
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
965
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
966
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
967
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
968
|
+
* @param {string} [roomName] 按智能交互对话直播间名称模糊查询。
|
|
969
|
+
* @param {string} [modelName] 按形象名称模糊查询。
|
|
970
|
+
* @param {string} [startTime] 最近智能交互对话任务起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
|
|
971
|
+
* @param {string} [endTime] 最近智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
|
|
972
|
+
* @param {*} [options] Override http request option.
|
|
973
|
+
* @throws {RequiredError}
|
|
974
|
+
*/
|
|
975
|
+
listSmartChatRooms(listSmartChatRoomsRequest) {
|
|
976
|
+
const options = (0, exports.ParamCreater)().listSmartChatRooms(listSmartChatRoomsRequest);
|
|
977
|
+
// @ts-ignore
|
|
978
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
979
|
+
return this.hcClient.sendRequest(options);
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* 该接口用于查询智能交互对话直播间详情。
|
|
983
|
+
*
|
|
984
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
985
|
+
*
|
|
986
|
+
* @summary 查询智能交互对话直播间详情
|
|
987
|
+
* @param {string} roomId 剧本ID。
|
|
988
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
989
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
990
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
991
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
*/
|
|
995
|
+
showSmartChatRoom(showSmartChatRoomRequest) {
|
|
996
|
+
const options = (0, exports.ParamCreater)().showSmartChatRoom(showSmartChatRoomRequest);
|
|
997
|
+
// @ts-ignore
|
|
998
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
999
|
+
return this.hcClient.sendRequest(options);
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* 该接口用于智能交互对话直播间信息。
|
|
1003
|
+
*
|
|
1004
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1005
|
+
*
|
|
1006
|
+
* @summary 更新智能交互对话直播间信息
|
|
1007
|
+
* @param {string} roomId 剧本ID。
|
|
1008
|
+
* @param {CreateSmartChatRoomReq} updateSmartChatRoomRequestBody 更新智能交互对话直播间请求。
|
|
1009
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1010
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1011
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1012
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1013
|
+
* @param {*} [options] Override http request option.
|
|
1014
|
+
* @throws {RequiredError}
|
|
1015
|
+
*/
|
|
1016
|
+
updateSmartChatRoom(updateSmartChatRoomRequest) {
|
|
1017
|
+
const options = (0, exports.ParamCreater)().updateSmartChatRoom(updateSmartChatRoomRequest);
|
|
1018
|
+
// @ts-ignore
|
|
1019
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
1020
|
+
return this.hcClient.sendRequest(options);
|
|
1021
|
+
}
|
|
696
1022
|
/**
|
|
697
1023
|
* 该接口用于控制数字人直播过程。
|
|
698
1024
|
*
|
|
@@ -705,7 +1031,7 @@ class MetaStudioClient {
|
|
|
705
1031
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
706
1032
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
707
1033
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
708
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1034
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
709
1035
|
* @param {*} [options] Override http request option.
|
|
710
1036
|
* @throws {RequiredError}
|
|
711
1037
|
*/
|
|
@@ -725,7 +1051,7 @@ class MetaStudioClient {
|
|
|
725
1051
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
726
1052
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
727
1053
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
728
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1054
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
729
1055
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
730
1056
|
* @param {number} [limit] 每页显示的条目数量。
|
|
731
1057
|
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
@@ -754,7 +1080,7 @@ class MetaStudioClient {
|
|
|
754
1080
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
755
1081
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
756
1082
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
757
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1083
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
758
1084
|
* @param {string} [authKey] 鉴权Key。通过HmacSHA256生成的鉴权key
|
|
759
1085
|
* @param {number} [expiresTime] 鉴权key过期时间。从1970年1月1日(UTC/GMT的午夜)开始所经过的豪秒数。
|
|
760
1086
|
* @param {boolean} [refreshUrl] 是否刷新URL
|
|
@@ -778,7 +1104,7 @@ class MetaStudioClient {
|
|
|
778
1104
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
779
1105
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
780
1106
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
781
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1107
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
782
1108
|
* @param {*} [options] Override http request option.
|
|
783
1109
|
* @throws {RequiredError}
|
|
784
1110
|
*/
|
|
@@ -799,7 +1125,7 @@ class MetaStudioClient {
|
|
|
799
1125
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
800
1126
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
801
1127
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
802
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1128
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
803
1129
|
* @param {*} [options] Override http request option.
|
|
804
1130
|
* @throws {RequiredError}
|
|
805
1131
|
*/
|
|
@@ -820,7 +1146,7 @@ class MetaStudioClient {
|
|
|
820
1146
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
821
1147
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
822
1148
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
823
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1149
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
824
1150
|
* @param {*} [options] Override http request option.
|
|
825
1151
|
* @throws {RequiredError}
|
|
826
1152
|
*/
|
|
@@ -856,7 +1182,7 @@ class MetaStudioClient {
|
|
|
856
1182
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
857
1183
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
858
1184
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
859
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1185
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
860
1186
|
* @param {*} [options] Override http request option.
|
|
861
1187
|
* @throws {RequiredError}
|
|
862
1188
|
*/
|
|
@@ -876,7 +1202,7 @@ class MetaStudioClient {
|
|
|
876
1202
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
877
1203
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
878
1204
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
879
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1205
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
880
1206
|
* @param {*} [options] Override http request option.
|
|
881
1207
|
* @throws {RequiredError}
|
|
882
1208
|
*/
|
|
@@ -896,7 +1222,7 @@ class MetaStudioClient {
|
|
|
896
1222
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
897
1223
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
898
1224
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
899
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1225
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
900
1226
|
* @param {*} [options] Override http request option.
|
|
901
1227
|
* @throws {RequiredError}
|
|
902
1228
|
*/
|
|
@@ -916,7 +1242,7 @@ class MetaStudioClient {
|
|
|
916
1242
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
917
1243
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
918
1244
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
919
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1245
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
920
1246
|
* @param {*} [options] Override http request option.
|
|
921
1247
|
* @throws {RequiredError}
|
|
922
1248
|
*/
|
|
@@ -935,7 +1261,7 @@ class MetaStudioClient {
|
|
|
935
1261
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
936
1262
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
937
1263
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
938
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1264
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
939
1265
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
940
1266
|
* @param {number} [limit] 每页显示的条目数量。
|
|
941
1267
|
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
@@ -959,7 +1285,7 @@ class MetaStudioClient {
|
|
|
959
1285
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
960
1286
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
961
1287
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
962
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1288
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
963
1289
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
964
1290
|
* @param {number} [limit] 每页显示的条目数量。
|
|
965
1291
|
* @param {string} [roomName] 按直播间名称模糊查询。
|
|
@@ -988,7 +1314,7 @@ class MetaStudioClient {
|
|
|
988
1314
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
989
1315
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
990
1316
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
991
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1317
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
992
1318
|
* @param {*} [options] Override http request option.
|
|
993
1319
|
* @throws {RequiredError}
|
|
994
1320
|
*/
|
|
@@ -1009,7 +1335,7 @@ class MetaStudioClient {
|
|
|
1009
1335
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1010
1336
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1011
1337
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1012
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1338
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1013
1339
|
* @param {*} [options] Override http request option.
|
|
1014
1340
|
* @throws {RequiredError}
|
|
1015
1341
|
*/
|
|
@@ -1030,7 +1356,7 @@ class MetaStudioClient {
|
|
|
1030
1356
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1031
1357
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1032
1358
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1033
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1359
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1034
1360
|
* @param {*} [options] Override http request option.
|
|
1035
1361
|
* @throws {RequiredError}
|
|
1036
1362
|
*/
|
|
@@ -1049,7 +1375,7 @@ class MetaStudioClient {
|
|
|
1049
1375
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1050
1376
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1051
1377
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1052
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1378
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1053
1379
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1054
1380
|
* @param {number} [limit] 每页显示的条目数量。
|
|
1055
1381
|
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
@@ -1076,7 +1402,7 @@ class MetaStudioClient {
|
|
|
1076
1402
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1077
1403
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1078
1404
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1079
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1405
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1080
1406
|
* @param {*} [options] Override http request option.
|
|
1081
1407
|
* @throws {RequiredError}
|
|
1082
1408
|
*/
|
|
@@ -1114,7 +1440,7 @@ class MetaStudioClient {
|
|
|
1114
1440
|
*
|
|
1115
1441
|
* @summary 创建高级版语音训练任务
|
|
1116
1442
|
* @param {CreateTrainingJobReq} createTrainingAdvanceJobRequestBody 创建任务请求。
|
|
1117
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1443
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1118
1444
|
* @param {*} [options] Override http request option.
|
|
1119
1445
|
* @throws {RequiredError}
|
|
1120
1446
|
*/
|
|
@@ -1139,7 +1465,7 @@ class MetaStudioClient {
|
|
|
1139
1465
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1140
1466
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1141
1467
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1142
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1468
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1143
1469
|
* @param {*} [options] Override http request option.
|
|
1144
1470
|
* @throws {RequiredError}
|
|
1145
1471
|
*/
|
|
@@ -1164,7 +1490,7 @@ class MetaStudioClient {
|
|
|
1164
1490
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1165
1491
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1166
1492
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1167
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1493
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1168
1494
|
* @param {*} [options] Override http request option.
|
|
1169
1495
|
* @throws {RequiredError}
|
|
1170
1496
|
*/
|
|
@@ -1184,7 +1510,7 @@ class MetaStudioClient {
|
|
|
1184
1510
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1185
1511
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1186
1512
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1187
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1513
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1188
1514
|
* @param {*} [options] Override http request option.
|
|
1189
1515
|
* @throws {RequiredError}
|
|
1190
1516
|
*/
|
|
@@ -1204,7 +1530,7 @@ class MetaStudioClient {
|
|
|
1204
1530
|
* @param {number} [limit] 每页显示的条目数量。
|
|
1205
1531
|
* @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
|
|
1206
1532
|
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
1207
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1533
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1208
1534
|
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=FAILED,WAITING
|
|
1209
1535
|
* @param {string} [jobId] 任务id。
|
|
1210
1536
|
* @param {string} [voiceName] 声音名称。
|
|
@@ -1276,7 +1602,7 @@ class MetaStudioClient {
|
|
|
1276
1602
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1277
1603
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1278
1604
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1279
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1605
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1280
1606
|
* @param {*} [options] Override http request option.
|
|
1281
1607
|
* @throws {RequiredError}
|
|
1282
1608
|
*/
|
|
@@ -1296,7 +1622,7 @@ class MetaStudioClient {
|
|
|
1296
1622
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1297
1623
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1298
1624
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1299
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1625
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1300
1626
|
* @param {*} [options] Override http request option.
|
|
1301
1627
|
* @throws {RequiredError}
|
|
1302
1628
|
*/
|
|
@@ -1317,7 +1643,7 @@ class MetaStudioClient {
|
|
|
1317
1643
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1318
1644
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1319
1645
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1320
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1646
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1321
1647
|
* @param {*} [options] Override http request option.
|
|
1322
1648
|
* @throws {RequiredError}
|
|
1323
1649
|
*/
|
|
@@ -1338,7 +1664,7 @@ class MetaStudioClient {
|
|
|
1338
1664
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1339
1665
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1340
1666
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1341
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1667
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1342
1668
|
* @param {*} [options] Override http request option.
|
|
1343
1669
|
* @throws {RequiredError}
|
|
1344
1670
|
*/
|
|
@@ -1357,7 +1683,7 @@ class MetaStudioClient {
|
|
|
1357
1683
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1358
1684
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1359
1685
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1360
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1686
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1361
1687
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1362
1688
|
* @param {number} [limit] 每页显示的条目数量。
|
|
1363
1689
|
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
@@ -1388,7 +1714,7 @@ class MetaStudioClient {
|
|
|
1388
1714
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1389
1715
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1390
1716
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1391
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1717
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1392
1718
|
* @param {*} [options] Override http request option.
|
|
1393
1719
|
* @throws {RequiredError}
|
|
1394
1720
|
*/
|
|
@@ -1410,7 +1736,7 @@ class MetaStudioClient {
|
|
|
1410
1736
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1411
1737
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1412
1738
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1413
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1739
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1414
1740
|
* @param {*} [options] Override http request option.
|
|
1415
1741
|
* @throws {RequiredError}
|
|
1416
1742
|
*/
|
|
@@ -1446,7 +1772,7 @@ class MetaStudioClient {
|
|
|
1446
1772
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1447
1773
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1448
1774
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1449
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1775
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1450
1776
|
* @param {*} [options] Override http request option.
|
|
1451
1777
|
* @throws {RequiredError}
|
|
1452
1778
|
*/
|
|
@@ -1501,7 +1827,7 @@ class MetaStudioClient {
|
|
|
1501
1827
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1502
1828
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1503
1829
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1504
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1830
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1505
1831
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1506
1832
|
* @param {number} [limit] 每页显示的条目数量。
|
|
1507
1833
|
* @param {*} [options] Override http request option.
|
|
@@ -1565,7 +1891,7 @@ class MetaStudioClient {
|
|
|
1565
1891
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1566
1892
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1567
1893
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1568
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1894
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1569
1895
|
* @param {string} [xUserPrivilege] 测试用户判断。
|
|
1570
1896
|
* @param {*} [options] Override http request option.
|
|
1571
1897
|
* @throws {RequiredError}
|
|
@@ -1587,7 +1913,7 @@ class MetaStudioClient {
|
|
|
1587
1913
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1588
1914
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1589
1915
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1590
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1916
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1591
1917
|
* @param {*} [options] Override http request option.
|
|
1592
1918
|
* @throws {RequiredError}
|
|
1593
1919
|
*/
|
|
@@ -1606,7 +1932,7 @@ class MetaStudioClient {
|
|
|
1606
1932
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1607
1933
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1608
1934
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1609
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1935
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1610
1936
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1611
1937
|
* @param {number} [limit] 每页显示的条目数量。
|
|
1612
1938
|
* @param {*} [options] Override http request option.
|
|
@@ -1628,7 +1954,7 @@ class MetaStudioClient {
|
|
|
1628
1954
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1629
1955
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1630
1956
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1631
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1957
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1632
1958
|
* @param {*} [options] Override http request option.
|
|
1633
1959
|
* @throws {RequiredError}
|
|
1634
1960
|
*/
|
|
@@ -1648,7 +1974,7 @@ class MetaStudioClient {
|
|
|
1648
1974
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1649
1975
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1650
1976
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1651
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1977
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1652
1978
|
* @param {*} [options] Override http request option.
|
|
1653
1979
|
* @throws {RequiredError}
|
|
1654
1980
|
*/
|
|
@@ -1668,7 +1994,7 @@ class MetaStudioClient {
|
|
|
1668
1994
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1669
1995
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1670
1996
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1671
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
1997
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1672
1998
|
* @param {*} [options] Override http request option.
|
|
1673
1999
|
* @throws {RequiredError}
|
|
1674
2000
|
*/
|
|
@@ -1688,7 +2014,7 @@ class MetaStudioClient {
|
|
|
1688
2014
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1689
2015
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1690
2016
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1691
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
2017
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1692
2018
|
* @param {*} [options] Override http request option.
|
|
1693
2019
|
* @throws {RequiredError}
|
|
1694
2020
|
*/
|
|
@@ -1707,7 +2033,7 @@ class MetaStudioClient {
|
|
|
1707
2033
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1708
2034
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1709
2035
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1710
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
2036
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1711
2037
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
1712
2038
|
* @param {number} [limit] 每页显示的条目数量。
|
|
1713
2039
|
* @param {string} [name] 按名称模糊查询。
|
|
@@ -1732,7 +2058,7 @@ class MetaStudioClient {
|
|
|
1732
2058
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1733
2059
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1734
2060
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1735
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
2061
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1736
2062
|
* @param {*} [options] Override http request option.
|
|
1737
2063
|
* @throws {RequiredError}
|
|
1738
2064
|
*/
|
|
@@ -1753,7 +2079,7 @@ class MetaStudioClient {
|
|
|
1753
2079
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1754
2080
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1755
2081
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
1756
|
-
* @param {string} [xAppUserId] 第三方用户ID。 >
|
|
2082
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
1757
2083
|
* @param {*} [options] Override http request option.
|
|
1758
2084
|
* @throws {RequiredError}
|
|
1759
2085
|
*/
|
|
@@ -1768,17 +2094,14 @@ exports.MetaStudioClient = MetaStudioClient;
|
|
|
1768
2094
|
const ParamCreater = function () {
|
|
1769
2095
|
return {
|
|
1770
2096
|
/**
|
|
1771
|
-
*
|
|
1772
|
-
* * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。
|
|
1773
|
-
* * > 资产类型是VIDEO时,通过system_properties来区分素材视频(MATERIAL_VIDEO)、名片视频(BUSSINESS_CARD_VIDEO)。
|
|
1774
|
-
* * > MetaStudio平台生成的视频,system_properties带CREATED_BY_PLATFORM。
|
|
2097
|
+
* 该接口用于创建对话链接。
|
|
1775
2098
|
*
|
|
1776
2099
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1777
2100
|
*/
|
|
1778
|
-
|
|
2101
|
+
createDialogUrl(createDialogUrlRequest) {
|
|
1779
2102
|
const options = {
|
|
1780
2103
|
method: "POST",
|
|
1781
|
-
url: "/v1/{project_id}/digital-
|
|
2104
|
+
url: "/v1/{project_id}/digital-human-chat/create-dialog-url",
|
|
1782
2105
|
contentType: "application/json",
|
|
1783
2106
|
queryParams: {},
|
|
1784
2107
|
pathParams: {},
|
|
@@ -1789,19 +2112,22 @@ const ParamCreater = function () {
|
|
|
1789
2112
|
let body;
|
|
1790
2113
|
let authorization;
|
|
1791
2114
|
let xSdkDate;
|
|
2115
|
+
let xProjectId;
|
|
1792
2116
|
let xAppUserId;
|
|
1793
|
-
if (
|
|
1794
|
-
if (
|
|
1795
|
-
body =
|
|
1796
|
-
authorization =
|
|
1797
|
-
xSdkDate =
|
|
1798
|
-
|
|
2117
|
+
if (createDialogUrlRequest !== null && createDialogUrlRequest !== undefined) {
|
|
2118
|
+
if (createDialogUrlRequest instanceof CreateDialogUrlRequest_1.CreateDialogUrlRequest) {
|
|
2119
|
+
body = createDialogUrlRequest.body;
|
|
2120
|
+
authorization = createDialogUrlRequest.authorization;
|
|
2121
|
+
xSdkDate = createDialogUrlRequest.xSdkDate;
|
|
2122
|
+
xProjectId = createDialogUrlRequest.xProjectId;
|
|
2123
|
+
xAppUserId = createDialogUrlRequest.xAppUserId;
|
|
1799
2124
|
}
|
|
1800
2125
|
else {
|
|
1801
|
-
body =
|
|
1802
|
-
authorization =
|
|
1803
|
-
xSdkDate =
|
|
1804
|
-
|
|
2126
|
+
body = createDialogUrlRequest['body'];
|
|
2127
|
+
authorization = createDialogUrlRequest['Authorization'];
|
|
2128
|
+
xSdkDate = createDialogUrlRequest['X-Sdk-Date'];
|
|
2129
|
+
xProjectId = createDialogUrlRequest['X-Project-Id'];
|
|
2130
|
+
xAppUserId = createDialogUrlRequest['X-App-UserId'];
|
|
1805
2131
|
}
|
|
1806
2132
|
}
|
|
1807
2133
|
if (body === null || body === undefined) {
|
|
@@ -1813,6 +2139,9 @@ const ParamCreater = function () {
|
|
|
1813
2139
|
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1814
2140
|
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1815
2141
|
}
|
|
2142
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2143
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2144
|
+
}
|
|
1816
2145
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1817
2146
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1818
2147
|
}
|
|
@@ -1822,31 +2151,273 @@ const ParamCreater = function () {
|
|
|
1822
2151
|
return options;
|
|
1823
2152
|
},
|
|
1824
2153
|
/**
|
|
1825
|
-
*
|
|
2154
|
+
* 该接口用于查询数字人智能交互任务。
|
|
1826
2155
|
*
|
|
1827
2156
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1828
2157
|
*/
|
|
1829
|
-
|
|
2158
|
+
showSmartChatJob(showSmartChatJobRequest) {
|
|
1830
2159
|
const options = {
|
|
1831
|
-
method: "
|
|
1832
|
-
url: "/v1/{project_id}/digital-
|
|
2160
|
+
method: "GET",
|
|
2161
|
+
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/state",
|
|
1833
2162
|
contentType: "application/json",
|
|
1834
2163
|
queryParams: {},
|
|
1835
2164
|
pathParams: {},
|
|
1836
2165
|
headers: {}
|
|
1837
2166
|
};
|
|
1838
2167
|
const localVarHeaderParameter = {};
|
|
1839
|
-
|
|
1840
|
-
let
|
|
2168
|
+
let roomId;
|
|
2169
|
+
let jobId;
|
|
1841
2170
|
let authorization;
|
|
1842
2171
|
let xSdkDate;
|
|
2172
|
+
let xProjectId;
|
|
1843
2173
|
let xAppUserId;
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
authorization =
|
|
1849
|
-
xSdkDate =
|
|
2174
|
+
if (showSmartChatJobRequest !== null && showSmartChatJobRequest !== undefined) {
|
|
2175
|
+
if (showSmartChatJobRequest instanceof ShowSmartChatJobRequest_1.ShowSmartChatJobRequest) {
|
|
2176
|
+
roomId = showSmartChatJobRequest.roomId;
|
|
2177
|
+
jobId = showSmartChatJobRequest.jobId;
|
|
2178
|
+
authorization = showSmartChatJobRequest.authorization;
|
|
2179
|
+
xSdkDate = showSmartChatJobRequest.xSdkDate;
|
|
2180
|
+
xProjectId = showSmartChatJobRequest.xProjectId;
|
|
2181
|
+
xAppUserId = showSmartChatJobRequest.xAppUserId;
|
|
2182
|
+
}
|
|
2183
|
+
else {
|
|
2184
|
+
roomId = showSmartChatJobRequest['room_id'];
|
|
2185
|
+
jobId = showSmartChatJobRequest['job_id'];
|
|
2186
|
+
authorization = showSmartChatJobRequest['Authorization'];
|
|
2187
|
+
xSdkDate = showSmartChatJobRequest['X-Sdk-Date'];
|
|
2188
|
+
xProjectId = showSmartChatJobRequest['X-Project-Id'];
|
|
2189
|
+
xAppUserId = showSmartChatJobRequest['X-App-UserId'];
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
if (roomId === null || roomId === undefined) {
|
|
2193
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling showSmartChatJob.');
|
|
2194
|
+
}
|
|
2195
|
+
if (jobId === null || jobId === undefined) {
|
|
2196
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showSmartChatJob.');
|
|
2197
|
+
}
|
|
2198
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2199
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2200
|
+
}
|
|
2201
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2202
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2203
|
+
}
|
|
2204
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2205
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2206
|
+
}
|
|
2207
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2208
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2209
|
+
}
|
|
2210
|
+
options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
|
|
2211
|
+
options.headers = localVarHeaderParameter;
|
|
2212
|
+
return options;
|
|
2213
|
+
},
|
|
2214
|
+
/**
|
|
2215
|
+
* 该接口用于启动数字人智能交互任务。
|
|
2216
|
+
*
|
|
2217
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2218
|
+
*/
|
|
2219
|
+
startSmartChatJob(startSmartChatJobRequest) {
|
|
2220
|
+
const options = {
|
|
2221
|
+
method: "POST",
|
|
2222
|
+
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs",
|
|
2223
|
+
contentType: "application/json",
|
|
2224
|
+
queryParams: {},
|
|
2225
|
+
pathParams: {},
|
|
2226
|
+
headers: {}
|
|
2227
|
+
};
|
|
2228
|
+
const localVarHeaderParameter = {};
|
|
2229
|
+
const localVarQueryParameter = {};
|
|
2230
|
+
let roomId;
|
|
2231
|
+
let robotId;
|
|
2232
|
+
let authorization;
|
|
2233
|
+
let xSdkDate;
|
|
2234
|
+
let xProjectId;
|
|
2235
|
+
let xAppUserId;
|
|
2236
|
+
if (startSmartChatJobRequest !== null && startSmartChatJobRequest !== undefined) {
|
|
2237
|
+
if (startSmartChatJobRequest instanceof StartSmartChatJobRequest_1.StartSmartChatJobRequest) {
|
|
2238
|
+
roomId = startSmartChatJobRequest.roomId;
|
|
2239
|
+
robotId = startSmartChatJobRequest.robotId;
|
|
2240
|
+
authorization = startSmartChatJobRequest.authorization;
|
|
2241
|
+
xSdkDate = startSmartChatJobRequest.xSdkDate;
|
|
2242
|
+
xProjectId = startSmartChatJobRequest.xProjectId;
|
|
2243
|
+
xAppUserId = startSmartChatJobRequest.xAppUserId;
|
|
2244
|
+
}
|
|
2245
|
+
else {
|
|
2246
|
+
roomId = startSmartChatJobRequest['room_id'];
|
|
2247
|
+
robotId = startSmartChatJobRequest['robot_id'];
|
|
2248
|
+
authorization = startSmartChatJobRequest['Authorization'];
|
|
2249
|
+
xSdkDate = startSmartChatJobRequest['X-Sdk-Date'];
|
|
2250
|
+
xProjectId = startSmartChatJobRequest['X-Project-Id'];
|
|
2251
|
+
xAppUserId = startSmartChatJobRequest['X-App-UserId'];
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
if (roomId === null || roomId === undefined) {
|
|
2255
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling startSmartChatJob.');
|
|
2256
|
+
}
|
|
2257
|
+
if (robotId === null || robotId === undefined) {
|
|
2258
|
+
throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling startSmartChatJob.');
|
|
2259
|
+
}
|
|
2260
|
+
if (robotId !== null && robotId !== undefined) {
|
|
2261
|
+
localVarQueryParameter['robot_id'] = robotId;
|
|
2262
|
+
}
|
|
2263
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2264
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2265
|
+
}
|
|
2266
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2267
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2268
|
+
}
|
|
2269
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2270
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2271
|
+
}
|
|
2272
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2273
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2274
|
+
}
|
|
2275
|
+
options.queryParams = localVarQueryParameter;
|
|
2276
|
+
options.pathParams = { 'room_id': roomId, };
|
|
2277
|
+
options.headers = localVarHeaderParameter;
|
|
2278
|
+
return options;
|
|
2279
|
+
},
|
|
2280
|
+
/**
|
|
2281
|
+
* 该接口用于结束数字人智能交互任务。
|
|
2282
|
+
*
|
|
2283
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2284
|
+
*/
|
|
2285
|
+
stopSmartChatJob(stopSmartChatJobRequest) {
|
|
2286
|
+
const options = {
|
|
2287
|
+
method: "POST",
|
|
2288
|
+
url: "/v1/{project_id}/digital-human-chat/smart-chat-rooms/{room_id}/smart-chat-jobs/{job_id}/stop",
|
|
2289
|
+
contentType: "application/json",
|
|
2290
|
+
queryParams: {},
|
|
2291
|
+
pathParams: {},
|
|
2292
|
+
headers: {}
|
|
2293
|
+
};
|
|
2294
|
+
const localVarHeaderParameter = {};
|
|
2295
|
+
let roomId;
|
|
2296
|
+
let jobId;
|
|
2297
|
+
let authorization;
|
|
2298
|
+
let xSdkDate;
|
|
2299
|
+
let xProjectId;
|
|
2300
|
+
let xAppUserId;
|
|
2301
|
+
if (stopSmartChatJobRequest !== null && stopSmartChatJobRequest !== undefined) {
|
|
2302
|
+
if (stopSmartChatJobRequest instanceof StopSmartChatJobRequest_1.StopSmartChatJobRequest) {
|
|
2303
|
+
roomId = stopSmartChatJobRequest.roomId;
|
|
2304
|
+
jobId = stopSmartChatJobRequest.jobId;
|
|
2305
|
+
authorization = stopSmartChatJobRequest.authorization;
|
|
2306
|
+
xSdkDate = stopSmartChatJobRequest.xSdkDate;
|
|
2307
|
+
xProjectId = stopSmartChatJobRequest.xProjectId;
|
|
2308
|
+
xAppUserId = stopSmartChatJobRequest.xAppUserId;
|
|
2309
|
+
}
|
|
2310
|
+
else {
|
|
2311
|
+
roomId = stopSmartChatJobRequest['room_id'];
|
|
2312
|
+
jobId = stopSmartChatJobRequest['job_id'];
|
|
2313
|
+
authorization = stopSmartChatJobRequest['Authorization'];
|
|
2314
|
+
xSdkDate = stopSmartChatJobRequest['X-Sdk-Date'];
|
|
2315
|
+
xProjectId = stopSmartChatJobRequest['X-Project-Id'];
|
|
2316
|
+
xAppUserId = stopSmartChatJobRequest['X-App-UserId'];
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
if (roomId === null || roomId === undefined) {
|
|
2320
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling stopSmartChatJob.');
|
|
2321
|
+
}
|
|
2322
|
+
if (jobId === null || jobId === undefined) {
|
|
2323
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling stopSmartChatJob.');
|
|
2324
|
+
}
|
|
2325
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2326
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2327
|
+
}
|
|
2328
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2329
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2330
|
+
}
|
|
2331
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2332
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2333
|
+
}
|
|
2334
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2335
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2336
|
+
}
|
|
2337
|
+
options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
|
|
2338
|
+
options.headers = localVarHeaderParameter;
|
|
2339
|
+
return options;
|
|
2340
|
+
},
|
|
2341
|
+
/**
|
|
2342
|
+
* 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。
|
|
2343
|
+
* * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。
|
|
2344
|
+
* * > 资产类型是VIDEO时,通过system_properties来区分素材视频(MATERIAL_VIDEO)、名片视频(BUSSINESS_CARD_VIDEO)。
|
|
2345
|
+
* * > MetaStudio平台生成的视频,system_properties带CREATED_BY_PLATFORM。
|
|
2346
|
+
*
|
|
2347
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2348
|
+
*/
|
|
2349
|
+
createDigitalAsset(createDigitalAssetRequest) {
|
|
2350
|
+
const options = {
|
|
2351
|
+
method: "POST",
|
|
2352
|
+
url: "/v1/{project_id}/digital-assets",
|
|
2353
|
+
contentType: "application/json",
|
|
2354
|
+
queryParams: {},
|
|
2355
|
+
pathParams: {},
|
|
2356
|
+
headers: {},
|
|
2357
|
+
data: {}
|
|
2358
|
+
};
|
|
2359
|
+
const localVarHeaderParameter = {};
|
|
2360
|
+
let body;
|
|
2361
|
+
let authorization;
|
|
2362
|
+
let xSdkDate;
|
|
2363
|
+
let xAppUserId;
|
|
2364
|
+
if (createDigitalAssetRequest !== null && createDigitalAssetRequest !== undefined) {
|
|
2365
|
+
if (createDigitalAssetRequest instanceof CreateDigitalAssetRequest_1.CreateDigitalAssetRequest) {
|
|
2366
|
+
body = createDigitalAssetRequest.body;
|
|
2367
|
+
authorization = createDigitalAssetRequest.authorization;
|
|
2368
|
+
xSdkDate = createDigitalAssetRequest.xSdkDate;
|
|
2369
|
+
xAppUserId = createDigitalAssetRequest.xAppUserId;
|
|
2370
|
+
}
|
|
2371
|
+
else {
|
|
2372
|
+
body = createDigitalAssetRequest['body'];
|
|
2373
|
+
authorization = createDigitalAssetRequest['Authorization'];
|
|
2374
|
+
xSdkDate = createDigitalAssetRequest['X-Sdk-Date'];
|
|
2375
|
+
xAppUserId = createDigitalAssetRequest['X-App-UserId'];
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
if (body === null || body === undefined) {
|
|
2379
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2380
|
+
}
|
|
2381
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2382
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2383
|
+
}
|
|
2384
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2385
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2386
|
+
}
|
|
2387
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2388
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2389
|
+
}
|
|
2390
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2391
|
+
options.data = body !== undefined ? body : {};
|
|
2392
|
+
options.headers = localVarHeaderParameter;
|
|
2393
|
+
return options;
|
|
2394
|
+
},
|
|
2395
|
+
/**
|
|
2396
|
+
* 该接口用于删除资产库中的媒体资产。第一次调用删除接口,将指定资产放入回收站;第二次调用删除接口,将指定资产彻底删除。
|
|
2397
|
+
*
|
|
2398
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2399
|
+
*/
|
|
2400
|
+
deleteAsset(deleteAssetRequest) {
|
|
2401
|
+
const options = {
|
|
2402
|
+
method: "DELETE",
|
|
2403
|
+
url: "/v1/{project_id}/digital-assets/{asset_id}",
|
|
2404
|
+
contentType: "application/json",
|
|
2405
|
+
queryParams: {},
|
|
2406
|
+
pathParams: {},
|
|
2407
|
+
headers: {}
|
|
2408
|
+
};
|
|
2409
|
+
const localVarHeaderParameter = {};
|
|
2410
|
+
const localVarQueryParameter = {};
|
|
2411
|
+
let assetId;
|
|
2412
|
+
let authorization;
|
|
2413
|
+
let xSdkDate;
|
|
2414
|
+
let xAppUserId;
|
|
2415
|
+
let mode;
|
|
2416
|
+
if (deleteAssetRequest !== null && deleteAssetRequest !== undefined) {
|
|
2417
|
+
if (deleteAssetRequest instanceof DeleteAssetRequest_1.DeleteAssetRequest) {
|
|
2418
|
+
assetId = deleteAssetRequest.assetId;
|
|
2419
|
+
authorization = deleteAssetRequest.authorization;
|
|
2420
|
+
xSdkDate = deleteAssetRequest.xSdkDate;
|
|
1850
2421
|
xAppUserId = deleteAssetRequest.xAppUserId;
|
|
1851
2422
|
mode = deleteAssetRequest.mode;
|
|
1852
2423
|
}
|
|
@@ -2583,6 +3154,7 @@ const ParamCreater = function () {
|
|
|
2583
3154
|
let createSince;
|
|
2584
3155
|
let scriptId;
|
|
2585
3156
|
let assetName;
|
|
3157
|
+
let jobType;
|
|
2586
3158
|
if (listDigitalHumanVideoRequest !== null && listDigitalHumanVideoRequest !== undefined) {
|
|
2587
3159
|
if (listDigitalHumanVideoRequest instanceof ListDigitalHumanVideoRequest_1.ListDigitalHumanVideoRequest) {
|
|
2588
3160
|
authorization = listDigitalHumanVideoRequest.authorization;
|
|
@@ -2598,6 +3170,7 @@ const ParamCreater = function () {
|
|
|
2598
3170
|
createSince = listDigitalHumanVideoRequest.createSince;
|
|
2599
3171
|
scriptId = listDigitalHumanVideoRequest.scriptId;
|
|
2600
3172
|
assetName = listDigitalHumanVideoRequest.assetName;
|
|
3173
|
+
jobType = listDigitalHumanVideoRequest.jobType;
|
|
2601
3174
|
}
|
|
2602
3175
|
else {
|
|
2603
3176
|
authorization = listDigitalHumanVideoRequest['Authorization'];
|
|
@@ -2613,6 +3186,7 @@ const ParamCreater = function () {
|
|
|
2613
3186
|
createSince = listDigitalHumanVideoRequest['create_since'];
|
|
2614
3187
|
scriptId = listDigitalHumanVideoRequest['script_id'];
|
|
2615
3188
|
assetName = listDigitalHumanVideoRequest['asset_name'];
|
|
3189
|
+
jobType = listDigitalHumanVideoRequest['job_type'];
|
|
2616
3190
|
}
|
|
2617
3191
|
}
|
|
2618
3192
|
if (offset !== null && offset !== undefined) {
|
|
@@ -2642,6 +3216,9 @@ const ParamCreater = function () {
|
|
|
2642
3216
|
if (assetName !== null && assetName !== undefined) {
|
|
2643
3217
|
localVarQueryParameter['asset_name'] = assetName;
|
|
2644
3218
|
}
|
|
3219
|
+
if (jobType !== null && jobType !== undefined) {
|
|
3220
|
+
localVarQueryParameter['job_type'] = jobType;
|
|
3221
|
+
}
|
|
2645
3222
|
if (authorization !== undefined && authorization !== null) {
|
|
2646
3223
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2647
3224
|
}
|
|
@@ -3278,6 +3855,54 @@ const ParamCreater = function () {
|
|
|
3278
3855
|
options.headers = localVarHeaderParameter;
|
|
3279
3856
|
return options;
|
|
3280
3857
|
},
|
|
3858
|
+
/**
|
|
3859
|
+
* 该接口用于创建一次性鉴权码。
|
|
3860
|
+
*
|
|
3861
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3862
|
+
*/
|
|
3863
|
+
createOnceCode(createOnceCodeRequest) {
|
|
3864
|
+
const options = {
|
|
3865
|
+
method: "POST",
|
|
3866
|
+
url: "/v1/{project_id}/digital-human-chat/once-code",
|
|
3867
|
+
contentType: "application/json",
|
|
3868
|
+
queryParams: {},
|
|
3869
|
+
pathParams: {},
|
|
3870
|
+
headers: {}
|
|
3871
|
+
};
|
|
3872
|
+
const localVarHeaderParameter = {};
|
|
3873
|
+
let authorization;
|
|
3874
|
+
let xSdkDate;
|
|
3875
|
+
let xProjectId;
|
|
3876
|
+
let xAppUserId;
|
|
3877
|
+
if (createOnceCodeRequest !== null && createOnceCodeRequest !== undefined) {
|
|
3878
|
+
if (createOnceCodeRequest instanceof CreateOnceCodeRequest_1.CreateOnceCodeRequest) {
|
|
3879
|
+
authorization = createOnceCodeRequest.authorization;
|
|
3880
|
+
xSdkDate = createOnceCodeRequest.xSdkDate;
|
|
3881
|
+
xProjectId = createOnceCodeRequest.xProjectId;
|
|
3882
|
+
xAppUserId = createOnceCodeRequest.xAppUserId;
|
|
3883
|
+
}
|
|
3884
|
+
else {
|
|
3885
|
+
authorization = createOnceCodeRequest['Authorization'];
|
|
3886
|
+
xSdkDate = createOnceCodeRequest['X-Sdk-Date'];
|
|
3887
|
+
xProjectId = createOnceCodeRequest['X-Project-Id'];
|
|
3888
|
+
xAppUserId = createOnceCodeRequest['X-App-UserId'];
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
if (authorization !== undefined && authorization !== null) {
|
|
3892
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3893
|
+
}
|
|
3894
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
3895
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
3896
|
+
}
|
|
3897
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
3898
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
3899
|
+
}
|
|
3900
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
3901
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
3902
|
+
}
|
|
3903
|
+
options.headers = localVarHeaderParameter;
|
|
3904
|
+
return options;
|
|
3905
|
+
},
|
|
3281
3906
|
/**
|
|
3282
3907
|
* 该接口用于从URL中获取图片进行照片建模任务。
|
|
3283
3908
|
*
|
|
@@ -3569,6 +4194,618 @@ const ParamCreater = function () {
|
|
|
3569
4194
|
options.headers = localVarHeaderParameter;
|
|
3570
4195
|
return options;
|
|
3571
4196
|
},
|
|
4197
|
+
/**
|
|
4198
|
+
* 该接口用于创建应用。
|
|
4199
|
+
*
|
|
4200
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4201
|
+
*/
|
|
4202
|
+
createRobot(createRobotRequest) {
|
|
4203
|
+
const options = {
|
|
4204
|
+
method: "POST",
|
|
4205
|
+
url: "/v1/{project_id}/digital-human-chat/robot",
|
|
4206
|
+
contentType: "application/json",
|
|
4207
|
+
queryParams: {},
|
|
4208
|
+
pathParams: {},
|
|
4209
|
+
headers: {},
|
|
4210
|
+
data: {}
|
|
4211
|
+
};
|
|
4212
|
+
const localVarHeaderParameter = {};
|
|
4213
|
+
let body;
|
|
4214
|
+
let authorization;
|
|
4215
|
+
let xSdkDate;
|
|
4216
|
+
let xProjectId;
|
|
4217
|
+
let xAppUserId;
|
|
4218
|
+
if (createRobotRequest !== null && createRobotRequest !== undefined) {
|
|
4219
|
+
if (createRobotRequest instanceof CreateRobotRequest_1.CreateRobotRequest) {
|
|
4220
|
+
body = createRobotRequest.body;
|
|
4221
|
+
authorization = createRobotRequest.authorization;
|
|
4222
|
+
xSdkDate = createRobotRequest.xSdkDate;
|
|
4223
|
+
xProjectId = createRobotRequest.xProjectId;
|
|
4224
|
+
xAppUserId = createRobotRequest.xAppUserId;
|
|
4225
|
+
}
|
|
4226
|
+
else {
|
|
4227
|
+
body = createRobotRequest['body'];
|
|
4228
|
+
authorization = createRobotRequest['Authorization'];
|
|
4229
|
+
xSdkDate = createRobotRequest['X-Sdk-Date'];
|
|
4230
|
+
xProjectId = createRobotRequest['X-Project-Id'];
|
|
4231
|
+
xAppUserId = createRobotRequest['X-App-UserId'];
|
|
4232
|
+
}
|
|
4233
|
+
}
|
|
4234
|
+
if (body === null || body === undefined) {
|
|
4235
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4236
|
+
}
|
|
4237
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4238
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4239
|
+
}
|
|
4240
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4241
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4242
|
+
}
|
|
4243
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4244
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4245
|
+
}
|
|
4246
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4247
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4248
|
+
}
|
|
4249
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4250
|
+
options.data = body !== undefined ? body : {};
|
|
4251
|
+
options.headers = localVarHeaderParameter;
|
|
4252
|
+
return options;
|
|
4253
|
+
},
|
|
4254
|
+
/**
|
|
4255
|
+
* 该接口用于删除应用。
|
|
4256
|
+
*
|
|
4257
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4258
|
+
*/
|
|
4259
|
+
deleteRobot(deleteRobotRequest) {
|
|
4260
|
+
const options = {
|
|
4261
|
+
method: "POST",
|
|
4262
|
+
url: "/v1/{project_id}/digital-human-chat/robot/delete",
|
|
4263
|
+
contentType: "application/json",
|
|
4264
|
+
queryParams: {},
|
|
4265
|
+
pathParams: {},
|
|
4266
|
+
headers: {},
|
|
4267
|
+
data: {}
|
|
4268
|
+
};
|
|
4269
|
+
const localVarHeaderParameter = {};
|
|
4270
|
+
let body;
|
|
4271
|
+
let authorization;
|
|
4272
|
+
let xSdkDate;
|
|
4273
|
+
let xProjectId;
|
|
4274
|
+
let xAppUserId;
|
|
4275
|
+
if (deleteRobotRequest !== null && deleteRobotRequest !== undefined) {
|
|
4276
|
+
if (deleteRobotRequest instanceof DeleteRobotRequest_1.DeleteRobotRequest) {
|
|
4277
|
+
body = deleteRobotRequest.body;
|
|
4278
|
+
authorization = deleteRobotRequest.authorization;
|
|
4279
|
+
xSdkDate = deleteRobotRequest.xSdkDate;
|
|
4280
|
+
xProjectId = deleteRobotRequest.xProjectId;
|
|
4281
|
+
xAppUserId = deleteRobotRequest.xAppUserId;
|
|
4282
|
+
}
|
|
4283
|
+
else {
|
|
4284
|
+
body = deleteRobotRequest['body'];
|
|
4285
|
+
authorization = deleteRobotRequest['Authorization'];
|
|
4286
|
+
xSdkDate = deleteRobotRequest['X-Sdk-Date'];
|
|
4287
|
+
xProjectId = deleteRobotRequest['X-Project-Id'];
|
|
4288
|
+
xAppUserId = deleteRobotRequest['X-App-UserId'];
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
if (body === null || body === undefined) {
|
|
4292
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4293
|
+
}
|
|
4294
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4295
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4296
|
+
}
|
|
4297
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4298
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4299
|
+
}
|
|
4300
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4301
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4302
|
+
}
|
|
4303
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4304
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4305
|
+
}
|
|
4306
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4307
|
+
options.data = body !== undefined ? body : {};
|
|
4308
|
+
options.headers = localVarHeaderParameter;
|
|
4309
|
+
return options;
|
|
4310
|
+
},
|
|
4311
|
+
/**
|
|
4312
|
+
* 该接口用于查询应用列表。
|
|
4313
|
+
*
|
|
4314
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4315
|
+
*/
|
|
4316
|
+
listRobot(listRobotRequest) {
|
|
4317
|
+
const options = {
|
|
4318
|
+
method: "GET",
|
|
4319
|
+
url: "/v1/{project_id}/digital-human-chat/robot",
|
|
4320
|
+
contentType: "application/json",
|
|
4321
|
+
queryParams: {},
|
|
4322
|
+
pathParams: {},
|
|
4323
|
+
headers: {}
|
|
4324
|
+
};
|
|
4325
|
+
const localVarHeaderParameter = {};
|
|
4326
|
+
const localVarQueryParameter = {};
|
|
4327
|
+
let authorization;
|
|
4328
|
+
let xSdkDate;
|
|
4329
|
+
let xProjectId;
|
|
4330
|
+
let xAppUserId;
|
|
4331
|
+
let offset;
|
|
4332
|
+
let limit;
|
|
4333
|
+
if (listRobotRequest !== null && listRobotRequest !== undefined) {
|
|
4334
|
+
if (listRobotRequest instanceof ListRobotRequest_1.ListRobotRequest) {
|
|
4335
|
+
authorization = listRobotRequest.authorization;
|
|
4336
|
+
xSdkDate = listRobotRequest.xSdkDate;
|
|
4337
|
+
xProjectId = listRobotRequest.xProjectId;
|
|
4338
|
+
xAppUserId = listRobotRequest.xAppUserId;
|
|
4339
|
+
offset = listRobotRequest.offset;
|
|
4340
|
+
limit = listRobotRequest.limit;
|
|
4341
|
+
}
|
|
4342
|
+
else {
|
|
4343
|
+
authorization = listRobotRequest['Authorization'];
|
|
4344
|
+
xSdkDate = listRobotRequest['X-Sdk-Date'];
|
|
4345
|
+
xProjectId = listRobotRequest['X-Project-Id'];
|
|
4346
|
+
xAppUserId = listRobotRequest['X-App-UserId'];
|
|
4347
|
+
offset = listRobotRequest['offset'];
|
|
4348
|
+
limit = listRobotRequest['limit'];
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
if (offset !== null && offset !== undefined) {
|
|
4352
|
+
localVarQueryParameter['offset'] = offset;
|
|
4353
|
+
}
|
|
4354
|
+
if (limit !== null && limit !== undefined) {
|
|
4355
|
+
localVarQueryParameter['limit'] = limit;
|
|
4356
|
+
}
|
|
4357
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4358
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4359
|
+
}
|
|
4360
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4361
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4362
|
+
}
|
|
4363
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4364
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4365
|
+
}
|
|
4366
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4367
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4368
|
+
}
|
|
4369
|
+
options.queryParams = localVarQueryParameter;
|
|
4370
|
+
options.headers = localVarHeaderParameter;
|
|
4371
|
+
return options;
|
|
4372
|
+
},
|
|
4373
|
+
/**
|
|
4374
|
+
* 该接口用于查询应用详情。
|
|
4375
|
+
*
|
|
4376
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4377
|
+
*/
|
|
4378
|
+
showRobot(showRobotRequest) {
|
|
4379
|
+
const options = {
|
|
4380
|
+
method: "GET",
|
|
4381
|
+
url: "/v1/{project_id}/digital-human-chat/robot/{robot_id}",
|
|
4382
|
+
contentType: "application/json",
|
|
4383
|
+
queryParams: {},
|
|
4384
|
+
pathParams: {},
|
|
4385
|
+
headers: {}
|
|
4386
|
+
};
|
|
4387
|
+
const localVarHeaderParameter = {};
|
|
4388
|
+
let robotId;
|
|
4389
|
+
let authorization;
|
|
4390
|
+
let xSdkDate;
|
|
4391
|
+
let xProjectId;
|
|
4392
|
+
let xAppUserId;
|
|
4393
|
+
if (showRobotRequest !== null && showRobotRequest !== undefined) {
|
|
4394
|
+
if (showRobotRequest instanceof ShowRobotRequest_1.ShowRobotRequest) {
|
|
4395
|
+
robotId = showRobotRequest.robotId;
|
|
4396
|
+
authorization = showRobotRequest.authorization;
|
|
4397
|
+
xSdkDate = showRobotRequest.xSdkDate;
|
|
4398
|
+
xProjectId = showRobotRequest.xProjectId;
|
|
4399
|
+
xAppUserId = showRobotRequest.xAppUserId;
|
|
4400
|
+
}
|
|
4401
|
+
else {
|
|
4402
|
+
robotId = showRobotRequest['robot_id'];
|
|
4403
|
+
authorization = showRobotRequest['Authorization'];
|
|
4404
|
+
xSdkDate = showRobotRequest['X-Sdk-Date'];
|
|
4405
|
+
xProjectId = showRobotRequest['X-Project-Id'];
|
|
4406
|
+
xAppUserId = showRobotRequest['X-App-UserId'];
|
|
4407
|
+
}
|
|
4408
|
+
}
|
|
4409
|
+
if (robotId === null || robotId === undefined) {
|
|
4410
|
+
throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling showRobot.');
|
|
4411
|
+
}
|
|
4412
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4413
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4414
|
+
}
|
|
4415
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4416
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4417
|
+
}
|
|
4418
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4419
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4420
|
+
}
|
|
4421
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4422
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4423
|
+
}
|
|
4424
|
+
options.pathParams = { 'robot_id': robotId, };
|
|
4425
|
+
options.headers = localVarHeaderParameter;
|
|
4426
|
+
return options;
|
|
4427
|
+
},
|
|
4428
|
+
/**
|
|
4429
|
+
* 该接口用于修改应用。
|
|
4430
|
+
*
|
|
4431
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4432
|
+
*/
|
|
4433
|
+
updateRobot(updateRobotRequest) {
|
|
4434
|
+
const options = {
|
|
4435
|
+
method: "PUT",
|
|
4436
|
+
url: "/v1/{project_id}/digital-human-chat/robot/{robot_id}",
|
|
4437
|
+
contentType: "application/json",
|
|
4438
|
+
queryParams: {},
|
|
4439
|
+
pathParams: {},
|
|
4440
|
+
headers: {},
|
|
4441
|
+
data: {}
|
|
4442
|
+
};
|
|
4443
|
+
const localVarHeaderParameter = {};
|
|
4444
|
+
let body;
|
|
4445
|
+
let robotId;
|
|
4446
|
+
let authorization;
|
|
4447
|
+
let xSdkDate;
|
|
4448
|
+
let xProjectId;
|
|
4449
|
+
let xAppUserId;
|
|
4450
|
+
if (updateRobotRequest !== null && updateRobotRequest !== undefined) {
|
|
4451
|
+
if (updateRobotRequest instanceof UpdateRobotRequest_1.UpdateRobotRequest) {
|
|
4452
|
+
robotId = updateRobotRequest.robotId;
|
|
4453
|
+
body = updateRobotRequest.body;
|
|
4454
|
+
authorization = updateRobotRequest.authorization;
|
|
4455
|
+
xSdkDate = updateRobotRequest.xSdkDate;
|
|
4456
|
+
xProjectId = updateRobotRequest.xProjectId;
|
|
4457
|
+
xAppUserId = updateRobotRequest.xAppUserId;
|
|
4458
|
+
}
|
|
4459
|
+
else {
|
|
4460
|
+
robotId = updateRobotRequest['robot_id'];
|
|
4461
|
+
body = updateRobotRequest['body'];
|
|
4462
|
+
authorization = updateRobotRequest['Authorization'];
|
|
4463
|
+
xSdkDate = updateRobotRequest['X-Sdk-Date'];
|
|
4464
|
+
xProjectId = updateRobotRequest['X-Project-Id'];
|
|
4465
|
+
xAppUserId = updateRobotRequest['X-App-UserId'];
|
|
4466
|
+
}
|
|
4467
|
+
}
|
|
4468
|
+
if (robotId === null || robotId === undefined) {
|
|
4469
|
+
throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling updateRobot.');
|
|
4470
|
+
}
|
|
4471
|
+
if (body === null || body === undefined) {
|
|
4472
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4473
|
+
}
|
|
4474
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4475
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4476
|
+
}
|
|
4477
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4478
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4479
|
+
}
|
|
4480
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4481
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4482
|
+
}
|
|
4483
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4484
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4485
|
+
}
|
|
4486
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4487
|
+
options.data = body !== undefined ? body : {};
|
|
4488
|
+
options.pathParams = { 'robot_id': robotId, };
|
|
4489
|
+
options.headers = localVarHeaderParameter;
|
|
4490
|
+
return options;
|
|
4491
|
+
},
|
|
4492
|
+
/**
|
|
4493
|
+
* 该接口用于创建智能交互对话直播间。
|
|
4494
|
+
*
|
|
4495
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4496
|
+
*/
|
|
4497
|
+
createSmartChatRoom(createSmartChatRoomRequest) {
|
|
4498
|
+
const options = {
|
|
4499
|
+
method: "POST",
|
|
4500
|
+
url: "/v1/{project_id}/smart-chat-rooms",
|
|
4501
|
+
contentType: "application/json",
|
|
4502
|
+
queryParams: {},
|
|
4503
|
+
pathParams: {},
|
|
4504
|
+
headers: {},
|
|
4505
|
+
data: {}
|
|
4506
|
+
};
|
|
4507
|
+
const localVarHeaderParameter = {};
|
|
4508
|
+
let body;
|
|
4509
|
+
let authorization;
|
|
4510
|
+
let xSdkDate;
|
|
4511
|
+
let xProjectId;
|
|
4512
|
+
let xAppUserId;
|
|
4513
|
+
if (createSmartChatRoomRequest !== null && createSmartChatRoomRequest !== undefined) {
|
|
4514
|
+
if (createSmartChatRoomRequest instanceof CreateSmartChatRoomRequest_1.CreateSmartChatRoomRequest) {
|
|
4515
|
+
body = createSmartChatRoomRequest.body;
|
|
4516
|
+
authorization = createSmartChatRoomRequest.authorization;
|
|
4517
|
+
xSdkDate = createSmartChatRoomRequest.xSdkDate;
|
|
4518
|
+
xProjectId = createSmartChatRoomRequest.xProjectId;
|
|
4519
|
+
xAppUserId = createSmartChatRoomRequest.xAppUserId;
|
|
4520
|
+
}
|
|
4521
|
+
else {
|
|
4522
|
+
body = createSmartChatRoomRequest['body'];
|
|
4523
|
+
authorization = createSmartChatRoomRequest['Authorization'];
|
|
4524
|
+
xSdkDate = createSmartChatRoomRequest['X-Sdk-Date'];
|
|
4525
|
+
xProjectId = createSmartChatRoomRequest['X-Project-Id'];
|
|
4526
|
+
xAppUserId = createSmartChatRoomRequest['X-App-UserId'];
|
|
4527
|
+
}
|
|
4528
|
+
}
|
|
4529
|
+
if (body === null || body === undefined) {
|
|
4530
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4531
|
+
}
|
|
4532
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4533
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4534
|
+
}
|
|
4535
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4536
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4537
|
+
}
|
|
4538
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4539
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4540
|
+
}
|
|
4541
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4542
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4543
|
+
}
|
|
4544
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4545
|
+
options.data = body !== undefined ? body : {};
|
|
4546
|
+
options.headers = localVarHeaderParameter;
|
|
4547
|
+
return options;
|
|
4548
|
+
},
|
|
4549
|
+
/**
|
|
4550
|
+
* 该接口用于删除智能交互对话直播间。
|
|
4551
|
+
*
|
|
4552
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4553
|
+
*/
|
|
4554
|
+
deleteSmartChatRoom(deleteSmartChatRoomRequest) {
|
|
4555
|
+
const options = {
|
|
4556
|
+
method: "DELETE",
|
|
4557
|
+
url: "/v1/{project_id}/smart-chat-rooms/{room_id}",
|
|
4558
|
+
contentType: "application/json",
|
|
4559
|
+
queryParams: {},
|
|
4560
|
+
pathParams: {},
|
|
4561
|
+
headers: {}
|
|
4562
|
+
};
|
|
4563
|
+
const localVarHeaderParameter = {};
|
|
4564
|
+
let roomId;
|
|
4565
|
+
let authorization;
|
|
4566
|
+
let xSdkDate;
|
|
4567
|
+
let xProjectId;
|
|
4568
|
+
let xAppUserId;
|
|
4569
|
+
if (deleteSmartChatRoomRequest !== null && deleteSmartChatRoomRequest !== undefined) {
|
|
4570
|
+
if (deleteSmartChatRoomRequest instanceof DeleteSmartChatRoomRequest_1.DeleteSmartChatRoomRequest) {
|
|
4571
|
+
roomId = deleteSmartChatRoomRequest.roomId;
|
|
4572
|
+
authorization = deleteSmartChatRoomRequest.authorization;
|
|
4573
|
+
xSdkDate = deleteSmartChatRoomRequest.xSdkDate;
|
|
4574
|
+
xProjectId = deleteSmartChatRoomRequest.xProjectId;
|
|
4575
|
+
xAppUserId = deleteSmartChatRoomRequest.xAppUserId;
|
|
4576
|
+
}
|
|
4577
|
+
else {
|
|
4578
|
+
roomId = deleteSmartChatRoomRequest['room_id'];
|
|
4579
|
+
authorization = deleteSmartChatRoomRequest['Authorization'];
|
|
4580
|
+
xSdkDate = deleteSmartChatRoomRequest['X-Sdk-Date'];
|
|
4581
|
+
xProjectId = deleteSmartChatRoomRequest['X-Project-Id'];
|
|
4582
|
+
xAppUserId = deleteSmartChatRoomRequest['X-App-UserId'];
|
|
4583
|
+
}
|
|
4584
|
+
}
|
|
4585
|
+
if (roomId === null || roomId === undefined) {
|
|
4586
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling deleteSmartChatRoom.');
|
|
4587
|
+
}
|
|
4588
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4589
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4590
|
+
}
|
|
4591
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4592
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4593
|
+
}
|
|
4594
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4595
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4596
|
+
}
|
|
4597
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4598
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4599
|
+
}
|
|
4600
|
+
options.pathParams = { 'room_id': roomId, };
|
|
4601
|
+
options.headers = localVarHeaderParameter;
|
|
4602
|
+
return options;
|
|
4603
|
+
},
|
|
4604
|
+
/**
|
|
4605
|
+
* 该接口用于智能交互对话直播间列表。
|
|
4606
|
+
*
|
|
4607
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4608
|
+
*/
|
|
4609
|
+
listSmartChatRooms(listSmartChatRoomsRequest) {
|
|
4610
|
+
const options = {
|
|
4611
|
+
method: "GET",
|
|
4612
|
+
url: "/v1/{project_id}/smart-chat-rooms",
|
|
4613
|
+
contentType: "application/json",
|
|
4614
|
+
queryParams: {},
|
|
4615
|
+
pathParams: {},
|
|
4616
|
+
headers: {}
|
|
4617
|
+
};
|
|
4618
|
+
const localVarHeaderParameter = {};
|
|
4619
|
+
const localVarQueryParameter = {};
|
|
4620
|
+
let authorization;
|
|
4621
|
+
let xSdkDate;
|
|
4622
|
+
let xProjectId;
|
|
4623
|
+
let xAppUserId;
|
|
4624
|
+
let offset;
|
|
4625
|
+
let limit;
|
|
4626
|
+
let roomName;
|
|
4627
|
+
let modelName;
|
|
4628
|
+
let startTime;
|
|
4629
|
+
let endTime;
|
|
4630
|
+
if (listSmartChatRoomsRequest !== null && listSmartChatRoomsRequest !== undefined) {
|
|
4631
|
+
if (listSmartChatRoomsRequest instanceof ListSmartChatRoomsRequest_1.ListSmartChatRoomsRequest) {
|
|
4632
|
+
authorization = listSmartChatRoomsRequest.authorization;
|
|
4633
|
+
xSdkDate = listSmartChatRoomsRequest.xSdkDate;
|
|
4634
|
+
xProjectId = listSmartChatRoomsRequest.xProjectId;
|
|
4635
|
+
xAppUserId = listSmartChatRoomsRequest.xAppUserId;
|
|
4636
|
+
offset = listSmartChatRoomsRequest.offset;
|
|
4637
|
+
limit = listSmartChatRoomsRequest.limit;
|
|
4638
|
+
roomName = listSmartChatRoomsRequest.roomName;
|
|
4639
|
+
modelName = listSmartChatRoomsRequest.modelName;
|
|
4640
|
+
startTime = listSmartChatRoomsRequest.startTime;
|
|
4641
|
+
endTime = listSmartChatRoomsRequest.endTime;
|
|
4642
|
+
}
|
|
4643
|
+
else {
|
|
4644
|
+
authorization = listSmartChatRoomsRequest['Authorization'];
|
|
4645
|
+
xSdkDate = listSmartChatRoomsRequest['X-Sdk-Date'];
|
|
4646
|
+
xProjectId = listSmartChatRoomsRequest['X-Project-Id'];
|
|
4647
|
+
xAppUserId = listSmartChatRoomsRequest['X-App-UserId'];
|
|
4648
|
+
offset = listSmartChatRoomsRequest['offset'];
|
|
4649
|
+
limit = listSmartChatRoomsRequest['limit'];
|
|
4650
|
+
roomName = listSmartChatRoomsRequest['room_name'];
|
|
4651
|
+
modelName = listSmartChatRoomsRequest['model_name'];
|
|
4652
|
+
startTime = listSmartChatRoomsRequest['start_time'];
|
|
4653
|
+
endTime = listSmartChatRoomsRequest['end_time'];
|
|
4654
|
+
}
|
|
4655
|
+
}
|
|
4656
|
+
if (offset !== null && offset !== undefined) {
|
|
4657
|
+
localVarQueryParameter['offset'] = offset;
|
|
4658
|
+
}
|
|
4659
|
+
if (limit !== null && limit !== undefined) {
|
|
4660
|
+
localVarQueryParameter['limit'] = limit;
|
|
4661
|
+
}
|
|
4662
|
+
if (roomName !== null && roomName !== undefined) {
|
|
4663
|
+
localVarQueryParameter['room_name'] = roomName;
|
|
4664
|
+
}
|
|
4665
|
+
if (modelName !== null && modelName !== undefined) {
|
|
4666
|
+
localVarQueryParameter['model_name'] = modelName;
|
|
4667
|
+
}
|
|
4668
|
+
if (startTime !== null && startTime !== undefined) {
|
|
4669
|
+
localVarQueryParameter['start_time'] = startTime;
|
|
4670
|
+
}
|
|
4671
|
+
if (endTime !== null && endTime !== undefined) {
|
|
4672
|
+
localVarQueryParameter['end_time'] = endTime;
|
|
4673
|
+
}
|
|
4674
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4675
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4676
|
+
}
|
|
4677
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4678
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4679
|
+
}
|
|
4680
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4681
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4682
|
+
}
|
|
4683
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4684
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4685
|
+
}
|
|
4686
|
+
options.queryParams = localVarQueryParameter;
|
|
4687
|
+
options.headers = localVarHeaderParameter;
|
|
4688
|
+
return options;
|
|
4689
|
+
},
|
|
4690
|
+
/**
|
|
4691
|
+
* 该接口用于查询智能交互对话直播间详情。
|
|
4692
|
+
*
|
|
4693
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4694
|
+
*/
|
|
4695
|
+
showSmartChatRoom(showSmartChatRoomRequest) {
|
|
4696
|
+
const options = {
|
|
4697
|
+
method: "GET",
|
|
4698
|
+
url: "/v1/{project_id}/smart-chat-rooms/{room_id}",
|
|
4699
|
+
contentType: "application/json",
|
|
4700
|
+
queryParams: {},
|
|
4701
|
+
pathParams: {},
|
|
4702
|
+
headers: {}
|
|
4703
|
+
};
|
|
4704
|
+
const localVarHeaderParameter = {};
|
|
4705
|
+
let roomId;
|
|
4706
|
+
let authorization;
|
|
4707
|
+
let xSdkDate;
|
|
4708
|
+
let xProjectId;
|
|
4709
|
+
let xAppUserId;
|
|
4710
|
+
if (showSmartChatRoomRequest !== null && showSmartChatRoomRequest !== undefined) {
|
|
4711
|
+
if (showSmartChatRoomRequest instanceof ShowSmartChatRoomRequest_1.ShowSmartChatRoomRequest) {
|
|
4712
|
+
roomId = showSmartChatRoomRequest.roomId;
|
|
4713
|
+
authorization = showSmartChatRoomRequest.authorization;
|
|
4714
|
+
xSdkDate = showSmartChatRoomRequest.xSdkDate;
|
|
4715
|
+
xProjectId = showSmartChatRoomRequest.xProjectId;
|
|
4716
|
+
xAppUserId = showSmartChatRoomRequest.xAppUserId;
|
|
4717
|
+
}
|
|
4718
|
+
else {
|
|
4719
|
+
roomId = showSmartChatRoomRequest['room_id'];
|
|
4720
|
+
authorization = showSmartChatRoomRequest['Authorization'];
|
|
4721
|
+
xSdkDate = showSmartChatRoomRequest['X-Sdk-Date'];
|
|
4722
|
+
xProjectId = showSmartChatRoomRequest['X-Project-Id'];
|
|
4723
|
+
xAppUserId = showSmartChatRoomRequest['X-App-UserId'];
|
|
4724
|
+
}
|
|
4725
|
+
}
|
|
4726
|
+
if (roomId === null || roomId === undefined) {
|
|
4727
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling showSmartChatRoom.');
|
|
4728
|
+
}
|
|
4729
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4730
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4731
|
+
}
|
|
4732
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4733
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4734
|
+
}
|
|
4735
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4736
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4737
|
+
}
|
|
4738
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4739
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4740
|
+
}
|
|
4741
|
+
options.pathParams = { 'room_id': roomId, };
|
|
4742
|
+
options.headers = localVarHeaderParameter;
|
|
4743
|
+
return options;
|
|
4744
|
+
},
|
|
4745
|
+
/**
|
|
4746
|
+
* 该接口用于智能交互对话直播间信息。
|
|
4747
|
+
*
|
|
4748
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4749
|
+
*/
|
|
4750
|
+
updateSmartChatRoom(updateSmartChatRoomRequest) {
|
|
4751
|
+
const options = {
|
|
4752
|
+
method: "PUT",
|
|
4753
|
+
url: "/v1/{project_id}/smart-chat-rooms/{room_id}",
|
|
4754
|
+
contentType: "application/json",
|
|
4755
|
+
queryParams: {},
|
|
4756
|
+
pathParams: {},
|
|
4757
|
+
headers: {},
|
|
4758
|
+
data: {}
|
|
4759
|
+
};
|
|
4760
|
+
const localVarHeaderParameter = {};
|
|
4761
|
+
let body;
|
|
4762
|
+
let roomId;
|
|
4763
|
+
let authorization;
|
|
4764
|
+
let xSdkDate;
|
|
4765
|
+
let xProjectId;
|
|
4766
|
+
let xAppUserId;
|
|
4767
|
+
if (updateSmartChatRoomRequest !== null && updateSmartChatRoomRequest !== undefined) {
|
|
4768
|
+
if (updateSmartChatRoomRequest instanceof UpdateSmartChatRoomRequest_1.UpdateSmartChatRoomRequest) {
|
|
4769
|
+
roomId = updateSmartChatRoomRequest.roomId;
|
|
4770
|
+
body = updateSmartChatRoomRequest.body;
|
|
4771
|
+
authorization = updateSmartChatRoomRequest.authorization;
|
|
4772
|
+
xSdkDate = updateSmartChatRoomRequest.xSdkDate;
|
|
4773
|
+
xProjectId = updateSmartChatRoomRequest.xProjectId;
|
|
4774
|
+
xAppUserId = updateSmartChatRoomRequest.xAppUserId;
|
|
4775
|
+
}
|
|
4776
|
+
else {
|
|
4777
|
+
roomId = updateSmartChatRoomRequest['room_id'];
|
|
4778
|
+
body = updateSmartChatRoomRequest['body'];
|
|
4779
|
+
authorization = updateSmartChatRoomRequest['Authorization'];
|
|
4780
|
+
xSdkDate = updateSmartChatRoomRequest['X-Sdk-Date'];
|
|
4781
|
+
xProjectId = updateSmartChatRoomRequest['X-Project-Id'];
|
|
4782
|
+
xAppUserId = updateSmartChatRoomRequest['X-App-UserId'];
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
if (roomId === null || roomId === undefined) {
|
|
4786
|
+
throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling updateSmartChatRoom.');
|
|
4787
|
+
}
|
|
4788
|
+
if (body === null || body === undefined) {
|
|
4789
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4790
|
+
}
|
|
4791
|
+
if (authorization !== undefined && authorization !== null) {
|
|
4792
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4793
|
+
}
|
|
4794
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
4795
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
4796
|
+
}
|
|
4797
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
4798
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
4799
|
+
}
|
|
4800
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
4801
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
4802
|
+
}
|
|
4803
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4804
|
+
options.data = body !== undefined ? body : {};
|
|
4805
|
+
options.pathParams = { 'room_id': roomId, };
|
|
4806
|
+
options.headers = localVarHeaderParameter;
|
|
4807
|
+
return options;
|
|
4808
|
+
},
|
|
3572
4809
|
/**
|
|
3573
4810
|
* 该接口用于控制数字人直播过程。
|
|
3574
4811
|
*
|