@huaweicloud/huaweicloud-sdk-metastudio 3.1.81 → 3.1.83
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 +269 -21
- package/v1/MetaStudioClient.d.ts.map +1 -1
- package/v1/MetaStudioClient.js +679 -45
- package/v1/MetaStudioClient.js.map +1 -1
- package/v1/model/ActiveCodeInfo.d.ts +36 -0
- package/v1/model/ActiveCodeInfo.d.ts.map +1 -0
- package/v1/model/ActiveCodeInfo.js +89 -0
- package/v1/model/ActiveCodeInfo.js.map +1 -0
- package/v1/model/CoStreamerConfig.d.ts +21 -0
- package/v1/model/CoStreamerConfig.d.ts.map +1 -0
- package/v1/model/CoStreamerConfig.js +38 -0
- package/v1/model/CoStreamerConfig.js.map +1 -0
- package/v1/model/ControlSmartLiveReq.d.ts +3 -1
- package/v1/model/ControlSmartLiveReq.d.ts.map +1 -1
- package/v1/model/ControlSmartLiveReq.js +2 -0
- package/v1/model/ControlSmartLiveReq.js.map +1 -1
- package/v1/model/CreateActiveCodeReq.d.ts +16 -0
- package/v1/model/CreateActiveCodeReq.d.ts.map +1 -0
- package/v1/model/CreateActiveCodeReq.js +42 -0
- package/v1/model/CreateActiveCodeReq.js.map +1 -0
- package/v1/model/CreateActiveCodeRequest.d.ts +23 -0
- package/v1/model/CreateActiveCodeRequest.d.ts.map +1 -0
- package/v1/model/CreateActiveCodeRequest.js +53 -0
- package/v1/model/CreateActiveCodeRequest.js.map +1 -0
- package/v1/model/CreateActiveCodeResponse.d.ts +41 -0
- package/v1/model/CreateActiveCodeResponse.d.ts.map +1 -0
- package/v1/model/CreateActiveCodeResponse.js +101 -0
- package/v1/model/CreateActiveCodeResponse.js.map +1 -0
- package/v1/model/CreateAssetbyReplicationInfoRequest.d.ts +19 -0
- package/v1/model/CreateAssetbyReplicationInfoRequest.d.ts.map +1 -0
- package/v1/model/CreateAssetbyReplicationInfoRequest.js +43 -0
- package/v1/model/CreateAssetbyReplicationInfoRequest.js.map +1 -0
- package/v1/model/CreateAssetbyReplicationInfoResponse.d.ts +9 -0
- package/v1/model/CreateAssetbyReplicationInfoResponse.d.ts.map +1 -0
- package/v1/model/CreateAssetbyReplicationInfoResponse.js +21 -0
- package/v1/model/CreateAssetbyReplicationInfoResponse.js.map +1 -0
- package/v1/model/CreateSmartLiveRoomReq.d.ts +5 -0
- package/v1/model/CreateSmartLiveRoomReq.d.ts.map +1 -1
- package/v1/model/CreateSmartLiveRoomReq.js +10 -0
- package/v1/model/CreateSmartLiveRoomReq.js.map +1 -1
- package/v1/model/DeleteActiveCodeRequest.d.ts +22 -0
- package/v1/model/DeleteActiveCodeRequest.d.ts.map +1 -0
- package/v1/model/DeleteActiveCodeRequest.js +53 -0
- package/v1/model/DeleteActiveCodeRequest.js.map +1 -0
- package/v1/model/DeleteActiveCodeResponse.d.ts +9 -0
- package/v1/model/DeleteActiveCodeResponse.d.ts.map +1 -0
- package/v1/model/DeleteActiveCodeResponse.js +21 -0
- package/v1/model/DeleteActiveCodeResponse.js.map +1 -0
- package/v1/model/DigitalHumanBusinessCardJobInfo.d.ts +2 -1
- package/v1/model/DigitalHumanBusinessCardJobInfo.d.ts.map +1 -1
- package/v1/model/DigitalHumanBusinessCardJobInfo.js +1 -0
- package/v1/model/DigitalHumanBusinessCardJobInfo.js.map +1 -1
- package/v1/model/DigitalHumanVideo.d.ts +2 -1
- package/v1/model/DigitalHumanVideo.d.ts.map +1 -1
- package/v1/model/DigitalHumanVideo.js +1 -0
- package/v1/model/DigitalHumanVideo.js.map +1 -1
- package/v1/model/ExecuteSmartLiveCommandResponse.d.ts +7 -1
- package/v1/model/ExecuteSmartLiveCommandResponse.d.ts.map +1 -1
- package/v1/model/ExecuteSmartLiveCommandResponse.js +12 -0
- package/v1/model/ExecuteSmartLiveCommandResponse.js.map +1 -1
- package/v1/model/ListActiveCodeRequest.d.ts +28 -0
- package/v1/model/ListActiveCodeRequest.d.ts.map +1 -0
- package/v1/model/ListActiveCodeRequest.js +68 -0
- package/v1/model/ListActiveCodeRequest.js.map +1 -0
- package/v1/model/ListActiveCodeResponse.d.ts +18 -0
- package/v1/model/ListActiveCodeResponse.d.ts.map +1 -0
- package/v1/model/ListActiveCodeResponse.js +37 -0
- package/v1/model/ListActiveCodeResponse.js.map +1 -0
- package/v1/model/ListAssetsRequest.d.ts +4 -0
- package/v1/model/ListAssetsRequest.d.ts.map +1 -1
- package/v1/model/ListAssetsRequest.js +10 -0
- package/v1/model/ListAssetsRequest.js.map +1 -1
- package/v1/model/ListSmartChatRoomsResponse.d.ts +4 -0
- package/v1/model/ListSmartChatRoomsResponse.d.ts.map +1 -1
- package/v1/model/ListSmartChatRoomsResponse.js +10 -0
- package/v1/model/ListSmartChatRoomsResponse.js.map +1 -1
- package/v1/model/LiveJobLog.d.ts +8 -0
- package/v1/model/LiveJobLog.d.ts.map +1 -0
- package/v1/model/LiveJobLog.js +19 -0
- package/v1/model/LiveJobLog.js.map +1 -0
- package/v1/model/LiveVideoScriptInfo.d.ts +4 -0
- package/v1/model/LiveVideoScriptInfo.d.ts.map +1 -1
- package/v1/model/LiveVideoScriptInfo.js +10 -0
- package/v1/model/LiveVideoScriptInfo.js.map +1 -1
- package/v1/model/ReplicationAssetInfo.d.ts +17 -0
- package/v1/model/ReplicationAssetInfo.d.ts.map +1 -0
- package/v1/model/ReplicationAssetInfo.js +39 -0
- package/v1/model/ReplicationAssetInfo.js.map +1 -0
- package/v1/model/ReplicationEncInfo.d.ts +12 -0
- package/v1/model/ReplicationEncInfo.d.ts.map +1 -0
- package/v1/model/ReplicationEncInfo.js +27 -0
- package/v1/model/ReplicationEncInfo.js.map +1 -0
- package/v1/model/ResetActiveCodeRequest.d.ts +24 -0
- package/v1/model/ResetActiveCodeRequest.d.ts.map +1 -0
- package/v1/model/ResetActiveCodeRequest.js +60 -0
- package/v1/model/ResetActiveCodeRequest.js.map +1 -0
- package/v1/model/ResetActiveCodeResponse.d.ts +41 -0
- package/v1/model/ResetActiveCodeResponse.d.ts.map +1 -0
- package/v1/model/ResetActiveCodeResponse.js +101 -0
- package/v1/model/ResetActiveCodeResponse.js.map +1 -0
- package/v1/model/Show2DDigitalHumanVideoResponse.d.ts +2 -1
- package/v1/model/Show2DDigitalHumanVideoResponse.d.ts.map +1 -1
- package/v1/model/Show2DDigitalHumanVideoResponse.js +1 -0
- package/v1/model/Show2DDigitalHumanVideoResponse.js.map +1 -1
- package/v1/model/ShowActiveCodeRequest.d.ts +24 -0
- package/v1/model/ShowActiveCodeRequest.d.ts.map +1 -0
- package/v1/model/ShowActiveCodeRequest.js +60 -0
- package/v1/model/ShowActiveCodeRequest.js.map +1 -0
- package/v1/model/ShowActiveCodeResponse.d.ts +41 -0
- package/v1/model/ShowActiveCodeResponse.d.ts.map +1 -0
- package/v1/model/ShowActiveCodeResponse.js +101 -0
- package/v1/model/ShowActiveCodeResponse.js.map +1 -0
- package/v1/model/ShowAssetReplicationInfoRequest.d.ts +20 -0
- package/v1/model/ShowAssetReplicationInfoRequest.d.ts.map +1 -0
- package/v1/model/ShowAssetReplicationInfoRequest.js +50 -0
- package/v1/model/ShowAssetReplicationInfoRequest.js.map +1 -0
- package/v1/model/ShowAssetReplicationInfoResponse.d.ts +22 -0
- package/v1/model/ShowAssetReplicationInfoResponse.d.ts.map +1 -0
- package/v1/model/ShowAssetReplicationInfoResponse.js +51 -0
- package/v1/model/ShowAssetReplicationInfoResponse.js.map +1 -0
- package/v1/model/ShowPhotoDigitalHumanVideoResponse.d.ts +2 -1
- package/v1/model/ShowPhotoDigitalHumanVideoResponse.d.ts.map +1 -1
- package/v1/model/ShowPhotoDigitalHumanVideoResponse.js +1 -0
- package/v1/model/ShowPhotoDigitalHumanVideoResponse.js.map +1 -1
- package/v1/model/ShowSmartLiveResponse.d.ts +10 -0
- package/v1/model/ShowSmartLiveResponse.d.ts.map +1 -1
- package/v1/model/ShowSmartLiveResponse.js +20 -0
- package/v1/model/ShowSmartLiveResponse.js.map +1 -1
- package/v1/model/ShowSmartLiveRoomResponse.d.ts +7 -0
- package/v1/model/ShowSmartLiveRoomResponse.d.ts.map +1 -1
- package/v1/model/ShowSmartLiveRoomResponse.js +14 -0
- package/v1/model/ShowSmartLiveRoomResponse.js.map +1 -1
- package/v1/model/ShowVoiceTrainingJobResponse.d.ts +4 -0
- package/v1/model/ShowVoiceTrainingJobResponse.d.ts.map +1 -1
- package/v1/model/ShowVoiceTrainingJobResponse.js +10 -0
- package/v1/model/ShowVoiceTrainingJobResponse.js.map +1 -1
- package/v1/model/SmartChatRoomBaseInfo.d.ts +2 -0
- package/v1/model/SmartChatRoomBaseInfo.d.ts.map +1 -1
- package/v1/model/SmartChatRoomBaseInfo.js +4 -0
- package/v1/model/SmartChatRoomBaseInfo.js.map +1 -1
- package/v1/model/SmartLiveJob.d.ts +10 -0
- package/v1/model/SmartLiveJob.d.ts.map +1 -1
- package/v1/model/SmartLiveJob.js +20 -0
- package/v1/model/SmartLiveJob.js.map +1 -1
- package/v1/model/SmartLiveRoomBaseInfo.d.ts +14 -0
- package/v1/model/SmartLiveRoomBaseInfo.d.ts.map +1 -1
- package/v1/model/SmartLiveRoomBaseInfo.js +24 -1
- package/v1/model/SmartLiveRoomBaseInfo.js.map +1 -1
- package/v1/model/StartSmartLiveReq.d.ts +5 -0
- package/v1/model/StartSmartLiveReq.d.ts.map +1 -1
- package/v1/model/StartSmartLiveReq.js +10 -0
- package/v1/model/StartSmartLiveReq.js.map +1 -1
- package/v1/model/TrainingJobInfo.d.ts +4 -0
- package/v1/model/TrainingJobInfo.d.ts.map +1 -1
- package/v1/model/TrainingJobInfo.js +10 -0
- package/v1/model/TrainingJobInfo.js.map +1 -1
- package/v1/model/TriggerProcess.d.ts +12 -0
- package/v1/model/TriggerProcess.d.ts.map +1 -1
- package/v1/model/TriggerProcess.js +20 -1
- package/v1/model/TriggerProcess.js.map +1 -1
- package/v1/model/UpdateActiveCodeReq.d.ts +8 -0
- package/v1/model/UpdateActiveCodeReq.d.ts.map +1 -0
- package/v1/model/UpdateActiveCodeReq.js +19 -0
- package/v1/model/UpdateActiveCodeReq.js.map +1 -0
- package/v1/model/UpdateActiveCodeRequest.d.ts +27 -0
- package/v1/model/UpdateActiveCodeRequest.d.ts.map +1 -0
- package/v1/model/UpdateActiveCodeRequest.js +64 -0
- package/v1/model/UpdateActiveCodeRequest.js.map +1 -0
- package/v1/model/UpdateActiveCodeResponse.d.ts +41 -0
- package/v1/model/UpdateActiveCodeResponse.d.ts.map +1 -0
- package/v1/model/UpdateActiveCodeResponse.js +101 -0
- package/v1/model/UpdateActiveCodeResponse.js.map +1 -0
- package/v1/model/UpdateSmartLiveRoomResponse.d.ts +7 -0
- package/v1/model/UpdateSmartLiveRoomResponse.d.ts.map +1 -1
- package/v1/model/UpdateSmartLiveRoomResponse.js +14 -0
- package/v1/model/UpdateSmartLiveRoomResponse.js.map +1 -1
- package/v1/public-api.d.ts +23 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +23 -0
- package/v1/public-api.js.map +1 -1
package/v1/MetaStudioClient.js
CHANGED
|
@@ -15,6 +15,8 @@ const ConfirmTrainingSegmentRequest_1 = require("./model/ConfirmTrainingSegmentR
|
|
|
15
15
|
const CopyVideoScriptsRequest_1 = require("./model/CopyVideoScriptsRequest");
|
|
16
16
|
const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHumanVideoRequest");
|
|
17
17
|
const Create2dModelTrainingJobRequest_1 = require("./model/Create2dModelTrainingJobRequest");
|
|
18
|
+
const CreateActiveCodeRequest_1 = require("./model/CreateActiveCodeRequest");
|
|
19
|
+
const CreateAssetbyReplicationInfoRequest_1 = require("./model/CreateAssetbyReplicationInfoRequest");
|
|
18
20
|
const CreateDialogUrlRequest_1 = require("./model/CreateDialogUrlRequest");
|
|
19
21
|
const CreateDigitalAssetRequest_1 = require("./model/CreateDigitalAssetRequest");
|
|
20
22
|
const CreateDigitalHumanBusinessCardRequest_1 = require("./model/CreateDigitalHumanBusinessCardRequest");
|
|
@@ -37,6 +39,7 @@ const CreateTtsaRequest_1 = require("./model/CreateTtsaRequest");
|
|
|
37
39
|
const CreateVideoMotionCaptureJobRequest_1 = require("./model/CreateVideoMotionCaptureJobRequest");
|
|
38
40
|
const CreateVideoScriptsRequest_1 = require("./model/CreateVideoScriptsRequest");
|
|
39
41
|
const Delete2dModelTrainingJobRequest_1 = require("./model/Delete2dModelTrainingJobRequest");
|
|
42
|
+
const DeleteActiveCodeRequest_1 = require("./model/DeleteActiveCodeRequest");
|
|
40
43
|
const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
|
|
41
44
|
const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
|
|
42
45
|
const DeleteFileRequest_1 = require("./model/DeleteFileRequest");
|
|
@@ -50,6 +53,7 @@ const Execute2dModelTrainingCommandByUserRequest_1 = require("./model/Execute2dM
|
|
|
50
53
|
const ExecuteSmartLiveCommandRequest_1 = require("./model/ExecuteSmartLiveCommandRequest");
|
|
51
54
|
const ExecuteVideoMotionCaptureCommandRequest_1 = require("./model/ExecuteVideoMotionCaptureCommandRequest");
|
|
52
55
|
const List2dModelTrainingJobRequest_1 = require("./model/List2dModelTrainingJobRequest");
|
|
56
|
+
const ListActiveCodeRequest_1 = require("./model/ListActiveCodeRequest");
|
|
53
57
|
const ListAssetSummaryRequest_1 = require("./model/ListAssetSummaryRequest");
|
|
54
58
|
const ListAssetsRequest_1 = require("./model/ListAssetsRequest");
|
|
55
59
|
const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanBusinessCardRequest");
|
|
@@ -69,9 +73,12 @@ const ListVideoMotionCaptureJobsRequest_1 = require("./model/ListVideoMotionCapt
|
|
|
69
73
|
const ListVideoScriptsRequest_1 = require("./model/ListVideoScriptsRequest");
|
|
70
74
|
const ListVoiceTrainingJobRequest_1 = require("./model/ListVoiceTrainingJobRequest");
|
|
71
75
|
const LiveEventReportRequest_1 = require("./model/LiveEventReportRequest");
|
|
76
|
+
const ResetActiveCodeRequest_1 = require("./model/ResetActiveCodeRequest");
|
|
72
77
|
const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
|
|
73
78
|
const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
|
|
74
79
|
const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
|
|
80
|
+
const ShowActiveCodeRequest_1 = require("./model/ShowActiveCodeRequest");
|
|
81
|
+
const ShowAssetReplicationInfoRequest_1 = require("./model/ShowAssetReplicationInfoRequest");
|
|
75
82
|
const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
|
|
76
83
|
const ShowDigitalHumanBusinessCardRequest_1 = require("./model/ShowDigitalHumanBusinessCardRequest");
|
|
77
84
|
const ShowJobAuditResultRequest_1 = require("./model/ShowJobAuditResultRequest");
|
|
@@ -95,6 +102,7 @@ const StopSmartChatJobRequest_1 = require("./model/StopSmartChatJobRequest");
|
|
|
95
102
|
const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
|
|
96
103
|
const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
|
|
97
104
|
const Update2dModelTrainingJobRequest_1 = require("./model/Update2dModelTrainingJobRequest");
|
|
105
|
+
const UpdateActiveCodeRequest_1 = require("./model/UpdateActiveCodeRequest");
|
|
98
106
|
const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
|
|
99
107
|
const UpdateDigitalHumanBusinessCardRequest_1 = require("./model/UpdateDigitalHumanBusinessCardRequest");
|
|
100
108
|
const UpdateInteractionRuleGroupRequest_1 = require("./model/UpdateInteractionRuleGroupRequest");
|
|
@@ -112,6 +120,129 @@ class MetaStudioClient {
|
|
|
112
120
|
getPath() {
|
|
113
121
|
return __dirname;
|
|
114
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* 该接口用于创建激活码。
|
|
125
|
+
*
|
|
126
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
127
|
+
*
|
|
128
|
+
* @summary 创建激活码
|
|
129
|
+
* @param {CreateActiveCodeReq} createActiveCodeRequestBody 创建激活码请求。
|
|
130
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
131
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
132
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
133
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
createActiveCode(createActiveCodeRequest) {
|
|
138
|
+
const options = (0, exports.ParamCreater)().createActiveCode(createActiveCodeRequest);
|
|
139
|
+
// @ts-ignore
|
|
140
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
141
|
+
return this.hcClient.sendRequest(options);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 该接口用于删除激活码。
|
|
145
|
+
*
|
|
146
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
147
|
+
*
|
|
148
|
+
* @summary 删除激活码
|
|
149
|
+
* @param {Array<string>} deleteActiveCodeRequestBody 激活码ID列表
|
|
150
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
151
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
152
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
153
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
deleteActiveCode(deleteActiveCodeRequest) {
|
|
158
|
+
const options = (0, exports.ParamCreater)().deleteActiveCode(deleteActiveCodeRequest);
|
|
159
|
+
// @ts-ignore
|
|
160
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
161
|
+
return this.hcClient.sendRequest(options);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* 该接口用于查询激活码列表。
|
|
165
|
+
*
|
|
166
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
167
|
+
*
|
|
168
|
+
* @summary 查询激活码列表
|
|
169
|
+
* @param {string} robotId 应用ID。
|
|
170
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
171
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
172
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
173
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
174
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
175
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
listActiveCode(listActiveCodeRequest) {
|
|
180
|
+
const options = (0, exports.ParamCreater)().listActiveCode(listActiveCodeRequest);
|
|
181
|
+
// @ts-ignore
|
|
182
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
183
|
+
return this.hcClient.sendRequest(options);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* 该接口用于重置激活码。
|
|
187
|
+
*
|
|
188
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
189
|
+
*
|
|
190
|
+
* @summary 重置激活码
|
|
191
|
+
* @param {string} activeCodeId 激活码ID。
|
|
192
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
193
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
194
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
195
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
resetActiveCode(resetActiveCodeRequest) {
|
|
200
|
+
const options = (0, exports.ParamCreater)().resetActiveCode(resetActiveCodeRequest);
|
|
201
|
+
// @ts-ignore
|
|
202
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
203
|
+
return this.hcClient.sendRequest(options);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* 该接口用于查询激活码详情。
|
|
207
|
+
*
|
|
208
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
209
|
+
*
|
|
210
|
+
* @summary 查询激活码详情
|
|
211
|
+
* @param {string} activeCodeId 激活码ID。
|
|
212
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
213
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
214
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
215
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
216
|
+
* @param {*} [options] Override http request option.
|
|
217
|
+
* @throws {RequiredError}
|
|
218
|
+
*/
|
|
219
|
+
showActiveCode(showActiveCodeRequest) {
|
|
220
|
+
const options = (0, exports.ParamCreater)().showActiveCode(showActiveCodeRequest);
|
|
221
|
+
// @ts-ignore
|
|
222
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
223
|
+
return this.hcClient.sendRequest(options);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* 该接口用于修改激活码。
|
|
227
|
+
*
|
|
228
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
229
|
+
*
|
|
230
|
+
* @summary 修改激活码
|
|
231
|
+
* @param {string} activeCodeId 激活码ID。
|
|
232
|
+
* @param {UpdateActiveCodeReq} updateActiveCodeRequestBody 修改激活码请求。
|
|
233
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
234
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
235
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
236
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
updateActiveCode(updateActiveCodeRequest) {
|
|
241
|
+
const options = (0, exports.ParamCreater)().updateActiveCode(updateActiveCodeRequest);
|
|
242
|
+
// @ts-ignore
|
|
243
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
244
|
+
return this.hcClient.sendRequest(options);
|
|
245
|
+
}
|
|
115
246
|
/**
|
|
116
247
|
* 该接口用于创建对话链接。
|
|
117
248
|
*
|
|
@@ -138,7 +269,7 @@ class MetaStudioClient {
|
|
|
138
269
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
139
270
|
*
|
|
140
271
|
* @summary 查询数字人智能交互任务
|
|
141
|
-
* @param {string} roomId
|
|
272
|
+
* @param {string} roomId 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。
|
|
142
273
|
* @param {string} jobId 任务ID。
|
|
143
274
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
144
275
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
@@ -159,7 +290,7 @@ class MetaStudioClient {
|
|
|
159
290
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
160
291
|
*
|
|
161
292
|
* @summary 启动数字人智能交互任务
|
|
162
|
-
* @param {string} roomId
|
|
293
|
+
* @param {string} roomId 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。
|
|
163
294
|
* @param {string} robotId 应用ID,获取方法请参考[[创建应用](https://support.huaweicloud.com/api-metastudio/CreateRobot.html)](tag:hc,hk)[“创建应用”](tag:cmcc)。
|
|
164
295
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
165
296
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
@@ -180,7 +311,7 @@ class MetaStudioClient {
|
|
|
180
311
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
181
312
|
*
|
|
182
313
|
* @summary 结束数字人智能交互任务
|
|
183
|
-
* @param {string} roomId
|
|
314
|
+
* @param {string} roomId 智能交互对话ID,获取方法请参考[[创建智能交互对话直播间](https://support.huaweicloud.com/api-metastudio/CreateSmartChatRoom.html)](tag:hc,hk)[“创建智能交互对话直播间”](tag:cmcc)。
|
|
184
315
|
* @param {string} jobId 任务ID。
|
|
185
316
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
186
317
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
|
|
@@ -195,6 +326,25 @@ class MetaStudioClient {
|
|
|
195
326
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
196
327
|
return this.hcClient.sendRequest(options);
|
|
197
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* 该接口用于在Region B复制Region A的指定资产。
|
|
331
|
+
*
|
|
332
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
333
|
+
*
|
|
334
|
+
* @summary 复制资产
|
|
335
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
336
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
337
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
338
|
+
* @param {ReplicationAssetInfo} [createAssetbyReplicationInfoRequestBody] 资产复制信息
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
createAssetbyReplicationInfo(createAssetbyReplicationInfoRequest) {
|
|
343
|
+
const options = (0, exports.ParamCreater)().createAssetbyReplicationInfo(createAssetbyReplicationInfoRequest);
|
|
344
|
+
// @ts-ignore
|
|
345
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
346
|
+
return this.hcClient.sendRequest(options);
|
|
347
|
+
}
|
|
198
348
|
/**
|
|
199
349
|
* 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。
|
|
200
350
|
* * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。
|
|
@@ -261,6 +411,7 @@ class MetaStudioClient {
|
|
|
261
411
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
262
412
|
*
|
|
263
413
|
* @summary 查询资产列表
|
|
414
|
+
* @param {string} [X_REAL_IP] 客户端IP
|
|
264
415
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
265
416
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
266
417
|
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
@@ -331,6 +482,25 @@ class MetaStudioClient {
|
|
|
331
482
|
options['responseHeaders'] = ['X-Request-Id'];
|
|
332
483
|
return this.hcClient.sendRequest(options);
|
|
333
484
|
}
|
|
485
|
+
/**
|
|
486
|
+
* 当需要将资产从A Region复制到B Region时,先要在A Region调用该接口用于查询资产复制信息。
|
|
487
|
+
*
|
|
488
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
489
|
+
*
|
|
490
|
+
* @summary 查询资产复制信息
|
|
491
|
+
* @param {string} assetId 资产ID。
|
|
492
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
493
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
494
|
+
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
*/
|
|
498
|
+
showAssetReplicationInfo(showAssetReplicationInfoRequest) {
|
|
499
|
+
const options = (0, exports.ParamCreater)().showAssetReplicationInfo(showAssetReplicationInfoRequest);
|
|
500
|
+
// @ts-ignore
|
|
501
|
+
options['responseHeaders'] = ['X-Request-Id'];
|
|
502
|
+
return this.hcClient.sendRequest(options);
|
|
503
|
+
}
|
|
334
504
|
/**
|
|
335
505
|
* 该接口用于更新资产库中的媒体资产信息。
|
|
336
506
|
*
|
|
@@ -710,6 +880,7 @@ class MetaStudioClient {
|
|
|
710
880
|
}
|
|
711
881
|
/**
|
|
712
882
|
* 该接口用于创建一次性鉴权码,有效期5分钟,鉴权码只能使用一次,每次使用后需要重新获取。
|
|
883
|
+
* > 接口只能通过第三方后台调用,不能在浏览器前台直接调用,否则会有跨域问题。
|
|
713
884
|
*
|
|
714
885
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
715
886
|
*
|
|
@@ -919,12 +1090,12 @@ class MetaStudioClient {
|
|
|
919
1090
|
return this.hcClient.sendRequest(options);
|
|
920
1091
|
}
|
|
921
1092
|
/**
|
|
922
|
-
*
|
|
1093
|
+
* 该接口用于创建智能交互对话。
|
|
923
1094
|
*
|
|
924
1095
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
925
1096
|
*
|
|
926
|
-
* @summary
|
|
927
|
-
* @param {CreateSmartChatRoomReq} createSmartChatRoomRequestBody
|
|
1097
|
+
* @summary 创建智能交互对话
|
|
1098
|
+
* @param {CreateSmartChatRoomReq} createSmartChatRoomRequestBody 创建智能交互对话请求。
|
|
928
1099
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
929
1100
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
930
1101
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
@@ -939,11 +1110,11 @@ class MetaStudioClient {
|
|
|
939
1110
|
return this.hcClient.sendRequest(options);
|
|
940
1111
|
}
|
|
941
1112
|
/**
|
|
942
|
-
*
|
|
1113
|
+
* 该接口用于删除智能交互对话。
|
|
943
1114
|
*
|
|
944
1115
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
945
1116
|
*
|
|
946
|
-
* @summary
|
|
1117
|
+
* @summary 删除智能交互对话
|
|
947
1118
|
* @param {string} roomId 剧本ID。
|
|
948
1119
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
949
1120
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
@@ -959,18 +1130,18 @@ class MetaStudioClient {
|
|
|
959
1130
|
return this.hcClient.sendRequest(options);
|
|
960
1131
|
}
|
|
961
1132
|
/**
|
|
962
|
-
*
|
|
1133
|
+
* 该接口用于智能交互对话列表。
|
|
963
1134
|
*
|
|
964
1135
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
965
1136
|
*
|
|
966
|
-
* @summary
|
|
1137
|
+
* @summary 查询智能交互对话列表
|
|
967
1138
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
968
1139
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
969
1140
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
970
1141
|
* @param {string} [xAppUserId] 第三方用户ID。 > * 不允许输入中文。
|
|
971
1142
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
972
1143
|
* @param {number} [limit] 每页显示的条目数量。
|
|
973
|
-
* @param {string} [roomName]
|
|
1144
|
+
* @param {string} [roomName] 按智能交互对话名称模糊查询。
|
|
974
1145
|
* @param {string} [modelName] 按形象名称模糊查询。
|
|
975
1146
|
* @param {string} [startTime] 最近智能交互对话任务起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
|
|
976
1147
|
* @param {string} [endTime] 最近智能交互对话任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
|
|
@@ -984,11 +1155,11 @@ class MetaStudioClient {
|
|
|
984
1155
|
return this.hcClient.sendRequest(options);
|
|
985
1156
|
}
|
|
986
1157
|
/**
|
|
987
|
-
*
|
|
1158
|
+
* 该接口用于查询智能交互对话详情。
|
|
988
1159
|
*
|
|
989
1160
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
990
1161
|
*
|
|
991
|
-
* @summary
|
|
1162
|
+
* @summary 查询智能交互对话详情
|
|
992
1163
|
* @param {string} roomId 剧本ID。
|
|
993
1164
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
994
1165
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
@@ -1004,13 +1175,13 @@ class MetaStudioClient {
|
|
|
1004
1175
|
return this.hcClient.sendRequest(options);
|
|
1005
1176
|
}
|
|
1006
1177
|
/**
|
|
1007
|
-
*
|
|
1178
|
+
* 该接口用于智能交互对话信息。
|
|
1008
1179
|
*
|
|
1009
1180
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1010
1181
|
*
|
|
1011
|
-
* @summary
|
|
1182
|
+
* @summary 更新智能交互对话信息
|
|
1012
1183
|
* @param {string} roomId 剧本ID。
|
|
1013
|
-
* @param {CreateSmartChatRoomReq} updateSmartChatRoomRequestBody
|
|
1184
|
+
* @param {CreateSmartChatRoomReq} updateSmartChatRoomRequestBody 更新智能交互对话请求。
|
|
1014
1185
|
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
1015
1186
|
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
1016
1187
|
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
@@ -2146,6 +2317,365 @@ class MetaStudioClient {
|
|
|
2146
2317
|
exports.MetaStudioClient = MetaStudioClient;
|
|
2147
2318
|
const ParamCreater = function () {
|
|
2148
2319
|
return {
|
|
2320
|
+
/**
|
|
2321
|
+
* 该接口用于创建激活码。
|
|
2322
|
+
*
|
|
2323
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2324
|
+
*/
|
|
2325
|
+
createActiveCode(createActiveCodeRequest) {
|
|
2326
|
+
const options = {
|
|
2327
|
+
method: "POST",
|
|
2328
|
+
url: "/v1/{project_id}/digital-human-chat/active-code",
|
|
2329
|
+
contentType: "application/json",
|
|
2330
|
+
queryParams: {},
|
|
2331
|
+
pathParams: {},
|
|
2332
|
+
headers: {},
|
|
2333
|
+
data: {}
|
|
2334
|
+
};
|
|
2335
|
+
const localVarHeaderParameter = {};
|
|
2336
|
+
let body;
|
|
2337
|
+
let authorization;
|
|
2338
|
+
let xSdkDate;
|
|
2339
|
+
let xProjectId;
|
|
2340
|
+
let xAppUserId;
|
|
2341
|
+
if (createActiveCodeRequest !== null && createActiveCodeRequest !== undefined) {
|
|
2342
|
+
if (createActiveCodeRequest instanceof CreateActiveCodeRequest_1.CreateActiveCodeRequest) {
|
|
2343
|
+
body = createActiveCodeRequest.body;
|
|
2344
|
+
authorization = createActiveCodeRequest.authorization;
|
|
2345
|
+
xSdkDate = createActiveCodeRequest.xSdkDate;
|
|
2346
|
+
xProjectId = createActiveCodeRequest.xProjectId;
|
|
2347
|
+
xAppUserId = createActiveCodeRequest.xAppUserId;
|
|
2348
|
+
}
|
|
2349
|
+
else {
|
|
2350
|
+
body = createActiveCodeRequest['body'];
|
|
2351
|
+
authorization = createActiveCodeRequest['Authorization'];
|
|
2352
|
+
xSdkDate = createActiveCodeRequest['X-Sdk-Date'];
|
|
2353
|
+
xProjectId = createActiveCodeRequest['X-Project-Id'];
|
|
2354
|
+
xAppUserId = createActiveCodeRequest['X-App-UserId'];
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
if (body === null || body === undefined) {
|
|
2358
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2359
|
+
}
|
|
2360
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2361
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2362
|
+
}
|
|
2363
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2364
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2365
|
+
}
|
|
2366
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2367
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2368
|
+
}
|
|
2369
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2370
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2371
|
+
}
|
|
2372
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2373
|
+
options.data = body !== undefined ? body : {};
|
|
2374
|
+
options.headers = localVarHeaderParameter;
|
|
2375
|
+
return options;
|
|
2376
|
+
},
|
|
2377
|
+
/**
|
|
2378
|
+
* 该接口用于删除激活码。
|
|
2379
|
+
*
|
|
2380
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2381
|
+
*/
|
|
2382
|
+
deleteActiveCode(deleteActiveCodeRequest) {
|
|
2383
|
+
const options = {
|
|
2384
|
+
method: "POST",
|
|
2385
|
+
url: "/v1/{project_id}/digital-human-chat/active-code/delete",
|
|
2386
|
+
contentType: "application/json",
|
|
2387
|
+
queryParams: {},
|
|
2388
|
+
pathParams: {},
|
|
2389
|
+
headers: {},
|
|
2390
|
+
data: {}
|
|
2391
|
+
};
|
|
2392
|
+
const localVarHeaderParameter = {};
|
|
2393
|
+
let body;
|
|
2394
|
+
let authorization;
|
|
2395
|
+
let xSdkDate;
|
|
2396
|
+
let xProjectId;
|
|
2397
|
+
let xAppUserId;
|
|
2398
|
+
if (deleteActiveCodeRequest !== null && deleteActiveCodeRequest !== undefined) {
|
|
2399
|
+
if (deleteActiveCodeRequest instanceof DeleteActiveCodeRequest_1.DeleteActiveCodeRequest) {
|
|
2400
|
+
body = deleteActiveCodeRequest.body;
|
|
2401
|
+
authorization = deleteActiveCodeRequest.authorization;
|
|
2402
|
+
xSdkDate = deleteActiveCodeRequest.xSdkDate;
|
|
2403
|
+
xProjectId = deleteActiveCodeRequest.xProjectId;
|
|
2404
|
+
xAppUserId = deleteActiveCodeRequest.xAppUserId;
|
|
2405
|
+
}
|
|
2406
|
+
else {
|
|
2407
|
+
body = deleteActiveCodeRequest['body'];
|
|
2408
|
+
authorization = deleteActiveCodeRequest['Authorization'];
|
|
2409
|
+
xSdkDate = deleteActiveCodeRequest['X-Sdk-Date'];
|
|
2410
|
+
xProjectId = deleteActiveCodeRequest['X-Project-Id'];
|
|
2411
|
+
xAppUserId = deleteActiveCodeRequest['X-App-UserId'];
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
if (body === null || body === undefined) {
|
|
2415
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2416
|
+
}
|
|
2417
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2418
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2419
|
+
}
|
|
2420
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2421
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2422
|
+
}
|
|
2423
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2424
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2425
|
+
}
|
|
2426
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2427
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2428
|
+
}
|
|
2429
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2430
|
+
options.data = body !== undefined ? body : {};
|
|
2431
|
+
options.headers = localVarHeaderParameter;
|
|
2432
|
+
return options;
|
|
2433
|
+
},
|
|
2434
|
+
/**
|
|
2435
|
+
* 该接口用于查询激活码列表。
|
|
2436
|
+
*
|
|
2437
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2438
|
+
*/
|
|
2439
|
+
listActiveCode(listActiveCodeRequest) {
|
|
2440
|
+
const options = {
|
|
2441
|
+
method: "GET",
|
|
2442
|
+
url: "/v1/{project_id}/digital-human-chat/active-code",
|
|
2443
|
+
contentType: "application/json",
|
|
2444
|
+
queryParams: {},
|
|
2445
|
+
pathParams: {},
|
|
2446
|
+
headers: {}
|
|
2447
|
+
};
|
|
2448
|
+
const localVarHeaderParameter = {};
|
|
2449
|
+
const localVarQueryParameter = {};
|
|
2450
|
+
let robotId;
|
|
2451
|
+
let authorization;
|
|
2452
|
+
let xSdkDate;
|
|
2453
|
+
let xProjectId;
|
|
2454
|
+
let xAppUserId;
|
|
2455
|
+
let offset;
|
|
2456
|
+
let limit;
|
|
2457
|
+
if (listActiveCodeRequest !== null && listActiveCodeRequest !== undefined) {
|
|
2458
|
+
if (listActiveCodeRequest instanceof ListActiveCodeRequest_1.ListActiveCodeRequest) {
|
|
2459
|
+
robotId = listActiveCodeRequest.robotId;
|
|
2460
|
+
authorization = listActiveCodeRequest.authorization;
|
|
2461
|
+
xSdkDate = listActiveCodeRequest.xSdkDate;
|
|
2462
|
+
xProjectId = listActiveCodeRequest.xProjectId;
|
|
2463
|
+
xAppUserId = listActiveCodeRequest.xAppUserId;
|
|
2464
|
+
offset = listActiveCodeRequest.offset;
|
|
2465
|
+
limit = listActiveCodeRequest.limit;
|
|
2466
|
+
}
|
|
2467
|
+
else {
|
|
2468
|
+
robotId = listActiveCodeRequest['robot_id'];
|
|
2469
|
+
authorization = listActiveCodeRequest['Authorization'];
|
|
2470
|
+
xSdkDate = listActiveCodeRequest['X-Sdk-Date'];
|
|
2471
|
+
xProjectId = listActiveCodeRequest['X-Project-Id'];
|
|
2472
|
+
xAppUserId = listActiveCodeRequest['X-App-UserId'];
|
|
2473
|
+
offset = listActiveCodeRequest['offset'];
|
|
2474
|
+
limit = listActiveCodeRequest['limit'];
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
if (robotId === null || robotId === undefined) {
|
|
2478
|
+
throw new RequiredError('robotId', 'Required parameter robotId was null or undefined when calling listActiveCode.');
|
|
2479
|
+
}
|
|
2480
|
+
if (robotId !== null && robotId !== undefined) {
|
|
2481
|
+
localVarQueryParameter['robot_id'] = robotId;
|
|
2482
|
+
}
|
|
2483
|
+
if (offset !== null && offset !== undefined) {
|
|
2484
|
+
localVarQueryParameter['offset'] = offset;
|
|
2485
|
+
}
|
|
2486
|
+
if (limit !== null && limit !== undefined) {
|
|
2487
|
+
localVarQueryParameter['limit'] = limit;
|
|
2488
|
+
}
|
|
2489
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2490
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2491
|
+
}
|
|
2492
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2493
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2494
|
+
}
|
|
2495
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2496
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2497
|
+
}
|
|
2498
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2499
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2500
|
+
}
|
|
2501
|
+
options.queryParams = localVarQueryParameter;
|
|
2502
|
+
options.headers = localVarHeaderParameter;
|
|
2503
|
+
return options;
|
|
2504
|
+
},
|
|
2505
|
+
/**
|
|
2506
|
+
* 该接口用于重置激活码。
|
|
2507
|
+
*
|
|
2508
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2509
|
+
*/
|
|
2510
|
+
resetActiveCode(resetActiveCodeRequest) {
|
|
2511
|
+
const options = {
|
|
2512
|
+
method: "PUT",
|
|
2513
|
+
url: "/v1/{project_id}/digital-human-chat/active-code/{active_code_id}/reset",
|
|
2514
|
+
contentType: "application/json",
|
|
2515
|
+
queryParams: {},
|
|
2516
|
+
pathParams: {},
|
|
2517
|
+
headers: {}
|
|
2518
|
+
};
|
|
2519
|
+
const localVarHeaderParameter = {};
|
|
2520
|
+
let activeCodeId;
|
|
2521
|
+
let authorization;
|
|
2522
|
+
let xSdkDate;
|
|
2523
|
+
let xProjectId;
|
|
2524
|
+
let xAppUserId;
|
|
2525
|
+
if (resetActiveCodeRequest !== null && resetActiveCodeRequest !== undefined) {
|
|
2526
|
+
if (resetActiveCodeRequest instanceof ResetActiveCodeRequest_1.ResetActiveCodeRequest) {
|
|
2527
|
+
activeCodeId = resetActiveCodeRequest.activeCodeId;
|
|
2528
|
+
authorization = resetActiveCodeRequest.authorization;
|
|
2529
|
+
xSdkDate = resetActiveCodeRequest.xSdkDate;
|
|
2530
|
+
xProjectId = resetActiveCodeRequest.xProjectId;
|
|
2531
|
+
xAppUserId = resetActiveCodeRequest.xAppUserId;
|
|
2532
|
+
}
|
|
2533
|
+
else {
|
|
2534
|
+
activeCodeId = resetActiveCodeRequest['active_code_id'];
|
|
2535
|
+
authorization = resetActiveCodeRequest['Authorization'];
|
|
2536
|
+
xSdkDate = resetActiveCodeRequest['X-Sdk-Date'];
|
|
2537
|
+
xProjectId = resetActiveCodeRequest['X-Project-Id'];
|
|
2538
|
+
xAppUserId = resetActiveCodeRequest['X-App-UserId'];
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
if (activeCodeId === null || activeCodeId === undefined) {
|
|
2542
|
+
throw new RequiredError('activeCodeId', 'Required parameter activeCodeId was null or undefined when calling resetActiveCode.');
|
|
2543
|
+
}
|
|
2544
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2545
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2546
|
+
}
|
|
2547
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2548
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2549
|
+
}
|
|
2550
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2551
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2552
|
+
}
|
|
2553
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2554
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2555
|
+
}
|
|
2556
|
+
options.pathParams = { 'active_code_id': activeCodeId, };
|
|
2557
|
+
options.headers = localVarHeaderParameter;
|
|
2558
|
+
return options;
|
|
2559
|
+
},
|
|
2560
|
+
/**
|
|
2561
|
+
* 该接口用于查询激活码详情。
|
|
2562
|
+
*
|
|
2563
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2564
|
+
*/
|
|
2565
|
+
showActiveCode(showActiveCodeRequest) {
|
|
2566
|
+
const options = {
|
|
2567
|
+
method: "GET",
|
|
2568
|
+
url: "/v1/{project_id}/digital-human-chat/active-code/{active_code_id}",
|
|
2569
|
+
contentType: "application/json",
|
|
2570
|
+
queryParams: {},
|
|
2571
|
+
pathParams: {},
|
|
2572
|
+
headers: {}
|
|
2573
|
+
};
|
|
2574
|
+
const localVarHeaderParameter = {};
|
|
2575
|
+
let activeCodeId;
|
|
2576
|
+
let authorization;
|
|
2577
|
+
let xSdkDate;
|
|
2578
|
+
let xProjectId;
|
|
2579
|
+
let xAppUserId;
|
|
2580
|
+
if (showActiveCodeRequest !== null && showActiveCodeRequest !== undefined) {
|
|
2581
|
+
if (showActiveCodeRequest instanceof ShowActiveCodeRequest_1.ShowActiveCodeRequest) {
|
|
2582
|
+
activeCodeId = showActiveCodeRequest.activeCodeId;
|
|
2583
|
+
authorization = showActiveCodeRequest.authorization;
|
|
2584
|
+
xSdkDate = showActiveCodeRequest.xSdkDate;
|
|
2585
|
+
xProjectId = showActiveCodeRequest.xProjectId;
|
|
2586
|
+
xAppUserId = showActiveCodeRequest.xAppUserId;
|
|
2587
|
+
}
|
|
2588
|
+
else {
|
|
2589
|
+
activeCodeId = showActiveCodeRequest['active_code_id'];
|
|
2590
|
+
authorization = showActiveCodeRequest['Authorization'];
|
|
2591
|
+
xSdkDate = showActiveCodeRequest['X-Sdk-Date'];
|
|
2592
|
+
xProjectId = showActiveCodeRequest['X-Project-Id'];
|
|
2593
|
+
xAppUserId = showActiveCodeRequest['X-App-UserId'];
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
if (activeCodeId === null || activeCodeId === undefined) {
|
|
2597
|
+
throw new RequiredError('activeCodeId', 'Required parameter activeCodeId was null or undefined when calling showActiveCode.');
|
|
2598
|
+
}
|
|
2599
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2600
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2601
|
+
}
|
|
2602
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2603
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2604
|
+
}
|
|
2605
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2606
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2607
|
+
}
|
|
2608
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2609
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2610
|
+
}
|
|
2611
|
+
options.pathParams = { 'active_code_id': activeCodeId, };
|
|
2612
|
+
options.headers = localVarHeaderParameter;
|
|
2613
|
+
return options;
|
|
2614
|
+
},
|
|
2615
|
+
/**
|
|
2616
|
+
* 该接口用于修改激活码。
|
|
2617
|
+
*
|
|
2618
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2619
|
+
*/
|
|
2620
|
+
updateActiveCode(updateActiveCodeRequest) {
|
|
2621
|
+
const options = {
|
|
2622
|
+
method: "PUT",
|
|
2623
|
+
url: "/v1/{project_id}/digital-human-chat/active-code/{active_code_id}",
|
|
2624
|
+
contentType: "application/json",
|
|
2625
|
+
queryParams: {},
|
|
2626
|
+
pathParams: {},
|
|
2627
|
+
headers: {},
|
|
2628
|
+
data: {}
|
|
2629
|
+
};
|
|
2630
|
+
const localVarHeaderParameter = {};
|
|
2631
|
+
let body;
|
|
2632
|
+
let activeCodeId;
|
|
2633
|
+
let authorization;
|
|
2634
|
+
let xSdkDate;
|
|
2635
|
+
let xProjectId;
|
|
2636
|
+
let xAppUserId;
|
|
2637
|
+
if (updateActiveCodeRequest !== null && updateActiveCodeRequest !== undefined) {
|
|
2638
|
+
if (updateActiveCodeRequest instanceof UpdateActiveCodeRequest_1.UpdateActiveCodeRequest) {
|
|
2639
|
+
activeCodeId = updateActiveCodeRequest.activeCodeId;
|
|
2640
|
+
body = updateActiveCodeRequest.body;
|
|
2641
|
+
authorization = updateActiveCodeRequest.authorization;
|
|
2642
|
+
xSdkDate = updateActiveCodeRequest.xSdkDate;
|
|
2643
|
+
xProjectId = updateActiveCodeRequest.xProjectId;
|
|
2644
|
+
xAppUserId = updateActiveCodeRequest.xAppUserId;
|
|
2645
|
+
}
|
|
2646
|
+
else {
|
|
2647
|
+
activeCodeId = updateActiveCodeRequest['active_code_id'];
|
|
2648
|
+
body = updateActiveCodeRequest['body'];
|
|
2649
|
+
authorization = updateActiveCodeRequest['Authorization'];
|
|
2650
|
+
xSdkDate = updateActiveCodeRequest['X-Sdk-Date'];
|
|
2651
|
+
xProjectId = updateActiveCodeRequest['X-Project-Id'];
|
|
2652
|
+
xAppUserId = updateActiveCodeRequest['X-App-UserId'];
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
if (activeCodeId === null || activeCodeId === undefined) {
|
|
2656
|
+
throw new RequiredError('activeCodeId', 'Required parameter activeCodeId was null or undefined when calling updateActiveCode.');
|
|
2657
|
+
}
|
|
2658
|
+
if (body === null || body === undefined) {
|
|
2659
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2660
|
+
}
|
|
2661
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2662
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2663
|
+
}
|
|
2664
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2665
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2666
|
+
}
|
|
2667
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2668
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2669
|
+
}
|
|
2670
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2671
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2672
|
+
}
|
|
2673
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2674
|
+
options.data = body !== undefined ? body : {};
|
|
2675
|
+
options.pathParams = { 'active_code_id': activeCodeId, };
|
|
2676
|
+
options.headers = localVarHeaderParameter;
|
|
2677
|
+
return options;
|
|
2678
|
+
},
|
|
2149
2679
|
/**
|
|
2150
2680
|
* 该接口用于创建对话链接。
|
|
2151
2681
|
*
|
|
@@ -2391,6 +2921,54 @@ const ParamCreater = function () {
|
|
|
2391
2921
|
options.headers = localVarHeaderParameter;
|
|
2392
2922
|
return options;
|
|
2393
2923
|
},
|
|
2924
|
+
/**
|
|
2925
|
+
* 该接口用于在Region B复制Region A的指定资产。
|
|
2926
|
+
*
|
|
2927
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2928
|
+
*/
|
|
2929
|
+
createAssetbyReplicationInfo(createAssetbyReplicationInfoRequest) {
|
|
2930
|
+
const options = {
|
|
2931
|
+
method: "POST",
|
|
2932
|
+
url: "/v1/{project_id}/digital-assets-by-replication-info",
|
|
2933
|
+
contentType: "application/json",
|
|
2934
|
+
queryParams: {},
|
|
2935
|
+
pathParams: {},
|
|
2936
|
+
headers: {},
|
|
2937
|
+
data: {}
|
|
2938
|
+
};
|
|
2939
|
+
const localVarHeaderParameter = {};
|
|
2940
|
+
let body;
|
|
2941
|
+
let authorization;
|
|
2942
|
+
let xSdkDate;
|
|
2943
|
+
let xAppUserId;
|
|
2944
|
+
if (createAssetbyReplicationInfoRequest !== null && createAssetbyReplicationInfoRequest !== undefined) {
|
|
2945
|
+
if (createAssetbyReplicationInfoRequest instanceof CreateAssetbyReplicationInfoRequest_1.CreateAssetbyReplicationInfoRequest) {
|
|
2946
|
+
authorization = createAssetbyReplicationInfoRequest.authorization;
|
|
2947
|
+
xSdkDate = createAssetbyReplicationInfoRequest.xSdkDate;
|
|
2948
|
+
xAppUserId = createAssetbyReplicationInfoRequest.xAppUserId;
|
|
2949
|
+
body = createAssetbyReplicationInfoRequest.body;
|
|
2950
|
+
}
|
|
2951
|
+
else {
|
|
2952
|
+
authorization = createAssetbyReplicationInfoRequest['Authorization'];
|
|
2953
|
+
xSdkDate = createAssetbyReplicationInfoRequest['X-Sdk-Date'];
|
|
2954
|
+
xAppUserId = createAssetbyReplicationInfoRequest['X-App-UserId'];
|
|
2955
|
+
body = createAssetbyReplicationInfoRequest['body'];
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2959
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2960
|
+
}
|
|
2961
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2962
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2963
|
+
}
|
|
2964
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2965
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2966
|
+
}
|
|
2967
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2968
|
+
options.data = body !== undefined ? body : {};
|
|
2969
|
+
options.headers = localVarHeaderParameter;
|
|
2970
|
+
return options;
|
|
2971
|
+
},
|
|
2394
2972
|
/**
|
|
2395
2973
|
* 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。
|
|
2396
2974
|
* * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。
|
|
@@ -2563,6 +3141,7 @@ const ParamCreater = function () {
|
|
|
2563
3141
|
};
|
|
2564
3142
|
const localVarHeaderParameter = {};
|
|
2565
3143
|
const localVarQueryParameter = {};
|
|
3144
|
+
let X_REAL_IP;
|
|
2566
3145
|
let authorization;
|
|
2567
3146
|
let xSdkDate;
|
|
2568
3147
|
let xAppUserId;
|
|
@@ -2588,6 +3167,7 @@ const ParamCreater = function () {
|
|
|
2588
3167
|
let role;
|
|
2589
3168
|
if (listAssetsRequest !== null && listAssetsRequest !== undefined) {
|
|
2590
3169
|
if (listAssetsRequest instanceof ListAssetsRequest_1.ListAssetsRequest) {
|
|
3170
|
+
X_REAL_IP = listAssetsRequest.X_REAL_IP;
|
|
2591
3171
|
authorization = listAssetsRequest.authorization;
|
|
2592
3172
|
xSdkDate = listAssetsRequest.xSdkDate;
|
|
2593
3173
|
xAppUserId = listAssetsRequest.xAppUserId;
|
|
@@ -2613,6 +3193,7 @@ const ParamCreater = function () {
|
|
|
2613
3193
|
role = listAssetsRequest.role;
|
|
2614
3194
|
}
|
|
2615
3195
|
else {
|
|
3196
|
+
X_REAL_IP = listAssetsRequest['X-REAL-IP'];
|
|
2616
3197
|
authorization = listAssetsRequest['Authorization'];
|
|
2617
3198
|
xSdkDate = listAssetsRequest['X-Sdk-Date'];
|
|
2618
3199
|
xAppUserId = listAssetsRequest['X-App-UserId'];
|
|
@@ -2698,6 +3279,9 @@ const ParamCreater = function () {
|
|
|
2698
3279
|
if (role !== null && role !== undefined) {
|
|
2699
3280
|
localVarQueryParameter['role'] = role;
|
|
2700
3281
|
}
|
|
3282
|
+
if (X_REAL_IP !== undefined && X_REAL_IP !== null) {
|
|
3283
|
+
localVarHeaderParameter['X-REAL-IP'] = String(X_REAL_IP);
|
|
3284
|
+
}
|
|
2701
3285
|
if (authorization !== undefined && authorization !== null) {
|
|
2702
3286
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2703
3287
|
}
|
|
@@ -2809,6 +3393,55 @@ const ParamCreater = function () {
|
|
|
2809
3393
|
options.headers = localVarHeaderParameter;
|
|
2810
3394
|
return options;
|
|
2811
3395
|
},
|
|
3396
|
+
/**
|
|
3397
|
+
* 当需要将资产从A Region复制到B Region时,先要在A Region调用该接口用于查询资产复制信息。
|
|
3398
|
+
*
|
|
3399
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3400
|
+
*/
|
|
3401
|
+
showAssetReplicationInfo(showAssetReplicationInfoRequest) {
|
|
3402
|
+
const options = {
|
|
3403
|
+
method: "GET",
|
|
3404
|
+
url: "/v1/{project_id}/digital-assets/{asset_id}/replication-info",
|
|
3405
|
+
contentType: "application/json",
|
|
3406
|
+
queryParams: {},
|
|
3407
|
+
pathParams: {},
|
|
3408
|
+
headers: {}
|
|
3409
|
+
};
|
|
3410
|
+
const localVarHeaderParameter = {};
|
|
3411
|
+
let assetId;
|
|
3412
|
+
let authorization;
|
|
3413
|
+
let xSdkDate;
|
|
3414
|
+
let xAppUserId;
|
|
3415
|
+
if (showAssetReplicationInfoRequest !== null && showAssetReplicationInfoRequest !== undefined) {
|
|
3416
|
+
if (showAssetReplicationInfoRequest instanceof ShowAssetReplicationInfoRequest_1.ShowAssetReplicationInfoRequest) {
|
|
3417
|
+
assetId = showAssetReplicationInfoRequest.assetId;
|
|
3418
|
+
authorization = showAssetReplicationInfoRequest.authorization;
|
|
3419
|
+
xSdkDate = showAssetReplicationInfoRequest.xSdkDate;
|
|
3420
|
+
xAppUserId = showAssetReplicationInfoRequest.xAppUserId;
|
|
3421
|
+
}
|
|
3422
|
+
else {
|
|
3423
|
+
assetId = showAssetReplicationInfoRequest['asset_id'];
|
|
3424
|
+
authorization = showAssetReplicationInfoRequest['Authorization'];
|
|
3425
|
+
xSdkDate = showAssetReplicationInfoRequest['X-Sdk-Date'];
|
|
3426
|
+
xAppUserId = showAssetReplicationInfoRequest['X-App-UserId'];
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
if (assetId === null || assetId === undefined) {
|
|
3430
|
+
throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling showAssetReplicationInfo.');
|
|
3431
|
+
}
|
|
3432
|
+
if (authorization !== undefined && authorization !== null) {
|
|
3433
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3434
|
+
}
|
|
3435
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
3436
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
3437
|
+
}
|
|
3438
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
3439
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
3440
|
+
}
|
|
3441
|
+
options.pathParams = { 'asset_id': assetId, };
|
|
3442
|
+
options.headers = localVarHeaderParameter;
|
|
3443
|
+
return options;
|
|
3444
|
+
},
|
|
2812
3445
|
/**
|
|
2813
3446
|
* 该接口用于更新资产库中的媒体资产信息。
|
|
2814
3447
|
*
|
|
@@ -3370,7 +4003,7 @@ const ParamCreater = function () {
|
|
|
3370
4003
|
const options = {
|
|
3371
4004
|
method: "POST",
|
|
3372
4005
|
url: "/v1/{project_id}/2d-digital-human-videos",
|
|
3373
|
-
contentType: "application/json
|
|
4006
|
+
contentType: "application/json",
|
|
3374
4007
|
queryParams: {},
|
|
3375
4008
|
pathParams: {},
|
|
3376
4009
|
headers: {},
|
|
@@ -3413,7 +4046,7 @@ const ParamCreater = function () {
|
|
|
3413
4046
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
3414
4047
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
3415
4048
|
}
|
|
3416
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
4049
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3417
4050
|
options.data = body !== undefined ? body : {};
|
|
3418
4051
|
options.headers = localVarHeaderParameter;
|
|
3419
4052
|
return options;
|
|
@@ -3545,7 +4178,7 @@ const ParamCreater = function () {
|
|
|
3545
4178
|
const options = {
|
|
3546
4179
|
method: "POST",
|
|
3547
4180
|
url: "/v1/{project_id}/photo-detection",
|
|
3548
|
-
contentType: "application/json
|
|
4181
|
+
contentType: "application/json",
|
|
3549
4182
|
queryParams: {},
|
|
3550
4183
|
pathParams: {},
|
|
3551
4184
|
headers: {},
|
|
@@ -3588,7 +4221,7 @@ const ParamCreater = function () {
|
|
|
3588
4221
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
3589
4222
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
3590
4223
|
}
|
|
3591
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
4224
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3592
4225
|
options.data = body !== undefined ? body : {};
|
|
3593
4226
|
options.headers = localVarHeaderParameter;
|
|
3594
4227
|
return options;
|
|
@@ -3602,7 +4235,7 @@ const ParamCreater = function () {
|
|
|
3602
4235
|
const options = {
|
|
3603
4236
|
method: "POST",
|
|
3604
4237
|
url: "/v1/{project_id}/photo-digital-human-videos",
|
|
3605
|
-
contentType: "application/json
|
|
4238
|
+
contentType: "application/json",
|
|
3606
4239
|
queryParams: {},
|
|
3607
4240
|
pathParams: {},
|
|
3608
4241
|
headers: {},
|
|
@@ -3645,7 +4278,7 @@ const ParamCreater = function () {
|
|
|
3645
4278
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
3646
4279
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
3647
4280
|
}
|
|
3648
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
4281
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3649
4282
|
options.data = body !== undefined ? body : {};
|
|
3650
4283
|
options.headers = localVarHeaderParameter;
|
|
3651
4284
|
return options;
|
|
@@ -3777,7 +4410,7 @@ const ParamCreater = function () {
|
|
|
3777
4410
|
const options = {
|
|
3778
4411
|
method: "POST",
|
|
3779
4412
|
url: "/v1/{project_id}/files/{file_id}/complete",
|
|
3780
|
-
contentType: "application/json
|
|
4413
|
+
contentType: "application/json",
|
|
3781
4414
|
queryParams: {},
|
|
3782
4415
|
pathParams: {},
|
|
3783
4416
|
headers: {},
|
|
@@ -3820,7 +4453,7 @@ const ParamCreater = function () {
|
|
|
3820
4453
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
3821
4454
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
3822
4455
|
}
|
|
3823
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
4456
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3824
4457
|
options.data = body !== undefined ? body : {};
|
|
3825
4458
|
options.pathParams = { 'file_id': fileId, };
|
|
3826
4459
|
options.headers = localVarHeaderParameter;
|
|
@@ -3835,7 +4468,7 @@ const ParamCreater = function () {
|
|
|
3835
4468
|
const options = {
|
|
3836
4469
|
method: "POST",
|
|
3837
4470
|
url: "/v1/{project_id}/files",
|
|
3838
|
-
contentType: "application/json
|
|
4471
|
+
contentType: "application/json",
|
|
3839
4472
|
queryParams: {},
|
|
3840
4473
|
pathParams: {},
|
|
3841
4474
|
headers: {},
|
|
@@ -3872,7 +4505,7 @@ const ParamCreater = function () {
|
|
|
3872
4505
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
3873
4506
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
3874
4507
|
}
|
|
3875
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
4508
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3876
4509
|
options.data = body !== undefined ? body : {};
|
|
3877
4510
|
options.headers = localVarHeaderParameter;
|
|
3878
4511
|
return options;
|
|
@@ -3928,6 +4561,7 @@ const ParamCreater = function () {
|
|
|
3928
4561
|
},
|
|
3929
4562
|
/**
|
|
3930
4563
|
* 该接口用于创建一次性鉴权码,有效期5分钟,鉴权码只能使用一次,每次使用后需要重新获取。
|
|
4564
|
+
* > 接口只能通过第三方后台调用,不能在浏览器前台直接调用,否则会有跨域问题。
|
|
3931
4565
|
*
|
|
3932
4566
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3933
4567
|
*/
|
|
@@ -4561,7 +5195,7 @@ const ParamCreater = function () {
|
|
|
4561
5195
|
return options;
|
|
4562
5196
|
},
|
|
4563
5197
|
/**
|
|
4564
|
-
*
|
|
5198
|
+
* 该接口用于创建智能交互对话。
|
|
4565
5199
|
*
|
|
4566
5200
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4567
5201
|
*/
|
|
@@ -4618,7 +5252,7 @@ const ParamCreater = function () {
|
|
|
4618
5252
|
return options;
|
|
4619
5253
|
},
|
|
4620
5254
|
/**
|
|
4621
|
-
*
|
|
5255
|
+
* 该接口用于删除智能交互对话。
|
|
4622
5256
|
*
|
|
4623
5257
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4624
5258
|
*/
|
|
@@ -4673,7 +5307,7 @@ const ParamCreater = function () {
|
|
|
4673
5307
|
return options;
|
|
4674
5308
|
},
|
|
4675
5309
|
/**
|
|
4676
|
-
*
|
|
5310
|
+
* 该接口用于智能交互对话列表。
|
|
4677
5311
|
*
|
|
4678
5312
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4679
5313
|
*/
|
|
@@ -4759,7 +5393,7 @@ const ParamCreater = function () {
|
|
|
4759
5393
|
return options;
|
|
4760
5394
|
},
|
|
4761
5395
|
/**
|
|
4762
|
-
*
|
|
5396
|
+
* 该接口用于查询智能交互对话详情。
|
|
4763
5397
|
*
|
|
4764
5398
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4765
5399
|
*/
|
|
@@ -4814,7 +5448,7 @@ const ParamCreater = function () {
|
|
|
4814
5448
|
return options;
|
|
4815
5449
|
},
|
|
4816
5450
|
/**
|
|
4817
|
-
*
|
|
5451
|
+
* 该接口用于智能交互对话信息。
|
|
4818
5452
|
*
|
|
4819
5453
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4820
5454
|
*/
|
|
@@ -6254,7 +6888,7 @@ const ParamCreater = function () {
|
|
|
6254
6888
|
const options = {
|
|
6255
6889
|
method: "POST",
|
|
6256
6890
|
url: "/v1/{project_id}/voice-training-manage/user/advance-jobs",
|
|
6257
|
-
contentType: "application/json
|
|
6891
|
+
contentType: "application/json",
|
|
6258
6892
|
queryParams: {},
|
|
6259
6893
|
pathParams: {},
|
|
6260
6894
|
headers: {},
|
|
@@ -6279,7 +6913,7 @@ const ParamCreater = function () {
|
|
|
6279
6913
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
6280
6914
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
6281
6915
|
}
|
|
6282
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
6916
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6283
6917
|
options.data = body !== undefined ? body : {};
|
|
6284
6918
|
options.headers = localVarHeaderParameter;
|
|
6285
6919
|
return options;
|
|
@@ -6298,7 +6932,7 @@ const ParamCreater = function () {
|
|
|
6298
6932
|
const options = {
|
|
6299
6933
|
method: "POST",
|
|
6300
6934
|
url: "/v1/{project_id}/voice-training-manage/user/basic-jobs",
|
|
6301
|
-
contentType: "application/json
|
|
6935
|
+
contentType: "application/json",
|
|
6302
6936
|
queryParams: {},
|
|
6303
6937
|
pathParams: {},
|
|
6304
6938
|
headers: {},
|
|
@@ -6341,7 +6975,7 @@ const ParamCreater = function () {
|
|
|
6341
6975
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
6342
6976
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
6343
6977
|
}
|
|
6344
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
6978
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6345
6979
|
options.data = body !== undefined ? body : {};
|
|
6346
6980
|
options.headers = localVarHeaderParameter;
|
|
6347
6981
|
return options;
|
|
@@ -6360,7 +6994,7 @@ const ParamCreater = function () {
|
|
|
6360
6994
|
const options = {
|
|
6361
6995
|
method: "POST",
|
|
6362
6996
|
url: "/v1/{project_id}/voice-training-manage/user/middle-jobs",
|
|
6363
|
-
contentType: "application/json
|
|
6997
|
+
contentType: "application/json",
|
|
6364
6998
|
queryParams: {},
|
|
6365
6999
|
pathParams: {},
|
|
6366
7000
|
headers: {},
|
|
@@ -6403,7 +7037,7 @@ const ParamCreater = function () {
|
|
|
6403
7037
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
6404
7038
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
6405
7039
|
}
|
|
6406
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
7040
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6407
7041
|
options.data = body !== undefined ? body : {};
|
|
6408
7042
|
options.headers = localVarHeaderParameter;
|
|
6409
7043
|
return options;
|
|
@@ -6704,7 +7338,7 @@ const ParamCreater = function () {
|
|
|
6704
7338
|
const options = {
|
|
6705
7339
|
method: "POST",
|
|
6706
7340
|
url: "/v1/{project_id}/digital-human-training-manage/user/jobs",
|
|
6707
|
-
contentType: "application/json
|
|
7341
|
+
contentType: "application/json",
|
|
6708
7342
|
queryParams: {},
|
|
6709
7343
|
pathParams: {},
|
|
6710
7344
|
headers: {},
|
|
@@ -6747,7 +7381,7 @@ const ParamCreater = function () {
|
|
|
6747
7381
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
6748
7382
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
6749
7383
|
}
|
|
6750
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
7384
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6751
7385
|
options.data = body !== undefined ? body : {};
|
|
6752
7386
|
options.headers = localVarHeaderParameter;
|
|
6753
7387
|
return options;
|
|
@@ -6817,7 +7451,7 @@ const ParamCreater = function () {
|
|
|
6817
7451
|
const options = {
|
|
6818
7452
|
method: "POST",
|
|
6819
7453
|
url: "/v1/{project_id}/digital-human-training-manage/user/jobs/{job_id}/command",
|
|
6820
|
-
contentType: "application/json
|
|
7454
|
+
contentType: "application/json",
|
|
6821
7455
|
queryParams: {},
|
|
6822
7456
|
pathParams: {},
|
|
6823
7457
|
headers: {},
|
|
@@ -6866,7 +7500,7 @@ const ParamCreater = function () {
|
|
|
6866
7500
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
6867
7501
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
6868
7502
|
}
|
|
6869
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
7503
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6870
7504
|
options.data = body !== undefined ? body : {};
|
|
6871
7505
|
options.pathParams = { 'job_id': jobId, };
|
|
6872
7506
|
options.headers = localVarHeaderParameter;
|
|
@@ -7053,7 +7687,7 @@ const ParamCreater = function () {
|
|
|
7053
7687
|
const options = {
|
|
7054
7688
|
method: "PUT",
|
|
7055
7689
|
url: "/v1/{project_id}/digital-human-training-manage/user/jobs/{job_id}",
|
|
7056
|
-
contentType: "application/json
|
|
7690
|
+
contentType: "application/json",
|
|
7057
7691
|
queryParams: {},
|
|
7058
7692
|
pathParams: {},
|
|
7059
7693
|
headers: {},
|
|
@@ -7102,7 +7736,7 @@ const ParamCreater = function () {
|
|
|
7102
7736
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7103
7737
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7104
7738
|
}
|
|
7105
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
7739
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7106
7740
|
options.data = body !== undefined ? body : {};
|
|
7107
7741
|
options.pathParams = { 'job_id': jobId, };
|
|
7108
7742
|
options.headers = localVarHeaderParameter;
|
|
@@ -7541,7 +8175,7 @@ const ParamCreater = function () {
|
|
|
7541
8175
|
const options = {
|
|
7542
8176
|
method: "POST",
|
|
7543
8177
|
url: "/v1/{project_id}/video-motion-capture-jobs/{job_id}/command",
|
|
7544
|
-
contentType: "application/json
|
|
8178
|
+
contentType: "application/json",
|
|
7545
8179
|
queryParams: {},
|
|
7546
8180
|
pathParams: {},
|
|
7547
8181
|
headers: {},
|
|
@@ -7590,7 +8224,7 @@ const ParamCreater = function () {
|
|
|
7590
8224
|
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
7591
8225
|
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
7592
8226
|
}
|
|
7593
|
-
localVarHeaderParameter['Content-Type'] = 'application/json
|
|
8227
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7594
8228
|
options.data = body !== undefined ? body : {};
|
|
7595
8229
|
options.pathParams = { 'job_id': jobId, };
|
|
7596
8230
|
options.headers = localVarHeaderParameter;
|