@huaweicloud/huaweicloud-sdk-metastudio 3.1.72 → 3.1.73

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.
Files changed (261) hide show
  1. package/package.json +2 -2
  2. package/v1/MetaStudioClient.d.ts +609 -0
  3. package/v1/MetaStudioClient.d.ts.map +1 -1
  4. package/v1/MetaStudioClient.js +1668 -163
  5. package/v1/MetaStudioClient.js.map +1 -1
  6. package/v1/model/ActionMarkItem.d.ts +24 -0
  7. package/v1/model/ActionMarkItem.d.ts.map +1 -0
  8. package/v1/model/ActionMarkItem.js +48 -0
  9. package/v1/model/ActionMarkItem.js.map +1 -0
  10. package/v1/model/AuditResultAdminAuditResult.d.ts +18 -0
  11. package/v1/model/AuditResultAdminAuditResult.d.ts.map +1 -0
  12. package/v1/model/AuditResultAdminAuditResult.js +43 -0
  13. package/v1/model/AuditResultAdminAuditResult.js.map +1 -0
  14. package/v1/model/AuditResultSystemAuditResult.d.ts +11 -0
  15. package/v1/model/AuditResultSystemAuditResult.d.ts.map +1 -0
  16. package/v1/model/AuditResultSystemAuditResult.js +23 -0
  17. package/v1/model/AuditResultSystemAuditResult.js.map +1 -0
  18. package/v1/model/AuditResultSystemAuditResultErrors.d.ts +20 -0
  19. package/v1/model/AuditResultSystemAuditResultErrors.d.ts.map +1 -0
  20. package/v1/model/AuditResultSystemAuditResultErrors.js +49 -0
  21. package/v1/model/AuditResultSystemAuditResultErrors.js.map +1 -0
  22. package/v1/model/AuditionFile.d.ts +8 -0
  23. package/v1/model/AuditionFile.d.ts.map +1 -0
  24. package/v1/model/AuditionFile.js +20 -0
  25. package/v1/model/AuditionFile.js.map +1 -0
  26. package/v1/model/CommentData.d.ts +16 -0
  27. package/v1/model/CommentData.d.ts.map +1 -0
  28. package/v1/model/CommentData.js +39 -0
  29. package/v1/model/CommentData.js.map +1 -0
  30. package/v1/model/CommentLogInfo.d.ts +33 -0
  31. package/v1/model/CommentLogInfo.d.ts.map +1 -0
  32. package/v1/model/CommentLogInfo.js +69 -0
  33. package/v1/model/CommentLogInfo.js.map +1 -0
  34. package/v1/model/CommitVoiceTrainingJobRequest.d.ts +24 -0
  35. package/v1/model/CommitVoiceTrainingJobRequest.d.ts.map +1 -0
  36. package/v1/model/CommitVoiceTrainingJobRequest.js +60 -0
  37. package/v1/model/CommitVoiceTrainingJobRequest.js.map +1 -0
  38. package/v1/model/CommitVoiceTrainingJobResponse.d.ts +5 -0
  39. package/v1/model/CommitVoiceTrainingJobResponse.d.ts.map +1 -0
  40. package/v1/model/CommitVoiceTrainingJobResponse.js +11 -0
  41. package/v1/model/CommitVoiceTrainingJobResponse.js.map +1 -0
  42. package/v1/model/ConfirmTrainingSegmentRequest.d.ts +10 -0
  43. package/v1/model/ConfirmTrainingSegmentRequest.d.ts.map +1 -0
  44. package/v1/model/ConfirmTrainingSegmentRequest.js +25 -0
  45. package/v1/model/ConfirmTrainingSegmentRequest.js.map +1 -0
  46. package/v1/model/ConfirmTrainingSegmentResponse.d.ts +13 -0
  47. package/v1/model/ConfirmTrainingSegmentResponse.d.ts.map +1 -0
  48. package/v1/model/ConfirmTrainingSegmentResponse.js +31 -0
  49. package/v1/model/ConfirmTrainingSegmentResponse.js.map +1 -0
  50. package/v1/model/Create2dModelTrainingJobReq.d.ts +34 -0
  51. package/v1/model/Create2dModelTrainingJobReq.d.ts.map +1 -0
  52. package/v1/model/Create2dModelTrainingJobReq.js +71 -0
  53. package/v1/model/Create2dModelTrainingJobReq.js.map +1 -0
  54. package/v1/model/Create2dModelTrainingJobRequest.d.ts +23 -0
  55. package/v1/model/Create2dModelTrainingJobRequest.d.ts.map +1 -0
  56. package/v1/model/Create2dModelTrainingJobRequest.js +53 -0
  57. package/v1/model/Create2dModelTrainingJobRequest.js.map +1 -0
  58. package/v1/model/Create2dModelTrainingJobResponse.d.ts +33 -0
  59. package/v1/model/Create2dModelTrainingJobResponse.d.ts.map +1 -0
  60. package/v1/model/Create2dModelTrainingJobResponse.js +81 -0
  61. package/v1/model/Create2dModelTrainingJobResponse.js.map +1 -0
  62. package/v1/model/CreateFASReq.d.ts +2 -0
  63. package/v1/model/CreateFASReq.d.ts.map +1 -1
  64. package/v1/model/CreateFASReq.js +4 -0
  65. package/v1/model/CreateFASReq.js.map +1 -1
  66. package/v1/model/CreateTrainingAdvanceJobRequest.d.ts +11 -0
  67. package/v1/model/CreateTrainingAdvanceJobRequest.d.ts.map +1 -0
  68. package/v1/model/CreateTrainingAdvanceJobRequest.js +23 -0
  69. package/v1/model/CreateTrainingAdvanceJobRequest.js.map +1 -0
  70. package/v1/model/CreateTrainingAdvanceJobResponse.d.ts +22 -0
  71. package/v1/model/CreateTrainingAdvanceJobResponse.d.ts.map +1 -0
  72. package/v1/model/CreateTrainingAdvanceJobResponse.js +51 -0
  73. package/v1/model/CreateTrainingAdvanceJobResponse.js.map +1 -0
  74. package/v1/model/CreateTrainingBasicJobRequest.d.ts +23 -0
  75. package/v1/model/CreateTrainingBasicJobRequest.d.ts.map +1 -0
  76. package/v1/model/CreateTrainingBasicJobRequest.js +53 -0
  77. package/v1/model/CreateTrainingBasicJobRequest.js.map +1 -0
  78. package/v1/model/CreateTrainingBasicJobResponse.d.ts +22 -0
  79. package/v1/model/CreateTrainingBasicJobResponse.d.ts.map +1 -0
  80. package/v1/model/CreateTrainingBasicJobResponse.js +51 -0
  81. package/v1/model/CreateTrainingBasicJobResponse.js.map +1 -0
  82. package/v1/model/CreateTrainingJobReq.d.ts +38 -0
  83. package/v1/model/CreateTrainingJobReq.d.ts.map +1 -0
  84. package/v1/model/CreateTrainingJobReq.js +64 -0
  85. package/v1/model/CreateTrainingJobReq.js.map +1 -0
  86. package/v1/model/CreateTrainingJobRspSegmentUploadingUrl.d.ts +12 -0
  87. package/v1/model/CreateTrainingJobRspSegmentUploadingUrl.d.ts.map +1 -0
  88. package/v1/model/CreateTrainingJobRspSegmentUploadingUrl.js +29 -0
  89. package/v1/model/CreateTrainingJobRspSegmentUploadingUrl.js.map +1 -0
  90. package/v1/model/CreateTrainingMiddleJobRequest.d.ts +23 -0
  91. package/v1/model/CreateTrainingMiddleJobRequest.d.ts.map +1 -0
  92. package/v1/model/CreateTrainingMiddleJobRequest.js +53 -0
  93. package/v1/model/CreateTrainingMiddleJobRequest.js.map +1 -0
  94. package/v1/model/CreateTrainingMiddleJobResponse.d.ts +22 -0
  95. package/v1/model/CreateTrainingMiddleJobResponse.d.ts.map +1 -0
  96. package/v1/model/CreateTrainingMiddleJobResponse.js +51 -0
  97. package/v1/model/CreateTrainingMiddleJobResponse.js.map +1 -0
  98. package/v1/model/CreateTtsAuditionRequest.d.ts +27 -0
  99. package/v1/model/CreateTtsAuditionRequest.d.ts.map +1 -0
  100. package/v1/model/CreateTtsAuditionRequest.js +63 -0
  101. package/v1/model/CreateTtsAuditionRequest.js.map +1 -0
  102. package/v1/model/CreateTtsAuditionRequestBody.d.ts +14 -0
  103. package/v1/model/CreateTtsAuditionRequestBody.d.ts.map +1 -0
  104. package/v1/model/CreateTtsAuditionRequestBody.js +31 -0
  105. package/v1/model/CreateTtsAuditionRequestBody.js.map +1 -0
  106. package/v1/model/CreateTtsAuditionResponse.d.ts +9 -0
  107. package/v1/model/CreateTtsAuditionResponse.d.ts.map +1 -0
  108. package/v1/model/CreateTtsAuditionResponse.js +21 -0
  109. package/v1/model/CreateTtsAuditionResponse.js.map +1 -0
  110. package/v1/model/CreateType.d.ts +4 -0
  111. package/v1/model/CreateType.d.ts.map +1 -0
  112. package/v1/model/CreateType.js +9 -0
  113. package/v1/model/CreateType.js.map +1 -0
  114. package/v1/model/Delete2dModelTrainingJobRequest.d.ts +24 -0
  115. package/v1/model/Delete2dModelTrainingJobRequest.d.ts.map +1 -0
  116. package/v1/model/Delete2dModelTrainingJobRequest.js +60 -0
  117. package/v1/model/Delete2dModelTrainingJobRequest.js.map +1 -0
  118. package/v1/model/Delete2dModelTrainingJobResponse.d.ts +9 -0
  119. package/v1/model/Delete2dModelTrainingJobResponse.d.ts.map +1 -0
  120. package/v1/model/Delete2dModelTrainingJobResponse.js +21 -0
  121. package/v1/model/Delete2dModelTrainingJobResponse.js.map +1 -0
  122. package/v1/model/DeleteVoiceTrainingJobRequest.d.ts +24 -0
  123. package/v1/model/DeleteVoiceTrainingJobRequest.d.ts.map +1 -0
  124. package/v1/model/DeleteVoiceTrainingJobRequest.js +60 -0
  125. package/v1/model/DeleteVoiceTrainingJobRequest.js.map +1 -0
  126. package/v1/model/DeleteVoiceTrainingJobResponse.d.ts +5 -0
  127. package/v1/model/DeleteVoiceTrainingJobResponse.d.ts.map +1 -0
  128. package/v1/model/DeleteVoiceTrainingJobResponse.js +11 -0
  129. package/v1/model/DeleteVoiceTrainingJobResponse.js.map +1 -0
  130. package/v1/model/Execute2dModelTrainingCommandByUserReq.d.ts +37 -0
  131. package/v1/model/Execute2dModelTrainingCommandByUserReq.d.ts.map +1 -0
  132. package/v1/model/Execute2dModelTrainingCommandByUserReq.js +58 -0
  133. package/v1/model/Execute2dModelTrainingCommandByUserReq.js.map +1 -0
  134. package/v1/model/Execute2dModelTrainingCommandByUserRequest.d.ts +27 -0
  135. package/v1/model/Execute2dModelTrainingCommandByUserRequest.d.ts.map +1 -0
  136. package/v1/model/Execute2dModelTrainingCommandByUserRequest.js +64 -0
  137. package/v1/model/Execute2dModelTrainingCommandByUserRequest.js.map +1 -0
  138. package/v1/model/Execute2dModelTrainingCommandByUserResponse.d.ts +30 -0
  139. package/v1/model/Execute2dModelTrainingCommandByUserResponse.d.ts.map +1 -0
  140. package/v1/model/Execute2dModelTrainingCommandByUserResponse.js +60 -0
  141. package/v1/model/Execute2dModelTrainingCommandByUserResponse.js.map +1 -0
  142. package/v1/model/InferenceActionMarkInfo.d.ts +9 -0
  143. package/v1/model/InferenceActionMarkInfo.d.ts.map +1 -0
  144. package/v1/model/InferenceActionMarkInfo.js +19 -0
  145. package/v1/model/InferenceActionMarkInfo.js.map +1 -0
  146. package/v1/model/InferenceVideoMarkInfo.d.ts +12 -0
  147. package/v1/model/InferenceVideoMarkInfo.d.ts.map +1 -0
  148. package/v1/model/InferenceVideoMarkInfo.js +29 -0
  149. package/v1/model/InferenceVideoMarkInfo.js.map +1 -0
  150. package/v1/model/JobState.d.ts +4 -0
  151. package/v1/model/JobState.d.ts.map +1 -0
  152. package/v1/model/JobState.js +9 -0
  153. package/v1/model/JobState.js.map +1 -0
  154. package/v1/model/JobTag.d.ts +4 -0
  155. package/v1/model/JobTag.d.ts.map +1 -0
  156. package/v1/model/JobTag.js +9 -0
  157. package/v1/model/JobTag.js.map +1 -0
  158. package/v1/model/JobType.d.ts +4 -0
  159. package/v1/model/JobType.d.ts.map +1 -0
  160. package/v1/model/JobType.js +9 -0
  161. package/v1/model/JobType.js.map +1 -0
  162. package/v1/model/List2dModelTrainingJobRequest.d.ts +54 -0
  163. package/v1/model/List2dModelTrainingJobRequest.d.ts.map +1 -0
  164. package/v1/model/List2dModelTrainingJobRequest.js +129 -0
  165. package/v1/model/List2dModelTrainingJobRequest.js.map +1 -0
  166. package/v1/model/List2dModelTrainingJobResponse.d.ts +14 -0
  167. package/v1/model/List2dModelTrainingJobResponse.d.ts.map +1 -0
  168. package/v1/model/List2dModelTrainingJobResponse.js +29 -0
  169. package/v1/model/List2dModelTrainingJobResponse.js.map +1 -0
  170. package/v1/model/ListVoiceTrainingJobRequest.d.ts +32 -0
  171. package/v1/model/ListVoiceTrainingJobRequest.d.ts.map +1 -0
  172. package/v1/model/ListVoiceTrainingJobRequest.js +75 -0
  173. package/v1/model/ListVoiceTrainingJobRequest.js.map +1 -0
  174. package/v1/model/ListVoiceTrainingJobResponse.d.ts +10 -0
  175. package/v1/model/ListVoiceTrainingJobResponse.d.ts.map +1 -0
  176. package/v1/model/ListVoiceTrainingJobResponse.js +19 -0
  177. package/v1/model/ListVoiceTrainingJobResponse.js.map +1 -0
  178. package/v1/model/MultipartUploadInfo.d.ts +10 -0
  179. package/v1/model/MultipartUploadInfo.d.ts.map +1 -0
  180. package/v1/model/MultipartUploadInfo.js +23 -0
  181. package/v1/model/MultipartUploadInfo.js.map +1 -0
  182. package/v1/model/OperationLogInfo.d.ts +64 -0
  183. package/v1/model/OperationLogInfo.d.ts.map +1 -0
  184. package/v1/model/OperationLogInfo.js +95 -0
  185. package/v1/model/OperationLogInfo.js.map +1 -0
  186. package/v1/model/Show2dModelTrainingJobRequest.d.ts +24 -0
  187. package/v1/model/Show2dModelTrainingJobRequest.d.ts.map +1 -0
  188. package/v1/model/Show2dModelTrainingJobRequest.js +60 -0
  189. package/v1/model/Show2dModelTrainingJobRequest.js.map +1 -0
  190. package/v1/model/Show2dModelTrainingJobResponse.d.ts +156 -0
  191. package/v1/model/Show2dModelTrainingJobResponse.d.ts.map +1 -0
  192. package/v1/model/Show2dModelTrainingJobResponse.js +316 -0
  193. package/v1/model/Show2dModelTrainingJobResponse.js.map +1 -0
  194. package/v1/model/ShowJobAuditResultRequest.d.ts +8 -0
  195. package/v1/model/ShowJobAuditResultRequest.d.ts.map +1 -0
  196. package/v1/model/ShowJobAuditResultRequest.js +20 -0
  197. package/v1/model/ShowJobAuditResultRequest.js.map +1 -0
  198. package/v1/model/ShowJobAuditResultResponse.d.ts +15 -0
  199. package/v1/model/ShowJobAuditResultResponse.d.ts.map +1 -0
  200. package/v1/model/ShowJobAuditResultResponse.js +31 -0
  201. package/v1/model/ShowJobAuditResultResponse.js.map +1 -0
  202. package/v1/model/ShowJobUploadingAddressRequest.d.ts +8 -0
  203. package/v1/model/ShowJobUploadingAddressRequest.d.ts.map +1 -0
  204. package/v1/model/ShowJobUploadingAddressRequest.js +20 -0
  205. package/v1/model/ShowJobUploadingAddressRequest.js.map +1 -0
  206. package/v1/model/ShowJobUploadingAddressResponse.d.ts +19 -0
  207. package/v1/model/ShowJobUploadingAddressResponse.d.ts.map +1 -0
  208. package/v1/model/ShowJobUploadingAddressResponse.js +41 -0
  209. package/v1/model/ShowJobUploadingAddressResponse.js.map +1 -0
  210. package/v1/model/ShowJobUploadingAddressRspPackageUrl.d.ts +8 -0
  211. package/v1/model/ShowJobUploadingAddressRspPackageUrl.d.ts.map +1 -0
  212. package/v1/model/ShowJobUploadingAddressRspPackageUrl.js +19 -0
  213. package/v1/model/ShowJobUploadingAddressRspPackageUrl.js.map +1 -0
  214. package/v1/model/ShowJobUploadingAddressRspSegmentUrl.d.ts +12 -0
  215. package/v1/model/ShowJobUploadingAddressRspSegmentUrl.d.ts.map +1 -0
  216. package/v1/model/ShowJobUploadingAddressRspSegmentUrl.js +29 -0
  217. package/v1/model/ShowJobUploadingAddressRspSegmentUrl.js.map +1 -0
  218. package/v1/model/ShowTrainingSegmentInfoRequest.d.ts +8 -0
  219. package/v1/model/ShowTrainingSegmentInfoRequest.d.ts.map +1 -0
  220. package/v1/model/ShowTrainingSegmentInfoRequest.js +20 -0
  221. package/v1/model/ShowTrainingSegmentInfoRequest.js.map +1 -0
  222. package/v1/model/ShowTrainingSegmentInfoResponse.d.ts +9 -0
  223. package/v1/model/ShowTrainingSegmentInfoResponse.d.ts.map +1 -0
  224. package/v1/model/ShowTrainingSegmentInfoResponse.js +21 -0
  225. package/v1/model/ShowTrainingSegmentInfoResponse.js.map +1 -0
  226. package/v1/model/ShowTtsAuditionFileRequest.d.ts +28 -0
  227. package/v1/model/ShowTtsAuditionFileRequest.d.ts.map +1 -0
  228. package/v1/model/ShowTtsAuditionFileRequest.js +70 -0
  229. package/v1/model/ShowTtsAuditionFileRequest.js.map +1 -0
  230. package/v1/model/ShowTtsAuditionFileResponse.d.ts +14 -0
  231. package/v1/model/ShowTtsAuditionFileResponse.d.ts.map +1 -0
  232. package/v1/model/ShowTtsAuditionFileResponse.js +29 -0
  233. package/v1/model/ShowTtsAuditionFileResponse.js.map +1 -0
  234. package/v1/model/ShowVoiceTrainingJobRequest.d.ts +24 -0
  235. package/v1/model/ShowVoiceTrainingJobRequest.d.ts.map +1 -0
  236. package/v1/model/ShowVoiceTrainingJobRequest.js +60 -0
  237. package/v1/model/ShowVoiceTrainingJobRequest.js.map +1 -0
  238. package/v1/model/ShowVoiceTrainingJobResponse.d.ts +61 -0
  239. package/v1/model/ShowVoiceTrainingJobResponse.d.ts.map +1 -0
  240. package/v1/model/ShowVoiceTrainingJobResponse.js +137 -0
  241. package/v1/model/ShowVoiceTrainingJobResponse.js.map +1 -0
  242. package/v1/model/TrainingJobBasicInfo.d.ts +91 -0
  243. package/v1/model/TrainingJobBasicInfo.d.ts.map +1 -0
  244. package/v1/model/TrainingJobBasicInfo.js +164 -0
  245. package/v1/model/TrainingJobBasicInfo.js.map +1 -0
  246. package/v1/model/TrainingJobInfo.d.ts +60 -0
  247. package/v1/model/TrainingJobInfo.d.ts.map +1 -0
  248. package/v1/model/TrainingJobInfo.js +135 -0
  249. package/v1/model/TrainingJobInfo.js.map +1 -0
  250. package/v1/model/Update2dModelTrainingJobRequest.d.ts +27 -0
  251. package/v1/model/Update2dModelTrainingJobRequest.d.ts.map +1 -0
  252. package/v1/model/Update2dModelTrainingJobRequest.js +64 -0
  253. package/v1/model/Update2dModelTrainingJobRequest.js.map +1 -0
  254. package/v1/model/Update2dModelTrainingJobResponse.d.ts +33 -0
  255. package/v1/model/Update2dModelTrainingJobResponse.d.ts.map +1 -0
  256. package/v1/model/Update2dModelTrainingJobResponse.js +81 -0
  257. package/v1/model/Update2dModelTrainingJobResponse.js.map +1 -0
  258. package/v1/public-api.d.ts +62 -0
  259. package/v1/public-api.d.ts.map +1 -1
  260. package/v1/public-api.js +62 -0
  261. package/v1/public-api.js.map +1 -1
@@ -9,8 +9,11 @@ const form_data_1 = __importDefault(require("form-data"));
9
9
  const Cancel2DDigitalHumanVideoRequest_1 = require("./model/Cancel2DDigitalHumanVideoRequest");
10
10
  const CancelPhotoDigitalHumanVideoRequest_1 = require("./model/CancelPhotoDigitalHumanVideoRequest");
11
11
  const CheckTextLanguageRequest_1 = require("./model/CheckTextLanguageRequest");
12
+ const CommitVoiceTrainingJobRequest_1 = require("./model/CommitVoiceTrainingJobRequest");
12
13
  const ConfirmFileUploadRequest_1 = require("./model/ConfirmFileUploadRequest");
14
+ const ConfirmTrainingSegmentRequest_1 = require("./model/ConfirmTrainingSegmentRequest");
13
15
  const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHumanVideoRequest");
16
+ const Create2dModelTrainingJobRequest_1 = require("./model/Create2dModelTrainingJobRequest");
14
17
  const CreateDigitalAssetRequest_1 = require("./model/CreateDigitalAssetRequest");
15
18
  const CreateDigitalHumanBusinessCardRequest_1 = require("./model/CreateDigitalHumanBusinessCardRequest");
16
19
  const CreateFacialAnimationsRequest_1 = require("./model/CreateFacialAnimationsRequest");
@@ -21,17 +24,25 @@ const CreatePhotoDigitalHumanVideoRequest_1 = require("./model/CreatePhotoDigita
21
24
  const CreatePictureModelingByUrlJobRequest_1 = require("./model/CreatePictureModelingByUrlJobRequest");
22
25
  const CreatePictureModelingJobRequest_1 = require("./model/CreatePictureModelingJobRequest");
23
26
  const CreateSmartLiveRoomRequest_1 = require("./model/CreateSmartLiveRoomRequest");
27
+ const CreateTrainingAdvanceJobRequest_1 = require("./model/CreateTrainingAdvanceJobRequest");
28
+ const CreateTrainingBasicJobRequest_1 = require("./model/CreateTrainingBasicJobRequest");
29
+ const CreateTrainingMiddleJobRequest_1 = require("./model/CreateTrainingMiddleJobRequest");
30
+ const CreateTtsAuditionRequest_1 = require("./model/CreateTtsAuditionRequest");
24
31
  const CreateTtsaRequest_1 = require("./model/CreateTtsaRequest");
25
32
  const CreateVideoMotionCaptureJobRequest_1 = require("./model/CreateVideoMotionCaptureJobRequest");
26
33
  const CreateVideoScriptsRequest_1 = require("./model/CreateVideoScriptsRequest");
34
+ const Delete2dModelTrainingJobRequest_1 = require("./model/Delete2dModelTrainingJobRequest");
27
35
  const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
28
36
  const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
29
37
  const DeleteFileRequest_1 = require("./model/DeleteFileRequest");
30
38
  const DeleteInteractionRuleGroupRequest_1 = require("./model/DeleteInteractionRuleGroupRequest");
31
39
  const DeleteSmartLiveRoomRequest_1 = require("./model/DeleteSmartLiveRoomRequest");
32
40
  const DeleteVideoScriptRequest_1 = require("./model/DeleteVideoScriptRequest");
41
+ const DeleteVoiceTrainingJobRequest_1 = require("./model/DeleteVoiceTrainingJobRequest");
42
+ const Execute2dModelTrainingCommandByUserRequest_1 = require("./model/Execute2dModelTrainingCommandByUserRequest");
33
43
  const ExecuteSmartLiveCommandRequest_1 = require("./model/ExecuteSmartLiveCommandRequest");
34
44
  const ExecuteVideoMotionCaptureCommandRequest_1 = require("./model/ExecuteVideoMotionCaptureCommandRequest");
45
+ const List2dModelTrainingJobRequest_1 = require("./model/List2dModelTrainingJobRequest");
35
46
  const ListAssetSummaryRequest_1 = require("./model/ListAssetSummaryRequest");
36
47
  const ListAssetsRequest_1 = require("./model/ListAssetsRequest");
37
48
  const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanBusinessCardRequest");
@@ -46,21 +57,29 @@ const ListTtsaDataRequest_1 = require("./model/ListTtsaDataRequest");
46
57
  const ListTtsaJobsRequest_1 = require("./model/ListTtsaJobsRequest");
47
58
  const ListVideoMotionCaptureJobsRequest_1 = require("./model/ListVideoMotionCaptureJobsRequest");
48
59
  const ListVideoScriptsRequest_1 = require("./model/ListVideoScriptsRequest");
60
+ const ListVoiceTrainingJobRequest_1 = require("./model/ListVoiceTrainingJobRequest");
49
61
  const LiveEventReportRequest_1 = require("./model/LiveEventReportRequest");
50
62
  const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
51
63
  const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
64
+ const Show2dModelTrainingJobRequest_1 = require("./model/Show2dModelTrainingJobRequest");
52
65
  const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
53
66
  const ShowDigitalHumanBusinessCardRequest_1 = require("./model/ShowDigitalHumanBusinessCardRequest");
67
+ const ShowJobAuditResultRequest_1 = require("./model/ShowJobAuditResultRequest");
68
+ const ShowJobUploadingAddressRequest_1 = require("./model/ShowJobUploadingAddressRequest");
54
69
  const ShowPhotoDetectionRequest_1 = require("./model/ShowPhotoDetectionRequest");
55
70
  const ShowPhotoDigitalHumanVideoRequest_1 = require("./model/ShowPhotoDigitalHumanVideoRequest");
56
71
  const ShowPictureModelingJobRequest_1 = require("./model/ShowPictureModelingJobRequest");
57
72
  const ShowSmartLiveRequest_1 = require("./model/ShowSmartLiveRequest");
58
73
  const ShowSmartLiveRoomRequest_1 = require("./model/ShowSmartLiveRoomRequest");
74
+ const ShowTrainingSegmentInfoRequest_1 = require("./model/ShowTrainingSegmentInfoRequest");
75
+ const ShowTtsAuditionFileRequest_1 = require("./model/ShowTtsAuditionFileRequest");
59
76
  const ShowVideoMotionCaptureJobRequest_1 = require("./model/ShowVideoMotionCaptureJobRequest");
60
77
  const ShowVideoScriptRequest_1 = require("./model/ShowVideoScriptRequest");
78
+ const ShowVoiceTrainingJobRequest_1 = require("./model/ShowVoiceTrainingJobRequest");
61
79
  const StartSmartLiveRequest_1 = require("./model/StartSmartLiveRequest");
62
80
  const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
63
81
  const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
82
+ const Update2dModelTrainingJobRequest_1 = require("./model/Update2dModelTrainingJobRequest");
64
83
  const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
65
84
  const UpdateDigitalHumanBusinessCardRequest_1 = require("./model/UpdateDigitalHumanBusinessCardRequest");
66
85
  const UpdateInteractionRuleGroupRequest_1 = require("./model/UpdateInteractionRuleGroupRequest");
@@ -1048,28 +1067,75 @@ class MetaStudioClient {
1048
1067
  return this.hcClient.sendRequest(options);
1049
1068
  }
1050
1069
  /**
1051
- * 该接口用于创建驱动数字人表情的任务。
1070
+ * 提交训练任务,执行该接口后,任务会进入审核状态,审核完成后会等待训练。
1052
1071
  *
1053
1072
  * Please refer to HUAWEI cloud API Explorer for details.
1054
1073
  *
1055
- * @summary 创建语音驱动表情动画任务
1056
- * @param {CreateFASReq} [createFacialAnimationsRequestBody] 数字人语音驱动表情任务创建请求。
1074
+ * @summary 提交语音训练任务
1075
+ * @param {string} jobId 任务id。
1076
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1077
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1078
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1079
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1057
1080
  * @param {*} [options] Override http request option.
1058
1081
  * @throws {RequiredError}
1059
1082
  */
1060
- createFacialAnimations(createFacialAnimationsRequest) {
1061
- const options = (0, exports.ParamCreater)().createFacialAnimations(createFacialAnimationsRequest);
1083
+ commitVoiceTrainingJob(commitVoiceTrainingJobRequest) {
1084
+ const options = (0, exports.ParamCreater)().commitVoiceTrainingJob(commitVoiceTrainingJobRequest);
1062
1085
  // @ts-ignore
1063
- options['responseHeaders'] = ['X-Request-Id'];
1086
+ options['responseHeaders'] = [''];
1064
1087
  return this.hcClient.sendRequest(options);
1065
1088
  }
1066
1089
  /**
1067
- * 该接口用于创建驱动数字人表情、动作及语音的任务。
1090
+ * 确认在线录音结果。
1068
1091
  *
1069
1092
  * Please refer to HUAWEI cloud API Explorer for details.
1070
1093
  *
1071
- * @summary 创建语音驱动任务
1072
- * @param {CreateTTSAReq} createTTSARequestBody 数字人语音驱动任务创建请求。
1094
+ * @summary 确认在线录音结果
1095
+ * @param {string} jobId 任务id。
1096
+ * @param {number} index 语句索引。
1097
+ * @param {*} [options] Override http request option.
1098
+ * @throws {RequiredError}
1099
+ */
1100
+ confirmTrainingSegment(confirmTrainingSegmentRequest) {
1101
+ const options = (0, exports.ParamCreater)().confirmTrainingSegment(confirmTrainingSegmentRequest);
1102
+ // @ts-ignore
1103
+ options['responseHeaders'] = [''];
1104
+ return this.hcClient.sendRequest(options);
1105
+ }
1106
+ /**
1107
+ * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
1108
+ * 仅支持zip包方式上传语音文件:
1109
+ * * 语音文件打包成zip上传:上传的训练数据为一个zip格式压缩文件,其中包含一段wav格式的长音频文件。
1110
+ *
1111
+ * > * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
1112
+ *
1113
+ * Please refer to HUAWEI cloud API Explorer for details.
1114
+ *
1115
+ * @summary 创建高级版语音训练任务
1116
+ * @param {CreateTrainingJobReq} createTrainingAdvanceJobRequestBody 创建任务请求。
1117
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ createTrainingAdvanceJob(createTrainingAdvanceJobRequest) {
1122
+ const options = (0, exports.ParamCreater)().createTrainingAdvanceJob(createTrainingAdvanceJobRequest);
1123
+ // @ts-ignore
1124
+ options['responseHeaders'] = [''];
1125
+ return this.hcClient.sendRequest(options);
1126
+ }
1127
+ /**
1128
+ * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
1129
+ * 支持2种方式上传语音文件:
1130
+ * * 语音文件和文本文件打包成zip上传:语音文件已经切分成20个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~19.wav;文本文件命名规则:0.txt~19.txt。
1131
+ * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
1132
+ *
1133
+ * > * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
1134
+ *
1135
+ * Please refer to HUAWEI cloud API Explorer for details.
1136
+ *
1137
+ * @summary 创建基础版语音训练任务
1138
+ * @param {CreateTrainingJobReq} createTrainingBasicJobRequestBody 创建任务请求。
1073
1139
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1074
1140
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1075
1141
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
@@ -1077,98 +1143,198 @@ class MetaStudioClient {
1077
1143
  * @param {*} [options] Override http request option.
1078
1144
  * @throws {RequiredError}
1079
1145
  */
1080
- createTtsa(createTtsaRequest) {
1081
- const options = (0, exports.ParamCreater)().createTtsa(createTtsaRequest);
1146
+ createTrainingBasicJob(createTrainingBasicJobRequest) {
1147
+ const options = (0, exports.ParamCreater)().createTrainingBasicJob(createTrainingBasicJobRequest);
1082
1148
  // @ts-ignore
1083
- options['responseHeaders'] = ['X-Request-Id'];
1149
+ options['responseHeaders'] = [''];
1084
1150
  return this.hcClient.sendRequest(options);
1085
1151
  }
1086
1152
  /**
1087
- * 该接口用于获取生成的数字人表情驱动数据
1153
+ * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
1154
+ * 支持2种方式上传语音文件:
1155
+ * * 语音文件和文本文件打包成zip上传:语音文件已经切分成100个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~99.wav;文本文件命名规则:0.txt~99.txt。
1156
+ * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
1157
+ *
1158
+ * > * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
1088
1159
  *
1089
1160
  * Please refer to HUAWEI cloud API Explorer for details.
1090
1161
  *
1091
- * @summary 获取语音驱动表情数据
1092
- * @param {string} jobId 表情驱动任务ID
1162
+ * @summary 创建进阶版语音训练任务
1163
+ * @param {CreateTrainingJobReq} createTrainingMiddleJobRequestBody 创建任务请求。
1164
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1165
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1166
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1167
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1093
1168
  * @param {*} [options] Override http request option.
1094
1169
  * @throws {RequiredError}
1095
1170
  */
1096
- listFacialAnimationsData(listFacialAnimationsDataRequest) {
1097
- const options = (0, exports.ParamCreater)().listFacialAnimationsData(listFacialAnimationsDataRequest);
1171
+ createTrainingMiddleJob(createTrainingMiddleJobRequest) {
1172
+ const options = (0, exports.ParamCreater)().createTrainingMiddleJob(createTrainingMiddleJobRequest);
1098
1173
  // @ts-ignore
1099
1174
  options['responseHeaders'] = [''];
1100
1175
  return this.hcClient.sendRequest(options);
1101
1176
  }
1102
1177
  /**
1103
- * 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
1178
+ * 删除语音训练任务
1104
1179
  *
1105
1180
  * Please refer to HUAWEI cloud API Explorer for details.
1106
1181
  *
1107
- * @summary 获取语音驱动数据
1108
- * @param {string} jobId 任务ID
1182
+ * @summary 删除语音训练任务
1183
+ * @param {string} jobId 任务id
1109
1184
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1110
1185
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1111
1186
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1112
- * @param {number} [offset] 偏移量,表示生成内容时间偏移,目前每次返回2秒内容。
1187
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1113
1188
  * @param {*} [options] Override http request option.
1114
1189
  * @throws {RequiredError}
1115
1190
  */
1116
- listTtsaData(listTtsaDataRequest) {
1117
- const options = (0, exports.ParamCreater)().listTtsaData(listTtsaDataRequest);
1191
+ deleteVoiceTrainingJob(deleteVoiceTrainingJobRequest) {
1192
+ const options = (0, exports.ParamCreater)().deleteVoiceTrainingJob(deleteVoiceTrainingJobRequest);
1118
1193
  // @ts-ignore
1119
- options['responseHeaders'] = ['X-Request-Id'];
1194
+ options['responseHeaders'] = [''];
1120
1195
  return this.hcClient.sendRequest(options);
1121
1196
  }
1122
1197
  /**
1123
- * 该接口用于查询驱动数字人表情、动作及语音的任务列表。
1198
+ * 查询语音训练任务列表
1124
1199
  *
1125
1200
  * Please refer to HUAWEI cloud API Explorer for details.
1126
1201
  *
1127
- * @summary 获取语音驱动任务列表
1202
+ * @summary 查询语音训练任务列表
1203
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1204
+ * @param {number} [limit] 每页显示的条目数量。
1205
+ * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
1206
+ * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
1207
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1208
+ * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=FAILED,WAITING
1209
+ * @param {string} [jobId] 任务id。
1210
+ * @param {string} [voiceName] 声音名称。
1211
+ * @param {string} [tag] 任务标签。
1212
+ * @param {*} [options] Override http request option.
1213
+ * @throws {RequiredError}
1214
+ */
1215
+ listVoiceTrainingJob(listVoiceTrainingJobRequest) {
1216
+ const options = (0, exports.ParamCreater)().listVoiceTrainingJob(listVoiceTrainingJobRequest);
1217
+ // @ts-ignore
1218
+ options['responseHeaders'] = [''];
1219
+ return this.hcClient.sendRequest(options);
1220
+ }
1221
+ /**
1222
+ * 获取语音训练任务审核结果。
1223
+ *
1224
+ * Please refer to HUAWEI cloud API Explorer for details.
1225
+ *
1226
+ * @summary 获取语音训练任务审核结果
1227
+ * @param {string} jobId 任务id。
1228
+ * @param {*} [options] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ */
1231
+ showJobAuditResult(showJobAuditResultRequest) {
1232
+ const options = (0, exports.ParamCreater)().showJobAuditResult(showJobAuditResultRequest);
1233
+ // @ts-ignore
1234
+ options['responseHeaders'] = [''];
1235
+ return this.hcClient.sendRequest(options);
1236
+ }
1237
+ /**
1238
+ * 获取语音文件上传地址
1239
+ *
1240
+ * Please refer to HUAWEI cloud API Explorer for details.
1241
+ *
1242
+ * @summary 获取语音文件上传地址
1243
+ * @param {string} jobId 任务id。
1244
+ * @param {*} [options] Override http request option.
1245
+ * @throws {RequiredError}
1246
+ */
1247
+ showJobUploadingAddress(showJobUploadingAddressRequest) {
1248
+ const options = (0, exports.ParamCreater)().showJobUploadingAddress(showJobUploadingAddressRequest);
1249
+ // @ts-ignore
1250
+ options['responseHeaders'] = [''];
1251
+ return this.hcClient.sendRequest(options);
1252
+ }
1253
+ /**
1254
+ * 获取在线录音确认结果。
1255
+ *
1256
+ * Please refer to HUAWEI cloud API Explorer for details.
1257
+ *
1258
+ * @summary 获取在线录音确认结果
1259
+ * @param {string} jobId 任务id。
1260
+ * @param {*} [options] Override http request option.
1261
+ * @throws {RequiredError}
1262
+ */
1263
+ showTrainingSegmentInfo(showTrainingSegmentInfoRequest) {
1264
+ const options = (0, exports.ParamCreater)().showTrainingSegmentInfo(showTrainingSegmentInfoRequest);
1265
+ // @ts-ignore
1266
+ options['responseHeaders'] = [''];
1267
+ return this.hcClient.sendRequest(options);
1268
+ }
1269
+ /**
1270
+ * 查询语音训练任务详情
1271
+ *
1272
+ * Please refer to HUAWEI cloud API Explorer for details.
1273
+ *
1274
+ * @summary 查询语音训练任务详情
1275
+ * @param {string} jobId 任务id。
1128
1276
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1129
1277
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1130
1278
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1131
1279
  * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1132
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1133
- * @param {number} [limit] 每页显示的条目数量。
1134
1280
  * @param {*} [options] Override http request option.
1135
1281
  * @throws {RequiredError}
1136
1282
  */
1137
- listTtsaJobs(listTtsaJobsRequest) {
1138
- const options = (0, exports.ParamCreater)().listTtsaJobs(listTtsaJobsRequest);
1283
+ showVoiceTrainingJob(showVoiceTrainingJobRequest) {
1284
+ const options = (0, exports.ParamCreater)().showVoiceTrainingJob(showVoiceTrainingJobRequest);
1285
+ // @ts-ignore
1286
+ options['responseHeaders'] = [''];
1287
+ return this.hcClient.sendRequest(options);
1288
+ }
1289
+ /**
1290
+ * 该接口用于创建分身数字人模型训练任务。
1291
+ *
1292
+ * Please refer to HUAWEI cloud API Explorer for details.
1293
+ *
1294
+ * @summary 创建分身数字人模型训练任务
1295
+ * @param {Create2dModelTrainingJobReq} create2dModelTrainingJobRequestBody 创建分身数字人模型训练任务请求。
1296
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1297
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1298
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1299
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1300
+ * @param {*} [options] Override http request option.
1301
+ * @throws {RequiredError}
1302
+ */
1303
+ create2dModelTrainingJob(create2dModelTrainingJobRequest) {
1304
+ const options = (0, exports.ParamCreater)().create2dModelTrainingJob(create2dModelTrainingJobRequest);
1139
1305
  // @ts-ignore
1140
1306
  options['responseHeaders'] = ['X-Request-Id'];
1141
1307
  return this.hcClient.sendRequest(options);
1142
1308
  }
1143
1309
  /**
1144
- * 该接口用于创建视频驱动任务。
1310
+ * 该接口用于删除分身数字人模型训练任务。同时需要删除训练任务相关的训练视频、身份证照片、授权文件、模型资产等。
1311
+ * > * 该接口应当在任务处于以下状态时调用:WAIT_FILE_UPLOAD、AUTO_VERIFY_FAILED、MANUAL_VERIFYING、MANUAL_VERIFY_FAILED、TRAINING_DATA_PREPROCESS_FAILED、TRAIN_FAILED、INFERENCE_DATA_PREPROCESS_FAILED、JOB_SUCCESS、WAIT_USER_CONFIRM、JOB_REJECT、JOB_FINISH
1145
1312
  *
1146
1313
  * Please refer to HUAWEI cloud API Explorer for details.
1147
1314
  *
1148
- * @summary 创建视频驱动任务
1149
- * @param {VideoMotionCaptureJobReq} createVideoMotionCaptureJobRequestBody 视频驱动任务创建请求。
1315
+ * @summary 删除分身数字人模型训练任务
1316
+ * @param {string} jobId 任务ID。
1150
1317
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1151
1318
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1152
1319
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1153
1320
  * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1154
- * @param {string} [xUserPrivilege] 测试用户判断。
1155
1321
  * @param {*} [options] Override http request option.
1156
1322
  * @throws {RequiredError}
1157
1323
  */
1158
- createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest) {
1159
- const options = (0, exports.ParamCreater)().createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest);
1324
+ delete2dModelTrainingJob(delete2dModelTrainingJobRequest) {
1325
+ const options = (0, exports.ParamCreater)().delete2dModelTrainingJob(delete2dModelTrainingJobRequest);
1160
1326
  // @ts-ignore
1161
1327
  options['responseHeaders'] = ['X-Request-Id'];
1162
1328
  return this.hcClient.sendRequest(options);
1163
1329
  }
1164
1330
  /**
1165
- * 该接口用于控制数字人驱动。
1331
+ * 该接口用于租户执行分身数字人模型训练任务命令,如提交训练审核等。
1166
1332
  *
1167
1333
  * Please refer to HUAWEI cloud API Explorer for details.
1168
1334
  *
1169
- * @summary 控制数字人驱动
1335
+ * @summary 租户执行分身数字人模型训练任务命令
1170
1336
  * @param {string} jobId 任务ID。
1171
- * @param {ControlDigitalHumanLiveReq} executeVideoMotionCaptureCommandRequestBody 控制数字人驱动。
1337
+ * @param {Execute2dModelTrainingCommandByUserReq} execute2dModelTrainingCommandByUserRequestBody 租户执行分身数字人模型训练任务命令请求。
1172
1338
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1173
1339
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1174
1340
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
@@ -1176,39 +1342,48 @@ class MetaStudioClient {
1176
1342
  * @param {*} [options] Override http request option.
1177
1343
  * @throws {RequiredError}
1178
1344
  */
1179
- executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest) {
1180
- const options = (0, exports.ParamCreater)().executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest);
1345
+ execute2dModelTrainingCommandByUser(execute2dModelTrainingCommandByUserRequest) {
1346
+ const options = (0, exports.ParamCreater)().execute2dModelTrainingCommandByUser(execute2dModelTrainingCommandByUserRequest);
1181
1347
  // @ts-ignore
1182
1348
  options['responseHeaders'] = ['X-Request-Id'];
1183
1349
  return this.hcClient.sendRequest(options);
1184
1350
  }
1185
1351
  /**
1186
- * 该接口用于查询视频驱动任务列表。
1352
+ * 该接口用于查询分身数字人模型训练任务列表。
1187
1353
  *
1188
1354
  * Please refer to HUAWEI cloud API Explorer for details.
1189
1355
  *
1190
- * @summary 查询视频驱动任务列表
1356
+ * @summary 查询分身数字人模型训练任务列表
1191
1357
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1192
1358
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1193
1359
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1194
1360
  * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1195
1361
  * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1196
1362
  * @param {number} [limit] 每页显示的条目数量。
1363
+ * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
1364
+ * @param {string} [sortKey] 排序字段,目前只支持create_time。
1365
+ * @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
1366
+ * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
1367
+ * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
1368
+ * @param {string} [batchName] 任务批次名称。
1369
+ * @param {string} [tag] 任务标签。
1370
+ * @param {string} [jobId] 任务ID。
1371
+ * @param {string} [name] 分身数字人模型名称
1197
1372
  * @param {*} [options] Override http request option.
1198
1373
  * @throws {RequiredError}
1199
1374
  */
1200
- listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest) {
1201
- const options = (0, exports.ParamCreater)().listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest);
1375
+ list2dModelTrainingJob(list2dModelTrainingJobRequest) {
1376
+ const options = (0, exports.ParamCreater)().list2dModelTrainingJob(list2dModelTrainingJobRequest);
1202
1377
  // @ts-ignore
1203
1378
  options['responseHeaders'] = ['X-Request-Id'];
1204
1379
  return this.hcClient.sendRequest(options);
1205
1380
  }
1206
1381
  /**
1207
- * 该接口用于查询视频驱动任务详情。
1382
+ * 该接口用于查询分身数字人模型训练任务详情。
1208
1383
  *
1209
1384
  * Please refer to HUAWEI cloud API Explorer for details.
1210
1385
  *
1211
- * @summary 查询视频驱动任务详情
1386
+ * @summary 查询分身数字人模型训练任务详情
1212
1387
  * @param {string} jobId 任务ID。
1213
1388
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1214
1389
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
@@ -1217,19 +1392,21 @@ class MetaStudioClient {
1217
1392
  * @param {*} [options] Override http request option.
1218
1393
  * @throws {RequiredError}
1219
1394
  */
1220
- showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest) {
1221
- const options = (0, exports.ParamCreater)().showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest);
1395
+ show2dModelTrainingJob(show2dModelTrainingJobRequest) {
1396
+ const options = (0, exports.ParamCreater)().show2dModelTrainingJob(show2dModelTrainingJobRequest);
1222
1397
  // @ts-ignore
1223
1398
  options['responseHeaders'] = ['X-Request-Id'];
1224
1399
  return this.hcClient.sendRequest(options);
1225
1400
  }
1226
1401
  /**
1227
- * 该接口用于停止视频驱动任务。
1402
+ * 该接口用于更新分身数字人模型训练任务。用于在自动审核或者人工审核不通过情况下,更新训练视频、身份证照片等。
1403
+ * > * 该接口只能在AUTO_VERIFY_FAILED或者MANUAL_VERIFY_FAILED状态下调用
1228
1404
  *
1229
1405
  * Please refer to HUAWEI cloud API Explorer for details.
1230
1406
  *
1231
- * @summary 停止视频驱动任务
1407
+ * @summary 更新分身数字人模型训练任务
1232
1408
  * @param {string} jobId 任务ID。
1409
+ * @param {Create2dModelTrainingJobReq} update2dModelTrainingJobRequestBody 更新分身数字人模型训练任务请求。
1233
1410
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1234
1411
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1235
1412
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
@@ -1237,19 +1414,35 @@ class MetaStudioClient {
1237
1414
  * @param {*} [options] Override http request option.
1238
1415
  * @throws {RequiredError}
1239
1416
  */
1240
- stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest) {
1241
- const options = (0, exports.ParamCreater)().stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest);
1417
+ update2dModelTrainingJob(update2dModelTrainingJobRequest) {
1418
+ const options = (0, exports.ParamCreater)().update2dModelTrainingJob(update2dModelTrainingJobRequest);
1242
1419
  // @ts-ignore
1243
1420
  options['responseHeaders'] = ['X-Request-Id'];
1244
1421
  return this.hcClient.sendRequest(options);
1245
1422
  }
1246
1423
  /**
1247
- * 该接口用于创建视频制作剧本。
1424
+ * 该接口用于创建驱动数字人表情的任务。
1248
1425
  *
1249
1426
  * Please refer to HUAWEI cloud API Explorer for details.
1250
1427
  *
1251
- * @summary 创建视频制作剧本
1252
- * @param {CreateVideoScriptsReq} createVideoScriptsRequestBody 创建视频制作脚本请求。
1428
+ * @summary 创建语音驱动表情动画任务
1429
+ * @param {CreateFASReq} [createFacialAnimationsRequestBody] 数字人语音驱动表情任务创建请求。
1430
+ * @param {*} [options] Override http request option.
1431
+ * @throws {RequiredError}
1432
+ */
1433
+ createFacialAnimations(createFacialAnimationsRequest) {
1434
+ const options = (0, exports.ParamCreater)().createFacialAnimations(createFacialAnimationsRequest);
1435
+ // @ts-ignore
1436
+ options['responseHeaders'] = ['X-Request-Id'];
1437
+ return this.hcClient.sendRequest(options);
1438
+ }
1439
+ /**
1440
+ * 该接口用于创建驱动数字人表情、动作及语音的任务。
1441
+ *
1442
+ * Please refer to HUAWEI cloud API Explorer for details.
1443
+ *
1444
+ * @summary 创建语音驱动任务
1445
+ * @param {CreateTTSAReq} createTTSARequestBody 数字人语音驱动任务创建请求。
1253
1446
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1254
1447
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1255
1448
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
@@ -1257,107 +1450,329 @@ class MetaStudioClient {
1257
1450
  * @param {*} [options] Override http request option.
1258
1451
  * @throws {RequiredError}
1259
1452
  */
1260
- createVideoScripts(createVideoScriptsRequest) {
1261
- const options = (0, exports.ParamCreater)().createVideoScripts(createVideoScriptsRequest);
1453
+ createTtsa(createTtsaRequest) {
1454
+ const options = (0, exports.ParamCreater)().createTtsa(createTtsaRequest);
1262
1455
  // @ts-ignore
1263
1456
  options['responseHeaders'] = ['X-Request-Id'];
1264
1457
  return this.hcClient.sendRequest(options);
1265
1458
  }
1266
1459
  /**
1267
- * 该接口用于删除视频制作剧本。
1460
+ * 该接口用于获取生成的数字人表情驱动数据
1268
1461
  *
1269
1462
  * Please refer to HUAWEI cloud API Explorer for details.
1270
1463
  *
1271
- * @summary 删除视频制作剧本
1272
- * @param {string} scriptId 剧本ID
1464
+ * @summary 获取语音驱动表情数据
1465
+ * @param {string} jobId 表情驱动任务ID
1466
+ * @param {*} [options] Override http request option.
1467
+ * @throws {RequiredError}
1468
+ */
1469
+ listFacialAnimationsData(listFacialAnimationsDataRequest) {
1470
+ const options = (0, exports.ParamCreater)().listFacialAnimationsData(listFacialAnimationsDataRequest);
1471
+ // @ts-ignore
1472
+ options['responseHeaders'] = [''];
1473
+ return this.hcClient.sendRequest(options);
1474
+ }
1475
+ /**
1476
+ * 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
1477
+ *
1478
+ * Please refer to HUAWEI cloud API Explorer for details.
1479
+ *
1480
+ * @summary 获取语音驱动数据
1481
+ * @param {string} jobId 任务ID。
1273
1482
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1274
1483
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1275
1484
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1276
- * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1485
+ * @param {number} [offset] 偏移量,表示生成内容时间偏移,目前每次返回2秒内容。
1277
1486
  * @param {*} [options] Override http request option.
1278
1487
  * @throws {RequiredError}
1279
1488
  */
1280
- deleteVideoScript(deleteVideoScriptRequest) {
1281
- const options = (0, exports.ParamCreater)().deleteVideoScript(deleteVideoScriptRequest);
1489
+ listTtsaData(listTtsaDataRequest) {
1490
+ const options = (0, exports.ParamCreater)().listTtsaData(listTtsaDataRequest);
1282
1491
  // @ts-ignore
1283
1492
  options['responseHeaders'] = ['X-Request-Id'];
1284
1493
  return this.hcClient.sendRequest(options);
1285
1494
  }
1286
1495
  /**
1287
- * 该接口用于查询视频制作剧本列表。
1496
+ * 该接口用于查询驱动数字人表情、动作及语音的任务列表。
1288
1497
  *
1289
1498
  * Please refer to HUAWEI cloud API Explorer for details.
1290
1499
  *
1291
- * @summary 查询视频制作剧本列表
1500
+ * @summary 获取语音驱动任务列表
1292
1501
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1293
1502
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1294
1503
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1295
1504
  * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1296
1505
  * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1297
1506
  * @param {number} [limit] 每页显示的条目数量。
1298
- * @param {string} [name] 按名称模糊查询。
1299
- * @param {'VIDEO_DRAFT' | 'SYSTEM_VIDEO_TEMPLET'} [scriptCatalog] 剧本类型。默认查询VIDEO_DRAFT。 * VIDEO_DRAFT:视频草稿。 * SYSTEM_VIDEO_TEMPLET: 系统视频模板。
1300
- * @param {'LANDSCAPE' | 'VERTICAL'} [viewMode] 横竖屏类型(内部参数,不对外开放)。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。
1301
1507
  * @param {*} [options] Override http request option.
1302
1508
  * @throws {RequiredError}
1303
1509
  */
1304
- listVideoScripts(listVideoScriptsRequest) {
1305
- const options = (0, exports.ParamCreater)().listVideoScripts(listVideoScriptsRequest);
1510
+ listTtsaJobs(listTtsaJobsRequest) {
1511
+ const options = (0, exports.ParamCreater)().listTtsaJobs(listTtsaJobsRequest);
1306
1512
  // @ts-ignore
1307
1513
  options['responseHeaders'] = ['X-Request-Id'];
1308
1514
  return this.hcClient.sendRequest(options);
1309
1515
  }
1310
1516
  /**
1311
- * 该接口用于查询视频制作剧本详情。
1517
+ * 该接口用于创建生成播报内容的语音试听文件任务。
1312
1518
  *
1313
1519
  * Please refer to HUAWEI cloud API Explorer for details.
1314
1520
  *
1315
- * @summary 查询视频制作剧本详情
1316
- * @param {string} scriptId 剧本ID。
1521
+ * @summary 创建TTS试听任务
1522
+ * @param {CreateTtsAuditionRequestBody} createTtsAuditionRequestBody 创建文本转音频试听请求。
1523
+ * @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
1317
1524
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1318
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1525
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1319
1526
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1320
- * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1527
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1321
1528
  * @param {*} [options] Override http request option.
1322
1529
  * @throws {RequiredError}
1323
1530
  */
1324
- showVideoScript(showVideoScriptRequest) {
1325
- const options = (0, exports.ParamCreater)().showVideoScript(showVideoScriptRequest);
1531
+ createTtsAudition(createTtsAuditionRequest) {
1532
+ const options = (0, exports.ParamCreater)().createTtsAudition(createTtsAuditionRequest);
1326
1533
  // @ts-ignore
1327
- options['responseHeaders'] = ['X-Request-Id'];
1534
+ options['responseHeaders'] = [''];
1328
1535
  return this.hcClient.sendRequest(options);
1329
1536
  }
1330
1537
  /**
1331
- * 该接口用于更新视频制作剧本。
1538
+ * 该接口用于获取TTS试听文件下载链接,返回List中包含当前已生产的试听文件。
1332
1539
  *
1333
1540
  * Please refer to HUAWEI cloud API Explorer for details.
1334
1541
  *
1335
- * @summary 更新视频制作剧本
1336
- * @param {string} scriptId 剧本ID。
1337
- * @param {UpdateVideoScriptsReq} updateVideoScriptRequestBody 更新数字人请求。
1542
+ * @summary 获取TTS试听文件
1543
+ * @param {string} jobId 任务ID。
1544
+ * @param {string} [xRequestId] 请求requestId,用来标识一路请求,用于问题跟踪定位,建议使用uuId,若不携带,则后台自动生成
1338
1545
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1339
- * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1546
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。
1340
1547
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1341
- * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1548
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1342
1549
  * @param {*} [options] Override http request option.
1343
1550
  * @throws {RequiredError}
1344
1551
  */
1345
- updateVideoScript(updateVideoScriptRequest) {
1346
- const options = (0, exports.ParamCreater)().updateVideoScript(updateVideoScriptRequest);
1552
+ showTtsAuditionFile(showTtsAuditionFileRequest) {
1553
+ const options = (0, exports.ParamCreater)().showTtsAuditionFile(showTtsAuditionFileRequest);
1347
1554
  // @ts-ignore
1348
- options['responseHeaders'] = ['X-Request-Id'];
1555
+ options['responseHeaders'] = [''];
1349
1556
  return this.hcClient.sendRequest(options);
1350
1557
  }
1351
- }
1352
- exports.MetaStudioClient = MetaStudioClient;
1353
- const ParamCreater = function () {
1354
- return {
1355
- /**
1356
- * 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。
1357
- * * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。
1358
- * * > 资产类型是VIDEO时,通过system_properties来区分素材视频(MATERIAL_VIDEO)、名片视频(BUSSINESS_CARD_VIDEO)。
1359
- * * > MetaStudio平台生成的视频,system_properties带CREATED_BY_PLATFORM
1360
- *
1558
+ /**
1559
+ * 该接口用于创建视频驱动任务。
1560
+ *
1561
+ * Please refer to HUAWEI cloud API Explorer for details.
1562
+ *
1563
+ * @summary 创建视频驱动任务
1564
+ * @param {VideoMotionCaptureJobReq} createVideoMotionCaptureJobRequestBody 视频驱动任务创建请求。
1565
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1566
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')
1567
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1568
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1569
+ * @param {string} [xUserPrivilege] 测试用户判断。
1570
+ * @param {*} [options] Override http request option.
1571
+ * @throws {RequiredError}
1572
+ */
1573
+ createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest) {
1574
+ const options = (0, exports.ParamCreater)().createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest);
1575
+ // @ts-ignore
1576
+ options['responseHeaders'] = ['X-Request-Id'];
1577
+ return this.hcClient.sendRequest(options);
1578
+ }
1579
+ /**
1580
+ * 该接口用于控制数字人驱动。
1581
+ *
1582
+ * Please refer to HUAWEI cloud API Explorer for details.
1583
+ *
1584
+ * @summary 控制数字人驱动
1585
+ * @param {string} jobId 任务ID。
1586
+ * @param {ControlDigitalHumanLiveReq} executeVideoMotionCaptureCommandRequestBody 控制数字人驱动。
1587
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1588
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1589
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1590
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1591
+ * @param {*} [options] Override http request option.
1592
+ * @throws {RequiredError}
1593
+ */
1594
+ executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest) {
1595
+ const options = (0, exports.ParamCreater)().executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest);
1596
+ // @ts-ignore
1597
+ options['responseHeaders'] = ['X-Request-Id'];
1598
+ return this.hcClient.sendRequest(options);
1599
+ }
1600
+ /**
1601
+ * 该接口用于查询视频驱动任务列表。
1602
+ *
1603
+ * Please refer to HUAWEI cloud API Explorer for details.
1604
+ *
1605
+ * @summary 查询视频驱动任务列表
1606
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1607
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1608
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1609
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1610
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1611
+ * @param {number} [limit] 每页显示的条目数量。
1612
+ * @param {*} [options] Override http request option.
1613
+ * @throws {RequiredError}
1614
+ */
1615
+ listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest) {
1616
+ const options = (0, exports.ParamCreater)().listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest);
1617
+ // @ts-ignore
1618
+ options['responseHeaders'] = ['X-Request-Id'];
1619
+ return this.hcClient.sendRequest(options);
1620
+ }
1621
+ /**
1622
+ * 该接口用于查询视频驱动任务详情。
1623
+ *
1624
+ * Please refer to HUAWEI cloud API Explorer for details.
1625
+ *
1626
+ * @summary 查询视频驱动任务详情
1627
+ * @param {string} jobId 任务ID。
1628
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1629
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1630
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1631
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1632
+ * @param {*} [options] Override http request option.
1633
+ * @throws {RequiredError}
1634
+ */
1635
+ showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest) {
1636
+ const options = (0, exports.ParamCreater)().showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest);
1637
+ // @ts-ignore
1638
+ options['responseHeaders'] = ['X-Request-Id'];
1639
+ return this.hcClient.sendRequest(options);
1640
+ }
1641
+ /**
1642
+ * 该接口用于停止视频驱动任务。
1643
+ *
1644
+ * Please refer to HUAWEI cloud API Explorer for details.
1645
+ *
1646
+ * @summary 停止视频驱动任务
1647
+ * @param {string} jobId 任务ID。
1648
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1649
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1650
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1651
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1652
+ * @param {*} [options] Override http request option.
1653
+ * @throws {RequiredError}
1654
+ */
1655
+ stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest) {
1656
+ const options = (0, exports.ParamCreater)().stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest);
1657
+ // @ts-ignore
1658
+ options['responseHeaders'] = ['X-Request-Id'];
1659
+ return this.hcClient.sendRequest(options);
1660
+ }
1661
+ /**
1662
+ * 该接口用于创建视频制作剧本。
1663
+ *
1664
+ * Please refer to HUAWEI cloud API Explorer for details.
1665
+ *
1666
+ * @summary 创建视频制作剧本
1667
+ * @param {CreateVideoScriptsReq} createVideoScriptsRequestBody 创建视频制作脚本请求。
1668
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1669
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1670
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1671
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1672
+ * @param {*} [options] Override http request option.
1673
+ * @throws {RequiredError}
1674
+ */
1675
+ createVideoScripts(createVideoScriptsRequest) {
1676
+ const options = (0, exports.ParamCreater)().createVideoScripts(createVideoScriptsRequest);
1677
+ // @ts-ignore
1678
+ options['responseHeaders'] = ['X-Request-Id'];
1679
+ return this.hcClient.sendRequest(options);
1680
+ }
1681
+ /**
1682
+ * 该接口用于删除视频制作剧本。
1683
+ *
1684
+ * Please refer to HUAWEI cloud API Explorer for details.
1685
+ *
1686
+ * @summary 删除视频制作剧本
1687
+ * @param {string} scriptId 剧本ID。
1688
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1689
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1690
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1691
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1692
+ * @param {*} [options] Override http request option.
1693
+ * @throws {RequiredError}
1694
+ */
1695
+ deleteVideoScript(deleteVideoScriptRequest) {
1696
+ const options = (0, exports.ParamCreater)().deleteVideoScript(deleteVideoScriptRequest);
1697
+ // @ts-ignore
1698
+ options['responseHeaders'] = ['X-Request-Id'];
1699
+ return this.hcClient.sendRequest(options);
1700
+ }
1701
+ /**
1702
+ * 该接口用于查询视频制作剧本列表。
1703
+ *
1704
+ * Please refer to HUAWEI cloud API Explorer for details.
1705
+ *
1706
+ * @summary 查询视频制作剧本列表
1707
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1708
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1709
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1710
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1711
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1712
+ * @param {number} [limit] 每页显示的条目数量。
1713
+ * @param {string} [name] 按名称模糊查询。
1714
+ * @param {'VIDEO_DRAFT' | 'SYSTEM_VIDEO_TEMPLET'} [scriptCatalog] 剧本类型。默认查询VIDEO_DRAFT。 * VIDEO_DRAFT:视频草稿。 * SYSTEM_VIDEO_TEMPLET: 系统视频模板。
1715
+ * @param {'LANDSCAPE' | 'VERTICAL'} [viewMode] 横竖屏类型(内部参数,不对外开放)。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。
1716
+ * @param {*} [options] Override http request option.
1717
+ * @throws {RequiredError}
1718
+ */
1719
+ listVideoScripts(listVideoScriptsRequest) {
1720
+ const options = (0, exports.ParamCreater)().listVideoScripts(listVideoScriptsRequest);
1721
+ // @ts-ignore
1722
+ options['responseHeaders'] = ['X-Request-Id'];
1723
+ return this.hcClient.sendRequest(options);
1724
+ }
1725
+ /**
1726
+ * 该接口用于查询视频制作剧本详情。
1727
+ *
1728
+ * Please refer to HUAWEI cloud API Explorer for details.
1729
+ *
1730
+ * @summary 查询视频制作剧本详情
1731
+ * @param {string} scriptId 剧本ID。
1732
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1733
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1734
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1735
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ */
1739
+ showVideoScript(showVideoScriptRequest) {
1740
+ const options = (0, exports.ParamCreater)().showVideoScript(showVideoScriptRequest);
1741
+ // @ts-ignore
1742
+ options['responseHeaders'] = ['X-Request-Id'];
1743
+ return this.hcClient.sendRequest(options);
1744
+ }
1745
+ /**
1746
+ * 该接口用于更新视频制作剧本。
1747
+ *
1748
+ * Please refer to HUAWEI cloud API Explorer for details.
1749
+ *
1750
+ * @summary 更新视频制作剧本
1751
+ * @param {string} scriptId 剧本ID。
1752
+ * @param {UpdateVideoScriptsReq} updateVideoScriptRequestBody 更新数字人请求。
1753
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1754
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1755
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1756
+ * @param {string} [xAppUserId] 第三方用户ID。 > *不允许输入中文。
1757
+ * @param {*} [options] Override http request option.
1758
+ * @throws {RequiredError}
1759
+ */
1760
+ updateVideoScript(updateVideoScriptRequest) {
1761
+ const options = (0, exports.ParamCreater)().updateVideoScript(updateVideoScriptRequest);
1762
+ // @ts-ignore
1763
+ options['responseHeaders'] = ['X-Request-Id'];
1764
+ return this.hcClient.sendRequest(options);
1765
+ }
1766
+ }
1767
+ exports.MetaStudioClient = MetaStudioClient;
1768
+ const ParamCreater = function () {
1769
+ return {
1770
+ /**
1771
+ * 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。
1772
+ * * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。
1773
+ * * > 资产类型是VIDEO时,通过system_properties来区分素材视频(MATERIAL_VIDEO)、名片视频(BUSSINESS_CARD_VIDEO)。
1774
+ * * > MetaStudio平台生成的视频,system_properties带CREATED_BY_PLATFORM。
1775
+ *
1361
1776
  * Please refer to HUAWEI cloud API Explorer for details.
1362
1777
  */
1363
1778
  createDigitalAsset(createDigitalAssetRequest) {
@@ -4127,19 +4542,843 @@ const ParamCreater = function () {
4127
4542
  xAppUserId = updateInteractionRuleGroupRequest.xAppUserId;
4128
4543
  }
4129
4544
  else {
4130
- groupId = updateInteractionRuleGroupRequest['group_id'];
4131
- body = updateInteractionRuleGroupRequest['body'];
4132
- authorization = updateInteractionRuleGroupRequest['Authorization'];
4133
- xSdkDate = updateInteractionRuleGroupRequest['X-Sdk-Date'];
4134
- xProjectId = updateInteractionRuleGroupRequest['X-Project-Id'];
4135
- xAppUserId = updateInteractionRuleGroupRequest['X-App-UserId'];
4545
+ groupId = updateInteractionRuleGroupRequest['group_id'];
4546
+ body = updateInteractionRuleGroupRequest['body'];
4547
+ authorization = updateInteractionRuleGroupRequest['Authorization'];
4548
+ xSdkDate = updateInteractionRuleGroupRequest['X-Sdk-Date'];
4549
+ xProjectId = updateInteractionRuleGroupRequest['X-Project-Id'];
4550
+ xAppUserId = updateInteractionRuleGroupRequest['X-App-UserId'];
4551
+ }
4552
+ }
4553
+ if (groupId === null || groupId === undefined) {
4554
+ throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateInteractionRuleGroup.');
4555
+ }
4556
+ if (body === null || body === undefined) {
4557
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4558
+ }
4559
+ if (authorization !== undefined && authorization !== null) {
4560
+ localVarHeaderParameter['Authorization'] = String(authorization);
4561
+ }
4562
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4563
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4564
+ }
4565
+ if (xProjectId !== undefined && xProjectId !== null) {
4566
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4567
+ }
4568
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4569
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4570
+ }
4571
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4572
+ options.data = body !== undefined ? body : {};
4573
+ options.pathParams = { 'group_id': groupId, };
4574
+ options.headers = localVarHeaderParameter;
4575
+ return options;
4576
+ },
4577
+ /**
4578
+ * 该接口用于智能直播间信息。
4579
+ *
4580
+ * Please refer to HUAWEI cloud API Explorer for details.
4581
+ */
4582
+ updateSmartLiveRoom(updateSmartLiveRoomRequest) {
4583
+ const options = {
4584
+ method: "PUT",
4585
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}",
4586
+ contentType: "application/json",
4587
+ queryParams: {},
4588
+ pathParams: {},
4589
+ headers: {},
4590
+ data: {}
4591
+ };
4592
+ const localVarHeaderParameter = {};
4593
+ let body;
4594
+ let roomId;
4595
+ let authorization;
4596
+ let xSdkDate;
4597
+ let xProjectId;
4598
+ let xAppUserId;
4599
+ if (updateSmartLiveRoomRequest !== null && updateSmartLiveRoomRequest !== undefined) {
4600
+ if (updateSmartLiveRoomRequest instanceof UpdateSmartLiveRoomRequest_1.UpdateSmartLiveRoomRequest) {
4601
+ roomId = updateSmartLiveRoomRequest.roomId;
4602
+ body = updateSmartLiveRoomRequest.body;
4603
+ authorization = updateSmartLiveRoomRequest.authorization;
4604
+ xSdkDate = updateSmartLiveRoomRequest.xSdkDate;
4605
+ xProjectId = updateSmartLiveRoomRequest.xProjectId;
4606
+ xAppUserId = updateSmartLiveRoomRequest.xAppUserId;
4607
+ }
4608
+ else {
4609
+ roomId = updateSmartLiveRoomRequest['room_id'];
4610
+ body = updateSmartLiveRoomRequest['body'];
4611
+ authorization = updateSmartLiveRoomRequest['Authorization'];
4612
+ xSdkDate = updateSmartLiveRoomRequest['X-Sdk-Date'];
4613
+ xProjectId = updateSmartLiveRoomRequest['X-Project-Id'];
4614
+ xAppUserId = updateSmartLiveRoomRequest['X-App-UserId'];
4615
+ }
4616
+ }
4617
+ if (roomId === null || roomId === undefined) {
4618
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling updateSmartLiveRoom.');
4619
+ }
4620
+ if (body === null || body === undefined) {
4621
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4622
+ }
4623
+ if (authorization !== undefined && authorization !== null) {
4624
+ localVarHeaderParameter['Authorization'] = String(authorization);
4625
+ }
4626
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4627
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4628
+ }
4629
+ if (xProjectId !== undefined && xProjectId !== null) {
4630
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4631
+ }
4632
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4633
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4634
+ }
4635
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4636
+ options.data = body !== undefined ? body : {};
4637
+ options.pathParams = { 'room_id': roomId, };
4638
+ options.headers = localVarHeaderParameter;
4639
+ return options;
4640
+ },
4641
+ /**
4642
+ * 查询数字人风格列表
4643
+ *
4644
+ * Please refer to HUAWEI cloud API Explorer for details.
4645
+ */
4646
+ listStyles(listStylesRequest) {
4647
+ const options = {
4648
+ method: "GET",
4649
+ url: "/v1/{project_id}/styles",
4650
+ contentType: "application/json",
4651
+ queryParams: {},
4652
+ pathParams: {},
4653
+ headers: {}
4654
+ };
4655
+ const localVarHeaderParameter = {};
4656
+ const localVarQueryParameter = {};
4657
+ let authorization;
4658
+ let xSdkDate;
4659
+ let xProjectId;
4660
+ let xAppUserId;
4661
+ let offset;
4662
+ let limit;
4663
+ let state;
4664
+ let sortKey;
4665
+ let sortDir;
4666
+ let createUntil;
4667
+ let createSince;
4668
+ if (listStylesRequest !== null && listStylesRequest !== undefined) {
4669
+ if (listStylesRequest instanceof ListStylesRequest_1.ListStylesRequest) {
4670
+ authorization = listStylesRequest.authorization;
4671
+ xSdkDate = listStylesRequest.xSdkDate;
4672
+ xProjectId = listStylesRequest.xProjectId;
4673
+ xAppUserId = listStylesRequest.xAppUserId;
4674
+ offset = listStylesRequest.offset;
4675
+ limit = listStylesRequest.limit;
4676
+ state = listStylesRequest.state;
4677
+ sortKey = listStylesRequest.sortKey;
4678
+ sortDir = listStylesRequest.sortDir;
4679
+ createUntil = listStylesRequest.createUntil;
4680
+ createSince = listStylesRequest.createSince;
4681
+ }
4682
+ else {
4683
+ authorization = listStylesRequest['Authorization'];
4684
+ xSdkDate = listStylesRequest['X-Sdk-Date'];
4685
+ xProjectId = listStylesRequest['X-Project-Id'];
4686
+ xAppUserId = listStylesRequest['X-App-UserId'];
4687
+ offset = listStylesRequest['offset'];
4688
+ limit = listStylesRequest['limit'];
4689
+ state = listStylesRequest['state'];
4690
+ sortKey = listStylesRequest['sort_key'];
4691
+ sortDir = listStylesRequest['sort_dir'];
4692
+ createUntil = listStylesRequest['create_until'];
4693
+ createSince = listStylesRequest['create_since'];
4694
+ }
4695
+ }
4696
+ if (offset !== null && offset !== undefined) {
4697
+ localVarQueryParameter['offset'] = offset;
4698
+ }
4699
+ if (limit !== null && limit !== undefined) {
4700
+ localVarQueryParameter['limit'] = limit;
4701
+ }
4702
+ if (state !== null && state !== undefined) {
4703
+ localVarQueryParameter['state'] = state;
4704
+ }
4705
+ if (sortKey !== null && sortKey !== undefined) {
4706
+ localVarQueryParameter['sort_key'] = sortKey;
4707
+ }
4708
+ if (sortDir !== null && sortDir !== undefined) {
4709
+ localVarQueryParameter['sort_dir'] = sortDir;
4710
+ }
4711
+ if (createUntil !== null && createUntil !== undefined) {
4712
+ localVarQueryParameter['create_until'] = createUntil;
4713
+ }
4714
+ if (createSince !== null && createSince !== undefined) {
4715
+ localVarQueryParameter['create_since'] = createSince;
4716
+ }
4717
+ if (authorization !== undefined && authorization !== null) {
4718
+ localVarHeaderParameter['Authorization'] = String(authorization);
4719
+ }
4720
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4721
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4722
+ }
4723
+ if (xProjectId !== undefined && xProjectId !== null) {
4724
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4725
+ }
4726
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4727
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4728
+ }
4729
+ options.queryParams = localVarQueryParameter;
4730
+ options.headers = localVarHeaderParameter;
4731
+ return options;
4732
+ },
4733
+ /**
4734
+ * 提交训练任务,执行该接口后,任务会进入审核状态,审核完成后会等待训练。
4735
+ *
4736
+ * Please refer to HUAWEI cloud API Explorer for details.
4737
+ */
4738
+ commitVoiceTrainingJob(commitVoiceTrainingJobRequest) {
4739
+ const options = {
4740
+ method: "POST",
4741
+ url: "/v1/{project_id}/voice-training-manage/user/jobs/{job_id}",
4742
+ contentType: "application/json",
4743
+ queryParams: {},
4744
+ pathParams: {},
4745
+ headers: {}
4746
+ };
4747
+ const localVarHeaderParameter = {};
4748
+ let jobId;
4749
+ let authorization;
4750
+ let xSdkDate;
4751
+ let xProjectId;
4752
+ let xAppUserId;
4753
+ if (commitVoiceTrainingJobRequest !== null && commitVoiceTrainingJobRequest !== undefined) {
4754
+ if (commitVoiceTrainingJobRequest instanceof CommitVoiceTrainingJobRequest_1.CommitVoiceTrainingJobRequest) {
4755
+ jobId = commitVoiceTrainingJobRequest.jobId;
4756
+ authorization = commitVoiceTrainingJobRequest.authorization;
4757
+ xSdkDate = commitVoiceTrainingJobRequest.xSdkDate;
4758
+ xProjectId = commitVoiceTrainingJobRequest.xProjectId;
4759
+ xAppUserId = commitVoiceTrainingJobRequest.xAppUserId;
4760
+ }
4761
+ else {
4762
+ jobId = commitVoiceTrainingJobRequest['job_id'];
4763
+ authorization = commitVoiceTrainingJobRequest['Authorization'];
4764
+ xSdkDate = commitVoiceTrainingJobRequest['X-Sdk-Date'];
4765
+ xProjectId = commitVoiceTrainingJobRequest['X-Project-Id'];
4766
+ xAppUserId = commitVoiceTrainingJobRequest['X-App-UserId'];
4767
+ }
4768
+ }
4769
+ if (jobId === null || jobId === undefined) {
4770
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling commitVoiceTrainingJob.');
4771
+ }
4772
+ if (authorization !== undefined && authorization !== null) {
4773
+ localVarHeaderParameter['Authorization'] = String(authorization);
4774
+ }
4775
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4776
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4777
+ }
4778
+ if (xProjectId !== undefined && xProjectId !== null) {
4779
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4780
+ }
4781
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4782
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4783
+ }
4784
+ options.pathParams = { 'job_id': jobId, };
4785
+ options.headers = localVarHeaderParameter;
4786
+ return options;
4787
+ },
4788
+ /**
4789
+ * 确认在线录音结果。
4790
+ *
4791
+ * Please refer to HUAWEI cloud API Explorer for details.
4792
+ */
4793
+ confirmTrainingSegment(confirmTrainingSegmentRequest) {
4794
+ const options = {
4795
+ method: "POST",
4796
+ url: "/v1/{project_id}/voice-training-manage/user/training-segment",
4797
+ contentType: "application/json",
4798
+ queryParams: {},
4799
+ pathParams: {},
4800
+ headers: {}
4801
+ };
4802
+ const localVarHeaderParameter = {};
4803
+ const localVarQueryParameter = {};
4804
+ let jobId;
4805
+ let index;
4806
+ if (confirmTrainingSegmentRequest !== null && confirmTrainingSegmentRequest !== undefined) {
4807
+ if (confirmTrainingSegmentRequest instanceof ConfirmTrainingSegmentRequest_1.ConfirmTrainingSegmentRequest) {
4808
+ jobId = confirmTrainingSegmentRequest.jobId;
4809
+ index = confirmTrainingSegmentRequest.index;
4810
+ }
4811
+ else {
4812
+ jobId = confirmTrainingSegmentRequest['job_id'];
4813
+ index = confirmTrainingSegmentRequest['index'];
4814
+ }
4815
+ }
4816
+ if (jobId === null || jobId === undefined) {
4817
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling confirmTrainingSegment.');
4818
+ }
4819
+ if (jobId !== null && jobId !== undefined) {
4820
+ localVarQueryParameter['job_id'] = jobId;
4821
+ }
4822
+ if (index === null || index === undefined) {
4823
+ throw new RequiredError('index', 'Required parameter index was null or undefined when calling confirmTrainingSegment.');
4824
+ }
4825
+ if (index !== null && index !== undefined) {
4826
+ localVarQueryParameter['index'] = index;
4827
+ }
4828
+ options.queryParams = localVarQueryParameter;
4829
+ options.headers = localVarHeaderParameter;
4830
+ return options;
4831
+ },
4832
+ /**
4833
+ * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
4834
+ * 仅支持zip包方式上传语音文件:
4835
+ * * 语音文件打包成zip上传:上传的训练数据为一个zip格式压缩文件,其中包含一段wav格式的长音频文件。
4836
+ *
4837
+ * > * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
4838
+ *
4839
+ * Please refer to HUAWEI cloud API Explorer for details.
4840
+ */
4841
+ createTrainingAdvanceJob(createTrainingAdvanceJobRequest) {
4842
+ const options = {
4843
+ method: "POST",
4844
+ url: "/v1/{project_id}/voice-training-manage/user/advance-jobs",
4845
+ contentType: "application/json;charset=utf-8",
4846
+ queryParams: {},
4847
+ pathParams: {},
4848
+ headers: {},
4849
+ data: {}
4850
+ };
4851
+ const localVarHeaderParameter = {};
4852
+ let body;
4853
+ let xAppUserId;
4854
+ if (createTrainingAdvanceJobRequest !== null && createTrainingAdvanceJobRequest !== undefined) {
4855
+ if (createTrainingAdvanceJobRequest instanceof CreateTrainingAdvanceJobRequest_1.CreateTrainingAdvanceJobRequest) {
4856
+ body = createTrainingAdvanceJobRequest.body;
4857
+ xAppUserId = createTrainingAdvanceJobRequest.xAppUserId;
4858
+ }
4859
+ else {
4860
+ body = createTrainingAdvanceJobRequest['body'];
4861
+ xAppUserId = createTrainingAdvanceJobRequest['X-App-UserId'];
4862
+ }
4863
+ }
4864
+ if (body === null || body === undefined) {
4865
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4866
+ }
4867
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4868
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4869
+ }
4870
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=utf-8';
4871
+ options.data = body !== undefined ? body : {};
4872
+ options.headers = localVarHeaderParameter;
4873
+ return options;
4874
+ },
4875
+ /**
4876
+ * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
4877
+ * 支持2种方式上传语音文件:
4878
+ * * 语音文件和文本文件打包成zip上传:语音文件已经切分成20个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~19.wav;文本文件命名规则:0.txt~19.txt。
4879
+ * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
4880
+ *
4881
+ * > * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
4882
+ *
4883
+ * Please refer to HUAWEI cloud API Explorer for details.
4884
+ */
4885
+ createTrainingBasicJob(createTrainingBasicJobRequest) {
4886
+ const options = {
4887
+ method: "POST",
4888
+ url: "/v1/{project_id}/voice-training-manage/user/basic-jobs",
4889
+ contentType: "application/json;charset=utf-8",
4890
+ queryParams: {},
4891
+ pathParams: {},
4892
+ headers: {},
4893
+ data: {}
4894
+ };
4895
+ const localVarHeaderParameter = {};
4896
+ let body;
4897
+ let authorization;
4898
+ let xSdkDate;
4899
+ let xProjectId;
4900
+ let xAppUserId;
4901
+ if (createTrainingBasicJobRequest !== null && createTrainingBasicJobRequest !== undefined) {
4902
+ if (createTrainingBasicJobRequest instanceof CreateTrainingBasicJobRequest_1.CreateTrainingBasicJobRequest) {
4903
+ body = createTrainingBasicJobRequest.body;
4904
+ authorization = createTrainingBasicJobRequest.authorization;
4905
+ xSdkDate = createTrainingBasicJobRequest.xSdkDate;
4906
+ xProjectId = createTrainingBasicJobRequest.xProjectId;
4907
+ xAppUserId = createTrainingBasicJobRequest.xAppUserId;
4908
+ }
4909
+ else {
4910
+ body = createTrainingBasicJobRequest['body'];
4911
+ authorization = createTrainingBasicJobRequest['Authorization'];
4912
+ xSdkDate = createTrainingBasicJobRequest['X-Sdk-Date'];
4913
+ xProjectId = createTrainingBasicJobRequest['X-Project-Id'];
4914
+ xAppUserId = createTrainingBasicJobRequest['X-App-UserId'];
4915
+ }
4916
+ }
4917
+ if (body === null || body === undefined) {
4918
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4919
+ }
4920
+ if (authorization !== undefined && authorization !== null) {
4921
+ localVarHeaderParameter['Authorization'] = String(authorization);
4922
+ }
4923
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4924
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4925
+ }
4926
+ if (xProjectId !== undefined && xProjectId !== null) {
4927
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4928
+ }
4929
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4930
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4931
+ }
4932
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=utf-8';
4933
+ options.data = body !== undefined ? body : {};
4934
+ options.headers = localVarHeaderParameter;
4935
+ return options;
4936
+ },
4937
+ /**
4938
+ * 用户创建语音训练基础版任务,该接口会返回一个obs上传地址,用于上传语音文件。
4939
+ * 支持2种方式上传语音文件:
4940
+ * * 语音文件和文本文件打包成zip上传:语音文件已经切分成100个wav文件,每个语音文件对应一个txt文本文件,所有文件打包成zip文件。语音文件命名规则:0.wav~99.wav;文本文件命名规则:0.txt~99.txt。
4941
+ * * 语音文件和文本文件逐句上传:每次上传一句语料的语音文件和文本文件,再调用“确认在线录音结果”接口确认语音和文本内容是否一致。确认成功后再上传和确认下一句。
4942
+ *
4943
+ * > * 文件上传后,调用“提交语音训练任务”接口,启动审核和训练。
4944
+ *
4945
+ * Please refer to HUAWEI cloud API Explorer for details.
4946
+ */
4947
+ createTrainingMiddleJob(createTrainingMiddleJobRequest) {
4948
+ const options = {
4949
+ method: "POST",
4950
+ url: "/v1/{project_id}/voice-training-manage/user/middle-jobs",
4951
+ contentType: "application/json;charset=utf-8",
4952
+ queryParams: {},
4953
+ pathParams: {},
4954
+ headers: {},
4955
+ data: {}
4956
+ };
4957
+ const localVarHeaderParameter = {};
4958
+ let body;
4959
+ let authorization;
4960
+ let xSdkDate;
4961
+ let xProjectId;
4962
+ let xAppUserId;
4963
+ if (createTrainingMiddleJobRequest !== null && createTrainingMiddleJobRequest !== undefined) {
4964
+ if (createTrainingMiddleJobRequest instanceof CreateTrainingMiddleJobRequest_1.CreateTrainingMiddleJobRequest) {
4965
+ body = createTrainingMiddleJobRequest.body;
4966
+ authorization = createTrainingMiddleJobRequest.authorization;
4967
+ xSdkDate = createTrainingMiddleJobRequest.xSdkDate;
4968
+ xProjectId = createTrainingMiddleJobRequest.xProjectId;
4969
+ xAppUserId = createTrainingMiddleJobRequest.xAppUserId;
4970
+ }
4971
+ else {
4972
+ body = createTrainingMiddleJobRequest['body'];
4973
+ authorization = createTrainingMiddleJobRequest['Authorization'];
4974
+ xSdkDate = createTrainingMiddleJobRequest['X-Sdk-Date'];
4975
+ xProjectId = createTrainingMiddleJobRequest['X-Project-Id'];
4976
+ xAppUserId = createTrainingMiddleJobRequest['X-App-UserId'];
4977
+ }
4978
+ }
4979
+ if (body === null || body === undefined) {
4980
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4981
+ }
4982
+ if (authorization !== undefined && authorization !== null) {
4983
+ localVarHeaderParameter['Authorization'] = String(authorization);
4984
+ }
4985
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4986
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4987
+ }
4988
+ if (xProjectId !== undefined && xProjectId !== null) {
4989
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4990
+ }
4991
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4992
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4993
+ }
4994
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=utf-8';
4995
+ options.data = body !== undefined ? body : {};
4996
+ options.headers = localVarHeaderParameter;
4997
+ return options;
4998
+ },
4999
+ /**
5000
+ * 删除语音训练任务
5001
+ *
5002
+ * Please refer to HUAWEI cloud API Explorer for details.
5003
+ */
5004
+ deleteVoiceTrainingJob(deleteVoiceTrainingJobRequest) {
5005
+ const options = {
5006
+ method: "DELETE",
5007
+ url: "/v1/{project_id}/voice-training-manage/user/jobs/{job_id}",
5008
+ contentType: "application/json",
5009
+ queryParams: {},
5010
+ pathParams: {},
5011
+ headers: {}
5012
+ };
5013
+ const localVarHeaderParameter = {};
5014
+ let jobId;
5015
+ let authorization;
5016
+ let xSdkDate;
5017
+ let xProjectId;
5018
+ let xAppUserId;
5019
+ if (deleteVoiceTrainingJobRequest !== null && deleteVoiceTrainingJobRequest !== undefined) {
5020
+ if (deleteVoiceTrainingJobRequest instanceof DeleteVoiceTrainingJobRequest_1.DeleteVoiceTrainingJobRequest) {
5021
+ jobId = deleteVoiceTrainingJobRequest.jobId;
5022
+ authorization = deleteVoiceTrainingJobRequest.authorization;
5023
+ xSdkDate = deleteVoiceTrainingJobRequest.xSdkDate;
5024
+ xProjectId = deleteVoiceTrainingJobRequest.xProjectId;
5025
+ xAppUserId = deleteVoiceTrainingJobRequest.xAppUserId;
5026
+ }
5027
+ else {
5028
+ jobId = deleteVoiceTrainingJobRequest['job_id'];
5029
+ authorization = deleteVoiceTrainingJobRequest['Authorization'];
5030
+ xSdkDate = deleteVoiceTrainingJobRequest['X-Sdk-Date'];
5031
+ xProjectId = deleteVoiceTrainingJobRequest['X-Project-Id'];
5032
+ xAppUserId = deleteVoiceTrainingJobRequest['X-App-UserId'];
5033
+ }
5034
+ }
5035
+ if (jobId === null || jobId === undefined) {
5036
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling deleteVoiceTrainingJob.');
5037
+ }
5038
+ if (authorization !== undefined && authorization !== null) {
5039
+ localVarHeaderParameter['Authorization'] = String(authorization);
5040
+ }
5041
+ if (xSdkDate !== undefined && xSdkDate !== null) {
5042
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
5043
+ }
5044
+ if (xProjectId !== undefined && xProjectId !== null) {
5045
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
5046
+ }
5047
+ if (xAppUserId !== undefined && xAppUserId !== null) {
5048
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
5049
+ }
5050
+ options.pathParams = { 'job_id': jobId, };
5051
+ options.headers = localVarHeaderParameter;
5052
+ return options;
5053
+ },
5054
+ /**
5055
+ * 查询语音训练任务列表
5056
+ *
5057
+ * Please refer to HUAWEI cloud API Explorer for details.
5058
+ */
5059
+ listVoiceTrainingJob(listVoiceTrainingJobRequest) {
5060
+ const options = {
5061
+ method: "GET",
5062
+ url: "/v1/{project_id}/voice-training-manage/user/jobs",
5063
+ contentType: "application/json",
5064
+ queryParams: {},
5065
+ pathParams: {},
5066
+ headers: {}
5067
+ };
5068
+ const localVarHeaderParameter = {};
5069
+ const localVarQueryParameter = {};
5070
+ let offset;
5071
+ let limit;
5072
+ let createUntil;
5073
+ let createSince;
5074
+ let xAppUserId;
5075
+ let state;
5076
+ let jobId;
5077
+ let voiceName;
5078
+ let tag;
5079
+ if (listVoiceTrainingJobRequest !== null && listVoiceTrainingJobRequest !== undefined) {
5080
+ if (listVoiceTrainingJobRequest instanceof ListVoiceTrainingJobRequest_1.ListVoiceTrainingJobRequest) {
5081
+ offset = listVoiceTrainingJobRequest.offset;
5082
+ limit = listVoiceTrainingJobRequest.limit;
5083
+ createUntil = listVoiceTrainingJobRequest.createUntil;
5084
+ createSince = listVoiceTrainingJobRequest.createSince;
5085
+ xAppUserId = listVoiceTrainingJobRequest.xAppUserId;
5086
+ state = listVoiceTrainingJobRequest.state;
5087
+ jobId = listVoiceTrainingJobRequest.jobId;
5088
+ voiceName = listVoiceTrainingJobRequest.voiceName;
5089
+ tag = listVoiceTrainingJobRequest.tag;
5090
+ }
5091
+ else {
5092
+ offset = listVoiceTrainingJobRequest['offset'];
5093
+ limit = listVoiceTrainingJobRequest['limit'];
5094
+ createUntil = listVoiceTrainingJobRequest['create_until'];
5095
+ createSince = listVoiceTrainingJobRequest['create_since'];
5096
+ xAppUserId = listVoiceTrainingJobRequest['X-App-UserId'];
5097
+ state = listVoiceTrainingJobRequest['state'];
5098
+ jobId = listVoiceTrainingJobRequest['job_id'];
5099
+ voiceName = listVoiceTrainingJobRequest['voice_name'];
5100
+ tag = listVoiceTrainingJobRequest['tag'];
5101
+ }
5102
+ }
5103
+ if (offset !== null && offset !== undefined) {
5104
+ localVarQueryParameter['offset'] = offset;
5105
+ }
5106
+ if (limit !== null && limit !== undefined) {
5107
+ localVarQueryParameter['limit'] = limit;
5108
+ }
5109
+ if (createUntil !== null && createUntil !== undefined) {
5110
+ localVarQueryParameter['create_until'] = createUntil;
5111
+ }
5112
+ if (createSince !== null && createSince !== undefined) {
5113
+ localVarQueryParameter['create_since'] = createSince;
5114
+ }
5115
+ if (state !== null && state !== undefined) {
5116
+ localVarQueryParameter['state'] = state;
5117
+ }
5118
+ if (jobId !== null && jobId !== undefined) {
5119
+ localVarQueryParameter['job_id'] = jobId;
5120
+ }
5121
+ if (voiceName !== null && voiceName !== undefined) {
5122
+ localVarQueryParameter['voice_name'] = voiceName;
5123
+ }
5124
+ if (tag !== null && tag !== undefined) {
5125
+ localVarQueryParameter['tag'] = tag;
5126
+ }
5127
+ if (xAppUserId !== undefined && xAppUserId !== null) {
5128
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
5129
+ }
5130
+ options.queryParams = localVarQueryParameter;
5131
+ options.headers = localVarHeaderParameter;
5132
+ return options;
5133
+ },
5134
+ /**
5135
+ * 获取语音训练任务审核结果。
5136
+ *
5137
+ * Please refer to HUAWEI cloud API Explorer for details.
5138
+ */
5139
+ showJobAuditResult(showJobAuditResultRequest) {
5140
+ const options = {
5141
+ method: "GET",
5142
+ url: "/v1/{project_id}/voice-training-manage/user/jobs/{job_id}/audit-result",
5143
+ contentType: "application/json",
5144
+ queryParams: {},
5145
+ pathParams: {},
5146
+ headers: {}
5147
+ };
5148
+ const localVarHeaderParameter = {};
5149
+ let jobId;
5150
+ if (showJobAuditResultRequest !== null && showJobAuditResultRequest !== undefined) {
5151
+ if (showJobAuditResultRequest instanceof ShowJobAuditResultRequest_1.ShowJobAuditResultRequest) {
5152
+ jobId = showJobAuditResultRequest.jobId;
5153
+ }
5154
+ else {
5155
+ jobId = showJobAuditResultRequest['job_id'];
5156
+ }
5157
+ }
5158
+ if (jobId === null || jobId === undefined) {
5159
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobAuditResult.');
5160
+ }
5161
+ options.pathParams = { 'job_id': jobId, };
5162
+ options.headers = localVarHeaderParameter;
5163
+ return options;
5164
+ },
5165
+ /**
5166
+ * 获取语音文件上传地址
5167
+ *
5168
+ * Please refer to HUAWEI cloud API Explorer for details.
5169
+ */
5170
+ showJobUploadingAddress(showJobUploadingAddressRequest) {
5171
+ const options = {
5172
+ method: "GET",
5173
+ url: "/v1/{project_id}/voice-training-manage/user/jobs/{job_id}/uploading-address-url",
5174
+ contentType: "application/json",
5175
+ queryParams: {},
5176
+ pathParams: {},
5177
+ headers: {}
5178
+ };
5179
+ const localVarHeaderParameter = {};
5180
+ let jobId;
5181
+ if (showJobUploadingAddressRequest !== null && showJobUploadingAddressRequest !== undefined) {
5182
+ if (showJobUploadingAddressRequest instanceof ShowJobUploadingAddressRequest_1.ShowJobUploadingAddressRequest) {
5183
+ jobId = showJobUploadingAddressRequest.jobId;
5184
+ }
5185
+ else {
5186
+ jobId = showJobUploadingAddressRequest['job_id'];
5187
+ }
5188
+ }
5189
+ if (jobId === null || jobId === undefined) {
5190
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobUploadingAddress.');
5191
+ }
5192
+ options.pathParams = { 'job_id': jobId, };
5193
+ options.headers = localVarHeaderParameter;
5194
+ return options;
5195
+ },
5196
+ /**
5197
+ * 获取在线录音确认结果。
5198
+ *
5199
+ * Please refer to HUAWEI cloud API Explorer for details.
5200
+ */
5201
+ showTrainingSegmentInfo(showTrainingSegmentInfoRequest) {
5202
+ const options = {
5203
+ method: "GET",
5204
+ url: "/v1/{project_id}/voice-training-manage/user/training-segment",
5205
+ contentType: "application/json",
5206
+ queryParams: {},
5207
+ pathParams: {},
5208
+ headers: {}
5209
+ };
5210
+ const localVarHeaderParameter = {};
5211
+ const localVarQueryParameter = {};
5212
+ let jobId;
5213
+ if (showTrainingSegmentInfoRequest !== null && showTrainingSegmentInfoRequest !== undefined) {
5214
+ if (showTrainingSegmentInfoRequest instanceof ShowTrainingSegmentInfoRequest_1.ShowTrainingSegmentInfoRequest) {
5215
+ jobId = showTrainingSegmentInfoRequest.jobId;
5216
+ }
5217
+ else {
5218
+ jobId = showTrainingSegmentInfoRequest['job_id'];
5219
+ }
5220
+ }
5221
+ if (jobId === null || jobId === undefined) {
5222
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showTrainingSegmentInfo.');
5223
+ }
5224
+ if (jobId !== null && jobId !== undefined) {
5225
+ localVarQueryParameter['job_id'] = jobId;
5226
+ }
5227
+ options.queryParams = localVarQueryParameter;
5228
+ options.headers = localVarHeaderParameter;
5229
+ return options;
5230
+ },
5231
+ /**
5232
+ * 查询语音训练任务详情
5233
+ *
5234
+ * Please refer to HUAWEI cloud API Explorer for details.
5235
+ */
5236
+ showVoiceTrainingJob(showVoiceTrainingJobRequest) {
5237
+ const options = {
5238
+ method: "GET",
5239
+ url: "/v1/{project_id}/voice-training-manage/user/jobs/{job_id}",
5240
+ contentType: "application/json",
5241
+ queryParams: {},
5242
+ pathParams: {},
5243
+ headers: {}
5244
+ };
5245
+ const localVarHeaderParameter = {};
5246
+ let jobId;
5247
+ let authorization;
5248
+ let xSdkDate;
5249
+ let xProjectId;
5250
+ let xAppUserId;
5251
+ if (showVoiceTrainingJobRequest !== null && showVoiceTrainingJobRequest !== undefined) {
5252
+ if (showVoiceTrainingJobRequest instanceof ShowVoiceTrainingJobRequest_1.ShowVoiceTrainingJobRequest) {
5253
+ jobId = showVoiceTrainingJobRequest.jobId;
5254
+ authorization = showVoiceTrainingJobRequest.authorization;
5255
+ xSdkDate = showVoiceTrainingJobRequest.xSdkDate;
5256
+ xProjectId = showVoiceTrainingJobRequest.xProjectId;
5257
+ xAppUserId = showVoiceTrainingJobRequest.xAppUserId;
5258
+ }
5259
+ else {
5260
+ jobId = showVoiceTrainingJobRequest['job_id'];
5261
+ authorization = showVoiceTrainingJobRequest['Authorization'];
5262
+ xSdkDate = showVoiceTrainingJobRequest['X-Sdk-Date'];
5263
+ xProjectId = showVoiceTrainingJobRequest['X-Project-Id'];
5264
+ xAppUserId = showVoiceTrainingJobRequest['X-App-UserId'];
5265
+ }
5266
+ }
5267
+ if (jobId === null || jobId === undefined) {
5268
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showVoiceTrainingJob.');
5269
+ }
5270
+ if (authorization !== undefined && authorization !== null) {
5271
+ localVarHeaderParameter['Authorization'] = String(authorization);
5272
+ }
5273
+ if (xSdkDate !== undefined && xSdkDate !== null) {
5274
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
5275
+ }
5276
+ if (xProjectId !== undefined && xProjectId !== null) {
5277
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
5278
+ }
5279
+ if (xAppUserId !== undefined && xAppUserId !== null) {
5280
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
5281
+ }
5282
+ options.pathParams = { 'job_id': jobId, };
5283
+ options.headers = localVarHeaderParameter;
5284
+ return options;
5285
+ },
5286
+ /**
5287
+ * 该接口用于创建分身数字人模型训练任务。
5288
+ *
5289
+ * Please refer to HUAWEI cloud API Explorer for details.
5290
+ */
5291
+ create2dModelTrainingJob(create2dModelTrainingJobRequest) {
5292
+ const options = {
5293
+ method: "POST",
5294
+ url: "/v1/{project_id}/digital-human-training-manage/user/jobs",
5295
+ contentType: "application/json;charset=utf-8",
5296
+ queryParams: {},
5297
+ pathParams: {},
5298
+ headers: {},
5299
+ data: {}
5300
+ };
5301
+ const localVarHeaderParameter = {};
5302
+ let body;
5303
+ let authorization;
5304
+ let xSdkDate;
5305
+ let xProjectId;
5306
+ let xAppUserId;
5307
+ if (create2dModelTrainingJobRequest !== null && create2dModelTrainingJobRequest !== undefined) {
5308
+ if (create2dModelTrainingJobRequest instanceof Create2dModelTrainingJobRequest_1.Create2dModelTrainingJobRequest) {
5309
+ body = create2dModelTrainingJobRequest.body;
5310
+ authorization = create2dModelTrainingJobRequest.authorization;
5311
+ xSdkDate = create2dModelTrainingJobRequest.xSdkDate;
5312
+ xProjectId = create2dModelTrainingJobRequest.xProjectId;
5313
+ xAppUserId = create2dModelTrainingJobRequest.xAppUserId;
5314
+ }
5315
+ else {
5316
+ body = create2dModelTrainingJobRequest['body'];
5317
+ authorization = create2dModelTrainingJobRequest['Authorization'];
5318
+ xSdkDate = create2dModelTrainingJobRequest['X-Sdk-Date'];
5319
+ xProjectId = create2dModelTrainingJobRequest['X-Project-Id'];
5320
+ xAppUserId = create2dModelTrainingJobRequest['X-App-UserId'];
5321
+ }
5322
+ }
5323
+ if (body === null || body === undefined) {
5324
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5325
+ }
5326
+ if (authorization !== undefined && authorization !== null) {
5327
+ localVarHeaderParameter['Authorization'] = String(authorization);
5328
+ }
5329
+ if (xSdkDate !== undefined && xSdkDate !== null) {
5330
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
5331
+ }
5332
+ if (xProjectId !== undefined && xProjectId !== null) {
5333
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
5334
+ }
5335
+ if (xAppUserId !== undefined && xAppUserId !== null) {
5336
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
5337
+ }
5338
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=utf-8';
5339
+ options.data = body !== undefined ? body : {};
5340
+ options.headers = localVarHeaderParameter;
5341
+ return options;
5342
+ },
5343
+ /**
5344
+ * 该接口用于删除分身数字人模型训练任务。同时需要删除训练任务相关的训练视频、身份证照片、授权文件、模型资产等。
5345
+ * > * 该接口应当在任务处于以下状态时调用:WAIT_FILE_UPLOAD、AUTO_VERIFY_FAILED、MANUAL_VERIFYING、MANUAL_VERIFY_FAILED、TRAINING_DATA_PREPROCESS_FAILED、TRAIN_FAILED、INFERENCE_DATA_PREPROCESS_FAILED、JOB_SUCCESS、WAIT_USER_CONFIRM、JOB_REJECT、JOB_FINISH
5346
+ *
5347
+ * Please refer to HUAWEI cloud API Explorer for details.
5348
+ */
5349
+ delete2dModelTrainingJob(delete2dModelTrainingJobRequest) {
5350
+ const options = {
5351
+ method: "DELETE",
5352
+ url: "/v1/{project_id}/digital-human-training-manage/user/jobs/{job_id}",
5353
+ contentType: "application/json",
5354
+ queryParams: {},
5355
+ pathParams: {},
5356
+ headers: {}
5357
+ };
5358
+ const localVarHeaderParameter = {};
5359
+ let jobId;
5360
+ let authorization;
5361
+ let xSdkDate;
5362
+ let xProjectId;
5363
+ let xAppUserId;
5364
+ if (delete2dModelTrainingJobRequest !== null && delete2dModelTrainingJobRequest !== undefined) {
5365
+ if (delete2dModelTrainingJobRequest instanceof Delete2dModelTrainingJobRequest_1.Delete2dModelTrainingJobRequest) {
5366
+ jobId = delete2dModelTrainingJobRequest.jobId;
5367
+ authorization = delete2dModelTrainingJobRequest.authorization;
5368
+ xSdkDate = delete2dModelTrainingJobRequest.xSdkDate;
5369
+ xProjectId = delete2dModelTrainingJobRequest.xProjectId;
5370
+ xAppUserId = delete2dModelTrainingJobRequest.xAppUserId;
5371
+ }
5372
+ else {
5373
+ jobId = delete2dModelTrainingJobRequest['job_id'];
5374
+ authorization = delete2dModelTrainingJobRequest['Authorization'];
5375
+ xSdkDate = delete2dModelTrainingJobRequest['X-Sdk-Date'];
5376
+ xProjectId = delete2dModelTrainingJobRequest['X-Project-Id'];
5377
+ xAppUserId = delete2dModelTrainingJobRequest['X-App-UserId'];
4136
5378
  }
4137
5379
  }
4138
- if (groupId === null || groupId === undefined) {
4139
- throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateInteractionRuleGroup.');
4140
- }
4141
- if (body === null || body === undefined) {
4142
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5380
+ if (jobId === null || jobId === undefined) {
5381
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling delete2dModelTrainingJob.');
4143
5382
  }
4144
5383
  if (authorization !== undefined && authorization !== null) {
4145
5384
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -4153,22 +5392,20 @@ const ParamCreater = function () {
4153
5392
  if (xAppUserId !== undefined && xAppUserId !== null) {
4154
5393
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4155
5394
  }
4156
- localVarHeaderParameter['Content-Type'] = 'application/json';
4157
- options.data = body !== undefined ? body : {};
4158
- options.pathParams = { 'group_id': groupId, };
5395
+ options.pathParams = { 'job_id': jobId, };
4159
5396
  options.headers = localVarHeaderParameter;
4160
5397
  return options;
4161
5398
  },
4162
5399
  /**
4163
- * 该接口用于智能直播间信息。
5400
+ * 该接口用于租户执行分身数字人模型训练任务命令,如提交训练审核等。
4164
5401
  *
4165
5402
  * Please refer to HUAWEI cloud API Explorer for details.
4166
5403
  */
4167
- updateSmartLiveRoom(updateSmartLiveRoomRequest) {
5404
+ execute2dModelTrainingCommandByUser(execute2dModelTrainingCommandByUserRequest) {
4168
5405
  const options = {
4169
- method: "PUT",
4170
- url: "/v1/{project_id}/smart-live-rooms/{room_id}",
4171
- contentType: "application/json",
5406
+ method: "POST",
5407
+ url: "/v1/{project_id}/digital-human-training-manage/user/jobs/{job_id}/command",
5408
+ contentType: "application/json;charset=utf-8",
4172
5409
  queryParams: {},
4173
5410
  pathParams: {},
4174
5411
  headers: {},
@@ -4176,31 +5413,31 @@ const ParamCreater = function () {
4176
5413
  };
4177
5414
  const localVarHeaderParameter = {};
4178
5415
  let body;
4179
- let roomId;
5416
+ let jobId;
4180
5417
  let authorization;
4181
5418
  let xSdkDate;
4182
5419
  let xProjectId;
4183
5420
  let xAppUserId;
4184
- if (updateSmartLiveRoomRequest !== null && updateSmartLiveRoomRequest !== undefined) {
4185
- if (updateSmartLiveRoomRequest instanceof UpdateSmartLiveRoomRequest_1.UpdateSmartLiveRoomRequest) {
4186
- roomId = updateSmartLiveRoomRequest.roomId;
4187
- body = updateSmartLiveRoomRequest.body;
4188
- authorization = updateSmartLiveRoomRequest.authorization;
4189
- xSdkDate = updateSmartLiveRoomRequest.xSdkDate;
4190
- xProjectId = updateSmartLiveRoomRequest.xProjectId;
4191
- xAppUserId = updateSmartLiveRoomRequest.xAppUserId;
5421
+ if (execute2dModelTrainingCommandByUserRequest !== null && execute2dModelTrainingCommandByUserRequest !== undefined) {
5422
+ if (execute2dModelTrainingCommandByUserRequest instanceof Execute2dModelTrainingCommandByUserRequest_1.Execute2dModelTrainingCommandByUserRequest) {
5423
+ jobId = execute2dModelTrainingCommandByUserRequest.jobId;
5424
+ body = execute2dModelTrainingCommandByUserRequest.body;
5425
+ authorization = execute2dModelTrainingCommandByUserRequest.authorization;
5426
+ xSdkDate = execute2dModelTrainingCommandByUserRequest.xSdkDate;
5427
+ xProjectId = execute2dModelTrainingCommandByUserRequest.xProjectId;
5428
+ xAppUserId = execute2dModelTrainingCommandByUserRequest.xAppUserId;
4192
5429
  }
4193
5430
  else {
4194
- roomId = updateSmartLiveRoomRequest['room_id'];
4195
- body = updateSmartLiveRoomRequest['body'];
4196
- authorization = updateSmartLiveRoomRequest['Authorization'];
4197
- xSdkDate = updateSmartLiveRoomRequest['X-Sdk-Date'];
4198
- xProjectId = updateSmartLiveRoomRequest['X-Project-Id'];
4199
- xAppUserId = updateSmartLiveRoomRequest['X-App-UserId'];
5431
+ jobId = execute2dModelTrainingCommandByUserRequest['job_id'];
5432
+ body = execute2dModelTrainingCommandByUserRequest['body'];
5433
+ authorization = execute2dModelTrainingCommandByUserRequest['Authorization'];
5434
+ xSdkDate = execute2dModelTrainingCommandByUserRequest['X-Sdk-Date'];
5435
+ xProjectId = execute2dModelTrainingCommandByUserRequest['X-Project-Id'];
5436
+ xAppUserId = execute2dModelTrainingCommandByUserRequest['X-App-UserId'];
4200
5437
  }
4201
5438
  }
4202
- if (roomId === null || roomId === undefined) {
4203
- throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling updateSmartLiveRoom.');
5439
+ if (jobId === null || jobId === undefined) {
5440
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling execute2dModelTrainingCommandByUser.');
4204
5441
  }
4205
5442
  if (body === null || body === undefined) {
4206
5443
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -4217,21 +5454,21 @@ const ParamCreater = function () {
4217
5454
  if (xAppUserId !== undefined && xAppUserId !== null) {
4218
5455
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4219
5456
  }
4220
- localVarHeaderParameter['Content-Type'] = 'application/json';
5457
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=utf-8';
4221
5458
  options.data = body !== undefined ? body : {};
4222
- options.pathParams = { 'room_id': roomId, };
5459
+ options.pathParams = { 'job_id': jobId, };
4223
5460
  options.headers = localVarHeaderParameter;
4224
5461
  return options;
4225
5462
  },
4226
5463
  /**
4227
- * 查询数字人风格列表
5464
+ * 该接口用于查询分身数字人模型训练任务列表。
4228
5465
  *
4229
5466
  * Please refer to HUAWEI cloud API Explorer for details.
4230
5467
  */
4231
- listStyles(listStylesRequest) {
5468
+ list2dModelTrainingJob(list2dModelTrainingJobRequest) {
4232
5469
  const options = {
4233
5470
  method: "GET",
4234
- url: "/v1/{project_id}/styles",
5471
+ url: "/v1/{project_id}/digital-human-training-manage/user/jobs",
4235
5472
  contentType: "application/json",
4236
5473
  queryParams: {},
4237
5474
  pathParams: {},
@@ -4250,32 +5487,44 @@ const ParamCreater = function () {
4250
5487
  let sortDir;
4251
5488
  let createUntil;
4252
5489
  let createSince;
4253
- if (listStylesRequest !== null && listStylesRequest !== undefined) {
4254
- if (listStylesRequest instanceof ListStylesRequest_1.ListStylesRequest) {
4255
- authorization = listStylesRequest.authorization;
4256
- xSdkDate = listStylesRequest.xSdkDate;
4257
- xProjectId = listStylesRequest.xProjectId;
4258
- xAppUserId = listStylesRequest.xAppUserId;
4259
- offset = listStylesRequest.offset;
4260
- limit = listStylesRequest.limit;
4261
- state = listStylesRequest.state;
4262
- sortKey = listStylesRequest.sortKey;
4263
- sortDir = listStylesRequest.sortDir;
4264
- createUntil = listStylesRequest.createUntil;
4265
- createSince = listStylesRequest.createSince;
5490
+ let batchName;
5491
+ let tag;
5492
+ let jobId;
5493
+ let name;
5494
+ if (list2dModelTrainingJobRequest !== null && list2dModelTrainingJobRequest !== undefined) {
5495
+ if (list2dModelTrainingJobRequest instanceof List2dModelTrainingJobRequest_1.List2dModelTrainingJobRequest) {
5496
+ authorization = list2dModelTrainingJobRequest.authorization;
5497
+ xSdkDate = list2dModelTrainingJobRequest.xSdkDate;
5498
+ xProjectId = list2dModelTrainingJobRequest.xProjectId;
5499
+ xAppUserId = list2dModelTrainingJobRequest.xAppUserId;
5500
+ offset = list2dModelTrainingJobRequest.offset;
5501
+ limit = list2dModelTrainingJobRequest.limit;
5502
+ state = list2dModelTrainingJobRequest.state;
5503
+ sortKey = list2dModelTrainingJobRequest.sortKey;
5504
+ sortDir = list2dModelTrainingJobRequest.sortDir;
5505
+ createUntil = list2dModelTrainingJobRequest.createUntil;
5506
+ createSince = list2dModelTrainingJobRequest.createSince;
5507
+ batchName = list2dModelTrainingJobRequest.batchName;
5508
+ tag = list2dModelTrainingJobRequest.tag;
5509
+ jobId = list2dModelTrainingJobRequest.jobId;
5510
+ name = list2dModelTrainingJobRequest.name;
4266
5511
  }
4267
5512
  else {
4268
- authorization = listStylesRequest['Authorization'];
4269
- xSdkDate = listStylesRequest['X-Sdk-Date'];
4270
- xProjectId = listStylesRequest['X-Project-Id'];
4271
- xAppUserId = listStylesRequest['X-App-UserId'];
4272
- offset = listStylesRequest['offset'];
4273
- limit = listStylesRequest['limit'];
4274
- state = listStylesRequest['state'];
4275
- sortKey = listStylesRequest['sort_key'];
4276
- sortDir = listStylesRequest['sort_dir'];
4277
- createUntil = listStylesRequest['create_until'];
4278
- createSince = listStylesRequest['create_since'];
5513
+ authorization = list2dModelTrainingJobRequest['Authorization'];
5514
+ xSdkDate = list2dModelTrainingJobRequest['X-Sdk-Date'];
5515
+ xProjectId = list2dModelTrainingJobRequest['X-Project-Id'];
5516
+ xAppUserId = list2dModelTrainingJobRequest['X-App-UserId'];
5517
+ offset = list2dModelTrainingJobRequest['offset'];
5518
+ limit = list2dModelTrainingJobRequest['limit'];
5519
+ state = list2dModelTrainingJobRequest['state'];
5520
+ sortKey = list2dModelTrainingJobRequest['sort_key'];
5521
+ sortDir = list2dModelTrainingJobRequest['sort_dir'];
5522
+ createUntil = list2dModelTrainingJobRequest['create_until'];
5523
+ createSince = list2dModelTrainingJobRequest['create_since'];
5524
+ batchName = list2dModelTrainingJobRequest['batch_name'];
5525
+ tag = list2dModelTrainingJobRequest['tag'];
5526
+ jobId = list2dModelTrainingJobRequest['job_id'];
5527
+ name = list2dModelTrainingJobRequest['name'];
4279
5528
  }
4280
5529
  }
4281
5530
  if (offset !== null && offset !== undefined) {
@@ -4299,6 +5548,18 @@ const ParamCreater = function () {
4299
5548
  if (createSince !== null && createSince !== undefined) {
4300
5549
  localVarQueryParameter['create_since'] = createSince;
4301
5550
  }
5551
+ if (batchName !== null && batchName !== undefined) {
5552
+ localVarQueryParameter['batch_name'] = batchName;
5553
+ }
5554
+ if (tag !== null && tag !== undefined) {
5555
+ localVarQueryParameter['tag'] = tag;
5556
+ }
5557
+ if (jobId !== null && jobId !== undefined) {
5558
+ localVarQueryParameter['job_id'] = jobId;
5559
+ }
5560
+ if (name !== null && name !== undefined) {
5561
+ localVarQueryParameter['name'] = name;
5562
+ }
4302
5563
  if (authorization !== undefined && authorization !== null) {
4303
5564
  localVarHeaderParameter['Authorization'] = String(authorization);
4304
5565
  }
@@ -4315,6 +5576,126 @@ const ParamCreater = function () {
4315
5576
  options.headers = localVarHeaderParameter;
4316
5577
  return options;
4317
5578
  },
5579
+ /**
5580
+ * 该接口用于查询分身数字人模型训练任务详情。
5581
+ *
5582
+ * Please refer to HUAWEI cloud API Explorer for details.
5583
+ */
5584
+ show2dModelTrainingJob(show2dModelTrainingJobRequest) {
5585
+ const options = {
5586
+ method: "GET",
5587
+ url: "/v1/{project_id}/digital-human-training-manage/user/jobs/{job_id}",
5588
+ contentType: "application/json",
5589
+ queryParams: {},
5590
+ pathParams: {},
5591
+ headers: {}
5592
+ };
5593
+ const localVarHeaderParameter = {};
5594
+ let jobId;
5595
+ let authorization;
5596
+ let xSdkDate;
5597
+ let xProjectId;
5598
+ let xAppUserId;
5599
+ if (show2dModelTrainingJobRequest !== null && show2dModelTrainingJobRequest !== undefined) {
5600
+ if (show2dModelTrainingJobRequest instanceof Show2dModelTrainingJobRequest_1.Show2dModelTrainingJobRequest) {
5601
+ jobId = show2dModelTrainingJobRequest.jobId;
5602
+ authorization = show2dModelTrainingJobRequest.authorization;
5603
+ xSdkDate = show2dModelTrainingJobRequest.xSdkDate;
5604
+ xProjectId = show2dModelTrainingJobRequest.xProjectId;
5605
+ xAppUserId = show2dModelTrainingJobRequest.xAppUserId;
5606
+ }
5607
+ else {
5608
+ jobId = show2dModelTrainingJobRequest['job_id'];
5609
+ authorization = show2dModelTrainingJobRequest['Authorization'];
5610
+ xSdkDate = show2dModelTrainingJobRequest['X-Sdk-Date'];
5611
+ xProjectId = show2dModelTrainingJobRequest['X-Project-Id'];
5612
+ xAppUserId = show2dModelTrainingJobRequest['X-App-UserId'];
5613
+ }
5614
+ }
5615
+ if (jobId === null || jobId === undefined) {
5616
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling show2dModelTrainingJob.');
5617
+ }
5618
+ if (authorization !== undefined && authorization !== null) {
5619
+ localVarHeaderParameter['Authorization'] = String(authorization);
5620
+ }
5621
+ if (xSdkDate !== undefined && xSdkDate !== null) {
5622
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
5623
+ }
5624
+ if (xProjectId !== undefined && xProjectId !== null) {
5625
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
5626
+ }
5627
+ if (xAppUserId !== undefined && xAppUserId !== null) {
5628
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
5629
+ }
5630
+ options.pathParams = { 'job_id': jobId, };
5631
+ options.headers = localVarHeaderParameter;
5632
+ return options;
5633
+ },
5634
+ /**
5635
+ * 该接口用于更新分身数字人模型训练任务。用于在自动审核或者人工审核不通过情况下,更新训练视频、身份证照片等。
5636
+ * > * 该接口只能在AUTO_VERIFY_FAILED或者MANUAL_VERIFY_FAILED状态下调用
5637
+ *
5638
+ * Please refer to HUAWEI cloud API Explorer for details.
5639
+ */
5640
+ update2dModelTrainingJob(update2dModelTrainingJobRequest) {
5641
+ const options = {
5642
+ method: "PUT",
5643
+ url: "/v1/{project_id}/digital-human-training-manage/user/jobs/{job_id}",
5644
+ contentType: "application/json;charset=utf-8",
5645
+ queryParams: {},
5646
+ pathParams: {},
5647
+ headers: {},
5648
+ data: {}
5649
+ };
5650
+ const localVarHeaderParameter = {};
5651
+ let body;
5652
+ let jobId;
5653
+ let authorization;
5654
+ let xSdkDate;
5655
+ let xProjectId;
5656
+ let xAppUserId;
5657
+ if (update2dModelTrainingJobRequest !== null && update2dModelTrainingJobRequest !== undefined) {
5658
+ if (update2dModelTrainingJobRequest instanceof Update2dModelTrainingJobRequest_1.Update2dModelTrainingJobRequest) {
5659
+ jobId = update2dModelTrainingJobRequest.jobId;
5660
+ body = update2dModelTrainingJobRequest.body;
5661
+ authorization = update2dModelTrainingJobRequest.authorization;
5662
+ xSdkDate = update2dModelTrainingJobRequest.xSdkDate;
5663
+ xProjectId = update2dModelTrainingJobRequest.xProjectId;
5664
+ xAppUserId = update2dModelTrainingJobRequest.xAppUserId;
5665
+ }
5666
+ else {
5667
+ jobId = update2dModelTrainingJobRequest['job_id'];
5668
+ body = update2dModelTrainingJobRequest['body'];
5669
+ authorization = update2dModelTrainingJobRequest['Authorization'];
5670
+ xSdkDate = update2dModelTrainingJobRequest['X-Sdk-Date'];
5671
+ xProjectId = update2dModelTrainingJobRequest['X-Project-Id'];
5672
+ xAppUserId = update2dModelTrainingJobRequest['X-App-UserId'];
5673
+ }
5674
+ }
5675
+ if (jobId === null || jobId === undefined) {
5676
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling update2dModelTrainingJob.');
5677
+ }
5678
+ if (body === null || body === undefined) {
5679
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5680
+ }
5681
+ if (authorization !== undefined && authorization !== null) {
5682
+ localVarHeaderParameter['Authorization'] = String(authorization);
5683
+ }
5684
+ if (xSdkDate !== undefined && xSdkDate !== null) {
5685
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
5686
+ }
5687
+ if (xProjectId !== undefined && xProjectId !== null) {
5688
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
5689
+ }
5690
+ if (xAppUserId !== undefined && xAppUserId !== null) {
5691
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
5692
+ }
5693
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=utf-8';
5694
+ options.data = body !== undefined ? body : {};
5695
+ options.pathParams = { 'job_id': jobId, };
5696
+ options.headers = localVarHeaderParameter;
5697
+ return options;
5698
+ },
4318
5699
  /**
4319
5700
  * 该接口用于创建驱动数字人表情的任务。
4320
5701
  *
@@ -4552,6 +5933,130 @@ const ParamCreater = function () {
4552
5933
  options.headers = localVarHeaderParameter;
4553
5934
  return options;
4554
5935
  },
5936
+ /**
5937
+ * 该接口用于创建生成播报内容的语音试听文件任务。
5938
+ *
5939
+ * Please refer to HUAWEI cloud API Explorer for details.
5940
+ */
5941
+ createTtsAudition(createTtsAuditionRequest) {
5942
+ const options = {
5943
+ method: "POST",
5944
+ url: "/v1/{project_id}/ttsc/audition",
5945
+ contentType: "application/json",
5946
+ queryParams: {},
5947
+ pathParams: {},
5948
+ headers: {},
5949
+ data: {}
5950
+ };
5951
+ const localVarHeaderParameter = {};
5952
+ let body;
5953
+ let xRequestId;
5954
+ let authorization;
5955
+ let xSdkDate;
5956
+ let xProjectId;
5957
+ let xAppUserId;
5958
+ if (createTtsAuditionRequest !== null && createTtsAuditionRequest !== undefined) {
5959
+ if (createTtsAuditionRequest instanceof CreateTtsAuditionRequest_1.CreateTtsAuditionRequest) {
5960
+ body = createTtsAuditionRequest.body;
5961
+ xRequestId = createTtsAuditionRequest.xRequestId;
5962
+ authorization = createTtsAuditionRequest.authorization;
5963
+ xSdkDate = createTtsAuditionRequest.xSdkDate;
5964
+ xProjectId = createTtsAuditionRequest.xProjectId;
5965
+ xAppUserId = createTtsAuditionRequest.xAppUserId;
5966
+ }
5967
+ else {
5968
+ body = createTtsAuditionRequest['body'];
5969
+ xRequestId = createTtsAuditionRequest['X-Request-Id'];
5970
+ authorization = createTtsAuditionRequest['Authorization'];
5971
+ xSdkDate = createTtsAuditionRequest['X-Sdk-Date'];
5972
+ xProjectId = createTtsAuditionRequest['X-Project-Id'];
5973
+ xAppUserId = createTtsAuditionRequest['X-App-UserId'];
5974
+ }
5975
+ }
5976
+ if (body === null || body === undefined) {
5977
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
5978
+ }
5979
+ if (xRequestId !== undefined && xRequestId !== null) {
5980
+ localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
5981
+ }
5982
+ if (authorization !== undefined && authorization !== null) {
5983
+ localVarHeaderParameter['Authorization'] = String(authorization);
5984
+ }
5985
+ if (xSdkDate !== undefined && xSdkDate !== null) {
5986
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
5987
+ }
5988
+ if (xProjectId !== undefined && xProjectId !== null) {
5989
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
5990
+ }
5991
+ if (xAppUserId !== undefined && xAppUserId !== null) {
5992
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
5993
+ }
5994
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5995
+ options.data = body !== undefined ? body : {};
5996
+ options.headers = localVarHeaderParameter;
5997
+ return options;
5998
+ },
5999
+ /**
6000
+ * 该接口用于获取TTS试听文件下载链接,返回List中包含当前已生产的试听文件。
6001
+ *
6002
+ * Please refer to HUAWEI cloud API Explorer for details.
6003
+ */
6004
+ showTtsAuditionFile(showTtsAuditionFileRequest) {
6005
+ const options = {
6006
+ method: "GET",
6007
+ url: "/v1/{project_id}/ttsc/audition-file/{job_id}",
6008
+ contentType: "application/json",
6009
+ queryParams: {},
6010
+ pathParams: {},
6011
+ headers: {}
6012
+ };
6013
+ const localVarHeaderParameter = {};
6014
+ let jobId;
6015
+ let xRequestId;
6016
+ let authorization;
6017
+ let xSdkDate;
6018
+ let xProjectId;
6019
+ let xAppUserId;
6020
+ if (showTtsAuditionFileRequest !== null && showTtsAuditionFileRequest !== undefined) {
6021
+ if (showTtsAuditionFileRequest instanceof ShowTtsAuditionFileRequest_1.ShowTtsAuditionFileRequest) {
6022
+ jobId = showTtsAuditionFileRequest.jobId;
6023
+ xRequestId = showTtsAuditionFileRequest.xRequestId;
6024
+ authorization = showTtsAuditionFileRequest.authorization;
6025
+ xSdkDate = showTtsAuditionFileRequest.xSdkDate;
6026
+ xProjectId = showTtsAuditionFileRequest.xProjectId;
6027
+ xAppUserId = showTtsAuditionFileRequest.xAppUserId;
6028
+ }
6029
+ else {
6030
+ jobId = showTtsAuditionFileRequest['job_id'];
6031
+ xRequestId = showTtsAuditionFileRequest['X-Request-Id'];
6032
+ authorization = showTtsAuditionFileRequest['Authorization'];
6033
+ xSdkDate = showTtsAuditionFileRequest['X-Sdk-Date'];
6034
+ xProjectId = showTtsAuditionFileRequest['X-Project-Id'];
6035
+ xAppUserId = showTtsAuditionFileRequest['X-App-UserId'];
6036
+ }
6037
+ }
6038
+ if (jobId === null || jobId === undefined) {
6039
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showTtsAuditionFile.');
6040
+ }
6041
+ if (xRequestId !== undefined && xRequestId !== null) {
6042
+ localVarHeaderParameter['X-Request-Id'] = String(xRequestId);
6043
+ }
6044
+ if (authorization !== undefined && authorization !== null) {
6045
+ localVarHeaderParameter['Authorization'] = String(authorization);
6046
+ }
6047
+ if (xSdkDate !== undefined && xSdkDate !== null) {
6048
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
6049
+ }
6050
+ if (xProjectId !== undefined && xProjectId !== null) {
6051
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
6052
+ }
6053
+ if (xAppUserId !== undefined && xAppUserId !== null) {
6054
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
6055
+ }
6056
+ options.pathParams = { 'job_id': jobId, };
6057
+ options.headers = localVarHeaderParameter;
6058
+ return options;
6059
+ },
4555
6060
  /**
4556
6061
  * 该接口用于创建视频驱动任务。
4557
6062
  *