@huaweicloud/huaweicloud-sdk-metastudio 3.1.56 → 3.1.58

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 (537) hide show
  1. package/package.json +2 -2
  2. package/v1/MetaStudioClient.d.ts +1042 -122
  3. package/v1/MetaStudioClient.d.ts.map +1 -1
  4. package/v1/MetaStudioClient.js +3047 -536
  5. package/v1/MetaStudioClient.js.map +1 -1
  6. package/v1/model/AnimationConfig.d.ts +6 -0
  7. package/v1/model/AnimationConfig.d.ts.map +1 -0
  8. package/v1/model/AnimationConfig.js +13 -0
  9. package/v1/model/AnimationConfig.js.map +1 -0
  10. package/v1/model/BackgroundConfigInfo.d.ts +44 -0
  11. package/v1/model/BackgroundConfigInfo.d.ts.map +1 -0
  12. package/v1/model/BackgroundConfigInfo.js +92 -0
  13. package/v1/model/BackgroundConfigInfo.js.map +1 -0
  14. package/v1/model/BackgroundMusicConfig.d.ts +10 -0
  15. package/v1/model/BackgroundMusicConfig.d.ts.map +1 -0
  16. package/v1/model/BackgroundMusicConfig.js +23 -0
  17. package/v1/model/BackgroundMusicConfig.js.map +1 -0
  18. package/v1/model/BusinessCardImageConfig.d.ts +12 -0
  19. package/v1/model/BusinessCardImageConfig.d.ts.map +1 -0
  20. package/v1/model/BusinessCardImageConfig.js +30 -0
  21. package/v1/model/BusinessCardImageConfig.js.map +1 -0
  22. package/v1/model/BusinessCardImageUrl.d.ts +12 -0
  23. package/v1/model/BusinessCardImageUrl.d.ts.map +1 -0
  24. package/v1/model/BusinessCardImageUrl.js +29 -0
  25. package/v1/model/BusinessCardImageUrl.js.map +1 -0
  26. package/v1/model/BusinessCardTextConfig.d.ts +26 -0
  27. package/v1/model/BusinessCardTextConfig.d.ts.map +1 -0
  28. package/v1/model/BusinessCardTextConfig.js +55 -0
  29. package/v1/model/BusinessCardTextConfig.js.map +1 -0
  30. package/v1/model/Cancel2DDigitalHumanVideoRequest.d.ts +24 -0
  31. package/v1/model/Cancel2DDigitalHumanVideoRequest.d.ts.map +1 -0
  32. package/v1/model/Cancel2DDigitalHumanVideoRequest.js +60 -0
  33. package/v1/model/Cancel2DDigitalHumanVideoRequest.js.map +1 -0
  34. package/v1/model/Cancel2DDigitalHumanVideoResponse.d.ts +9 -0
  35. package/v1/model/Cancel2DDigitalHumanVideoResponse.d.ts.map +1 -0
  36. package/v1/model/Cancel2DDigitalHumanVideoResponse.js +21 -0
  37. package/v1/model/Cancel2DDigitalHumanVideoResponse.js.map +1 -0
  38. package/v1/model/CancelPhotoDigitalHumanVideoRequest.d.ts +24 -0
  39. package/v1/model/CancelPhotoDigitalHumanVideoRequest.d.ts.map +1 -0
  40. package/v1/model/CancelPhotoDigitalHumanVideoRequest.js +60 -0
  41. package/v1/model/CancelPhotoDigitalHumanVideoRequest.js.map +1 -0
  42. package/v1/model/CancelPhotoDigitalHumanVideoResponse.d.ts +9 -0
  43. package/v1/model/CancelPhotoDigitalHumanVideoResponse.d.ts.map +1 -0
  44. package/v1/model/CancelPhotoDigitalHumanVideoResponse.js +21 -0
  45. package/v1/model/CancelPhotoDigitalHumanVideoResponse.js.map +1 -0
  46. package/v1/model/ConfirmFileUploadResponse.d.ts +4 -0
  47. package/v1/model/ConfirmFileUploadResponse.d.ts.map +1 -1
  48. package/v1/model/ConfirmFileUploadResponse.js +10 -0
  49. package/v1/model/ConfirmFileUploadResponse.js.map +1 -1
  50. package/v1/model/ControlSmartLiveReq.d.ts +17 -0
  51. package/v1/model/ControlSmartLiveReq.d.ts.map +1 -0
  52. package/v1/model/ControlSmartLiveReq.js +28 -0
  53. package/v1/model/ControlSmartLiveReq.js.map +1 -0
  54. package/v1/model/Create2DDigitalHumanVideoReq.d.ts +53 -0
  55. package/v1/model/Create2DDigitalHumanVideoReq.d.ts.map +1 -0
  56. package/v1/model/Create2DDigitalHumanVideoReq.js +108 -0
  57. package/v1/model/Create2DDigitalHumanVideoReq.js.map +1 -0
  58. package/v1/model/Create2DDigitalHumanVideoRequest.d.ts +23 -0
  59. package/v1/model/Create2DDigitalHumanVideoRequest.d.ts.map +1 -0
  60. package/v1/model/Create2DDigitalHumanVideoRequest.js +53 -0
  61. package/v1/model/Create2DDigitalHumanVideoRequest.js.map +1 -0
  62. package/v1/model/Create2DDigitalHumanVideoResponse.d.ts +13 -0
  63. package/v1/model/Create2DDigitalHumanVideoResponse.d.ts.map +1 -0
  64. package/v1/model/Create2DDigitalHumanVideoResponse.js +31 -0
  65. package/v1/model/Create2DDigitalHumanVideoResponse.js.map +1 -0
  66. package/v1/model/CreateDigitalAssetResponse.d.ts +4 -0
  67. package/v1/model/CreateDigitalAssetResponse.d.ts.map +1 -1
  68. package/v1/model/CreateDigitalAssetResponse.js +10 -0
  69. package/v1/model/CreateDigitalAssetResponse.js.map +1 -1
  70. package/v1/model/CreateDigitalHumanBusinessCardReq.d.ts +51 -0
  71. package/v1/model/CreateDigitalHumanBusinessCardReq.d.ts.map +1 -0
  72. package/v1/model/CreateDigitalHumanBusinessCardReq.js +106 -0
  73. package/v1/model/CreateDigitalHumanBusinessCardReq.js.map +1 -0
  74. package/v1/model/CreateDigitalHumanBusinessCardRequest.d.ts +23 -0
  75. package/v1/model/CreateDigitalHumanBusinessCardRequest.d.ts.map +1 -0
  76. package/v1/model/CreateDigitalHumanBusinessCardRequest.js +53 -0
  77. package/v1/model/CreateDigitalHumanBusinessCardRequest.js.map +1 -0
  78. package/v1/model/CreateDigitalHumanBusinessCardResponse.d.ts +13 -0
  79. package/v1/model/CreateDigitalHumanBusinessCardResponse.d.ts.map +1 -0
  80. package/v1/model/CreateDigitalHumanBusinessCardResponse.js +31 -0
  81. package/v1/model/CreateDigitalHumanBusinessCardResponse.js.map +1 -0
  82. package/v1/model/CreateFileResponse.d.ts +4 -0
  83. package/v1/model/CreateFileResponse.d.ts.map +1 -1
  84. package/v1/model/CreateFileResponse.js +10 -0
  85. package/v1/model/CreateFileResponse.js.map +1 -1
  86. package/v1/model/CreatePhotoDetectionReq.d.ts +8 -0
  87. package/v1/model/CreatePhotoDetectionReq.d.ts.map +1 -0
  88. package/v1/model/CreatePhotoDetectionReq.js +20 -0
  89. package/v1/model/CreatePhotoDetectionReq.js.map +1 -0
  90. package/v1/model/CreatePhotoDetectionRequest.d.ts +23 -0
  91. package/v1/model/CreatePhotoDetectionRequest.d.ts.map +1 -0
  92. package/v1/model/CreatePhotoDetectionRequest.js +53 -0
  93. package/v1/model/CreatePhotoDetectionRequest.js.map +1 -0
  94. package/v1/model/CreatePhotoDetectionResponse.d.ts +13 -0
  95. package/v1/model/CreatePhotoDetectionResponse.d.ts.map +1 -0
  96. package/v1/model/CreatePhotoDetectionResponse.js +31 -0
  97. package/v1/model/CreatePhotoDetectionResponse.js.map +1 -0
  98. package/v1/model/CreatePhotoDigitalHumanVideoReq.d.ts +37 -0
  99. package/v1/model/CreatePhotoDigitalHumanVideoReq.d.ts.map +1 -0
  100. package/v1/model/CreatePhotoDigitalHumanVideoReq.js +82 -0
  101. package/v1/model/CreatePhotoDigitalHumanVideoReq.js.map +1 -0
  102. package/v1/model/CreatePhotoDigitalHumanVideoRequest.d.ts +23 -0
  103. package/v1/model/CreatePhotoDigitalHumanVideoRequest.d.ts.map +1 -0
  104. package/v1/model/CreatePhotoDigitalHumanVideoRequest.js +53 -0
  105. package/v1/model/CreatePhotoDigitalHumanVideoRequest.js.map +1 -0
  106. package/v1/model/CreatePhotoDigitalHumanVideoResponse.d.ts +13 -0
  107. package/v1/model/CreatePhotoDigitalHumanVideoResponse.d.ts.map +1 -0
  108. package/v1/model/CreatePhotoDigitalHumanVideoResponse.js +31 -0
  109. package/v1/model/CreatePhotoDigitalHumanVideoResponse.js.map +1 -0
  110. package/v1/model/CreatePictureModelingByUrlJobRequest.d.ts +4 -0
  111. package/v1/model/CreatePictureModelingByUrlJobRequest.d.ts.map +1 -1
  112. package/v1/model/CreatePictureModelingByUrlJobRequest.js +10 -0
  113. package/v1/model/CreatePictureModelingByUrlJobRequest.js.map +1 -1
  114. package/v1/model/CreatePictureModelingByUrlJobResponse.d.ts +4 -0
  115. package/v1/model/CreatePictureModelingByUrlJobResponse.d.ts.map +1 -1
  116. package/v1/model/CreatePictureModelingByUrlJobResponse.js +10 -0
  117. package/v1/model/CreatePictureModelingByUrlJobResponse.js.map +1 -1
  118. package/v1/model/CreatePictureModelingJobResponse.d.ts +4 -0
  119. package/v1/model/CreatePictureModelingJobResponse.d.ts.map +1 -1
  120. package/v1/model/CreatePictureModelingJobResponse.js +10 -0
  121. package/v1/model/CreatePictureModelingJobResponse.js.map +1 -1
  122. package/v1/model/CreateSmartLiveRoomReq.d.ts +48 -0
  123. package/v1/model/CreateSmartLiveRoomReq.d.ts.map +1 -0
  124. package/v1/model/CreateSmartLiveRoomReq.js +99 -0
  125. package/v1/model/CreateSmartLiveRoomReq.js.map +1 -0
  126. package/v1/model/CreateSmartLiveRoomRequest.d.ts +23 -0
  127. package/v1/model/CreateSmartLiveRoomRequest.d.ts.map +1 -0
  128. package/v1/model/CreateSmartLiveRoomRequest.js +53 -0
  129. package/v1/model/CreateSmartLiveRoomRequest.js.map +1 -0
  130. package/v1/model/CreateSmartLiveRoomResponse.d.ts +13 -0
  131. package/v1/model/CreateSmartLiveRoomResponse.d.ts.map +1 -0
  132. package/v1/model/CreateSmartLiveRoomResponse.js +31 -0
  133. package/v1/model/CreateSmartLiveRoomResponse.js.map +1 -0
  134. package/v1/model/CreateTtsaResponse.d.ts +4 -0
  135. package/v1/model/CreateTtsaResponse.d.ts.map +1 -1
  136. package/v1/model/CreateTtsaResponse.js +10 -0
  137. package/v1/model/CreateTtsaResponse.js.map +1 -1
  138. package/v1/model/CreateVideoMotionCaptureJobResponse.d.ts +4 -0
  139. package/v1/model/CreateVideoMotionCaptureJobResponse.d.ts.map +1 -1
  140. package/v1/model/CreateVideoMotionCaptureJobResponse.js +10 -0
  141. package/v1/model/CreateVideoMotionCaptureJobResponse.js.map +1 -1
  142. package/v1/model/CreateVideoScriptsReq.d.ts +72 -0
  143. package/v1/model/CreateVideoScriptsReq.d.ts.map +1 -0
  144. package/v1/model/CreateVideoScriptsReq.js +150 -0
  145. package/v1/model/CreateVideoScriptsReq.js.map +1 -0
  146. package/v1/model/CreateVideoScriptsRequest.d.ts +23 -0
  147. package/v1/model/CreateVideoScriptsRequest.d.ts.map +1 -0
  148. package/v1/model/CreateVideoScriptsRequest.js +53 -0
  149. package/v1/model/CreateVideoScriptsRequest.js.map +1 -0
  150. package/v1/model/CreateVideoScriptsResponse.d.ts +18 -0
  151. package/v1/model/CreateVideoScriptsResponse.d.ts.map +1 -0
  152. package/v1/model/CreateVideoScriptsResponse.js +41 -0
  153. package/v1/model/CreateVideoScriptsResponse.js.map +1 -0
  154. package/v1/model/DeleteAssetResponse.d.ts +4 -0
  155. package/v1/model/DeleteAssetResponse.d.ts.map +1 -1
  156. package/v1/model/DeleteAssetResponse.js +10 -0
  157. package/v1/model/DeleteAssetResponse.js.map +1 -1
  158. package/v1/model/DeleteDigitalHumanBusinessCardRequest.d.ts +24 -0
  159. package/v1/model/DeleteDigitalHumanBusinessCardRequest.d.ts.map +1 -0
  160. package/v1/model/DeleteDigitalHumanBusinessCardRequest.js +60 -0
  161. package/v1/model/DeleteDigitalHumanBusinessCardRequest.js.map +1 -0
  162. package/v1/model/DeleteDigitalHumanBusinessCardResponse.d.ts +9 -0
  163. package/v1/model/DeleteDigitalHumanBusinessCardResponse.d.ts.map +1 -0
  164. package/v1/model/DeleteDigitalHumanBusinessCardResponse.js +21 -0
  165. package/v1/model/DeleteDigitalHumanBusinessCardResponse.js.map +1 -0
  166. package/v1/model/DeleteFileResponse.d.ts +4 -0
  167. package/v1/model/DeleteFileResponse.d.ts.map +1 -1
  168. package/v1/model/DeleteFileResponse.js +10 -0
  169. package/v1/model/DeleteFileResponse.js.map +1 -1
  170. package/v1/model/DeleteSmartLiveRoomRequest.d.ts +24 -0
  171. package/v1/model/DeleteSmartLiveRoomRequest.d.ts.map +1 -0
  172. package/v1/model/DeleteSmartLiveRoomRequest.js +60 -0
  173. package/v1/model/DeleteSmartLiveRoomRequest.js.map +1 -0
  174. package/v1/model/DeleteSmartLiveRoomResponse.d.ts +9 -0
  175. package/v1/model/DeleteSmartLiveRoomResponse.d.ts.map +1 -0
  176. package/v1/model/DeleteSmartLiveRoomResponse.js +21 -0
  177. package/v1/model/DeleteSmartLiveRoomResponse.js.map +1 -0
  178. package/v1/model/DeleteVideoScriptRequest.d.ts +24 -0
  179. package/v1/model/DeleteVideoScriptRequest.d.ts.map +1 -0
  180. package/v1/model/DeleteVideoScriptRequest.js +60 -0
  181. package/v1/model/DeleteVideoScriptRequest.js.map +1 -0
  182. package/v1/model/DeleteVideoScriptResponse.d.ts +9 -0
  183. package/v1/model/DeleteVideoScriptResponse.d.ts.map +1 -0
  184. package/v1/model/DeleteVideoScriptResponse.js +21 -0
  185. package/v1/model/DeleteVideoScriptResponse.js.map +1 -0
  186. package/v1/model/DigitalHumanBusinessCardJobInfo.d.ts +58 -0
  187. package/v1/model/DigitalHumanBusinessCardJobInfo.d.ts.map +1 -0
  188. package/v1/model/DigitalHumanBusinessCardJobInfo.js +115 -0
  189. package/v1/model/DigitalHumanBusinessCardJobInfo.js.map +1 -0
  190. package/v1/model/DigitalHumanVideo.d.ts +49 -0
  191. package/v1/model/DigitalHumanVideo.d.ts.map +1 -0
  192. package/v1/model/DigitalHumanVideo.js +101 -0
  193. package/v1/model/DigitalHumanVideo.js.map +1 -0
  194. package/v1/model/EmotionConfig.d.ts +16 -0
  195. package/v1/model/EmotionConfig.d.ts.map +1 -0
  196. package/v1/model/EmotionConfig.js +24 -0
  197. package/v1/model/EmotionConfig.js.map +1 -0
  198. package/v1/model/ExecuteSmartLiveCommandRequest.d.ts +31 -0
  199. package/v1/model/ExecuteSmartLiveCommandRequest.d.ts.map +1 -0
  200. package/v1/model/ExecuteSmartLiveCommandRequest.js +75 -0
  201. package/v1/model/ExecuteSmartLiveCommandRequest.js.map +1 -0
  202. package/v1/model/ExecuteSmartLiveCommandResponse.d.ts +23 -0
  203. package/v1/model/ExecuteSmartLiveCommandResponse.d.ts.map +1 -0
  204. package/v1/model/ExecuteSmartLiveCommandResponse.js +40 -0
  205. package/v1/model/ExecuteSmartLiveCommandResponse.js.map +1 -0
  206. package/v1/model/ExecuteVideoMotionCaptureCommandResponse.d.ts +4 -0
  207. package/v1/model/ExecuteVideoMotionCaptureCommandResponse.d.ts.map +1 -1
  208. package/v1/model/ExecuteVideoMotionCaptureCommandResponse.js +10 -0
  209. package/v1/model/ExecuteVideoMotionCaptureCommandResponse.js.map +1 -1
  210. package/v1/model/HitCondition.d.ts +19 -0
  211. package/v1/model/HitCondition.d.ts.map +1 -0
  212. package/v1/model/HitCondition.js +30 -0
  213. package/v1/model/HitCondition.js.map +1 -0
  214. package/v1/model/HitConditionTag.d.ts +35 -0
  215. package/v1/model/HitConditionTag.d.ts.map +1 -0
  216. package/v1/model/HitConditionTag.js +50 -0
  217. package/v1/model/HitConditionTag.js.map +1 -0
  218. package/v1/model/HumanPosition2D.d.ts +23 -0
  219. package/v1/model/HumanPosition2D.d.ts.map +1 -0
  220. package/v1/model/HumanPosition2D.js +43 -0
  221. package/v1/model/HumanPosition2D.js.map +1 -0
  222. package/v1/model/HumanSize2D.d.ts +8 -0
  223. package/v1/model/HumanSize2D.d.ts.map +1 -0
  224. package/v1/model/HumanSize2D.js +17 -0
  225. package/v1/model/HumanSize2D.js.map +1 -0
  226. package/v1/model/ImageLayerConfig.d.ts +8 -0
  227. package/v1/model/ImageLayerConfig.d.ts.map +1 -0
  228. package/v1/model/ImageLayerConfig.js +19 -0
  229. package/v1/model/ImageLayerConfig.js.map +1 -0
  230. package/v1/model/InteractionRuleInfo.d.ts +22 -0
  231. package/v1/model/InteractionRuleInfo.d.ts.map +1 -0
  232. package/v1/model/InteractionRuleInfo.js +47 -0
  233. package/v1/model/InteractionRuleInfo.js.map +1 -0
  234. package/v1/model/LayerConfig.d.ts +38 -0
  235. package/v1/model/LayerConfig.d.ts.map +1 -0
  236. package/v1/model/LayerConfig.js +69 -0
  237. package/v1/model/LayerConfig.js.map +1 -0
  238. package/v1/model/LayerPositionConfig.d.ts +12 -0
  239. package/v1/model/LayerPositionConfig.d.ts.map +1 -0
  240. package/v1/model/LayerPositionConfig.js +30 -0
  241. package/v1/model/LayerPositionConfig.js.map +1 -0
  242. package/v1/model/LayerSizeConfig.d.ts +8 -0
  243. package/v1/model/LayerSizeConfig.d.ts.map +1 -0
  244. package/v1/model/LayerSizeConfig.js +17 -0
  245. package/v1/model/LayerSizeConfig.js.map +1 -0
  246. package/v1/model/ListAssetSummaryResponse.d.ts +4 -0
  247. package/v1/model/ListAssetSummaryResponse.d.ts.map +1 -1
  248. package/v1/model/ListAssetSummaryResponse.js +10 -0
  249. package/v1/model/ListAssetSummaryResponse.js.map +1 -1
  250. package/v1/model/ListAssetsResponse.d.ts +4 -0
  251. package/v1/model/ListAssetsResponse.d.ts.map +1 -1
  252. package/v1/model/ListAssetsResponse.js +10 -0
  253. package/v1/model/ListAssetsResponse.js.map +1 -1
  254. package/v1/model/ListDigitalHumanBusinessCardRequest.d.ts +46 -0
  255. package/v1/model/ListDigitalHumanBusinessCardRequest.d.ts.map +1 -0
  256. package/v1/model/ListDigitalHumanBusinessCardRequest.js +111 -0
  257. package/v1/model/ListDigitalHumanBusinessCardRequest.js.map +1 -0
  258. package/v1/model/ListDigitalHumanBusinessCardResponse.d.ts +14 -0
  259. package/v1/model/ListDigitalHumanBusinessCardResponse.d.ts.map +1 -0
  260. package/v1/model/ListDigitalHumanBusinessCardResponse.js +29 -0
  261. package/v1/model/ListDigitalHumanBusinessCardResponse.js.map +1 -0
  262. package/v1/model/ListPictureModelingJobsResponse.d.ts +4 -0
  263. package/v1/model/ListPictureModelingJobsResponse.d.ts.map +1 -1
  264. package/v1/model/ListPictureModelingJobsResponse.js +10 -0
  265. package/v1/model/ListPictureModelingJobsResponse.js.map +1 -1
  266. package/v1/model/ListSmartLiveRequest.d.ts +46 -0
  267. package/v1/model/ListSmartLiveRequest.d.ts.map +1 -0
  268. package/v1/model/ListSmartLiveRequest.js +112 -0
  269. package/v1/model/ListSmartLiveRequest.js.map +1 -0
  270. package/v1/model/ListSmartLiveResponse.d.ts +16 -0
  271. package/v1/model/ListSmartLiveResponse.d.ts.map +1 -0
  272. package/v1/model/ListSmartLiveResponse.js +35 -0
  273. package/v1/model/ListSmartLiveResponse.js.map +1 -0
  274. package/v1/model/ListSmartLiveRoomsRequest.d.ts +48 -0
  275. package/v1/model/ListSmartLiveRoomsRequest.d.ts.map +1 -0
  276. package/v1/model/ListSmartLiveRoomsRequest.js +117 -0
  277. package/v1/model/ListSmartLiveRoomsRequest.js.map +1 -0
  278. package/v1/model/ListSmartLiveRoomsResponse.d.ts +16 -0
  279. package/v1/model/ListSmartLiveRoomsResponse.d.ts.map +1 -0
  280. package/v1/model/ListSmartLiveRoomsResponse.js +35 -0
  281. package/v1/model/ListSmartLiveRoomsResponse.js.map +1 -0
  282. package/v1/model/ListStylesResponse.d.ts +4 -0
  283. package/v1/model/ListStylesResponse.d.ts.map +1 -1
  284. package/v1/model/ListStylesResponse.js +10 -0
  285. package/v1/model/ListStylesResponse.js.map +1 -1
  286. package/v1/model/ListTtsaDataResponse.d.ts +4 -0
  287. package/v1/model/ListTtsaDataResponse.d.ts.map +1 -1
  288. package/v1/model/ListTtsaDataResponse.js +10 -0
  289. package/v1/model/ListTtsaDataResponse.js.map +1 -1
  290. package/v1/model/ListTtsaJobsResponse.d.ts +4 -0
  291. package/v1/model/ListTtsaJobsResponse.d.ts.map +1 -1
  292. package/v1/model/ListTtsaJobsResponse.js +10 -0
  293. package/v1/model/ListTtsaJobsResponse.js.map +1 -1
  294. package/v1/model/ListVideoMotionCaptureJobsResponse.d.ts +4 -0
  295. package/v1/model/ListVideoMotionCaptureJobsResponse.d.ts.map +1 -1
  296. package/v1/model/ListVideoMotionCaptureJobsResponse.js +10 -0
  297. package/v1/model/ListVideoMotionCaptureJobsResponse.js.map +1 -1
  298. package/v1/model/ListVideoScriptsRequest.d.ts +24 -0
  299. package/v1/model/ListVideoScriptsRequest.d.ts.map +1 -0
  300. package/v1/model/ListVideoScriptsRequest.js +57 -0
  301. package/v1/model/ListVideoScriptsRequest.js.map +1 -0
  302. package/v1/model/ListVideoScriptsResponse.d.ts +16 -0
  303. package/v1/model/ListVideoScriptsResponse.d.ts.map +1 -0
  304. package/v1/model/ListVideoScriptsResponse.js +35 -0
  305. package/v1/model/ListVideoScriptsResponse.js.map +1 -0
  306. package/v1/model/LiveAudioConfig.d.ts +12 -0
  307. package/v1/model/LiveAudioConfig.d.ts.map +1 -0
  308. package/v1/model/LiveAudioConfig.js +29 -0
  309. package/v1/model/LiveAudioConfig.js.map +1 -0
  310. package/v1/model/LiveEvent.d.ts +10 -0
  311. package/v1/model/LiveEvent.d.ts.map +1 -0
  312. package/v1/model/LiveEvent.js +22 -0
  313. package/v1/model/LiveEvent.js.map +1 -0
  314. package/v1/model/LiveEventReportRequest.d.ts +43 -0
  315. package/v1/model/LiveEventReportRequest.d.ts.map +1 -0
  316. package/v1/model/LiveEventReportRequest.js +105 -0
  317. package/v1/model/LiveEventReportRequest.js.map +1 -0
  318. package/v1/model/LiveEventReportResponse.d.ts +13 -0
  319. package/v1/model/LiveEventReportResponse.d.ts.map +1 -0
  320. package/v1/model/LiveEventReportResponse.js +31 -0
  321. package/v1/model/LiveEventReportResponse.js.map +1 -0
  322. package/v1/model/LiveShootScriptItem.d.ts +20 -0
  323. package/v1/model/LiveShootScriptItem.d.ts.map +1 -0
  324. package/v1/model/LiveShootScriptItem.js +43 -0
  325. package/v1/model/LiveShootScriptItem.js.map +1 -0
  326. package/v1/model/LiveVideoScriptInfo.d.ts +40 -0
  327. package/v1/model/LiveVideoScriptInfo.d.ts.map +1 -0
  328. package/v1/model/LiveVideoScriptInfo.js +90 -0
  329. package/v1/model/LiveVideoScriptInfo.js.map +1 -0
  330. package/v1/model/ModelInfo.d.ts +12 -0
  331. package/v1/model/ModelInfo.d.ts.map +1 -0
  332. package/v1/model/ModelInfo.js +29 -0
  333. package/v1/model/ModelInfo.js.map +1 -0
  334. package/v1/model/OutputAssetConfig.d.ts +12 -0
  335. package/v1/model/OutputAssetConfig.d.ts.map +1 -0
  336. package/v1/model/OutputAssetConfig.js +30 -0
  337. package/v1/model/OutputAssetConfig.js.map +1 -0
  338. package/v1/model/OutputAssetInfo.d.ts +20 -0
  339. package/v1/model/OutputAssetInfo.d.ts.map +1 -0
  340. package/v1/model/OutputAssetInfo.js +51 -0
  341. package/v1/model/OutputAssetInfo.js.map +1 -0
  342. package/v1/model/PhotoVideoConfig.d.ts +32 -0
  343. package/v1/model/PhotoVideoConfig.d.ts.map +1 -0
  344. package/v1/model/PhotoVideoConfig.js +56 -0
  345. package/v1/model/PhotoVideoConfig.js.map +1 -0
  346. package/v1/model/PlayPolicy.d.ts +24 -0
  347. package/v1/model/PlayPolicy.d.ts.map +1 -0
  348. package/v1/model/PlayPolicy.js +48 -0
  349. package/v1/model/PlayPolicy.js.map +1 -0
  350. package/v1/model/ReportLiveEventReq.d.ts +9 -0
  351. package/v1/model/ReportLiveEventReq.d.ts.map +1 -0
  352. package/v1/model/ReportLiveEventReq.js +18 -0
  353. package/v1/model/ReportLiveEventReq.js.map +1 -0
  354. package/v1/model/RestoreAssetResponse.d.ts +4 -0
  355. package/v1/model/RestoreAssetResponse.d.ts.map +1 -1
  356. package/v1/model/RestoreAssetResponse.js +10 -0
  357. package/v1/model/RestoreAssetResponse.js.map +1 -1
  358. package/v1/model/ShootScript.d.ts +41 -0
  359. package/v1/model/ShootScript.d.ts.map +1 -0
  360. package/v1/model/ShootScript.js +78 -0
  361. package/v1/model/ShootScript.js.map +1 -0
  362. package/v1/model/ShootScriptAudioFileItem.d.ts +16 -0
  363. package/v1/model/ShootScriptAudioFileItem.d.ts.map +1 -0
  364. package/v1/model/ShootScriptAudioFileItem.js +40 -0
  365. package/v1/model/ShootScriptAudioFileItem.js.map +1 -0
  366. package/v1/model/ShootScriptAudioFiles.d.ts +9 -0
  367. package/v1/model/ShootScriptAudioFiles.d.ts.map +1 -0
  368. package/v1/model/ShootScriptAudioFiles.js +19 -0
  369. package/v1/model/ShootScriptAudioFiles.js.map +1 -0
  370. package/v1/model/ShootScriptItem.d.ts +21 -0
  371. package/v1/model/ShootScriptItem.d.ts.map +1 -0
  372. package/v1/model/ShootScriptItem.js +50 -0
  373. package/v1/model/ShootScriptItem.js.map +1 -0
  374. package/v1/model/Show2DDigitalHumanVideoRequest.d.ts +28 -0
  375. package/v1/model/Show2DDigitalHumanVideoRequest.d.ts.map +1 -0
  376. package/v1/model/Show2DDigitalHumanVideoRequest.js +70 -0
  377. package/v1/model/Show2DDigitalHumanVideoRequest.js.map +1 -0
  378. package/v1/model/Show2DDigitalHumanVideoResponse.d.ts +98 -0
  379. package/v1/model/Show2DDigitalHumanVideoResponse.d.ts.map +1 -0
  380. package/v1/model/Show2DDigitalHumanVideoResponse.js +202 -0
  381. package/v1/model/Show2DDigitalHumanVideoResponse.js.map +1 -0
  382. package/v1/model/ShowAssetResponse.d.ts +4 -0
  383. package/v1/model/ShowAssetResponse.d.ts.map +1 -1
  384. package/v1/model/ShowAssetResponse.js +10 -0
  385. package/v1/model/ShowAssetResponse.js.map +1 -1
  386. package/v1/model/ShowDigitalHumanBusinessCardRequest.d.ts +24 -0
  387. package/v1/model/ShowDigitalHumanBusinessCardRequest.d.ts.map +1 -0
  388. package/v1/model/ShowDigitalHumanBusinessCardRequest.js +60 -0
  389. package/v1/model/ShowDigitalHumanBusinessCardRequest.js.map +1 -0
  390. package/v1/model/ShowDigitalHumanBusinessCardResponse.d.ts +46 -0
  391. package/v1/model/ShowDigitalHumanBusinessCardResponse.d.ts.map +1 -0
  392. package/v1/model/ShowDigitalHumanBusinessCardResponse.js +94 -0
  393. package/v1/model/ShowDigitalHumanBusinessCardResponse.js.map +1 -0
  394. package/v1/model/ShowPhotoDetectionRequest.d.ts +24 -0
  395. package/v1/model/ShowPhotoDetectionRequest.d.ts.map +1 -0
  396. package/v1/model/ShowPhotoDetectionRequest.js +60 -0
  397. package/v1/model/ShowPhotoDetectionRequest.js.map +1 -0
  398. package/v1/model/ShowPhotoDetectionResponse.d.ts +35 -0
  399. package/v1/model/ShowPhotoDetectionResponse.d.ts.map +1 -0
  400. package/v1/model/ShowPhotoDetectionResponse.js +67 -0
  401. package/v1/model/ShowPhotoDetectionResponse.js.map +1 -0
  402. package/v1/model/ShowPhotoDigitalHumanVideoRequest.d.ts +28 -0
  403. package/v1/model/ShowPhotoDigitalHumanVideoRequest.d.ts.map +1 -0
  404. package/v1/model/ShowPhotoDigitalHumanVideoRequest.js +70 -0
  405. package/v1/model/ShowPhotoDigitalHumanVideoRequest.js.map +1 -0
  406. package/v1/model/ShowPhotoDigitalHumanVideoResponse.d.ts +77 -0
  407. package/v1/model/ShowPhotoDigitalHumanVideoResponse.d.ts.map +1 -0
  408. package/v1/model/ShowPhotoDigitalHumanVideoResponse.js +163 -0
  409. package/v1/model/ShowPhotoDigitalHumanVideoResponse.js.map +1 -0
  410. package/v1/model/ShowPictureModelingJobResponse.d.ts +4 -0
  411. package/v1/model/ShowPictureModelingJobResponse.d.ts.map +1 -1
  412. package/v1/model/ShowPictureModelingJobResponse.js +10 -0
  413. package/v1/model/ShowPictureModelingJobResponse.js.map +1 -1
  414. package/v1/model/ShowSmartLiveRequest.d.ts +28 -0
  415. package/v1/model/ShowSmartLiveRequest.d.ts.map +1 -0
  416. package/v1/model/ShowSmartLiveRequest.js +71 -0
  417. package/v1/model/ShowSmartLiveRequest.js.map +1 -0
  418. package/v1/model/ShowSmartLiveResponse.d.ts +57 -0
  419. package/v1/model/ShowSmartLiveResponse.d.ts.map +1 -0
  420. package/v1/model/ShowSmartLiveResponse.js +120 -0
  421. package/v1/model/ShowSmartLiveResponse.js.map +1 -0
  422. package/v1/model/ShowSmartLiveRoomRequest.d.ts +24 -0
  423. package/v1/model/ShowSmartLiveRoomRequest.d.ts.map +1 -0
  424. package/v1/model/ShowSmartLiveRoomRequest.js +60 -0
  425. package/v1/model/ShowSmartLiveRoomRequest.js.map +1 -0
  426. package/v1/model/ShowSmartLiveRoomResponse.d.ts +69 -0
  427. package/v1/model/ShowSmartLiveRoomResponse.d.ts.map +1 -0
  428. package/v1/model/ShowSmartLiveRoomResponse.js +151 -0
  429. package/v1/model/ShowSmartLiveRoomResponse.js.map +1 -0
  430. package/v1/model/ShowVideoMotionCaptureJobResponse.d.ts +4 -0
  431. package/v1/model/ShowVideoMotionCaptureJobResponse.d.ts.map +1 -1
  432. package/v1/model/ShowVideoMotionCaptureJobResponse.js +10 -0
  433. package/v1/model/ShowVideoMotionCaptureJobResponse.js.map +1 -1
  434. package/v1/model/ShowVideoScriptRequest.d.ts +24 -0
  435. package/v1/model/ShowVideoScriptRequest.d.ts.map +1 -0
  436. package/v1/model/ShowVideoScriptRequest.js +60 -0
  437. package/v1/model/ShowVideoScriptRequest.js.map +1 -0
  438. package/v1/model/ShowVideoScriptResponse.d.ts +94 -0
  439. package/v1/model/ShowVideoScriptResponse.d.ts.map +1 -0
  440. package/v1/model/ShowVideoScriptResponse.js +202 -0
  441. package/v1/model/ShowVideoScriptResponse.js.map +1 -0
  442. package/v1/model/SmartLiveJob.d.ts +52 -0
  443. package/v1/model/SmartLiveJob.d.ts.map +1 -0
  444. package/v1/model/SmartLiveJob.js +108 -0
  445. package/v1/model/SmartLiveJob.js.map +1 -0
  446. package/v1/model/SmartLiveRoomBaseInfo.d.ts +56 -0
  447. package/v1/model/SmartLiveRoomBaseInfo.d.ts.map +1 -0
  448. package/v1/model/SmartLiveRoomBaseInfo.js +121 -0
  449. package/v1/model/SmartLiveRoomBaseInfo.js.map +1 -0
  450. package/v1/model/StartSmartLiveReq.d.ts +18 -0
  451. package/v1/model/StartSmartLiveReq.d.ts.map +1 -0
  452. package/v1/model/StartSmartLiveReq.js +39 -0
  453. package/v1/model/StartSmartLiveReq.js.map +1 -0
  454. package/v1/model/StartSmartLiveRequest.d.ts +27 -0
  455. package/v1/model/StartSmartLiveRequest.d.ts.map +1 -0
  456. package/v1/model/StartSmartLiveRequest.js +64 -0
  457. package/v1/model/StartSmartLiveRequest.js.map +1 -0
  458. package/v1/model/StartSmartLiveResponse.d.ts +22 -0
  459. package/v1/model/StartSmartLiveResponse.d.ts.map +1 -0
  460. package/v1/model/StartSmartLiveResponse.js +51 -0
  461. package/v1/model/StartSmartLiveResponse.js.map +1 -0
  462. package/v1/model/StopSmartLiveRequest.d.ts +28 -0
  463. package/v1/model/StopSmartLiveRequest.d.ts.map +1 -0
  464. package/v1/model/StopSmartLiveRequest.js +71 -0
  465. package/v1/model/StopSmartLiveRequest.js.map +1 -0
  466. package/v1/model/StopSmartLiveResponse.d.ts +9 -0
  467. package/v1/model/StopSmartLiveResponse.d.ts.map +1 -0
  468. package/v1/model/StopSmartLiveResponse.js +21 -0
  469. package/v1/model/StopSmartLiveResponse.js.map +1 -0
  470. package/v1/model/StopVideoMotionCaptureJobResponse.d.ts +4 -0
  471. package/v1/model/StopVideoMotionCaptureJobResponse.d.ts.map +1 -1
  472. package/v1/model/StopVideoMotionCaptureJobResponse.js +10 -0
  473. package/v1/model/StopVideoMotionCaptureJobResponse.js.map +1 -1
  474. package/v1/model/TextConfig.d.ts +6 -0
  475. package/v1/model/TextConfig.d.ts.map +1 -0
  476. package/v1/model/TextConfig.js +14 -0
  477. package/v1/model/TextConfig.js.map +1 -0
  478. package/v1/model/TextLayerConfig.d.ts +20 -0
  479. package/v1/model/TextLayerConfig.d.ts.map +1 -0
  480. package/v1/model/TextLayerConfig.js +49 -0
  481. package/v1/model/TextLayerConfig.js.map +1 -0
  482. package/v1/model/TriggerProcess.d.ts +35 -0
  483. package/v1/model/TriggerProcess.d.ts.map +1 -0
  484. package/v1/model/TriggerProcess.js +66 -0
  485. package/v1/model/TriggerProcess.js.map +1 -0
  486. package/v1/model/UpdateDigitalAssetResponse.d.ts +4 -0
  487. package/v1/model/UpdateDigitalAssetResponse.d.ts.map +1 -1
  488. package/v1/model/UpdateDigitalAssetResponse.js +10 -0
  489. package/v1/model/UpdateDigitalAssetResponse.js.map +1 -1
  490. package/v1/model/UpdateDigitalHumanBusinessCardRequest.d.ts +27 -0
  491. package/v1/model/UpdateDigitalHumanBusinessCardRequest.d.ts.map +1 -0
  492. package/v1/model/UpdateDigitalHumanBusinessCardRequest.js +64 -0
  493. package/v1/model/UpdateDigitalHumanBusinessCardRequest.js.map +1 -0
  494. package/v1/model/UpdateDigitalHumanBusinessCardResponse.d.ts +13 -0
  495. package/v1/model/UpdateDigitalHumanBusinessCardResponse.d.ts.map +1 -0
  496. package/v1/model/UpdateDigitalHumanBusinessCardResponse.js +31 -0
  497. package/v1/model/UpdateDigitalHumanBusinessCardResponse.js.map +1 -0
  498. package/v1/model/UpdateSmartLiveRoomRequest.d.ts +27 -0
  499. package/v1/model/UpdateSmartLiveRoomRequest.d.ts.map +1 -0
  500. package/v1/model/UpdateSmartLiveRoomRequest.js +64 -0
  501. package/v1/model/UpdateSmartLiveRoomRequest.js.map +1 -0
  502. package/v1/model/UpdateSmartLiveRoomResponse.d.ts +69 -0
  503. package/v1/model/UpdateSmartLiveRoomResponse.d.ts.map +1 -0
  504. package/v1/model/UpdateSmartLiveRoomResponse.js +151 -0
  505. package/v1/model/UpdateSmartLiveRoomResponse.js.map +1 -0
  506. package/v1/model/UpdateVideoScriptRequest.d.ts +27 -0
  507. package/v1/model/UpdateVideoScriptRequest.d.ts.map +1 -0
  508. package/v1/model/UpdateVideoScriptRequest.js +64 -0
  509. package/v1/model/UpdateVideoScriptRequest.js.map +1 -0
  510. package/v1/model/UpdateVideoScriptResponse.d.ts +18 -0
  511. package/v1/model/UpdateVideoScriptResponse.d.ts.map +1 -0
  512. package/v1/model/UpdateVideoScriptResponse.js +41 -0
  513. package/v1/model/UpdateVideoScriptResponse.js.map +1 -0
  514. package/v1/model/UpdateVideoScriptsReq.d.ts +72 -0
  515. package/v1/model/UpdateVideoScriptsReq.d.ts.map +1 -0
  516. package/v1/model/UpdateVideoScriptsReq.js +147 -0
  517. package/v1/model/UpdateVideoScriptsReq.js.map +1 -0
  518. package/v1/model/VideoConfig.d.ts +57 -0
  519. package/v1/model/VideoConfig.d.ts.map +1 -0
  520. package/v1/model/VideoConfig.js +105 -0
  521. package/v1/model/VideoConfig.js.map +1 -0
  522. package/v1/model/VideoLayerConfig.d.ts +12 -0
  523. package/v1/model/VideoLayerConfig.d.ts.map +1 -0
  524. package/v1/model/VideoLayerConfig.js +29 -0
  525. package/v1/model/VideoLayerConfig.js.map +1 -0
  526. package/v1/model/VideoScriptBaseInfo.d.ts +56 -0
  527. package/v1/model/VideoScriptBaseInfo.d.ts.map +1 -0
  528. package/v1/model/VideoScriptBaseInfo.js +119 -0
  529. package/v1/model/VideoScriptBaseInfo.js.map +1 -0
  530. package/v1/model/VoiceConfig.d.ts +14 -0
  531. package/v1/model/VoiceConfig.d.ts.map +1 -0
  532. package/v1/model/VoiceConfig.js +32 -0
  533. package/v1/model/VoiceConfig.js.map +1 -0
  534. package/v1/public-api.d.ts +108 -0
  535. package/v1/public-api.d.ts.map +1 -1
  536. package/v1/public-api.js +108 -0
  537. package/v1/public-api.js.map +1 -1
@@ -6,29 +6,58 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.RequiredError = exports.ParamCreater = exports.MetaStudioClient = void 0;
7
7
  const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
8
8
  const form_data_1 = __importDefault(require("form-data"));
9
+ const Cancel2DDigitalHumanVideoRequest_1 = require("./model/Cancel2DDigitalHumanVideoRequest");
10
+ const CancelPhotoDigitalHumanVideoRequest_1 = require("./model/CancelPhotoDigitalHumanVideoRequest");
9
11
  const ConfirmFileUploadRequest_1 = require("./model/ConfirmFileUploadRequest");
12
+ const Create2DDigitalHumanVideoRequest_1 = require("./model/Create2DDigitalHumanVideoRequest");
10
13
  const CreateDigitalAssetRequest_1 = require("./model/CreateDigitalAssetRequest");
14
+ const CreateDigitalHumanBusinessCardRequest_1 = require("./model/CreateDigitalHumanBusinessCardRequest");
11
15
  const CreateFileRequest_1 = require("./model/CreateFileRequest");
16
+ const CreatePhotoDetectionRequest_1 = require("./model/CreatePhotoDetectionRequest");
17
+ const CreatePhotoDigitalHumanVideoRequest_1 = require("./model/CreatePhotoDigitalHumanVideoRequest");
12
18
  const CreatePictureModelingByUrlJobRequest_1 = require("./model/CreatePictureModelingByUrlJobRequest");
13
19
  const CreatePictureModelingJobRequest_1 = require("./model/CreatePictureModelingJobRequest");
20
+ const CreateSmartLiveRoomRequest_1 = require("./model/CreateSmartLiveRoomRequest");
14
21
  const CreateTtsaRequest_1 = require("./model/CreateTtsaRequest");
15
22
  const CreateVideoMotionCaptureJobRequest_1 = require("./model/CreateVideoMotionCaptureJobRequest");
23
+ const CreateVideoScriptsRequest_1 = require("./model/CreateVideoScriptsRequest");
16
24
  const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
25
+ const DeleteDigitalHumanBusinessCardRequest_1 = require("./model/DeleteDigitalHumanBusinessCardRequest");
17
26
  const DeleteFileRequest_1 = require("./model/DeleteFileRequest");
27
+ const DeleteSmartLiveRoomRequest_1 = require("./model/DeleteSmartLiveRoomRequest");
28
+ const DeleteVideoScriptRequest_1 = require("./model/DeleteVideoScriptRequest");
29
+ const ExecuteSmartLiveCommandRequest_1 = require("./model/ExecuteSmartLiveCommandRequest");
18
30
  const ExecuteVideoMotionCaptureCommandRequest_1 = require("./model/ExecuteVideoMotionCaptureCommandRequest");
19
31
  const ListAssetSummaryRequest_1 = require("./model/ListAssetSummaryRequest");
20
32
  const ListAssetsRequest_1 = require("./model/ListAssetsRequest");
33
+ const ListDigitalHumanBusinessCardRequest_1 = require("./model/ListDigitalHumanBusinessCardRequest");
21
34
  const ListPictureModelingJobsRequest_1 = require("./model/ListPictureModelingJobsRequest");
35
+ const ListSmartLiveRequest_1 = require("./model/ListSmartLiveRequest");
36
+ const ListSmartLiveRoomsRequest_1 = require("./model/ListSmartLiveRoomsRequest");
22
37
  const ListStylesRequest_1 = require("./model/ListStylesRequest");
23
38
  const ListTtsaDataRequest_1 = require("./model/ListTtsaDataRequest");
24
39
  const ListTtsaJobsRequest_1 = require("./model/ListTtsaJobsRequest");
25
40
  const ListVideoMotionCaptureJobsRequest_1 = require("./model/ListVideoMotionCaptureJobsRequest");
41
+ const ListVideoScriptsRequest_1 = require("./model/ListVideoScriptsRequest");
42
+ const LiveEventReportRequest_1 = require("./model/LiveEventReportRequest");
26
43
  const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
44
+ const Show2DDigitalHumanVideoRequest_1 = require("./model/Show2DDigitalHumanVideoRequest");
27
45
  const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
46
+ const ShowDigitalHumanBusinessCardRequest_1 = require("./model/ShowDigitalHumanBusinessCardRequest");
47
+ const ShowPhotoDetectionRequest_1 = require("./model/ShowPhotoDetectionRequest");
48
+ const ShowPhotoDigitalHumanVideoRequest_1 = require("./model/ShowPhotoDigitalHumanVideoRequest");
28
49
  const ShowPictureModelingJobRequest_1 = require("./model/ShowPictureModelingJobRequest");
50
+ const ShowSmartLiveRequest_1 = require("./model/ShowSmartLiveRequest");
51
+ const ShowSmartLiveRoomRequest_1 = require("./model/ShowSmartLiveRoomRequest");
29
52
  const ShowVideoMotionCaptureJobRequest_1 = require("./model/ShowVideoMotionCaptureJobRequest");
53
+ const ShowVideoScriptRequest_1 = require("./model/ShowVideoScriptRequest");
54
+ const StartSmartLiveRequest_1 = require("./model/StartSmartLiveRequest");
55
+ const StopSmartLiveRequest_1 = require("./model/StopSmartLiveRequest");
30
56
  const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
31
57
  const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
58
+ const UpdateDigitalHumanBusinessCardRequest_1 = require("./model/UpdateDigitalHumanBusinessCardRequest");
59
+ const UpdateSmartLiveRoomRequest_1 = require("./model/UpdateSmartLiveRoomRequest");
60
+ const UpdateVideoScriptRequest_1 = require("./model/UpdateVideoScriptRequest");
32
61
  class MetaStudioClient {
33
62
  static newBuilder() {
34
63
  return new ClientBuilder_1.ClientBuilder(newClient);
@@ -55,7 +84,7 @@ class MetaStudioClient {
55
84
  createDigitalAsset(createDigitalAssetRequest) {
56
85
  const options = (0, exports.ParamCreater)().createDigitalAsset(createDigitalAssetRequest);
57
86
  // @ts-ignore
58
- options['responseHeaders'] = [''];
87
+ options['responseHeaders'] = ['X-Request-Id'];
59
88
  return this.hcClient.sendRequest(options);
60
89
  }
61
90
  /**
@@ -75,7 +104,7 @@ class MetaStudioClient {
75
104
  deleteAsset(deleteAssetRequest) {
76
105
  const options = (0, exports.ParamCreater)().deleteAsset(deleteAssetRequest);
77
106
  // @ts-ignore
78
- options['responseHeaders'] = [''];
107
+ options['responseHeaders'] = ['X-Request-Id'];
79
108
  return this.hcClient.sendRequest(options);
80
109
  }
81
110
  /**
@@ -93,7 +122,7 @@ class MetaStudioClient {
93
122
  listAssetSummary(listAssetSummaryRequest) {
94
123
  const options = (0, exports.ParamCreater)().listAssetSummary(listAssetSummaryRequest);
95
124
  // @ts-ignore
96
- options['responseHeaders'] = [''];
125
+ options['responseHeaders'] = ['X-Request-Id'];
97
126
  return this.hcClient.sendRequest(options);
98
127
  }
99
128
  /**
@@ -130,7 +159,7 @@ class MetaStudioClient {
130
159
  listAssets(listAssetsRequest) {
131
160
  const options = (0, exports.ParamCreater)().listAssets(listAssetsRequest);
132
161
  // @ts-ignore
133
- options['responseHeaders'] = [''];
162
+ options['responseHeaders'] = ['X-Request-Id'];
134
163
  return this.hcClient.sendRequest(options);
135
164
  }
136
165
  /**
@@ -149,7 +178,7 @@ class MetaStudioClient {
149
178
  restoreAsset(restoreAssetRequest) {
150
179
  const options = (0, exports.ParamCreater)().restoreAsset(restoreAssetRequest);
151
180
  // @ts-ignore
152
- options['responseHeaders'] = [''];
181
+ options['responseHeaders'] = ['X-Request-Id'];
153
182
  return this.hcClient.sendRequest(options);
154
183
  }
155
184
  /**
@@ -168,7 +197,7 @@ class MetaStudioClient {
168
197
  showAsset(showAssetRequest) {
169
198
  const options = (0, exports.ParamCreater)().showAsset(showAssetRequest);
170
199
  // @ts-ignore
171
- options['responseHeaders'] = [''];
200
+ options['responseHeaders'] = ['X-Request-Id'];
172
201
  return this.hcClient.sendRequest(options);
173
202
  }
174
203
  /**
@@ -188,7 +217,277 @@ class MetaStudioClient {
188
217
  updateDigitalAsset(updateDigitalAssetRequest) {
189
218
  const options = (0, exports.ParamCreater)().updateDigitalAsset(updateDigitalAssetRequest);
190
219
  // @ts-ignore
191
- options['responseHeaders'] = [''];
220
+ options['responseHeaders'] = ['X-Request-Id'];
221
+ return this.hcClient.sendRequest(options);
222
+ }
223
+ /**
224
+ * 该接口用于数字人名片制作任务。
225
+ *
226
+ * Please refer to HUAWEI cloud API Explorer for details.
227
+ *
228
+ * @summary 创建数字人名片制作
229
+ * @param {CreateDigitalHumanBusinessCardReq} createDigitalHumanBusinessCardRequestBody 数字人名片制作创建请求。
230
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
231
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
232
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
233
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ createDigitalHumanBusinessCard(createDigitalHumanBusinessCardRequest) {
238
+ const options = (0, exports.ParamCreater)().createDigitalHumanBusinessCard(createDigitalHumanBusinessCardRequest);
239
+ // @ts-ignore
240
+ options['responseHeaders'] = ['X-Request-Id'];
241
+ return this.hcClient.sendRequest(options);
242
+ }
243
+ /**
244
+ * 该接口用于删除数字人名片制作任务。
245
+ *
246
+ * Please refer to HUAWEI cloud API Explorer for details.
247
+ *
248
+ * @summary 删除数字人名片制作任务
249
+ * @param {string} jobId 任务ID。
250
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
251
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
252
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
253
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ deleteDigitalHumanBusinessCard(deleteDigitalHumanBusinessCardRequest) {
258
+ const options = (0, exports.ParamCreater)().deleteDigitalHumanBusinessCard(deleteDigitalHumanBusinessCardRequest);
259
+ // @ts-ignore
260
+ options['responseHeaders'] = ['X-Request-Id'];
261
+ return this.hcClient.sendRequest(options);
262
+ }
263
+ /**
264
+ * 该接口用于查询数字人名片制作任务列表。
265
+ *
266
+ * Please refer to HUAWEI cloud API Explorer for details.
267
+ *
268
+ * @summary 查询数字人名片制作任务列表
269
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
270
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
271
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
272
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
273
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
274
+ * @param {number} [limit] 每页显示的条目数量。
275
+ * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
276
+ * @param {string} [sortKey] 排序字段,目前只支持create_time。
277
+ * @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
278
+ * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
279
+ * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
280
+ * @param {string} [videoAssetName] 输出的视频资产名称。
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ listDigitalHumanBusinessCard(listDigitalHumanBusinessCardRequest) {
285
+ const options = (0, exports.ParamCreater)().listDigitalHumanBusinessCard(listDigitalHumanBusinessCardRequest);
286
+ // @ts-ignore
287
+ options['responseHeaders'] = ['X-Request-Id'];
288
+ return this.hcClient.sendRequest(options);
289
+ }
290
+ /**
291
+ * 该接口用于查询数字人名片制作任务详情。
292
+ *
293
+ * Please refer to HUAWEI cloud API Explorer for details.
294
+ *
295
+ * @summary 查询数字人名片制作任务详情
296
+ * @param {string} jobId 任务ID。
297
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
298
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
299
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
300
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ */
304
+ showDigitalHumanBusinessCard(showDigitalHumanBusinessCardRequest) {
305
+ const options = (0, exports.ParamCreater)().showDigitalHumanBusinessCard(showDigitalHumanBusinessCardRequest);
306
+ // @ts-ignore
307
+ options['responseHeaders'] = ['X-Request-Id'];
308
+ return this.hcClient.sendRequest(options);
309
+ }
310
+ /**
311
+ * 该接口用于更新数字人名片制作任务。
312
+ *
313
+ * Please refer to HUAWEI cloud API Explorer for details.
314
+ *
315
+ * @summary 更新数字人名片制作
316
+ * @param {string} jobId 任务ID。
317
+ * @param {CreateDigitalHumanBusinessCardReq} updateDigitalHumanBusinessCardRequestBody 数字人名片制作创建请求。
318
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
319
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
320
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
321
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ updateDigitalHumanBusinessCard(updateDigitalHumanBusinessCardRequest) {
326
+ const options = (0, exports.ParamCreater)().updateDigitalHumanBusinessCard(updateDigitalHumanBusinessCardRequest);
327
+ // @ts-ignore
328
+ options['responseHeaders'] = ['X-Request-Id'];
329
+ return this.hcClient.sendRequest(options);
330
+ }
331
+ /**
332
+ * 该接口用于取消等待中的分身数字人视频制作任务。
333
+ *
334
+ * Please refer to HUAWEI cloud API Explorer for details.
335
+ *
336
+ * @summary 取消等待中的分身数字人视频制作任务
337
+ * @param {string} jobId 任务ID。
338
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
339
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
340
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
341
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ cancel2DDigitalHumanVideo(cancel2DDigitalHumanVideoRequest) {
346
+ const options = (0, exports.ParamCreater)().cancel2DDigitalHumanVideo(cancel2DDigitalHumanVideoRequest);
347
+ // @ts-ignore
348
+ options['responseHeaders'] = ['X-Request-Id'];
349
+ return this.hcClient.sendRequest(options);
350
+ }
351
+ /**
352
+ * 该接口用于创建分身数字人视频制作任务。
353
+ *
354
+ * Please refer to HUAWEI cloud API Explorer for details.
355
+ *
356
+ * @summary 创建分身数字人视频制作任务
357
+ * @param {Create2DDigitalHumanVideoReq} create2DDigitalHumanVideoRequestBody 视频制作创建请求。
358
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
359
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
360
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
361
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ create2DDigitalHumanVideo(create2DDigitalHumanVideoRequest) {
366
+ const options = (0, exports.ParamCreater)().create2DDigitalHumanVideo(create2DDigitalHumanVideoRequest);
367
+ // @ts-ignore
368
+ options['responseHeaders'] = ['X-Request-Id'];
369
+ return this.hcClient.sendRequest(options);
370
+ }
371
+ /**
372
+ * 该接口用于查询分身数字人视频制作任务详情。
373
+ *
374
+ * Please refer to HUAWEI cloud API Explorer for details.
375
+ *
376
+ * @summary 查询分身数字人视频制作任务详情
377
+ * @param {string} jobId 任务ID。
378
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
379
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
380
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
381
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
382
+ * @param {boolean} [showScript] 是否需要返回剧本参数配置。
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ show2DDigitalHumanVideo(show2DDigitalHumanVideoRequest) {
387
+ const options = (0, exports.ParamCreater)().show2DDigitalHumanVideo(show2DDigitalHumanVideoRequest);
388
+ // @ts-ignore
389
+ options['responseHeaders'] = ['X-Request-Id'];
390
+ return this.hcClient.sendRequest(options);
391
+ }
392
+ /**
393
+ * 该接口用于取消等待中的照片分身数字人视频制作任务。
394
+ *
395
+ * Please refer to HUAWEI cloud API Explorer for details.
396
+ *
397
+ * @summary 取消等待中的照片分身数字人视频制作任务
398
+ * @param {string} jobId 任务ID。
399
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
400
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
401
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
402
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ cancelPhotoDigitalHumanVideo(cancelPhotoDigitalHumanVideoRequest) {
407
+ const options = (0, exports.ParamCreater)().cancelPhotoDigitalHumanVideo(cancelPhotoDigitalHumanVideoRequest);
408
+ // @ts-ignore
409
+ options['responseHeaders'] = ['X-Request-Id'];
410
+ return this.hcClient.sendRequest(options);
411
+ }
412
+ /**
413
+ * 该接口用于创建照片检测任务,检测照片是否满足制作照片数字人的要求。
414
+ *
415
+ * Please refer to HUAWEI cloud API Explorer for details.
416
+ *
417
+ * @summary 创建照片检测任务
418
+ * @param {CreatePhotoDetectionReq} createPhotoDetectionRequestBody 照片检测创建请求。
419
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
420
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
421
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
422
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ createPhotoDetection(createPhotoDetectionRequest) {
427
+ const options = (0, exports.ParamCreater)().createPhotoDetection(createPhotoDetectionRequest);
428
+ // @ts-ignore
429
+ options['responseHeaders'] = ['X-Request-Id'];
430
+ return this.hcClient.sendRequest(options);
431
+ }
432
+ /**
433
+ * 该接口用于创建照片分身数字人视频制作任务。
434
+ *
435
+ * Please refer to HUAWEI cloud API Explorer for details.
436
+ *
437
+ * @summary 创建照片分身数字人视频制作任务
438
+ * @param {CreatePhotoDigitalHumanVideoReq} createPhotoDigitalHumanVideoRequestBody 视频制作创建请求。
439
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
440
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
441
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
442
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ createPhotoDigitalHumanVideo(createPhotoDigitalHumanVideoRequest) {
447
+ const options = (0, exports.ParamCreater)().createPhotoDigitalHumanVideo(createPhotoDigitalHumanVideoRequest);
448
+ // @ts-ignore
449
+ options['responseHeaders'] = ['X-Request-Id'];
450
+ return this.hcClient.sendRequest(options);
451
+ }
452
+ /**
453
+ * 该接口用于查询照片检测任务详情。
454
+ *
455
+ * Please refer to HUAWEI cloud API Explorer for details.
456
+ *
457
+ * @summary 查询照片检测任务详情
458
+ * @param {string} jobId 任务ID。
459
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
460
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
461
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
462
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
463
+ * @param {*} [options] Override http request option.
464
+ * @throws {RequiredError}
465
+ */
466
+ showPhotoDetection(showPhotoDetectionRequest) {
467
+ const options = (0, exports.ParamCreater)().showPhotoDetection(showPhotoDetectionRequest);
468
+ // @ts-ignore
469
+ options['responseHeaders'] = ['X-Request-Id'];
470
+ return this.hcClient.sendRequest(options);
471
+ }
472
+ /**
473
+ * 该接口用于查询照片分身数字人视频制作任务详情。
474
+ *
475
+ * Please refer to HUAWEI cloud API Explorer for details.
476
+ *
477
+ * @summary 查询照片分身数字人视频制作任务详情
478
+ * @param {string} jobId 任务ID。
479
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
480
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
481
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
482
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
483
+ * @param {boolean} [showScript] 是否需要返回剧本参数配置。
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ */
487
+ showPhotoDigitalHumanVideo(showPhotoDigitalHumanVideoRequest) {
488
+ const options = (0, exports.ParamCreater)().showPhotoDigitalHumanVideo(showPhotoDigitalHumanVideoRequest);
489
+ // @ts-ignore
490
+ options['responseHeaders'] = ['X-Request-Id'];
192
491
  return this.hcClient.sendRequest(options);
193
492
  }
194
493
  /**
@@ -208,7 +507,7 @@ class MetaStudioClient {
208
507
  confirmFileUpload(confirmFileUploadRequest) {
209
508
  const options = (0, exports.ParamCreater)().confirmFileUpload(confirmFileUploadRequest);
210
509
  // @ts-ignore
211
- options['responseHeaders'] = [''];
510
+ options['responseHeaders'] = ['X-Request-Id'];
212
511
  return this.hcClient.sendRequest(options);
213
512
  }
214
513
  /**
@@ -227,7 +526,7 @@ class MetaStudioClient {
227
526
  createFile(createFileRequest) {
228
527
  const options = (0, exports.ParamCreater)().createFile(createFileRequest);
229
528
  // @ts-ignore
230
- options['responseHeaders'] = [''];
529
+ options['responseHeaders'] = ['X-Request-Id'];
231
530
  return this.hcClient.sendRequest(options);
232
531
  }
233
532
  /**
@@ -246,7 +545,7 @@ class MetaStudioClient {
246
545
  deleteFile(deleteFileRequest) {
247
546
  const options = (0, exports.ParamCreater)().deleteFile(deleteFileRequest);
248
547
  // @ts-ignore
249
- options['responseHeaders'] = [''];
548
+ options['responseHeaders'] = ['X-Request-Id'];
250
549
  return this.hcClient.sendRequest(options);
251
550
  }
252
551
  /**
@@ -260,13 +559,14 @@ class MetaStudioClient {
260
559
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
261
560
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
262
561
  * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
562
+ * @param {string} [xUserPrivilege] 测试用户判断。
263
563
  * @param {*} [options] Override http request option.
264
564
  * @throws {RequiredError}
265
565
  */
266
566
  createPictureModelingByUrlJob(createPictureModelingByUrlJobRequest) {
267
567
  const options = (0, exports.ParamCreater)().createPictureModelingByUrlJob(createPictureModelingByUrlJobRequest);
268
568
  // @ts-ignore
269
- options['responseHeaders'] = [''];
569
+ options['responseHeaders'] = ['X-Request-Id'];
270
570
  return this.hcClient.sendRequest(options);
271
571
  }
272
572
  /**
@@ -290,7 +590,7 @@ class MetaStudioClient {
290
590
  createPictureModelingJob(createPictureModelingJobRequest) {
291
591
  const options = (0, exports.ParamCreater)().createPictureModelingJob(createPictureModelingJobRequest);
292
592
  // @ts-ignore
293
- options['responseHeaders'] = [''];
593
+ options['responseHeaders'] = ['X-Request-Id'];
294
594
  return this.hcClient.sendRequest(options);
295
595
  }
296
596
  /**
@@ -316,7 +616,7 @@ class MetaStudioClient {
316
616
  listPictureModelingJobs(listPictureModelingJobsRequest) {
317
617
  const options = (0, exports.ParamCreater)().listPictureModelingJobs(listPictureModelingJobsRequest);
318
618
  // @ts-ignore
319
- options['responseHeaders'] = [''];
619
+ options['responseHeaders'] = ['X-Request-Id'];
320
620
  return this.hcClient.sendRequest(options);
321
621
  }
322
622
  /**
@@ -336,126 +636,133 @@ class MetaStudioClient {
336
636
  showPictureModelingJob(showPictureModelingJobRequest) {
337
637
  const options = (0, exports.ParamCreater)().showPictureModelingJob(showPictureModelingJobRequest);
338
638
  // @ts-ignore
339
- options['responseHeaders'] = [''];
639
+ options['responseHeaders'] = ['X-Request-Id'];
340
640
  return this.hcClient.sendRequest(options);
341
641
  }
342
642
  /**
343
- * 查询数字人风格列表
643
+ * 该接口用于控制数字人直播过程。
344
644
  *
345
645
  * Please refer to HUAWEI cloud API Explorer for details.
346
646
  *
347
- * @summary 查询数字人风格列表
647
+ * @summary 控制数字人直播过程
648
+ * @param {string} roomId 剧本ID。
649
+ * @param {string} jobId 任务ID。
650
+ * @param {ControlSmartLiveReq} executeSmartLiveCommandRequestBody 控制数字人直播请求。
348
651
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
349
652
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
350
653
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
351
654
  * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
352
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
353
- * @param {number} [limit] 每页显示的条目数量。
354
- * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
355
- * @param {string} [sortKey] 排序字段,目前只支持create_time。
356
- * @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
357
- * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
358
- * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
359
655
  * @param {*} [options] Override http request option.
360
656
  * @throws {RequiredError}
361
657
  */
362
- listStyles(listStylesRequest) {
363
- const options = (0, exports.ParamCreater)().listStyles(listStylesRequest);
658
+ executeSmartLiveCommand(executeSmartLiveCommandRequest) {
659
+ const options = (0, exports.ParamCreater)().executeSmartLiveCommand(executeSmartLiveCommandRequest);
364
660
  // @ts-ignore
365
- options['responseHeaders'] = [''];
661
+ options['responseHeaders'] = ['X-Request-Id'];
366
662
  return this.hcClient.sendRequest(options);
367
663
  }
368
664
  /**
369
- * 该接口用于创建驱动数字人表情、动作及语音的任务。
665
+ * 该接口用于查询数字人智能直播任务列表。
370
666
  *
371
667
  * Please refer to HUAWEI cloud API Explorer for details.
372
668
  *
373
- * @summary 创建语音驱动任务
374
- * @param {CreateTTSAReq} createTTSARequestBody 数字人语音驱动任务创建请求。
669
+ * @summary 查询数字人智能直播任务列表
670
+ * @param {string} roomId 剧本ID。
375
671
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
376
672
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
377
673
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
378
674
  * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
379
- * @param {string} [xUserPrivilege] 账号类型(INTERNAL_TEST:测试账号)
675
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
676
+ * @param {number} [limit] 每页显示的条目数量。
677
+ * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
678
+ * @param {string} [sortKey] 排序字段,目前只支持create_time。
679
+ * @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
680
+ * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
681
+ * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
380
682
  * @param {*} [options] Override http request option.
381
683
  * @throws {RequiredError}
382
684
  */
383
- createTtsa(createTtsaRequest) {
384
- const options = (0, exports.ParamCreater)().createTtsa(createTtsaRequest);
685
+ listSmartLive(listSmartLiveRequest) {
686
+ const options = (0, exports.ParamCreater)().listSmartLive(listSmartLiveRequest);
385
687
  // @ts-ignore
386
- options['responseHeaders'] = [''];
688
+ options['responseHeaders'] = ['X-Request-Id'];
387
689
  return this.hcClient.sendRequest(options);
388
690
  }
389
691
  /**
390
- * 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
692
+ * 该接口用于上报直播间事件。
391
693
  *
392
694
  * Please refer to HUAWEI cloud API Explorer for details.
393
695
  *
394
- * @summary 获取语音驱动数据
696
+ * @summary 上报直播间事件
697
+ * @param {string} roomId 剧本ID。
395
698
  * @param {string} jobId 任务ID。
699
+ * @param {ReportLiveEventReq} liveEventReportRequestBody 上报直播间事件请求。
396
700
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
397
701
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
398
702
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
399
- * @param {number} [offset] 偏移量,表示生成内容时间偏移,目前每次返回2秒内容。
703
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
704
+ * @param {string} [authKey] 鉴权Key。通过HmacSHA256生成的鉴权key
705
+ * @param {number} [expiresTime] 鉴权key过期时间。从1970年1月1日(UTC/GMT的午夜)开始所经过的豪秒数。
706
+ * @param {boolean} [refreshUrl] 是否刷新URL
400
707
  * @param {*} [options] Override http request option.
401
708
  * @throws {RequiredError}
402
709
  */
403
- listTtsaData(listTtsaDataRequest) {
404
- const options = (0, exports.ParamCreater)().listTtsaData(listTtsaDataRequest);
710
+ liveEventReport(liveEventReportRequest) {
711
+ const options = (0, exports.ParamCreater)().liveEventReport(liveEventReportRequest);
405
712
  // @ts-ignore
406
- options['responseHeaders'] = [''];
713
+ options['responseHeaders'] = ['X-Request-Id'];
407
714
  return this.hcClient.sendRequest(options);
408
715
  }
409
716
  /**
410
- * 该接口用于查询驱动数字人表情、动作及语音的任务列表。
717
+ * 该接口用于查询数字人智能直播任务详情。
411
718
  *
412
719
  * Please refer to HUAWEI cloud API Explorer for details.
413
720
  *
414
- * @summary 获取语音驱动任务列表
721
+ * @summary 查询数字人智能直播任务详情
722
+ * @param {string} roomId 剧本ID。
723
+ * @param {string} jobId 任务ID。
415
724
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
416
725
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
417
726
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
418
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
419
- * @param {number} [limit] 每页显示的条目数量。
420
727
  * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
421
728
  * @param {*} [options] Override http request option.
422
729
  * @throws {RequiredError}
423
730
  */
424
- listTtsaJobs(listTtsaJobsRequest) {
425
- const options = (0, exports.ParamCreater)().listTtsaJobs(listTtsaJobsRequest);
731
+ showSmartLive(showSmartLiveRequest) {
732
+ const options = (0, exports.ParamCreater)().showSmartLive(showSmartLiveRequest);
426
733
  // @ts-ignore
427
- options['responseHeaders'] = [''];
734
+ options['responseHeaders'] = ['X-Request-Id'];
428
735
  return this.hcClient.sendRequest(options);
429
736
  }
430
737
  /**
431
- * 该接口用于创建视频驱动任务。
738
+ * 该接口用于启动数字人智能直播任务。
432
739
  *
433
740
  * Please refer to HUAWEI cloud API Explorer for details.
434
741
  *
435
- * @summary 创建视频驱动任务
436
- * @param {VideoMotionCaptureJobReq} createVideoMotionCaptureJobRequestBody 视频驱动任务创建请求。
742
+ * @summary 启动数字人智能直播任务
743
+ * @param {string} roomId 剧本ID。
744
+ * @param {StartSmartLiveReq} startSmartLiveRequestBody 数字人智能直播任务创建请求。
437
745
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
438
746
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
439
747
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
440
748
  * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
441
- * @param {string} [xUserPrivilege] 测试用户判断。
442
749
  * @param {*} [options] Override http request option.
443
750
  * @throws {RequiredError}
444
751
  */
445
- createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest) {
446
- const options = (0, exports.ParamCreater)().createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest);
752
+ startSmartLive(startSmartLiveRequest) {
753
+ const options = (0, exports.ParamCreater)().startSmartLive(startSmartLiveRequest);
447
754
  // @ts-ignore
448
- options['responseHeaders'] = [''];
755
+ options['responseHeaders'] = ['X-Request-Id'];
449
756
  return this.hcClient.sendRequest(options);
450
757
  }
451
758
  /**
452
- * 该接口用于控制数字人驱动。
759
+ * 该接口用于结束数字人智能直播任务。
453
760
  *
454
761
  * Please refer to HUAWEI cloud API Explorer for details.
455
762
  *
456
- * @summary 控制数字人驱动
763
+ * @summary 结束数字人智能直播任务
764
+ * @param {string} roomId 剧本ID。
457
765
  * @param {string} jobId 任务ID。
458
- * @param {ControlDigitalHumanLiveReq} executeVideoMotionCaptureCommandRequestBody 控制数字人驱动。
459
766
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
460
767
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
461
768
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
@@ -463,40 +770,278 @@ class MetaStudioClient {
463
770
  * @param {*} [options] Override http request option.
464
771
  * @throws {RequiredError}
465
772
  */
466
- executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest) {
467
- const options = (0, exports.ParamCreater)().executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest);
773
+ stopSmartLive(stopSmartLiveRequest) {
774
+ const options = (0, exports.ParamCreater)().stopSmartLive(stopSmartLiveRequest);
468
775
  // @ts-ignore
469
- options['responseHeaders'] = [''];
776
+ options['responseHeaders'] = ['X-Request-Id'];
470
777
  return this.hcClient.sendRequest(options);
471
778
  }
472
779
  /**
473
- * 该接口用于查询视频驱动任务列表。
780
+ * 该接口用于创建智能直播间。
474
781
  *
475
782
  * Please refer to HUAWEI cloud API Explorer for details.
476
783
  *
477
- * @summary 查询视频驱动任务列表
784
+ * @summary 创建智能直播间
785
+ * @param {CreateSmartLiveRoomReq} createSmartLiveRoomRequestBody 创建智能直播间请求。
478
786
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
479
787
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
480
788
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
481
789
  * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
482
- * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
483
- * @param {number} [limit] 每页显示的条目数量。
484
790
  * @param {*} [options] Override http request option.
485
791
  * @throws {RequiredError}
486
792
  */
487
- listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest) {
488
- const options = (0, exports.ParamCreater)().listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest);
793
+ createSmartLiveRoom(createSmartLiveRoomRequest) {
794
+ const options = (0, exports.ParamCreater)().createSmartLiveRoom(createSmartLiveRoomRequest);
489
795
  // @ts-ignore
490
- options['responseHeaders'] = [''];
796
+ options['responseHeaders'] = ['X-Request-Id'];
491
797
  return this.hcClient.sendRequest(options);
492
798
  }
493
799
  /**
494
- * 该接口用于查询视频驱动任务详情。
800
+ * 该接口用于删除智能直播间。
495
801
  *
496
802
  * Please refer to HUAWEI cloud API Explorer for details.
497
803
  *
498
- * @summary 查询视频驱动任务详情
499
- * @param {string} jobId 任务ID。
804
+ * @summary 删除智能直播间
805
+ * @param {string} roomId 剧本ID。
806
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
807
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
808
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
809
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ deleteSmartLiveRoom(deleteSmartLiveRoomRequest) {
814
+ const options = (0, exports.ParamCreater)().deleteSmartLiveRoom(deleteSmartLiveRoomRequest);
815
+ // @ts-ignore
816
+ options['responseHeaders'] = ['X-Request-Id'];
817
+ return this.hcClient.sendRequest(options);
818
+ }
819
+ /**
820
+ * 该接口用于智能直播间列表。
821
+ *
822
+ * Please refer to HUAWEI cloud API Explorer for details.
823
+ *
824
+ * @summary 查询智能直播间列表
825
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
826
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
827
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
828
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
829
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
830
+ * @param {number} [limit] 每页显示的条目数量。
831
+ * @param {string} [roomName] 按直播间名称模糊查询。
832
+ * @param {string} [dhId] 按数字人形象ID查询。
833
+ * @param {string} [modelName] 按形象名称模糊查询。
834
+ * @param {string} [liveState] 当前直播间直播状态。 WAITING,PROCESSING,SUCCESS,FAILED对应直播任务状态 NULL 对应没有直播任务 可多个状态查询,使用英文逗号分隔。
835
+ * @param {string} [startTime] 最近直播任务起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
836
+ * @param {string} [endTime] 最近直播任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ listSmartLiveRooms(listSmartLiveRoomsRequest) {
841
+ const options = (0, exports.ParamCreater)().listSmartLiveRooms(listSmartLiveRoomsRequest);
842
+ // @ts-ignore
843
+ options['responseHeaders'] = ['X-Request-Id'];
844
+ return this.hcClient.sendRequest(options);
845
+ }
846
+ /**
847
+ * 该接口用于查询智能直播剧本详情。
848
+ *
849
+ * Please refer to HUAWEI cloud API Explorer for details.
850
+ *
851
+ * @summary 查询智能直播剧本详情
852
+ * @param {string} roomId 剧本ID。
853
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
854
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
855
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
856
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ showSmartLiveRoom(showSmartLiveRoomRequest) {
861
+ const options = (0, exports.ParamCreater)().showSmartLiveRoom(showSmartLiveRoomRequest);
862
+ // @ts-ignore
863
+ options['responseHeaders'] = ['X-Request-Id'];
864
+ return this.hcClient.sendRequest(options);
865
+ }
866
+ /**
867
+ * 该接口用于智能直播间信息。
868
+ *
869
+ * Please refer to HUAWEI cloud API Explorer for details.
870
+ *
871
+ * @summary 更新智能直播间信息
872
+ * @param {string} roomId 剧本ID。
873
+ * @param {CreateSmartLiveRoomReq} updateSmartLiveRoomRequestBody 更新智能直播间请求。
874
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
875
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
876
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
877
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ updateSmartLiveRoom(updateSmartLiveRoomRequest) {
882
+ const options = (0, exports.ParamCreater)().updateSmartLiveRoom(updateSmartLiveRoomRequest);
883
+ // @ts-ignore
884
+ options['responseHeaders'] = ['X-Request-Id'];
885
+ return this.hcClient.sendRequest(options);
886
+ }
887
+ /**
888
+ * 查询数字人风格列表
889
+ *
890
+ * Please refer to HUAWEI cloud API Explorer for details.
891
+ *
892
+ * @summary 查询数字人风格列表
893
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
894
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
895
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
896
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
897
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
898
+ * @param {number} [limit] 每页显示的条目数量。
899
+ * @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
900
+ * @param {string} [sortKey] 排序字段,目前只支持create_time。
901
+ * @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
902
+ * @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
903
+ * @param {string} [createSince] 过滤创建时间>=输入时间的记录。
904
+ * @param {*} [options] Override http request option.
905
+ * @throws {RequiredError}
906
+ */
907
+ listStyles(listStylesRequest) {
908
+ const options = (0, exports.ParamCreater)().listStyles(listStylesRequest);
909
+ // @ts-ignore
910
+ options['responseHeaders'] = ['X-Request-Id'];
911
+ return this.hcClient.sendRequest(options);
912
+ }
913
+ /**
914
+ * 该接口用于创建驱动数字人表情、动作及语音的任务。
915
+ *
916
+ * Please refer to HUAWEI cloud API Explorer for details.
917
+ *
918
+ * @summary 创建语音驱动任务
919
+ * @param {CreateTTSAReq} createTTSARequestBody 数字人语音驱动任务创建请求。
920
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
921
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
922
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
923
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
924
+ * @param {string} [xUserPrivilege] 账号类型(INTERNAL_TEST:测试账号)
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ createTtsa(createTtsaRequest) {
929
+ const options = (0, exports.ParamCreater)().createTtsa(createTtsaRequest);
930
+ // @ts-ignore
931
+ options['responseHeaders'] = ['X-Request-Id'];
932
+ return this.hcClient.sendRequest(options);
933
+ }
934
+ /**
935
+ * 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
936
+ *
937
+ * Please refer to HUAWEI cloud API Explorer for details.
938
+ *
939
+ * @summary 获取语音驱动数据
940
+ * @param {string} jobId 任务ID。
941
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
942
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
943
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
944
+ * @param {number} [offset] 偏移量,表示生成内容时间偏移,目前每次返回2秒内容。
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ listTtsaData(listTtsaDataRequest) {
949
+ const options = (0, exports.ParamCreater)().listTtsaData(listTtsaDataRequest);
950
+ // @ts-ignore
951
+ options['responseHeaders'] = ['X-Request-Id'];
952
+ return this.hcClient.sendRequest(options);
953
+ }
954
+ /**
955
+ * 该接口用于查询驱动数字人表情、动作及语音的任务列表。
956
+ *
957
+ * Please refer to HUAWEI cloud API Explorer for details.
958
+ *
959
+ * @summary 获取语音驱动任务列表
960
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
961
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
962
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
963
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
964
+ * @param {number} [limit] 每页显示的条目数量。
965
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
966
+ * @param {*} [options] Override http request option.
967
+ * @throws {RequiredError}
968
+ */
969
+ listTtsaJobs(listTtsaJobsRequest) {
970
+ const options = (0, exports.ParamCreater)().listTtsaJobs(listTtsaJobsRequest);
971
+ // @ts-ignore
972
+ options['responseHeaders'] = ['X-Request-Id'];
973
+ return this.hcClient.sendRequest(options);
974
+ }
975
+ /**
976
+ * 该接口用于创建视频驱动任务。
977
+ *
978
+ * Please refer to HUAWEI cloud API Explorer for details.
979
+ *
980
+ * @summary 创建视频驱动任务
981
+ * @param {VideoMotionCaptureJobReq} createVideoMotionCaptureJobRequestBody 视频驱动任务创建请求。
982
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
983
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
984
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
985
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
986
+ * @param {string} [xUserPrivilege] 测试用户判断。
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest) {
991
+ const options = (0, exports.ParamCreater)().createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest);
992
+ // @ts-ignore
993
+ options['responseHeaders'] = ['X-Request-Id'];
994
+ return this.hcClient.sendRequest(options);
995
+ }
996
+ /**
997
+ * 该接口用于控制数字人驱动。
998
+ *
999
+ * Please refer to HUAWEI cloud API Explorer for details.
1000
+ *
1001
+ * @summary 控制数字人驱动
1002
+ * @param {string} jobId 任务ID。
1003
+ * @param {ControlDigitalHumanLiveReq} executeVideoMotionCaptureCommandRequestBody 控制数字人驱动。
1004
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1005
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1006
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1007
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest) {
1012
+ const options = (0, exports.ParamCreater)().executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest);
1013
+ // @ts-ignore
1014
+ options['responseHeaders'] = ['X-Request-Id'];
1015
+ return this.hcClient.sendRequest(options);
1016
+ }
1017
+ /**
1018
+ * 该接口用于查询视频驱动任务列表。
1019
+ *
1020
+ * Please refer to HUAWEI cloud API Explorer for details.
1021
+ *
1022
+ * @summary 查询视频驱动任务列表
1023
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1024
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1025
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1026
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1027
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1028
+ * @param {number} [limit] 每页显示的条目数量。
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ */
1032
+ listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest) {
1033
+ const options = (0, exports.ParamCreater)().listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest);
1034
+ // @ts-ignore
1035
+ options['responseHeaders'] = ['X-Request-Id'];
1036
+ return this.hcClient.sendRequest(options);
1037
+ }
1038
+ /**
1039
+ * 该接口用于查询视频驱动任务详情。
1040
+ *
1041
+ * Please refer to HUAWEI cloud API Explorer for details.
1042
+ *
1043
+ * @summary 查询视频驱动任务详情
1044
+ * @param {string} jobId 任务ID。
500
1045
  * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
501
1046
  * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
502
1047
  * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
@@ -507,7 +1052,7 @@ class MetaStudioClient {
507
1052
  showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest) {
508
1053
  const options = (0, exports.ParamCreater)().showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest);
509
1054
  // @ts-ignore
510
- options['responseHeaders'] = [''];
1055
+ options['responseHeaders'] = ['X-Request-Id'];
511
1056
  return this.hcClient.sendRequest(options);
512
1057
  }
513
1058
  /**
@@ -527,22 +1072,1540 @@ class MetaStudioClient {
527
1072
  stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest) {
528
1073
  const options = (0, exports.ParamCreater)().stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest);
529
1074
  // @ts-ignore
530
- options['responseHeaders'] = [''];
1075
+ options['responseHeaders'] = ['X-Request-Id'];
531
1076
  return this.hcClient.sendRequest(options);
532
1077
  }
533
- }
534
- exports.MetaStudioClient = MetaStudioClient;
535
- const ParamCreater = function () {
536
- return {
1078
+ /**
1079
+ * 该接口用于创建视频制作剧本。
1080
+ *
1081
+ * Please refer to HUAWEI cloud API Explorer for details.
1082
+ *
1083
+ * @summary 创建视频制作剧本
1084
+ * @param {CreateVideoScriptsReq} createVideoScriptsRequestBody 创建视频制作脚本请求。
1085
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1086
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1087
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1088
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ createVideoScripts(createVideoScriptsRequest) {
1093
+ const options = (0, exports.ParamCreater)().createVideoScripts(createVideoScriptsRequest);
1094
+ // @ts-ignore
1095
+ options['responseHeaders'] = ['X-Request-Id'];
1096
+ return this.hcClient.sendRequest(options);
1097
+ }
1098
+ /**
1099
+ * 该接口用于删除视频制作剧本。
1100
+ *
1101
+ * Please refer to HUAWEI cloud API Explorer for details.
1102
+ *
1103
+ * @summary 删除视频制作剧本
1104
+ * @param {string} scriptId 剧本ID。
1105
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1106
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1107
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1108
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1109
+ * @param {*} [options] Override http request option.
1110
+ * @throws {RequiredError}
1111
+ */
1112
+ deleteVideoScript(deleteVideoScriptRequest) {
1113
+ const options = (0, exports.ParamCreater)().deleteVideoScript(deleteVideoScriptRequest);
1114
+ // @ts-ignore
1115
+ options['responseHeaders'] = ['X-Request-Id'];
1116
+ return this.hcClient.sendRequest(options);
1117
+ }
1118
+ /**
1119
+ * 该接口用于查询视频制作剧本列表。
1120
+ *
1121
+ * Please refer to HUAWEI cloud API Explorer for details.
1122
+ *
1123
+ * @summary 查询视频制作剧本列表
1124
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1125
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1126
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1127
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1128
+ * @param {number} [offset] 偏移量,表示从此偏移量开始查询。
1129
+ * @param {number} [limit] 每页显示的条目数量。
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ listVideoScripts(listVideoScriptsRequest) {
1134
+ const options = (0, exports.ParamCreater)().listVideoScripts(listVideoScriptsRequest);
1135
+ // @ts-ignore
1136
+ options['responseHeaders'] = ['X-Request-Id'];
1137
+ return this.hcClient.sendRequest(options);
1138
+ }
1139
+ /**
1140
+ * 该接口用于查询视频制作剧本详情。
1141
+ *
1142
+ * Please refer to HUAWEI cloud API Explorer for details.
1143
+ *
1144
+ * @summary 查询视频制作剧本详情
1145
+ * @param {string} scriptId 剧本ID。
1146
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1147
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1148
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1149
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1150
+ * @param {*} [options] Override http request option.
1151
+ * @throws {RequiredError}
1152
+ */
1153
+ showVideoScript(showVideoScriptRequest) {
1154
+ const options = (0, exports.ParamCreater)().showVideoScript(showVideoScriptRequest);
1155
+ // @ts-ignore
1156
+ options['responseHeaders'] = ['X-Request-Id'];
1157
+ return this.hcClient.sendRequest(options);
1158
+ }
1159
+ /**
1160
+ * 该接口用于更新视频制作剧本。
1161
+ *
1162
+ * Please refer to HUAWEI cloud API Explorer for details.
1163
+ *
1164
+ * @summary 更新视频制作剧本
1165
+ * @param {string} scriptId 剧本ID。
1166
+ * @param {UpdateVideoScriptsReq} updateVideoScriptRequestBody 更新数字人请求。
1167
+ * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
1168
+ * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
1169
+ * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
1170
+ * @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
1171
+ * @param {*} [options] Override http request option.
1172
+ * @throws {RequiredError}
1173
+ */
1174
+ updateVideoScript(updateVideoScriptRequest) {
1175
+ const options = (0, exports.ParamCreater)().updateVideoScript(updateVideoScriptRequest);
1176
+ // @ts-ignore
1177
+ options['responseHeaders'] = ['X-Request-Id'];
1178
+ return this.hcClient.sendRequest(options);
1179
+ }
1180
+ }
1181
+ exports.MetaStudioClient = MetaStudioClient;
1182
+ const ParamCreater = function () {
1183
+ return {
1184
+ /**
1185
+ * 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:数字人模型、素材、视频、图片、场景等。
1186
+ *
1187
+ * Please refer to HUAWEI cloud API Explorer for details.
1188
+ */
1189
+ createDigitalAsset(createDigitalAssetRequest) {
1190
+ const options = {
1191
+ method: "POST",
1192
+ url: "/v1/{project_id}/digital-assets",
1193
+ contentType: "application/json",
1194
+ queryParams: {},
1195
+ pathParams: {},
1196
+ headers: {},
1197
+ data: {}
1198
+ };
1199
+ const localVarHeaderParameter = {};
1200
+ let body;
1201
+ let authorization;
1202
+ let xSdkDate;
1203
+ let xAppUserId;
1204
+ if (createDigitalAssetRequest !== null && createDigitalAssetRequest !== undefined) {
1205
+ if (createDigitalAssetRequest instanceof CreateDigitalAssetRequest_1.CreateDigitalAssetRequest) {
1206
+ body = createDigitalAssetRequest.body;
1207
+ authorization = createDigitalAssetRequest.authorization;
1208
+ xSdkDate = createDigitalAssetRequest.xSdkDate;
1209
+ xAppUserId = createDigitalAssetRequest.xAppUserId;
1210
+ }
1211
+ else {
1212
+ body = createDigitalAssetRequest['body'];
1213
+ authorization = createDigitalAssetRequest['Authorization'];
1214
+ xSdkDate = createDigitalAssetRequest['X-Sdk-Date'];
1215
+ xAppUserId = createDigitalAssetRequest['X-App-UserId'];
1216
+ }
1217
+ }
1218
+ if (body === null || body === undefined) {
1219
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1220
+ }
1221
+ if (authorization !== undefined && authorization !== null) {
1222
+ localVarHeaderParameter['Authorization'] = String(authorization);
1223
+ }
1224
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1225
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1226
+ }
1227
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1228
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1229
+ }
1230
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1231
+ options.data = body !== undefined ? body : {};
1232
+ options.headers = localVarHeaderParameter;
1233
+ return options;
1234
+ },
1235
+ /**
1236
+ * 该接口用于删除资产库中的媒体资产。第一次调用删除接口,将指定资产放入回收站;第二次调用删除接口,将指定资产彻底删除。
1237
+ *
1238
+ * Please refer to HUAWEI cloud API Explorer for details.
1239
+ */
1240
+ deleteAsset(deleteAssetRequest) {
1241
+ const options = {
1242
+ method: "DELETE",
1243
+ url: "/v1/{project_id}/digital-assets/{asset_id}",
1244
+ contentType: "application/json",
1245
+ queryParams: {},
1246
+ pathParams: {},
1247
+ headers: {}
1248
+ };
1249
+ const localVarHeaderParameter = {};
1250
+ const localVarQueryParameter = {};
1251
+ let assetId;
1252
+ let authorization;
1253
+ let xSdkDate;
1254
+ let xAppUserId;
1255
+ let mode;
1256
+ if (deleteAssetRequest !== null && deleteAssetRequest !== undefined) {
1257
+ if (deleteAssetRequest instanceof DeleteAssetRequest_1.DeleteAssetRequest) {
1258
+ assetId = deleteAssetRequest.assetId;
1259
+ authorization = deleteAssetRequest.authorization;
1260
+ xSdkDate = deleteAssetRequest.xSdkDate;
1261
+ xAppUserId = deleteAssetRequest.xAppUserId;
1262
+ mode = deleteAssetRequest.mode;
1263
+ }
1264
+ else {
1265
+ assetId = deleteAssetRequest['asset_id'];
1266
+ authorization = deleteAssetRequest['Authorization'];
1267
+ xSdkDate = deleteAssetRequest['X-Sdk-Date'];
1268
+ xAppUserId = deleteAssetRequest['X-App-UserId'];
1269
+ mode = deleteAssetRequest['mode'];
1270
+ }
1271
+ }
1272
+ if (assetId === null || assetId === undefined) {
1273
+ throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling deleteAsset.');
1274
+ }
1275
+ if (mode !== null && mode !== undefined) {
1276
+ localVarQueryParameter['mode'] = mode;
1277
+ }
1278
+ if (authorization !== undefined && authorization !== null) {
1279
+ localVarHeaderParameter['Authorization'] = String(authorization);
1280
+ }
1281
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1282
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1283
+ }
1284
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1285
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1286
+ }
1287
+ options.queryParams = localVarQueryParameter;
1288
+ options.pathParams = { 'asset_id': assetId, };
1289
+ options.headers = localVarHeaderParameter;
1290
+ return options;
1291
+ },
1292
+ /**
1293
+ * 该接口用于查询媒体资产库中指定的多个资产的概要信息。
1294
+ *
1295
+ * Please refer to HUAWEI cloud API Explorer for details.
1296
+ */
1297
+ listAssetSummary(listAssetSummaryRequest) {
1298
+ const options = {
1299
+ method: "POST",
1300
+ url: "/v1/{project_id}/digital-assets/summarys",
1301
+ contentType: "application/json",
1302
+ queryParams: {},
1303
+ pathParams: {},
1304
+ headers: {},
1305
+ data: {}
1306
+ };
1307
+ const localVarHeaderParameter = {};
1308
+ let body;
1309
+ let authorization;
1310
+ let xSdkDate;
1311
+ if (listAssetSummaryRequest !== null && listAssetSummaryRequest !== undefined) {
1312
+ if (listAssetSummaryRequest instanceof ListAssetSummaryRequest_1.ListAssetSummaryRequest) {
1313
+ body = listAssetSummaryRequest.body;
1314
+ authorization = listAssetSummaryRequest.authorization;
1315
+ xSdkDate = listAssetSummaryRequest.xSdkDate;
1316
+ }
1317
+ else {
1318
+ body = listAssetSummaryRequest['body'];
1319
+ authorization = listAssetSummaryRequest['Authorization'];
1320
+ xSdkDate = listAssetSummaryRequest['X-Sdk-Date'];
1321
+ }
1322
+ }
1323
+ if (body === null || body === undefined) {
1324
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1325
+ }
1326
+ if (authorization !== undefined && authorization !== null) {
1327
+ localVarHeaderParameter['Authorization'] = String(authorization);
1328
+ }
1329
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1330
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1331
+ }
1332
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1333
+ options.data = body !== undefined ? body : {};
1334
+ options.headers = localVarHeaderParameter;
1335
+ return options;
1336
+ },
1337
+ /**
1338
+ * 该接口用于查询资产库中的媒体资产列表。
1339
+ *
1340
+ * Please refer to HUAWEI cloud API Explorer for details.
1341
+ */
1342
+ listAssets(listAssetsRequest) {
1343
+ const options = {
1344
+ method: "GET",
1345
+ url: "/v1/{project_id}/digital-assets",
1346
+ contentType: "application/json",
1347
+ queryParams: {},
1348
+ pathParams: {},
1349
+ headers: {}
1350
+ };
1351
+ const localVarHeaderParameter = {};
1352
+ const localVarQueryParameter = {};
1353
+ let authorization;
1354
+ let xSdkDate;
1355
+ let xAppUserId;
1356
+ let limit;
1357
+ let offset;
1358
+ let name;
1359
+ let tag;
1360
+ let startTime;
1361
+ let endTime;
1362
+ let assetType;
1363
+ let sortKey;
1364
+ let sortDir;
1365
+ let assetSource;
1366
+ let assetManageType;
1367
+ let assetState;
1368
+ let styleId;
1369
+ let xUserMePrivilege;
1370
+ let renderEngine;
1371
+ let sex;
1372
+ let language;
1373
+ let systemProperty;
1374
+ let actionEditable;
1375
+ if (listAssetsRequest !== null && listAssetsRequest !== undefined) {
1376
+ if (listAssetsRequest instanceof ListAssetsRequest_1.ListAssetsRequest) {
1377
+ authorization = listAssetsRequest.authorization;
1378
+ xSdkDate = listAssetsRequest.xSdkDate;
1379
+ xAppUserId = listAssetsRequest.xAppUserId;
1380
+ limit = listAssetsRequest.limit;
1381
+ offset = listAssetsRequest.offset;
1382
+ name = listAssetsRequest.name;
1383
+ tag = listAssetsRequest.tag;
1384
+ startTime = listAssetsRequest.startTime;
1385
+ endTime = listAssetsRequest.endTime;
1386
+ assetType = listAssetsRequest.assetType;
1387
+ sortKey = listAssetsRequest.sortKey;
1388
+ sortDir = listAssetsRequest.sortDir;
1389
+ assetSource = listAssetsRequest.assetSource;
1390
+ assetManageType = listAssetsRequest.assetManageType;
1391
+ assetState = listAssetsRequest.assetState;
1392
+ styleId = listAssetsRequest.styleId;
1393
+ xUserMePrivilege = listAssetsRequest.xUserMePrivilege;
1394
+ renderEngine = listAssetsRequest.renderEngine;
1395
+ sex = listAssetsRequest.sex;
1396
+ language = listAssetsRequest.language;
1397
+ systemProperty = listAssetsRequest.systemProperty;
1398
+ actionEditable = listAssetsRequest.actionEditable;
1399
+ }
1400
+ else {
1401
+ authorization = listAssetsRequest['Authorization'];
1402
+ xSdkDate = listAssetsRequest['X-Sdk-Date'];
1403
+ xAppUserId = listAssetsRequest['X-App-UserId'];
1404
+ limit = listAssetsRequest['limit'];
1405
+ offset = listAssetsRequest['offset'];
1406
+ name = listAssetsRequest['name'];
1407
+ tag = listAssetsRequest['tag'];
1408
+ startTime = listAssetsRequest['start_time'];
1409
+ endTime = listAssetsRequest['end_time'];
1410
+ assetType = listAssetsRequest['asset_type'];
1411
+ sortKey = listAssetsRequest['sort_key'];
1412
+ sortDir = listAssetsRequest['sort_dir'];
1413
+ assetSource = listAssetsRequest['asset_source'];
1414
+ assetManageType = listAssetsRequest['asset_manage_type'];
1415
+ assetState = listAssetsRequest['asset_state'];
1416
+ styleId = listAssetsRequest['style_id'];
1417
+ xUserMePrivilege = listAssetsRequest['X-User-MePrivilege'];
1418
+ renderEngine = listAssetsRequest['render_engine'];
1419
+ sex = listAssetsRequest['sex'];
1420
+ language = listAssetsRequest['language'];
1421
+ systemProperty = listAssetsRequest['system_property'];
1422
+ actionEditable = listAssetsRequest['action_editable'];
1423
+ }
1424
+ }
1425
+ if (limit !== null && limit !== undefined) {
1426
+ localVarQueryParameter['limit'] = limit;
1427
+ }
1428
+ if (offset !== null && offset !== undefined) {
1429
+ localVarQueryParameter['offset'] = offset;
1430
+ }
1431
+ if (name !== null && name !== undefined) {
1432
+ localVarQueryParameter['name'] = name;
1433
+ }
1434
+ if (tag !== null && tag !== undefined) {
1435
+ localVarQueryParameter['tag'] = tag;
1436
+ }
1437
+ if (startTime !== null && startTime !== undefined) {
1438
+ localVarQueryParameter['start_time'] = startTime;
1439
+ }
1440
+ if (endTime !== null && endTime !== undefined) {
1441
+ localVarQueryParameter['end_time'] = endTime;
1442
+ }
1443
+ if (assetType !== null && assetType !== undefined) {
1444
+ localVarQueryParameter['asset_type'] = assetType;
1445
+ }
1446
+ if (sortKey !== null && sortKey !== undefined) {
1447
+ localVarQueryParameter['sort_key'] = sortKey;
1448
+ }
1449
+ if (sortDir !== null && sortDir !== undefined) {
1450
+ localVarQueryParameter['sort_dir'] = sortDir;
1451
+ }
1452
+ if (assetSource !== null && assetSource !== undefined) {
1453
+ localVarQueryParameter['asset_source'] = assetSource;
1454
+ }
1455
+ if (assetManageType !== null && assetManageType !== undefined) {
1456
+ localVarQueryParameter['asset_manage_type'] = assetManageType;
1457
+ }
1458
+ if (assetState !== null && assetState !== undefined) {
1459
+ localVarQueryParameter['asset_state'] = assetState;
1460
+ }
1461
+ if (styleId !== null && styleId !== undefined) {
1462
+ localVarQueryParameter['style_id'] = styleId;
1463
+ }
1464
+ if (renderEngine !== null && renderEngine !== undefined) {
1465
+ localVarQueryParameter['render_engine'] = renderEngine;
1466
+ }
1467
+ if (sex !== null && sex !== undefined) {
1468
+ localVarQueryParameter['sex'] = sex;
1469
+ }
1470
+ if (language !== null && language !== undefined) {
1471
+ localVarQueryParameter['language'] = language;
1472
+ }
1473
+ if (systemProperty !== null && systemProperty !== undefined) {
1474
+ localVarQueryParameter['system_property'] = systemProperty;
1475
+ }
1476
+ if (actionEditable !== null && actionEditable !== undefined) {
1477
+ localVarQueryParameter['action_editable'] = actionEditable;
1478
+ }
1479
+ if (authorization !== undefined && authorization !== null) {
1480
+ localVarHeaderParameter['Authorization'] = String(authorization);
1481
+ }
1482
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1483
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1484
+ }
1485
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1486
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1487
+ }
1488
+ if (xUserMePrivilege !== undefined && xUserMePrivilege !== null) {
1489
+ localVarHeaderParameter['X-User-MePrivilege'] = String(xUserMePrivilege);
1490
+ }
1491
+ options.queryParams = localVarQueryParameter;
1492
+ options.headers = localVarHeaderParameter;
1493
+ return options;
1494
+ },
1495
+ /**
1496
+ * 该接口用于恢复被删除至回收站的媒体资产。
1497
+ *
1498
+ * Please refer to HUAWEI cloud API Explorer for details.
1499
+ */
1500
+ restoreAsset(restoreAssetRequest) {
1501
+ const options = {
1502
+ method: "POST",
1503
+ url: "/v1/{project_id}/digital-assets/{asset_id}/restore",
1504
+ contentType: "application/json",
1505
+ queryParams: {},
1506
+ pathParams: {},
1507
+ headers: {}
1508
+ };
1509
+ const localVarHeaderParameter = {};
1510
+ let assetId;
1511
+ let authorization;
1512
+ let xSdkDate;
1513
+ let xAppUserId;
1514
+ if (restoreAssetRequest !== null && restoreAssetRequest !== undefined) {
1515
+ if (restoreAssetRequest instanceof RestoreAssetRequest_1.RestoreAssetRequest) {
1516
+ assetId = restoreAssetRequest.assetId;
1517
+ authorization = restoreAssetRequest.authorization;
1518
+ xSdkDate = restoreAssetRequest.xSdkDate;
1519
+ xAppUserId = restoreAssetRequest.xAppUserId;
1520
+ }
1521
+ else {
1522
+ assetId = restoreAssetRequest['asset_id'];
1523
+ authorization = restoreAssetRequest['Authorization'];
1524
+ xSdkDate = restoreAssetRequest['X-Sdk-Date'];
1525
+ xAppUserId = restoreAssetRequest['X-App-UserId'];
1526
+ }
1527
+ }
1528
+ if (assetId === null || assetId === undefined) {
1529
+ throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling restoreAsset.');
1530
+ }
1531
+ if (authorization !== undefined && authorization !== null) {
1532
+ localVarHeaderParameter['Authorization'] = String(authorization);
1533
+ }
1534
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1535
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1536
+ }
1537
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1538
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1539
+ }
1540
+ options.pathParams = { 'asset_id': assetId, };
1541
+ options.headers = localVarHeaderParameter;
1542
+ return options;
1543
+ },
1544
+ /**
1545
+ * 该接口用于查询资产库中指定媒体资产的详情。
1546
+ *
1547
+ * Please refer to HUAWEI cloud API Explorer for details.
1548
+ */
1549
+ showAsset(showAssetRequest) {
1550
+ const options = {
1551
+ method: "GET",
1552
+ url: "/v1/{project_id}/digital-assets/{asset_id}",
1553
+ contentType: "application/json",
1554
+ queryParams: {},
1555
+ pathParams: {},
1556
+ headers: {}
1557
+ };
1558
+ const localVarHeaderParameter = {};
1559
+ let assetId;
1560
+ let authorization;
1561
+ let xSdkDate;
1562
+ let xAppUserId;
1563
+ if (showAssetRequest !== null && showAssetRequest !== undefined) {
1564
+ if (showAssetRequest instanceof ShowAssetRequest_1.ShowAssetRequest) {
1565
+ assetId = showAssetRequest.assetId;
1566
+ authorization = showAssetRequest.authorization;
1567
+ xSdkDate = showAssetRequest.xSdkDate;
1568
+ xAppUserId = showAssetRequest.xAppUserId;
1569
+ }
1570
+ else {
1571
+ assetId = showAssetRequest['asset_id'];
1572
+ authorization = showAssetRequest['Authorization'];
1573
+ xSdkDate = showAssetRequest['X-Sdk-Date'];
1574
+ xAppUserId = showAssetRequest['X-App-UserId'];
1575
+ }
1576
+ }
1577
+ if (assetId === null || assetId === undefined) {
1578
+ throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling showAsset.');
1579
+ }
1580
+ if (authorization !== undefined && authorization !== null) {
1581
+ localVarHeaderParameter['Authorization'] = String(authorization);
1582
+ }
1583
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1584
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1585
+ }
1586
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1587
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1588
+ }
1589
+ options.pathParams = { 'asset_id': assetId, };
1590
+ options.headers = localVarHeaderParameter;
1591
+ return options;
1592
+ },
1593
+ /**
1594
+ * 该接口用于更新资产库中的媒体资产信息。
1595
+ *
1596
+ * Please refer to HUAWEI cloud API Explorer for details.
1597
+ */
1598
+ updateDigitalAsset(updateDigitalAssetRequest) {
1599
+ const options = {
1600
+ method: "PUT",
1601
+ url: "/v1/{project_id}/digital-assets/{asset_id}",
1602
+ contentType: "application/json",
1603
+ queryParams: {},
1604
+ pathParams: {},
1605
+ headers: {},
1606
+ data: {}
1607
+ };
1608
+ const localVarHeaderParameter = {};
1609
+ let body;
1610
+ let assetId;
1611
+ let authorization;
1612
+ let xSdkDate;
1613
+ let xAppUserId;
1614
+ if (updateDigitalAssetRequest !== null && updateDigitalAssetRequest !== undefined) {
1615
+ if (updateDigitalAssetRequest instanceof UpdateDigitalAssetRequest_1.UpdateDigitalAssetRequest) {
1616
+ assetId = updateDigitalAssetRequest.assetId;
1617
+ body = updateDigitalAssetRequest.body;
1618
+ authorization = updateDigitalAssetRequest.authorization;
1619
+ xSdkDate = updateDigitalAssetRequest.xSdkDate;
1620
+ xAppUserId = updateDigitalAssetRequest.xAppUserId;
1621
+ }
1622
+ else {
1623
+ assetId = updateDigitalAssetRequest['asset_id'];
1624
+ body = updateDigitalAssetRequest['body'];
1625
+ authorization = updateDigitalAssetRequest['Authorization'];
1626
+ xSdkDate = updateDigitalAssetRequest['X-Sdk-Date'];
1627
+ xAppUserId = updateDigitalAssetRequest['X-App-UserId'];
1628
+ }
1629
+ }
1630
+ if (assetId === null || assetId === undefined) {
1631
+ throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling updateDigitalAsset.');
1632
+ }
1633
+ if (body === null || body === undefined) {
1634
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1635
+ }
1636
+ if (authorization !== undefined && authorization !== null) {
1637
+ localVarHeaderParameter['Authorization'] = String(authorization);
1638
+ }
1639
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1640
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1641
+ }
1642
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1643
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1644
+ }
1645
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1646
+ options.data = body !== undefined ? body : {};
1647
+ options.pathParams = { 'asset_id': assetId, };
1648
+ options.headers = localVarHeaderParameter;
1649
+ return options;
1650
+ },
1651
+ /**
1652
+ * 该接口用于数字人名片制作任务。
1653
+ *
1654
+ * Please refer to HUAWEI cloud API Explorer for details.
1655
+ */
1656
+ createDigitalHumanBusinessCard(createDigitalHumanBusinessCardRequest) {
1657
+ const options = {
1658
+ method: "POST",
1659
+ url: "/v1/{project_id}/digital-human-business-cards",
1660
+ contentType: "application/json",
1661
+ queryParams: {},
1662
+ pathParams: {},
1663
+ headers: {},
1664
+ data: {}
1665
+ };
1666
+ const localVarHeaderParameter = {};
1667
+ let body;
1668
+ let authorization;
1669
+ let xSdkDate;
1670
+ let xProjectId;
1671
+ let xAppUserId;
1672
+ if (createDigitalHumanBusinessCardRequest !== null && createDigitalHumanBusinessCardRequest !== undefined) {
1673
+ if (createDigitalHumanBusinessCardRequest instanceof CreateDigitalHumanBusinessCardRequest_1.CreateDigitalHumanBusinessCardRequest) {
1674
+ body = createDigitalHumanBusinessCardRequest.body;
1675
+ authorization = createDigitalHumanBusinessCardRequest.authorization;
1676
+ xSdkDate = createDigitalHumanBusinessCardRequest.xSdkDate;
1677
+ xProjectId = createDigitalHumanBusinessCardRequest.xProjectId;
1678
+ xAppUserId = createDigitalHumanBusinessCardRequest.xAppUserId;
1679
+ }
1680
+ else {
1681
+ body = createDigitalHumanBusinessCardRequest['body'];
1682
+ authorization = createDigitalHumanBusinessCardRequest['Authorization'];
1683
+ xSdkDate = createDigitalHumanBusinessCardRequest['X-Sdk-Date'];
1684
+ xProjectId = createDigitalHumanBusinessCardRequest['X-Project-Id'];
1685
+ xAppUserId = createDigitalHumanBusinessCardRequest['X-App-UserId'];
1686
+ }
1687
+ }
1688
+ if (body === null || body === undefined) {
1689
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1690
+ }
1691
+ if (authorization !== undefined && authorization !== null) {
1692
+ localVarHeaderParameter['Authorization'] = String(authorization);
1693
+ }
1694
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1695
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1696
+ }
1697
+ if (xProjectId !== undefined && xProjectId !== null) {
1698
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1699
+ }
1700
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1701
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1702
+ }
1703
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1704
+ options.data = body !== undefined ? body : {};
1705
+ options.headers = localVarHeaderParameter;
1706
+ return options;
1707
+ },
1708
+ /**
1709
+ * 该接口用于删除数字人名片制作任务。
1710
+ *
1711
+ * Please refer to HUAWEI cloud API Explorer for details.
1712
+ */
1713
+ deleteDigitalHumanBusinessCard(deleteDigitalHumanBusinessCardRequest) {
1714
+ const options = {
1715
+ method: "DELETE",
1716
+ url: "/v1/{project_id}/digital-human-business-cards/{job_id}",
1717
+ contentType: "application/json",
1718
+ queryParams: {},
1719
+ pathParams: {},
1720
+ headers: {}
1721
+ };
1722
+ const localVarHeaderParameter = {};
1723
+ let jobId;
1724
+ let authorization;
1725
+ let xSdkDate;
1726
+ let xProjectId;
1727
+ let xAppUserId;
1728
+ if (deleteDigitalHumanBusinessCardRequest !== null && deleteDigitalHumanBusinessCardRequest !== undefined) {
1729
+ if (deleteDigitalHumanBusinessCardRequest instanceof DeleteDigitalHumanBusinessCardRequest_1.DeleteDigitalHumanBusinessCardRequest) {
1730
+ jobId = deleteDigitalHumanBusinessCardRequest.jobId;
1731
+ authorization = deleteDigitalHumanBusinessCardRequest.authorization;
1732
+ xSdkDate = deleteDigitalHumanBusinessCardRequest.xSdkDate;
1733
+ xProjectId = deleteDigitalHumanBusinessCardRequest.xProjectId;
1734
+ xAppUserId = deleteDigitalHumanBusinessCardRequest.xAppUserId;
1735
+ }
1736
+ else {
1737
+ jobId = deleteDigitalHumanBusinessCardRequest['job_id'];
1738
+ authorization = deleteDigitalHumanBusinessCardRequest['Authorization'];
1739
+ xSdkDate = deleteDigitalHumanBusinessCardRequest['X-Sdk-Date'];
1740
+ xProjectId = deleteDigitalHumanBusinessCardRequest['X-Project-Id'];
1741
+ xAppUserId = deleteDigitalHumanBusinessCardRequest['X-App-UserId'];
1742
+ }
1743
+ }
1744
+ if (jobId === null || jobId === undefined) {
1745
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling deleteDigitalHumanBusinessCard.');
1746
+ }
1747
+ if (authorization !== undefined && authorization !== null) {
1748
+ localVarHeaderParameter['Authorization'] = String(authorization);
1749
+ }
1750
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1751
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1752
+ }
1753
+ if (xProjectId !== undefined && xProjectId !== null) {
1754
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1755
+ }
1756
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1757
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1758
+ }
1759
+ options.pathParams = { 'job_id': jobId, };
1760
+ options.headers = localVarHeaderParameter;
1761
+ return options;
1762
+ },
1763
+ /**
1764
+ * 该接口用于查询数字人名片制作任务列表。
1765
+ *
1766
+ * Please refer to HUAWEI cloud API Explorer for details.
1767
+ */
1768
+ listDigitalHumanBusinessCard(listDigitalHumanBusinessCardRequest) {
1769
+ const options = {
1770
+ method: "GET",
1771
+ url: "/v1/{project_id}/digital-human-business-cards",
1772
+ contentType: "application/json",
1773
+ queryParams: {},
1774
+ pathParams: {},
1775
+ headers: {}
1776
+ };
1777
+ const localVarHeaderParameter = {};
1778
+ const localVarQueryParameter = {};
1779
+ let authorization;
1780
+ let xSdkDate;
1781
+ let xProjectId;
1782
+ let xAppUserId;
1783
+ let offset;
1784
+ let limit;
1785
+ let state;
1786
+ let sortKey;
1787
+ let sortDir;
1788
+ let createUntil;
1789
+ let createSince;
1790
+ let videoAssetName;
1791
+ if (listDigitalHumanBusinessCardRequest !== null && listDigitalHumanBusinessCardRequest !== undefined) {
1792
+ if (listDigitalHumanBusinessCardRequest instanceof ListDigitalHumanBusinessCardRequest_1.ListDigitalHumanBusinessCardRequest) {
1793
+ authorization = listDigitalHumanBusinessCardRequest.authorization;
1794
+ xSdkDate = listDigitalHumanBusinessCardRequest.xSdkDate;
1795
+ xProjectId = listDigitalHumanBusinessCardRequest.xProjectId;
1796
+ xAppUserId = listDigitalHumanBusinessCardRequest.xAppUserId;
1797
+ offset = listDigitalHumanBusinessCardRequest.offset;
1798
+ limit = listDigitalHumanBusinessCardRequest.limit;
1799
+ state = listDigitalHumanBusinessCardRequest.state;
1800
+ sortKey = listDigitalHumanBusinessCardRequest.sortKey;
1801
+ sortDir = listDigitalHumanBusinessCardRequest.sortDir;
1802
+ createUntil = listDigitalHumanBusinessCardRequest.createUntil;
1803
+ createSince = listDigitalHumanBusinessCardRequest.createSince;
1804
+ videoAssetName = listDigitalHumanBusinessCardRequest.videoAssetName;
1805
+ }
1806
+ else {
1807
+ authorization = listDigitalHumanBusinessCardRequest['Authorization'];
1808
+ xSdkDate = listDigitalHumanBusinessCardRequest['X-Sdk-Date'];
1809
+ xProjectId = listDigitalHumanBusinessCardRequest['X-Project-Id'];
1810
+ xAppUserId = listDigitalHumanBusinessCardRequest['X-App-UserId'];
1811
+ offset = listDigitalHumanBusinessCardRequest['offset'];
1812
+ limit = listDigitalHumanBusinessCardRequest['limit'];
1813
+ state = listDigitalHumanBusinessCardRequest['state'];
1814
+ sortKey = listDigitalHumanBusinessCardRequest['sort_key'];
1815
+ sortDir = listDigitalHumanBusinessCardRequest['sort_dir'];
1816
+ createUntil = listDigitalHumanBusinessCardRequest['create_until'];
1817
+ createSince = listDigitalHumanBusinessCardRequest['create_since'];
1818
+ videoAssetName = listDigitalHumanBusinessCardRequest['video_asset_name'];
1819
+ }
1820
+ }
1821
+ if (offset !== null && offset !== undefined) {
1822
+ localVarQueryParameter['offset'] = offset;
1823
+ }
1824
+ if (limit !== null && limit !== undefined) {
1825
+ localVarQueryParameter['limit'] = limit;
1826
+ }
1827
+ if (state !== null && state !== undefined) {
1828
+ localVarQueryParameter['state'] = state;
1829
+ }
1830
+ if (sortKey !== null && sortKey !== undefined) {
1831
+ localVarQueryParameter['sort_key'] = sortKey;
1832
+ }
1833
+ if (sortDir !== null && sortDir !== undefined) {
1834
+ localVarQueryParameter['sort_dir'] = sortDir;
1835
+ }
1836
+ if (createUntil !== null && createUntil !== undefined) {
1837
+ localVarQueryParameter['create_until'] = createUntil;
1838
+ }
1839
+ if (createSince !== null && createSince !== undefined) {
1840
+ localVarQueryParameter['create_since'] = createSince;
1841
+ }
1842
+ if (videoAssetName !== null && videoAssetName !== undefined) {
1843
+ localVarQueryParameter['video_asset_name'] = videoAssetName;
1844
+ }
1845
+ if (authorization !== undefined && authorization !== null) {
1846
+ localVarHeaderParameter['Authorization'] = String(authorization);
1847
+ }
1848
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1849
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1850
+ }
1851
+ if (xProjectId !== undefined && xProjectId !== null) {
1852
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1853
+ }
1854
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1855
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1856
+ }
1857
+ options.queryParams = localVarQueryParameter;
1858
+ options.headers = localVarHeaderParameter;
1859
+ return options;
1860
+ },
1861
+ /**
1862
+ * 该接口用于查询数字人名片制作任务详情。
1863
+ *
1864
+ * Please refer to HUAWEI cloud API Explorer for details.
1865
+ */
1866
+ showDigitalHumanBusinessCard(showDigitalHumanBusinessCardRequest) {
1867
+ const options = {
1868
+ method: "GET",
1869
+ url: "/v1/{project_id}/digital-human-business-cards/{job_id}",
1870
+ contentType: "application/json",
1871
+ queryParams: {},
1872
+ pathParams: {},
1873
+ headers: {}
1874
+ };
1875
+ const localVarHeaderParameter = {};
1876
+ let jobId;
1877
+ let authorization;
1878
+ let xSdkDate;
1879
+ let xProjectId;
1880
+ let xAppUserId;
1881
+ if (showDigitalHumanBusinessCardRequest !== null && showDigitalHumanBusinessCardRequest !== undefined) {
1882
+ if (showDigitalHumanBusinessCardRequest instanceof ShowDigitalHumanBusinessCardRequest_1.ShowDigitalHumanBusinessCardRequest) {
1883
+ jobId = showDigitalHumanBusinessCardRequest.jobId;
1884
+ authorization = showDigitalHumanBusinessCardRequest.authorization;
1885
+ xSdkDate = showDigitalHumanBusinessCardRequest.xSdkDate;
1886
+ xProjectId = showDigitalHumanBusinessCardRequest.xProjectId;
1887
+ xAppUserId = showDigitalHumanBusinessCardRequest.xAppUserId;
1888
+ }
1889
+ else {
1890
+ jobId = showDigitalHumanBusinessCardRequest['job_id'];
1891
+ authorization = showDigitalHumanBusinessCardRequest['Authorization'];
1892
+ xSdkDate = showDigitalHumanBusinessCardRequest['X-Sdk-Date'];
1893
+ xProjectId = showDigitalHumanBusinessCardRequest['X-Project-Id'];
1894
+ xAppUserId = showDigitalHumanBusinessCardRequest['X-App-UserId'];
1895
+ }
1896
+ }
1897
+ if (jobId === null || jobId === undefined) {
1898
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showDigitalHumanBusinessCard.');
1899
+ }
1900
+ if (authorization !== undefined && authorization !== null) {
1901
+ localVarHeaderParameter['Authorization'] = String(authorization);
1902
+ }
1903
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1904
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1905
+ }
1906
+ if (xProjectId !== undefined && xProjectId !== null) {
1907
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1908
+ }
1909
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1910
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1911
+ }
1912
+ options.pathParams = { 'job_id': jobId, };
1913
+ options.headers = localVarHeaderParameter;
1914
+ return options;
1915
+ },
1916
+ /**
1917
+ * 该接口用于更新数字人名片制作任务。
1918
+ *
1919
+ * Please refer to HUAWEI cloud API Explorer for details.
1920
+ */
1921
+ updateDigitalHumanBusinessCard(updateDigitalHumanBusinessCardRequest) {
1922
+ const options = {
1923
+ method: "PUT",
1924
+ url: "/v1/{project_id}/digital-human-business-cards/{job_id}",
1925
+ contentType: "application/json",
1926
+ queryParams: {},
1927
+ pathParams: {},
1928
+ headers: {},
1929
+ data: {}
1930
+ };
1931
+ const localVarHeaderParameter = {};
1932
+ let body;
1933
+ let jobId;
1934
+ let authorization;
1935
+ let xSdkDate;
1936
+ let xProjectId;
1937
+ let xAppUserId;
1938
+ if (updateDigitalHumanBusinessCardRequest !== null && updateDigitalHumanBusinessCardRequest !== undefined) {
1939
+ if (updateDigitalHumanBusinessCardRequest instanceof UpdateDigitalHumanBusinessCardRequest_1.UpdateDigitalHumanBusinessCardRequest) {
1940
+ jobId = updateDigitalHumanBusinessCardRequest.jobId;
1941
+ body = updateDigitalHumanBusinessCardRequest.body;
1942
+ authorization = updateDigitalHumanBusinessCardRequest.authorization;
1943
+ xSdkDate = updateDigitalHumanBusinessCardRequest.xSdkDate;
1944
+ xProjectId = updateDigitalHumanBusinessCardRequest.xProjectId;
1945
+ xAppUserId = updateDigitalHumanBusinessCardRequest.xAppUserId;
1946
+ }
1947
+ else {
1948
+ jobId = updateDigitalHumanBusinessCardRequest['job_id'];
1949
+ body = updateDigitalHumanBusinessCardRequest['body'];
1950
+ authorization = updateDigitalHumanBusinessCardRequest['Authorization'];
1951
+ xSdkDate = updateDigitalHumanBusinessCardRequest['X-Sdk-Date'];
1952
+ xProjectId = updateDigitalHumanBusinessCardRequest['X-Project-Id'];
1953
+ xAppUserId = updateDigitalHumanBusinessCardRequest['X-App-UserId'];
1954
+ }
1955
+ }
1956
+ if (jobId === null || jobId === undefined) {
1957
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling updateDigitalHumanBusinessCard.');
1958
+ }
1959
+ if (body === null || body === undefined) {
1960
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1961
+ }
1962
+ if (authorization !== undefined && authorization !== null) {
1963
+ localVarHeaderParameter['Authorization'] = String(authorization);
1964
+ }
1965
+ if (xSdkDate !== undefined && xSdkDate !== null) {
1966
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1967
+ }
1968
+ if (xProjectId !== undefined && xProjectId !== null) {
1969
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
1970
+ }
1971
+ if (xAppUserId !== undefined && xAppUserId !== null) {
1972
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1973
+ }
1974
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1975
+ options.data = body !== undefined ? body : {};
1976
+ options.pathParams = { 'job_id': jobId, };
1977
+ options.headers = localVarHeaderParameter;
1978
+ return options;
1979
+ },
1980
+ /**
1981
+ * 该接口用于取消等待中的分身数字人视频制作任务。
1982
+ *
1983
+ * Please refer to HUAWEI cloud API Explorer for details.
1984
+ */
1985
+ cancel2DDigitalHumanVideo(cancel2DDigitalHumanVideoRequest) {
1986
+ const options = {
1987
+ method: "POST",
1988
+ url: "/v1/{project_id}/2d-digital-human-videos/{job_id}/cancel",
1989
+ contentType: "application/json",
1990
+ queryParams: {},
1991
+ pathParams: {},
1992
+ headers: {}
1993
+ };
1994
+ const localVarHeaderParameter = {};
1995
+ let jobId;
1996
+ let authorization;
1997
+ let xSdkDate;
1998
+ let xProjectId;
1999
+ let xAppUserId;
2000
+ if (cancel2DDigitalHumanVideoRequest !== null && cancel2DDigitalHumanVideoRequest !== undefined) {
2001
+ if (cancel2DDigitalHumanVideoRequest instanceof Cancel2DDigitalHumanVideoRequest_1.Cancel2DDigitalHumanVideoRequest) {
2002
+ jobId = cancel2DDigitalHumanVideoRequest.jobId;
2003
+ authorization = cancel2DDigitalHumanVideoRequest.authorization;
2004
+ xSdkDate = cancel2DDigitalHumanVideoRequest.xSdkDate;
2005
+ xProjectId = cancel2DDigitalHumanVideoRequest.xProjectId;
2006
+ xAppUserId = cancel2DDigitalHumanVideoRequest.xAppUserId;
2007
+ }
2008
+ else {
2009
+ jobId = cancel2DDigitalHumanVideoRequest['job_id'];
2010
+ authorization = cancel2DDigitalHumanVideoRequest['Authorization'];
2011
+ xSdkDate = cancel2DDigitalHumanVideoRequest['X-Sdk-Date'];
2012
+ xProjectId = cancel2DDigitalHumanVideoRequest['X-Project-Id'];
2013
+ xAppUserId = cancel2DDigitalHumanVideoRequest['X-App-UserId'];
2014
+ }
2015
+ }
2016
+ if (jobId === null || jobId === undefined) {
2017
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling cancel2DDigitalHumanVideo.');
2018
+ }
2019
+ if (authorization !== undefined && authorization !== null) {
2020
+ localVarHeaderParameter['Authorization'] = String(authorization);
2021
+ }
2022
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2023
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2024
+ }
2025
+ if (xProjectId !== undefined && xProjectId !== null) {
2026
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2027
+ }
2028
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2029
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2030
+ }
2031
+ options.pathParams = { 'job_id': jobId, };
2032
+ options.headers = localVarHeaderParameter;
2033
+ return options;
2034
+ },
2035
+ /**
2036
+ * 该接口用于创建分身数字人视频制作任务。
2037
+ *
2038
+ * Please refer to HUAWEI cloud API Explorer for details.
2039
+ */
2040
+ create2DDigitalHumanVideo(create2DDigitalHumanVideoRequest) {
2041
+ const options = {
2042
+ method: "POST",
2043
+ url: "/v1/{project_id}/2d-digital-human-videos",
2044
+ contentType: "application/json",
2045
+ queryParams: {},
2046
+ pathParams: {},
2047
+ headers: {},
2048
+ data: {}
2049
+ };
2050
+ const localVarHeaderParameter = {};
2051
+ let body;
2052
+ let authorization;
2053
+ let xSdkDate;
2054
+ let xProjectId;
2055
+ let xAppUserId;
2056
+ if (create2DDigitalHumanVideoRequest !== null && create2DDigitalHumanVideoRequest !== undefined) {
2057
+ if (create2DDigitalHumanVideoRequest instanceof Create2DDigitalHumanVideoRequest_1.Create2DDigitalHumanVideoRequest) {
2058
+ body = create2DDigitalHumanVideoRequest.body;
2059
+ authorization = create2DDigitalHumanVideoRequest.authorization;
2060
+ xSdkDate = create2DDigitalHumanVideoRequest.xSdkDate;
2061
+ xProjectId = create2DDigitalHumanVideoRequest.xProjectId;
2062
+ xAppUserId = create2DDigitalHumanVideoRequest.xAppUserId;
2063
+ }
2064
+ else {
2065
+ body = create2DDigitalHumanVideoRequest['body'];
2066
+ authorization = create2DDigitalHumanVideoRequest['Authorization'];
2067
+ xSdkDate = create2DDigitalHumanVideoRequest['X-Sdk-Date'];
2068
+ xProjectId = create2DDigitalHumanVideoRequest['X-Project-Id'];
2069
+ xAppUserId = create2DDigitalHumanVideoRequest['X-App-UserId'];
2070
+ }
2071
+ }
2072
+ if (body === null || body === undefined) {
2073
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2074
+ }
2075
+ if (authorization !== undefined && authorization !== null) {
2076
+ localVarHeaderParameter['Authorization'] = String(authorization);
2077
+ }
2078
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2079
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2080
+ }
2081
+ if (xProjectId !== undefined && xProjectId !== null) {
2082
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2083
+ }
2084
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2085
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2086
+ }
2087
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2088
+ options.data = body !== undefined ? body : {};
2089
+ options.headers = localVarHeaderParameter;
2090
+ return options;
2091
+ },
2092
+ /**
2093
+ * 该接口用于查询分身数字人视频制作任务详情。
2094
+ *
2095
+ * Please refer to HUAWEI cloud API Explorer for details.
2096
+ */
2097
+ show2DDigitalHumanVideo(show2DDigitalHumanVideoRequest) {
2098
+ const options = {
2099
+ method: "GET",
2100
+ url: "/v1/{project_id}/2d-digital-human-videos/{job_id}",
2101
+ contentType: "application/json",
2102
+ queryParams: {},
2103
+ pathParams: {},
2104
+ headers: {}
2105
+ };
2106
+ const localVarHeaderParameter = {};
2107
+ const localVarQueryParameter = {};
2108
+ let jobId;
2109
+ let authorization;
2110
+ let xSdkDate;
2111
+ let xProjectId;
2112
+ let xAppUserId;
2113
+ let showScript;
2114
+ if (show2DDigitalHumanVideoRequest !== null && show2DDigitalHumanVideoRequest !== undefined) {
2115
+ if (show2DDigitalHumanVideoRequest instanceof Show2DDigitalHumanVideoRequest_1.Show2DDigitalHumanVideoRequest) {
2116
+ jobId = show2DDigitalHumanVideoRequest.jobId;
2117
+ authorization = show2DDigitalHumanVideoRequest.authorization;
2118
+ xSdkDate = show2DDigitalHumanVideoRequest.xSdkDate;
2119
+ xProjectId = show2DDigitalHumanVideoRequest.xProjectId;
2120
+ xAppUserId = show2DDigitalHumanVideoRequest.xAppUserId;
2121
+ showScript = show2DDigitalHumanVideoRequest.showScript;
2122
+ }
2123
+ else {
2124
+ jobId = show2DDigitalHumanVideoRequest['job_id'];
2125
+ authorization = show2DDigitalHumanVideoRequest['Authorization'];
2126
+ xSdkDate = show2DDigitalHumanVideoRequest['X-Sdk-Date'];
2127
+ xProjectId = show2DDigitalHumanVideoRequest['X-Project-Id'];
2128
+ xAppUserId = show2DDigitalHumanVideoRequest['X-App-UserId'];
2129
+ showScript = show2DDigitalHumanVideoRequest['show_script'];
2130
+ }
2131
+ }
2132
+ if (jobId === null || jobId === undefined) {
2133
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling show2DDigitalHumanVideo.');
2134
+ }
2135
+ if (showScript !== null && showScript !== undefined) {
2136
+ localVarQueryParameter['show_script'] = showScript;
2137
+ }
2138
+ if (authorization !== undefined && authorization !== null) {
2139
+ localVarHeaderParameter['Authorization'] = String(authorization);
2140
+ }
2141
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2142
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2143
+ }
2144
+ if (xProjectId !== undefined && xProjectId !== null) {
2145
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2146
+ }
2147
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2148
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2149
+ }
2150
+ options.queryParams = localVarQueryParameter;
2151
+ options.pathParams = { 'job_id': jobId, };
2152
+ options.headers = localVarHeaderParameter;
2153
+ return options;
2154
+ },
2155
+ /**
2156
+ * 该接口用于取消等待中的照片分身数字人视频制作任务。
2157
+ *
2158
+ * Please refer to HUAWEI cloud API Explorer for details.
2159
+ */
2160
+ cancelPhotoDigitalHumanVideo(cancelPhotoDigitalHumanVideoRequest) {
2161
+ const options = {
2162
+ method: "POST",
2163
+ url: "/v1/{project_id}/photo-digital-human-videos/{job_id}/cancel",
2164
+ contentType: "application/json",
2165
+ queryParams: {},
2166
+ pathParams: {},
2167
+ headers: {}
2168
+ };
2169
+ const localVarHeaderParameter = {};
2170
+ let jobId;
2171
+ let authorization;
2172
+ let xSdkDate;
2173
+ let xProjectId;
2174
+ let xAppUserId;
2175
+ if (cancelPhotoDigitalHumanVideoRequest !== null && cancelPhotoDigitalHumanVideoRequest !== undefined) {
2176
+ if (cancelPhotoDigitalHumanVideoRequest instanceof CancelPhotoDigitalHumanVideoRequest_1.CancelPhotoDigitalHumanVideoRequest) {
2177
+ jobId = cancelPhotoDigitalHumanVideoRequest.jobId;
2178
+ authorization = cancelPhotoDigitalHumanVideoRequest.authorization;
2179
+ xSdkDate = cancelPhotoDigitalHumanVideoRequest.xSdkDate;
2180
+ xProjectId = cancelPhotoDigitalHumanVideoRequest.xProjectId;
2181
+ xAppUserId = cancelPhotoDigitalHumanVideoRequest.xAppUserId;
2182
+ }
2183
+ else {
2184
+ jobId = cancelPhotoDigitalHumanVideoRequest['job_id'];
2185
+ authorization = cancelPhotoDigitalHumanVideoRequest['Authorization'];
2186
+ xSdkDate = cancelPhotoDigitalHumanVideoRequest['X-Sdk-Date'];
2187
+ xProjectId = cancelPhotoDigitalHumanVideoRequest['X-Project-Id'];
2188
+ xAppUserId = cancelPhotoDigitalHumanVideoRequest['X-App-UserId'];
2189
+ }
2190
+ }
2191
+ if (jobId === null || jobId === undefined) {
2192
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling cancelPhotoDigitalHumanVideo.');
2193
+ }
2194
+ if (authorization !== undefined && authorization !== null) {
2195
+ localVarHeaderParameter['Authorization'] = String(authorization);
2196
+ }
2197
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2198
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2199
+ }
2200
+ if (xProjectId !== undefined && xProjectId !== null) {
2201
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2202
+ }
2203
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2204
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2205
+ }
2206
+ options.pathParams = { 'job_id': jobId, };
2207
+ options.headers = localVarHeaderParameter;
2208
+ return options;
2209
+ },
2210
+ /**
2211
+ * 该接口用于创建照片检测任务,检测照片是否满足制作照片数字人的要求。
2212
+ *
2213
+ * Please refer to HUAWEI cloud API Explorer for details.
2214
+ */
2215
+ createPhotoDetection(createPhotoDetectionRequest) {
2216
+ const options = {
2217
+ method: "POST",
2218
+ url: "/v1/{project_id}/photo-detection",
2219
+ contentType: "application/json",
2220
+ queryParams: {},
2221
+ pathParams: {},
2222
+ headers: {},
2223
+ data: {}
2224
+ };
2225
+ const localVarHeaderParameter = {};
2226
+ let body;
2227
+ let authorization;
2228
+ let xSdkDate;
2229
+ let xProjectId;
2230
+ let xAppUserId;
2231
+ if (createPhotoDetectionRequest !== null && createPhotoDetectionRequest !== undefined) {
2232
+ if (createPhotoDetectionRequest instanceof CreatePhotoDetectionRequest_1.CreatePhotoDetectionRequest) {
2233
+ body = createPhotoDetectionRequest.body;
2234
+ authorization = createPhotoDetectionRequest.authorization;
2235
+ xSdkDate = createPhotoDetectionRequest.xSdkDate;
2236
+ xProjectId = createPhotoDetectionRequest.xProjectId;
2237
+ xAppUserId = createPhotoDetectionRequest.xAppUserId;
2238
+ }
2239
+ else {
2240
+ body = createPhotoDetectionRequest['body'];
2241
+ authorization = createPhotoDetectionRequest['Authorization'];
2242
+ xSdkDate = createPhotoDetectionRequest['X-Sdk-Date'];
2243
+ xProjectId = createPhotoDetectionRequest['X-Project-Id'];
2244
+ xAppUserId = createPhotoDetectionRequest['X-App-UserId'];
2245
+ }
2246
+ }
2247
+ if (body === null || body === undefined) {
2248
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2249
+ }
2250
+ if (authorization !== undefined && authorization !== null) {
2251
+ localVarHeaderParameter['Authorization'] = String(authorization);
2252
+ }
2253
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2254
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2255
+ }
2256
+ if (xProjectId !== undefined && xProjectId !== null) {
2257
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2258
+ }
2259
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2260
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2261
+ }
2262
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2263
+ options.data = body !== undefined ? body : {};
2264
+ options.headers = localVarHeaderParameter;
2265
+ return options;
2266
+ },
2267
+ /**
2268
+ * 该接口用于创建照片分身数字人视频制作任务。
2269
+ *
2270
+ * Please refer to HUAWEI cloud API Explorer for details.
2271
+ */
2272
+ createPhotoDigitalHumanVideo(createPhotoDigitalHumanVideoRequest) {
2273
+ const options = {
2274
+ method: "POST",
2275
+ url: "/v1/{project_id}/photo-digital-human-videos",
2276
+ contentType: "application/json",
2277
+ queryParams: {},
2278
+ pathParams: {},
2279
+ headers: {},
2280
+ data: {}
2281
+ };
2282
+ const localVarHeaderParameter = {};
2283
+ let body;
2284
+ let authorization;
2285
+ let xSdkDate;
2286
+ let xProjectId;
2287
+ let xAppUserId;
2288
+ if (createPhotoDigitalHumanVideoRequest !== null && createPhotoDigitalHumanVideoRequest !== undefined) {
2289
+ if (createPhotoDigitalHumanVideoRequest instanceof CreatePhotoDigitalHumanVideoRequest_1.CreatePhotoDigitalHumanVideoRequest) {
2290
+ body = createPhotoDigitalHumanVideoRequest.body;
2291
+ authorization = createPhotoDigitalHumanVideoRequest.authorization;
2292
+ xSdkDate = createPhotoDigitalHumanVideoRequest.xSdkDate;
2293
+ xProjectId = createPhotoDigitalHumanVideoRequest.xProjectId;
2294
+ xAppUserId = createPhotoDigitalHumanVideoRequest.xAppUserId;
2295
+ }
2296
+ else {
2297
+ body = createPhotoDigitalHumanVideoRequest['body'];
2298
+ authorization = createPhotoDigitalHumanVideoRequest['Authorization'];
2299
+ xSdkDate = createPhotoDigitalHumanVideoRequest['X-Sdk-Date'];
2300
+ xProjectId = createPhotoDigitalHumanVideoRequest['X-Project-Id'];
2301
+ xAppUserId = createPhotoDigitalHumanVideoRequest['X-App-UserId'];
2302
+ }
2303
+ }
2304
+ if (body === null || body === undefined) {
2305
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2306
+ }
2307
+ if (authorization !== undefined && authorization !== null) {
2308
+ localVarHeaderParameter['Authorization'] = String(authorization);
2309
+ }
2310
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2311
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2312
+ }
2313
+ if (xProjectId !== undefined && xProjectId !== null) {
2314
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2315
+ }
2316
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2317
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2318
+ }
2319
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2320
+ options.data = body !== undefined ? body : {};
2321
+ options.headers = localVarHeaderParameter;
2322
+ return options;
2323
+ },
2324
+ /**
2325
+ * 该接口用于查询照片检测任务详情。
2326
+ *
2327
+ * Please refer to HUAWEI cloud API Explorer for details.
2328
+ */
2329
+ showPhotoDetection(showPhotoDetectionRequest) {
2330
+ const options = {
2331
+ method: "GET",
2332
+ url: "/v1/{project_id}/photo-detection/{job_id}",
2333
+ contentType: "application/json",
2334
+ queryParams: {},
2335
+ pathParams: {},
2336
+ headers: {}
2337
+ };
2338
+ const localVarHeaderParameter = {};
2339
+ let jobId;
2340
+ let authorization;
2341
+ let xSdkDate;
2342
+ let xProjectId;
2343
+ let xAppUserId;
2344
+ if (showPhotoDetectionRequest !== null && showPhotoDetectionRequest !== undefined) {
2345
+ if (showPhotoDetectionRequest instanceof ShowPhotoDetectionRequest_1.ShowPhotoDetectionRequest) {
2346
+ jobId = showPhotoDetectionRequest.jobId;
2347
+ authorization = showPhotoDetectionRequest.authorization;
2348
+ xSdkDate = showPhotoDetectionRequest.xSdkDate;
2349
+ xProjectId = showPhotoDetectionRequest.xProjectId;
2350
+ xAppUserId = showPhotoDetectionRequest.xAppUserId;
2351
+ }
2352
+ else {
2353
+ jobId = showPhotoDetectionRequest['job_id'];
2354
+ authorization = showPhotoDetectionRequest['Authorization'];
2355
+ xSdkDate = showPhotoDetectionRequest['X-Sdk-Date'];
2356
+ xProjectId = showPhotoDetectionRequest['X-Project-Id'];
2357
+ xAppUserId = showPhotoDetectionRequest['X-App-UserId'];
2358
+ }
2359
+ }
2360
+ if (jobId === null || jobId === undefined) {
2361
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showPhotoDetection.');
2362
+ }
2363
+ if (authorization !== undefined && authorization !== null) {
2364
+ localVarHeaderParameter['Authorization'] = String(authorization);
2365
+ }
2366
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2367
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2368
+ }
2369
+ if (xProjectId !== undefined && xProjectId !== null) {
2370
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2371
+ }
2372
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2373
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2374
+ }
2375
+ options.pathParams = { 'job_id': jobId, };
2376
+ options.headers = localVarHeaderParameter;
2377
+ return options;
2378
+ },
2379
+ /**
2380
+ * 该接口用于查询照片分身数字人视频制作任务详情。
2381
+ *
2382
+ * Please refer to HUAWEI cloud API Explorer for details.
2383
+ */
2384
+ showPhotoDigitalHumanVideo(showPhotoDigitalHumanVideoRequest) {
2385
+ const options = {
2386
+ method: "GET",
2387
+ url: "/v1/{project_id}/photo-digital-human-videos/{job_id}",
2388
+ contentType: "application/json",
2389
+ queryParams: {},
2390
+ pathParams: {},
2391
+ headers: {}
2392
+ };
2393
+ const localVarHeaderParameter = {};
2394
+ const localVarQueryParameter = {};
2395
+ let jobId;
2396
+ let authorization;
2397
+ let xSdkDate;
2398
+ let xProjectId;
2399
+ let xAppUserId;
2400
+ let showScript;
2401
+ if (showPhotoDigitalHumanVideoRequest !== null && showPhotoDigitalHumanVideoRequest !== undefined) {
2402
+ if (showPhotoDigitalHumanVideoRequest instanceof ShowPhotoDigitalHumanVideoRequest_1.ShowPhotoDigitalHumanVideoRequest) {
2403
+ jobId = showPhotoDigitalHumanVideoRequest.jobId;
2404
+ authorization = showPhotoDigitalHumanVideoRequest.authorization;
2405
+ xSdkDate = showPhotoDigitalHumanVideoRequest.xSdkDate;
2406
+ xProjectId = showPhotoDigitalHumanVideoRequest.xProjectId;
2407
+ xAppUserId = showPhotoDigitalHumanVideoRequest.xAppUserId;
2408
+ showScript = showPhotoDigitalHumanVideoRequest.showScript;
2409
+ }
2410
+ else {
2411
+ jobId = showPhotoDigitalHumanVideoRequest['job_id'];
2412
+ authorization = showPhotoDigitalHumanVideoRequest['Authorization'];
2413
+ xSdkDate = showPhotoDigitalHumanVideoRequest['X-Sdk-Date'];
2414
+ xProjectId = showPhotoDigitalHumanVideoRequest['X-Project-Id'];
2415
+ xAppUserId = showPhotoDigitalHumanVideoRequest['X-App-UserId'];
2416
+ showScript = showPhotoDigitalHumanVideoRequest['show_script'];
2417
+ }
2418
+ }
2419
+ if (jobId === null || jobId === undefined) {
2420
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showPhotoDigitalHumanVideo.');
2421
+ }
2422
+ if (showScript !== null && showScript !== undefined) {
2423
+ localVarQueryParameter['show_script'] = showScript;
2424
+ }
2425
+ if (authorization !== undefined && authorization !== null) {
2426
+ localVarHeaderParameter['Authorization'] = String(authorization);
2427
+ }
2428
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2429
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2430
+ }
2431
+ if (xProjectId !== undefined && xProjectId !== null) {
2432
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2433
+ }
2434
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2435
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2436
+ }
2437
+ options.queryParams = localVarQueryParameter;
2438
+ options.pathParams = { 'job_id': jobId, };
2439
+ options.headers = localVarHeaderParameter;
2440
+ return options;
2441
+ },
2442
+ /**
2443
+ * 资产文件上传完毕后,通过该接口确认上传完成。
2444
+ *
2445
+ * Please refer to HUAWEI cloud API Explorer for details.
2446
+ */
2447
+ confirmFileUpload(confirmFileUploadRequest) {
2448
+ const options = {
2449
+ method: "POST",
2450
+ url: "/v1/{project_id}/files/{file_id}/complete",
2451
+ contentType: "application/json",
2452
+ queryParams: {},
2453
+ pathParams: {},
2454
+ headers: {},
2455
+ data: {}
2456
+ };
2457
+ const localVarHeaderParameter = {};
2458
+ let body;
2459
+ let fileId;
2460
+ let authorization;
2461
+ let xSdkDate;
2462
+ let xAppUserId;
2463
+ if (confirmFileUploadRequest !== null && confirmFileUploadRequest !== undefined) {
2464
+ if (confirmFileUploadRequest instanceof ConfirmFileUploadRequest_1.ConfirmFileUploadRequest) {
2465
+ fileId = confirmFileUploadRequest.fileId;
2466
+ body = confirmFileUploadRequest.body;
2467
+ authorization = confirmFileUploadRequest.authorization;
2468
+ xSdkDate = confirmFileUploadRequest.xSdkDate;
2469
+ xAppUserId = confirmFileUploadRequest.xAppUserId;
2470
+ }
2471
+ else {
2472
+ fileId = confirmFileUploadRequest['file_id'];
2473
+ body = confirmFileUploadRequest['body'];
2474
+ authorization = confirmFileUploadRequest['Authorization'];
2475
+ xSdkDate = confirmFileUploadRequest['X-Sdk-Date'];
2476
+ xAppUserId = confirmFileUploadRequest['X-App-UserId'];
2477
+ }
2478
+ }
2479
+ if (fileId === null || fileId === undefined) {
2480
+ throw new RequiredError('fileId', 'Required parameter fileId was null or undefined when calling confirmFileUpload.');
2481
+ }
2482
+ if (body === null || body === undefined) {
2483
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2484
+ }
2485
+ if (authorization !== undefined && authorization !== null) {
2486
+ localVarHeaderParameter['Authorization'] = String(authorization);
2487
+ }
2488
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2489
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2490
+ }
2491
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2492
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2493
+ }
2494
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2495
+ options.data = body !== undefined ? body : {};
2496
+ options.pathParams = { 'file_id': fileId, };
2497
+ options.headers = localVarHeaderParameter;
2498
+ return options;
2499
+ },
2500
+ /**
2501
+ * 该接口用于创建文件并获取上传URL。
2502
+ *
2503
+ * Please refer to HUAWEI cloud API Explorer for details.
2504
+ */
2505
+ createFile(createFileRequest) {
2506
+ const options = {
2507
+ method: "POST",
2508
+ url: "/v1/{project_id}/files",
2509
+ contentType: "application/json",
2510
+ queryParams: {},
2511
+ pathParams: {},
2512
+ headers: {},
2513
+ data: {}
2514
+ };
2515
+ const localVarHeaderParameter = {};
2516
+ let body;
2517
+ let authorization;
2518
+ let xSdkDate;
2519
+ let xAppUserId;
2520
+ if (createFileRequest !== null && createFileRequest !== undefined) {
2521
+ if (createFileRequest instanceof CreateFileRequest_1.CreateFileRequest) {
2522
+ body = createFileRequest.body;
2523
+ authorization = createFileRequest.authorization;
2524
+ xSdkDate = createFileRequest.xSdkDate;
2525
+ xAppUserId = createFileRequest.xAppUserId;
2526
+ }
2527
+ else {
2528
+ body = createFileRequest['body'];
2529
+ authorization = createFileRequest['Authorization'];
2530
+ xSdkDate = createFileRequest['X-Sdk-Date'];
2531
+ xAppUserId = createFileRequest['X-App-UserId'];
2532
+ }
2533
+ }
2534
+ if (body === null || body === undefined) {
2535
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2536
+ }
2537
+ if (authorization !== undefined && authorization !== null) {
2538
+ localVarHeaderParameter['Authorization'] = String(authorization);
2539
+ }
2540
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2541
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2542
+ }
2543
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2544
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2545
+ }
2546
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2547
+ options.data = body !== undefined ? body : {};
2548
+ options.headers = localVarHeaderParameter;
2549
+ return options;
2550
+ },
2551
+ /**
2552
+ * 该接口用于删除媒体资产库中指定的文件。
2553
+ *
2554
+ * Please refer to HUAWEI cloud API Explorer for details.
2555
+ */
2556
+ deleteFile(deleteFileRequest) {
2557
+ const options = {
2558
+ method: "DELETE",
2559
+ url: "/v1/{project_id}/files/{file_id}",
2560
+ contentType: "application/json",
2561
+ queryParams: {},
2562
+ pathParams: {},
2563
+ headers: {}
2564
+ };
2565
+ const localVarHeaderParameter = {};
2566
+ let fileId;
2567
+ let authorization;
2568
+ let xSdkDate;
2569
+ let xAppUserId;
2570
+ if (deleteFileRequest !== null && deleteFileRequest !== undefined) {
2571
+ if (deleteFileRequest instanceof DeleteFileRequest_1.DeleteFileRequest) {
2572
+ fileId = deleteFileRequest.fileId;
2573
+ authorization = deleteFileRequest.authorization;
2574
+ xSdkDate = deleteFileRequest.xSdkDate;
2575
+ xAppUserId = deleteFileRequest.xAppUserId;
2576
+ }
2577
+ else {
2578
+ fileId = deleteFileRequest['file_id'];
2579
+ authorization = deleteFileRequest['Authorization'];
2580
+ xSdkDate = deleteFileRequest['X-Sdk-Date'];
2581
+ xAppUserId = deleteFileRequest['X-App-UserId'];
2582
+ }
2583
+ }
2584
+ if (fileId === null || fileId === undefined) {
2585
+ throw new RequiredError('fileId', 'Required parameter fileId was null or undefined when calling deleteFile.');
2586
+ }
2587
+ if (authorization !== undefined && authorization !== null) {
2588
+ localVarHeaderParameter['Authorization'] = String(authorization);
2589
+ }
2590
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2591
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2592
+ }
2593
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2594
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2595
+ }
2596
+ options.pathParams = { 'file_id': fileId, };
2597
+ options.headers = localVarHeaderParameter;
2598
+ return options;
2599
+ },
537
2600
  /**
538
- * 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:数字人模型、素材、视频、图片、场景等。
2601
+ * 该接口用于从URL中获取图片进行照片建模任务。
539
2602
  *
540
2603
  * Please refer to HUAWEI cloud API Explorer for details.
541
2604
  */
542
- createDigitalAsset(createDigitalAssetRequest) {
2605
+ createPictureModelingByUrlJob(createPictureModelingByUrlJobRequest) {
543
2606
  const options = {
544
2607
  method: "POST",
545
- url: "/v1/{project_id}/digital-assets",
2608
+ url: "/v1/{project_id}/digital-human/stylized/picture-modelings-by-url",
546
2609
  contentType: "application/json",
547
2610
  queryParams: {},
548
2611
  pathParams: {},
@@ -553,19 +2616,25 @@ const ParamCreater = function () {
553
2616
  let body;
554
2617
  let authorization;
555
2618
  let xSdkDate;
2619
+ let xProjectId;
556
2620
  let xAppUserId;
557
- if (createDigitalAssetRequest !== null && createDigitalAssetRequest !== undefined) {
558
- if (createDigitalAssetRequest instanceof CreateDigitalAssetRequest_1.CreateDigitalAssetRequest) {
559
- body = createDigitalAssetRequest.body;
560
- authorization = createDigitalAssetRequest.authorization;
561
- xSdkDate = createDigitalAssetRequest.xSdkDate;
562
- xAppUserId = createDigitalAssetRequest.xAppUserId;
2621
+ let xUserPrivilege;
2622
+ if (createPictureModelingByUrlJobRequest !== null && createPictureModelingByUrlJobRequest !== undefined) {
2623
+ if (createPictureModelingByUrlJobRequest instanceof CreatePictureModelingByUrlJobRequest_1.CreatePictureModelingByUrlJobRequest) {
2624
+ body = createPictureModelingByUrlJobRequest.body;
2625
+ authorization = createPictureModelingByUrlJobRequest.authorization;
2626
+ xSdkDate = createPictureModelingByUrlJobRequest.xSdkDate;
2627
+ xProjectId = createPictureModelingByUrlJobRequest.xProjectId;
2628
+ xAppUserId = createPictureModelingByUrlJobRequest.xAppUserId;
2629
+ xUserPrivilege = createPictureModelingByUrlJobRequest.xUserPrivilege;
563
2630
  }
564
2631
  else {
565
- body = createDigitalAssetRequest['body'];
566
- authorization = createDigitalAssetRequest['Authorization'];
567
- xSdkDate = createDigitalAssetRequest['X-Sdk-Date'];
568
- xAppUserId = createDigitalAssetRequest['X-App-UserId'];
2632
+ body = createPictureModelingByUrlJobRequest['body'];
2633
+ authorization = createPictureModelingByUrlJobRequest['Authorization'];
2634
+ xSdkDate = createPictureModelingByUrlJobRequest['X-Sdk-Date'];
2635
+ xProjectId = createPictureModelingByUrlJobRequest['X-Project-Id'];
2636
+ xAppUserId = createPictureModelingByUrlJobRequest['X-App-UserId'];
2637
+ xUserPrivilege = createPictureModelingByUrlJobRequest['X-User-Privilege'];
569
2638
  }
570
2639
  }
571
2640
  if (body === null || body === undefined) {
@@ -577,23 +2646,122 @@ const ParamCreater = function () {
577
2646
  if (xSdkDate !== undefined && xSdkDate !== null) {
578
2647
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
579
2648
  }
2649
+ if (xProjectId !== undefined && xProjectId !== null) {
2650
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2651
+ }
580
2652
  if (xAppUserId !== undefined && xAppUserId !== null) {
581
2653
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
582
2654
  }
2655
+ if (xUserPrivilege !== undefined && xUserPrivilege !== null) {
2656
+ localVarHeaderParameter['X-User-Privilege'] = String(xUserPrivilege);
2657
+ }
583
2658
  localVarHeaderParameter['Content-Type'] = 'application/json';
584
2659
  options.data = body !== undefined ? body : {};
585
2660
  options.headers = localVarHeaderParameter;
586
2661
  return options;
587
2662
  },
588
2663
  /**
589
- * 该接口用于删除资产库中的媒体资产。第一次调用删除接口,将指定资产放入回收站;第二次调用删除接口,将指定资产彻底删除。
2664
+ * 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。
590
2665
  *
591
2666
  * Please refer to HUAWEI cloud API Explorer for details.
592
2667
  */
593
- deleteAsset(deleteAssetRequest) {
2668
+ createPictureModelingJob(createPictureModelingJobRequest) {
2669
+ var _a, _b, _c, _d;
594
2670
  const options = {
595
- method: "DELETE",
596
- url: "/v1/{project_id}/digital-assets/{asset_id}",
2671
+ method: "POST",
2672
+ url: "/v1/{project_id}/digital-human/stylized/picture-modelings",
2673
+ contentType: "multipart/form-data",
2674
+ queryParams: {},
2675
+ pathParams: {},
2676
+ headers: {},
2677
+ data: {}
2678
+ };
2679
+ const localVarHeaderParameter = {};
2680
+ const localVarFormParams = new form_data_1.default();
2681
+ let file;
2682
+ let styleId;
2683
+ let name;
2684
+ let authorization;
2685
+ let xSdkDate;
2686
+ let xProjectId;
2687
+ let xAppUserId;
2688
+ let xUserPrivilege;
2689
+ let notifyUrl;
2690
+ if (createPictureModelingJobRequest !== null && createPictureModelingJobRequest !== undefined) {
2691
+ if (createPictureModelingJobRequest instanceof CreatePictureModelingJobRequest_1.CreatePictureModelingJobRequest) {
2692
+ file = (_a = createPictureModelingJobRequest.body) === null || _a === void 0 ? void 0 : _a.file;
2693
+ styleId = (_b = createPictureModelingJobRequest.body) === null || _b === void 0 ? void 0 : _b.styleId;
2694
+ name = (_c = createPictureModelingJobRequest.body) === null || _c === void 0 ? void 0 : _c.name;
2695
+ authorization = createPictureModelingJobRequest.authorization;
2696
+ xSdkDate = createPictureModelingJobRequest.xSdkDate;
2697
+ xProjectId = createPictureModelingJobRequest.xProjectId;
2698
+ xAppUserId = createPictureModelingJobRequest.xAppUserId;
2699
+ xUserPrivilege = createPictureModelingJobRequest.xUserPrivilege;
2700
+ notifyUrl = (_d = createPictureModelingJobRequest.body) === null || _d === void 0 ? void 0 : _d.notifyUrl;
2701
+ }
2702
+ else {
2703
+ file = createPictureModelingJobRequest['body']['file'];
2704
+ styleId = createPictureModelingJobRequest['body']['styleId'];
2705
+ name = createPictureModelingJobRequest['body']['name'];
2706
+ authorization = createPictureModelingJobRequest['Authorization'];
2707
+ xSdkDate = createPictureModelingJobRequest['X-Sdk-Date'];
2708
+ xProjectId = createPictureModelingJobRequest['X-Project-Id'];
2709
+ xAppUserId = createPictureModelingJobRequest['X-App-UserId'];
2710
+ xUserPrivilege = createPictureModelingJobRequest['X-User-Privilege'];
2711
+ notifyUrl = createPictureModelingJobRequest['body']['notifyUrl'];
2712
+ }
2713
+ }
2714
+ if (file === null || file === undefined) {
2715
+ throw new RequiredError('file', 'Required parameter file was null or undefined when calling createPictureModelingJob.');
2716
+ }
2717
+ if (styleId === null || styleId === undefined) {
2718
+ throw new RequiredError('styleId', 'Required parameter styleId was null or undefined when calling createPictureModelingJob.');
2719
+ }
2720
+ if (name === null || name === undefined) {
2721
+ throw new RequiredError('name', 'Required parameter name was null or undefined when calling createPictureModelingJob.');
2722
+ }
2723
+ if (styleId !== undefined) {
2724
+ localVarFormParams.append('style_id', styleId);
2725
+ }
2726
+ if (name !== undefined) {
2727
+ localVarFormParams.append('name', name);
2728
+ }
2729
+ if (notifyUrl !== undefined) {
2730
+ localVarFormParams.append('notify_url', notifyUrl);
2731
+ }
2732
+ if (file !== undefined) {
2733
+ localVarFormParams.append('file', file);
2734
+ }
2735
+ if (authorization !== undefined && authorization !== null) {
2736
+ localVarHeaderParameter['Authorization'] = String(authorization);
2737
+ }
2738
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2739
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2740
+ }
2741
+ if (xProjectId !== undefined && xProjectId !== null) {
2742
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2743
+ }
2744
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2745
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2746
+ }
2747
+ if (xUserPrivilege !== undefined && xUserPrivilege !== null) {
2748
+ localVarHeaderParameter['X-User-Privilege'] = String(xUserPrivilege);
2749
+ }
2750
+ localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
2751
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
2752
+ options.data = localVarFormParams;
2753
+ options.headers = localVarHeaderParameter;
2754
+ return options;
2755
+ },
2756
+ /**
2757
+ * 该接口用于查询风格化照片建模任务列表。
2758
+ *
2759
+ * Please refer to HUAWEI cloud API Explorer for details.
2760
+ */
2761
+ listPictureModelingJobs(listPictureModelingJobsRequest) {
2762
+ const options = {
2763
+ method: "GET",
2764
+ url: "/v1/{project_id}/digital-human/stylized/picture-modelings",
597
2765
  contentType: "application/json",
598
2766
  queryParams: {},
599
2767
  pathParams: {},
@@ -601,32 +2769,120 @@ const ParamCreater = function () {
601
2769
  };
602
2770
  const localVarHeaderParameter = {};
603
2771
  const localVarQueryParameter = {};
604
- let assetId;
605
2772
  let authorization;
606
2773
  let xSdkDate;
2774
+ let xProjectId;
607
2775
  let xAppUserId;
608
- let mode;
609
- if (deleteAssetRequest !== null && deleteAssetRequest !== undefined) {
610
- if (deleteAssetRequest instanceof DeleteAssetRequest_1.DeleteAssetRequest) {
611
- assetId = deleteAssetRequest.assetId;
612
- authorization = deleteAssetRequest.authorization;
613
- xSdkDate = deleteAssetRequest.xSdkDate;
614
- xAppUserId = deleteAssetRequest.xAppUserId;
615
- mode = deleteAssetRequest.mode;
2776
+ let offset;
2777
+ let limit;
2778
+ let state;
2779
+ let sortKey;
2780
+ let sortDir;
2781
+ let createUntil;
2782
+ let createSince;
2783
+ if (listPictureModelingJobsRequest !== null && listPictureModelingJobsRequest !== undefined) {
2784
+ if (listPictureModelingJobsRequest instanceof ListPictureModelingJobsRequest_1.ListPictureModelingJobsRequest) {
2785
+ authorization = listPictureModelingJobsRequest.authorization;
2786
+ xSdkDate = listPictureModelingJobsRequest.xSdkDate;
2787
+ xProjectId = listPictureModelingJobsRequest.xProjectId;
2788
+ xAppUserId = listPictureModelingJobsRequest.xAppUserId;
2789
+ offset = listPictureModelingJobsRequest.offset;
2790
+ limit = listPictureModelingJobsRequest.limit;
2791
+ state = listPictureModelingJobsRequest.state;
2792
+ sortKey = listPictureModelingJobsRequest.sortKey;
2793
+ sortDir = listPictureModelingJobsRequest.sortDir;
2794
+ createUntil = listPictureModelingJobsRequest.createUntil;
2795
+ createSince = listPictureModelingJobsRequest.createSince;
2796
+ }
2797
+ else {
2798
+ authorization = listPictureModelingJobsRequest['Authorization'];
2799
+ xSdkDate = listPictureModelingJobsRequest['X-Sdk-Date'];
2800
+ xProjectId = listPictureModelingJobsRequest['X-Project-Id'];
2801
+ xAppUserId = listPictureModelingJobsRequest['X-App-UserId'];
2802
+ offset = listPictureModelingJobsRequest['offset'];
2803
+ limit = listPictureModelingJobsRequest['limit'];
2804
+ state = listPictureModelingJobsRequest['state'];
2805
+ sortKey = listPictureModelingJobsRequest['sort_key'];
2806
+ sortDir = listPictureModelingJobsRequest['sort_dir'];
2807
+ createUntil = listPictureModelingJobsRequest['create_until'];
2808
+ createSince = listPictureModelingJobsRequest['create_since'];
2809
+ }
2810
+ }
2811
+ if (offset !== null && offset !== undefined) {
2812
+ localVarQueryParameter['offset'] = offset;
2813
+ }
2814
+ if (limit !== null && limit !== undefined) {
2815
+ localVarQueryParameter['limit'] = limit;
2816
+ }
2817
+ if (state !== null && state !== undefined) {
2818
+ localVarQueryParameter['state'] = state;
2819
+ }
2820
+ if (sortKey !== null && sortKey !== undefined) {
2821
+ localVarQueryParameter['sort_key'] = sortKey;
2822
+ }
2823
+ if (sortDir !== null && sortDir !== undefined) {
2824
+ localVarQueryParameter['sort_dir'] = sortDir;
2825
+ }
2826
+ if (createUntil !== null && createUntil !== undefined) {
2827
+ localVarQueryParameter['create_until'] = createUntil;
2828
+ }
2829
+ if (createSince !== null && createSince !== undefined) {
2830
+ localVarQueryParameter['create_since'] = createSince;
2831
+ }
2832
+ if (authorization !== undefined && authorization !== null) {
2833
+ localVarHeaderParameter['Authorization'] = String(authorization);
2834
+ }
2835
+ if (xSdkDate !== undefined && xSdkDate !== null) {
2836
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
2837
+ }
2838
+ if (xProjectId !== undefined && xProjectId !== null) {
2839
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2840
+ }
2841
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2842
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2843
+ }
2844
+ options.queryParams = localVarQueryParameter;
2845
+ options.headers = localVarHeaderParameter;
2846
+ return options;
2847
+ },
2848
+ /**
2849
+ * 该接口用于风格化查询照片建模任务详情。
2850
+ *
2851
+ * Please refer to HUAWEI cloud API Explorer for details.
2852
+ */
2853
+ showPictureModelingJob(showPictureModelingJobRequest) {
2854
+ const options = {
2855
+ method: "GET",
2856
+ url: "/v1/{project_id}/digital-human/stylized/picture-modelings/{job_id}",
2857
+ contentType: "application/json",
2858
+ queryParams: {},
2859
+ pathParams: {},
2860
+ headers: {}
2861
+ };
2862
+ const localVarHeaderParameter = {};
2863
+ let jobId;
2864
+ let authorization;
2865
+ let xSdkDate;
2866
+ let xProjectId;
2867
+ let xAppUserId;
2868
+ if (showPictureModelingJobRequest !== null && showPictureModelingJobRequest !== undefined) {
2869
+ if (showPictureModelingJobRequest instanceof ShowPictureModelingJobRequest_1.ShowPictureModelingJobRequest) {
2870
+ jobId = showPictureModelingJobRequest.jobId;
2871
+ authorization = showPictureModelingJobRequest.authorization;
2872
+ xSdkDate = showPictureModelingJobRequest.xSdkDate;
2873
+ xProjectId = showPictureModelingJobRequest.xProjectId;
2874
+ xAppUserId = showPictureModelingJobRequest.xAppUserId;
616
2875
  }
617
2876
  else {
618
- assetId = deleteAssetRequest['asset_id'];
619
- authorization = deleteAssetRequest['Authorization'];
620
- xSdkDate = deleteAssetRequest['X-Sdk-Date'];
621
- xAppUserId = deleteAssetRequest['X-App-UserId'];
622
- mode = deleteAssetRequest['mode'];
2877
+ jobId = showPictureModelingJobRequest['job_id'];
2878
+ authorization = showPictureModelingJobRequest['Authorization'];
2879
+ xSdkDate = showPictureModelingJobRequest['X-Sdk-Date'];
2880
+ xProjectId = showPictureModelingJobRequest['X-Project-Id'];
2881
+ xAppUserId = showPictureModelingJobRequest['X-App-UserId'];
623
2882
  }
624
2883
  }
625
- if (assetId === null || assetId === undefined) {
626
- throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling deleteAsset.');
627
- }
628
- if (mode !== null && mode !== undefined) {
629
- localVarQueryParameter['mode'] = mode;
2884
+ if (jobId === null || jobId === undefined) {
2885
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showPictureModelingJob.');
630
2886
  }
631
2887
  if (authorization !== undefined && authorization !== null) {
632
2888
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -634,23 +2890,25 @@ const ParamCreater = function () {
634
2890
  if (xSdkDate !== undefined && xSdkDate !== null) {
635
2891
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
636
2892
  }
2893
+ if (xProjectId !== undefined && xProjectId !== null) {
2894
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2895
+ }
637
2896
  if (xAppUserId !== undefined && xAppUserId !== null) {
638
2897
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
639
2898
  }
640
- options.queryParams = localVarQueryParameter;
641
- options.pathParams = { 'asset_id': assetId, };
2899
+ options.pathParams = { 'job_id': jobId, };
642
2900
  options.headers = localVarHeaderParameter;
643
2901
  return options;
644
2902
  },
645
2903
  /**
646
- * 该接口用于查询媒体资产库中指定的多个资产的概要信息。
2904
+ * 该接口用于控制数字人直播过程。
647
2905
  *
648
2906
  * Please refer to HUAWEI cloud API Explorer for details.
649
2907
  */
650
- listAssetSummary(listAssetSummaryRequest) {
2908
+ executeSmartLiveCommand(executeSmartLiveCommandRequest) {
651
2909
  const options = {
652
2910
  method: "POST",
653
- url: "/v1/{project_id}/digital-assets/summarys",
2911
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}/command",
654
2912
  contentType: "application/json",
655
2913
  queryParams: {},
656
2914
  pathParams: {},
@@ -659,20 +2917,38 @@ const ParamCreater = function () {
659
2917
  };
660
2918
  const localVarHeaderParameter = {};
661
2919
  let body;
2920
+ let roomId;
2921
+ let jobId;
662
2922
  let authorization;
663
2923
  let xSdkDate;
664
- if (listAssetSummaryRequest !== null && listAssetSummaryRequest !== undefined) {
665
- if (listAssetSummaryRequest instanceof ListAssetSummaryRequest_1.ListAssetSummaryRequest) {
666
- body = listAssetSummaryRequest.body;
667
- authorization = listAssetSummaryRequest.authorization;
668
- xSdkDate = listAssetSummaryRequest.xSdkDate;
2924
+ let xProjectId;
2925
+ let xAppUserId;
2926
+ if (executeSmartLiveCommandRequest !== null && executeSmartLiveCommandRequest !== undefined) {
2927
+ if (executeSmartLiveCommandRequest instanceof ExecuteSmartLiveCommandRequest_1.ExecuteSmartLiveCommandRequest) {
2928
+ roomId = executeSmartLiveCommandRequest.roomId;
2929
+ jobId = executeSmartLiveCommandRequest.jobId;
2930
+ body = executeSmartLiveCommandRequest.body;
2931
+ authorization = executeSmartLiveCommandRequest.authorization;
2932
+ xSdkDate = executeSmartLiveCommandRequest.xSdkDate;
2933
+ xProjectId = executeSmartLiveCommandRequest.xProjectId;
2934
+ xAppUserId = executeSmartLiveCommandRequest.xAppUserId;
669
2935
  }
670
2936
  else {
671
- body = listAssetSummaryRequest['body'];
672
- authorization = listAssetSummaryRequest['Authorization'];
673
- xSdkDate = listAssetSummaryRequest['X-Sdk-Date'];
2937
+ roomId = executeSmartLiveCommandRequest['room_id'];
2938
+ jobId = executeSmartLiveCommandRequest['job_id'];
2939
+ body = executeSmartLiveCommandRequest['body'];
2940
+ authorization = executeSmartLiveCommandRequest['Authorization'];
2941
+ xSdkDate = executeSmartLiveCommandRequest['X-Sdk-Date'];
2942
+ xProjectId = executeSmartLiveCommandRequest['X-Project-Id'];
2943
+ xAppUserId = executeSmartLiveCommandRequest['X-App-UserId'];
674
2944
  }
675
2945
  }
2946
+ if (roomId === null || roomId === undefined) {
2947
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling executeSmartLiveCommand.');
2948
+ }
2949
+ if (jobId === null || jobId === undefined) {
2950
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling executeSmartLiveCommand.');
2951
+ }
676
2952
  if (body === null || body === undefined) {
677
2953
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
678
2954
  }
@@ -682,20 +2958,27 @@ const ParamCreater = function () {
682
2958
  if (xSdkDate !== undefined && xSdkDate !== null) {
683
2959
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
684
2960
  }
2961
+ if (xProjectId !== undefined && xProjectId !== null) {
2962
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
2963
+ }
2964
+ if (xAppUserId !== undefined && xAppUserId !== null) {
2965
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
2966
+ }
685
2967
  localVarHeaderParameter['Content-Type'] = 'application/json';
686
2968
  options.data = body !== undefined ? body : {};
2969
+ options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
687
2970
  options.headers = localVarHeaderParameter;
688
2971
  return options;
689
2972
  },
690
2973
  /**
691
- * 该接口用于查询资产库中的媒体资产列表。
2974
+ * 该接口用于查询数字人智能直播任务列表。
692
2975
  *
693
2976
  * Please refer to HUAWEI cloud API Explorer for details.
694
2977
  */
695
- listAssets(listAssetsRequest) {
2978
+ listSmartLive(listSmartLiveRequest) {
696
2979
  const options = {
697
2980
  method: "GET",
698
- url: "/v1/{project_id}/digital-assets",
2981
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs",
699
2982
  contentType: "application/json",
700
2983
  queryParams: {},
701
2984
  pathParams: {},
@@ -703,98 +2986,59 @@ const ParamCreater = function () {
703
2986
  };
704
2987
  const localVarHeaderParameter = {};
705
2988
  const localVarQueryParameter = {};
2989
+ let roomId;
706
2990
  let authorization;
707
2991
  let xSdkDate;
2992
+ let xProjectId;
708
2993
  let xAppUserId;
709
- let limit;
710
2994
  let offset;
711
- let name;
712
- let tag;
713
- let startTime;
714
- let endTime;
715
- let assetType;
2995
+ let limit;
2996
+ let state;
716
2997
  let sortKey;
717
2998
  let sortDir;
718
- let assetSource;
719
- let assetManageType;
720
- let assetState;
721
- let styleId;
722
- let xUserMePrivilege;
723
- let renderEngine;
724
- let sex;
725
- let language;
726
- let systemProperty;
727
- let actionEditable;
728
- if (listAssetsRequest !== null && listAssetsRequest !== undefined) {
729
- if (listAssetsRequest instanceof ListAssetsRequest_1.ListAssetsRequest) {
730
- authorization = listAssetsRequest.authorization;
731
- xSdkDate = listAssetsRequest.xSdkDate;
732
- xAppUserId = listAssetsRequest.xAppUserId;
733
- limit = listAssetsRequest.limit;
734
- offset = listAssetsRequest.offset;
735
- name = listAssetsRequest.name;
736
- tag = listAssetsRequest.tag;
737
- startTime = listAssetsRequest.startTime;
738
- endTime = listAssetsRequest.endTime;
739
- assetType = listAssetsRequest.assetType;
740
- sortKey = listAssetsRequest.sortKey;
741
- sortDir = listAssetsRequest.sortDir;
742
- assetSource = listAssetsRequest.assetSource;
743
- assetManageType = listAssetsRequest.assetManageType;
744
- assetState = listAssetsRequest.assetState;
745
- styleId = listAssetsRequest.styleId;
746
- xUserMePrivilege = listAssetsRequest.xUserMePrivilege;
747
- renderEngine = listAssetsRequest.renderEngine;
748
- sex = listAssetsRequest.sex;
749
- language = listAssetsRequest.language;
750
- systemProperty = listAssetsRequest.systemProperty;
751
- actionEditable = listAssetsRequest.actionEditable;
2999
+ let createUntil;
3000
+ let createSince;
3001
+ if (listSmartLiveRequest !== null && listSmartLiveRequest !== undefined) {
3002
+ if (listSmartLiveRequest instanceof ListSmartLiveRequest_1.ListSmartLiveRequest) {
3003
+ roomId = listSmartLiveRequest.roomId;
3004
+ authorization = listSmartLiveRequest.authorization;
3005
+ xSdkDate = listSmartLiveRequest.xSdkDate;
3006
+ xProjectId = listSmartLiveRequest.xProjectId;
3007
+ xAppUserId = listSmartLiveRequest.xAppUserId;
3008
+ offset = listSmartLiveRequest.offset;
3009
+ limit = listSmartLiveRequest.limit;
3010
+ state = listSmartLiveRequest.state;
3011
+ sortKey = listSmartLiveRequest.sortKey;
3012
+ sortDir = listSmartLiveRequest.sortDir;
3013
+ createUntil = listSmartLiveRequest.createUntil;
3014
+ createSince = listSmartLiveRequest.createSince;
752
3015
  }
753
3016
  else {
754
- authorization = listAssetsRequest['Authorization'];
755
- xSdkDate = listAssetsRequest['X-Sdk-Date'];
756
- xAppUserId = listAssetsRequest['X-App-UserId'];
757
- limit = listAssetsRequest['limit'];
758
- offset = listAssetsRequest['offset'];
759
- name = listAssetsRequest['name'];
760
- tag = listAssetsRequest['tag'];
761
- startTime = listAssetsRequest['start_time'];
762
- endTime = listAssetsRequest['end_time'];
763
- assetType = listAssetsRequest['asset_type'];
764
- sortKey = listAssetsRequest['sort_key'];
765
- sortDir = listAssetsRequest['sort_dir'];
766
- assetSource = listAssetsRequest['asset_source'];
767
- assetManageType = listAssetsRequest['asset_manage_type'];
768
- assetState = listAssetsRequest['asset_state'];
769
- styleId = listAssetsRequest['style_id'];
770
- xUserMePrivilege = listAssetsRequest['X-User-MePrivilege'];
771
- renderEngine = listAssetsRequest['render_engine'];
772
- sex = listAssetsRequest['sex'];
773
- language = listAssetsRequest['language'];
774
- systemProperty = listAssetsRequest['system_property'];
775
- actionEditable = listAssetsRequest['action_editable'];
3017
+ roomId = listSmartLiveRequest['room_id'];
3018
+ authorization = listSmartLiveRequest['Authorization'];
3019
+ xSdkDate = listSmartLiveRequest['X-Sdk-Date'];
3020
+ xProjectId = listSmartLiveRequest['X-Project-Id'];
3021
+ xAppUserId = listSmartLiveRequest['X-App-UserId'];
3022
+ offset = listSmartLiveRequest['offset'];
3023
+ limit = listSmartLiveRequest['limit'];
3024
+ state = listSmartLiveRequest['state'];
3025
+ sortKey = listSmartLiveRequest['sort_key'];
3026
+ sortDir = listSmartLiveRequest['sort_dir'];
3027
+ createUntil = listSmartLiveRequest['create_until'];
3028
+ createSince = listSmartLiveRequest['create_since'];
776
3029
  }
777
3030
  }
778
- if (limit !== null && limit !== undefined) {
779
- localVarQueryParameter['limit'] = limit;
3031
+ if (roomId === null || roomId === undefined) {
3032
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling listSmartLive.');
780
3033
  }
781
3034
  if (offset !== null && offset !== undefined) {
782
3035
  localVarQueryParameter['offset'] = offset;
783
3036
  }
784
- if (name !== null && name !== undefined) {
785
- localVarQueryParameter['name'] = name;
786
- }
787
- if (tag !== null && tag !== undefined) {
788
- localVarQueryParameter['tag'] = tag;
789
- }
790
- if (startTime !== null && startTime !== undefined) {
791
- localVarQueryParameter['start_time'] = startTime;
792
- }
793
- if (endTime !== null && endTime !== undefined) {
794
- localVarQueryParameter['end_time'] = endTime;
3037
+ if (limit !== null && limit !== undefined) {
3038
+ localVarQueryParameter['limit'] = limit;
795
3039
  }
796
- if (assetType !== null && assetType !== undefined) {
797
- localVarQueryParameter['asset_type'] = assetType;
3040
+ if (state !== null && state !== undefined) {
3041
+ localVarQueryParameter['state'] = state;
798
3042
  }
799
3043
  if (sortKey !== null && sortKey !== undefined) {
800
3044
  localVarQueryParameter['sort_key'] = sortKey;
@@ -802,32 +3046,11 @@ const ParamCreater = function () {
802
3046
  if (sortDir !== null && sortDir !== undefined) {
803
3047
  localVarQueryParameter['sort_dir'] = sortDir;
804
3048
  }
805
- if (assetSource !== null && assetSource !== undefined) {
806
- localVarQueryParameter['asset_source'] = assetSource;
807
- }
808
- if (assetManageType !== null && assetManageType !== undefined) {
809
- localVarQueryParameter['asset_manage_type'] = assetManageType;
810
- }
811
- if (assetState !== null && assetState !== undefined) {
812
- localVarQueryParameter['asset_state'] = assetState;
813
- }
814
- if (styleId !== null && styleId !== undefined) {
815
- localVarQueryParameter['style_id'] = styleId;
816
- }
817
- if (renderEngine !== null && renderEngine !== undefined) {
818
- localVarQueryParameter['render_engine'] = renderEngine;
819
- }
820
- if (sex !== null && sex !== undefined) {
821
- localVarQueryParameter['sex'] = sex;
822
- }
823
- if (language !== null && language !== undefined) {
824
- localVarQueryParameter['language'] = language;
825
- }
826
- if (systemProperty !== null && systemProperty !== undefined) {
827
- localVarQueryParameter['system_property'] = systemProperty;
3049
+ if (createUntil !== null && createUntil !== undefined) {
3050
+ localVarQueryParameter['create_until'] = createUntil;
828
3051
  }
829
- if (actionEditable !== null && actionEditable !== undefined) {
830
- localVarQueryParameter['action_editable'] = actionEditable;
3052
+ if (createSince !== null && createSince !== undefined) {
3053
+ localVarQueryParameter['create_since'] = createSince;
831
3054
  }
832
3055
  if (authorization !== undefined && authorization !== null) {
833
3056
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -835,100 +3058,87 @@ const ParamCreater = function () {
835
3058
  if (xSdkDate !== undefined && xSdkDate !== null) {
836
3059
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
837
3060
  }
3061
+ if (xProjectId !== undefined && xProjectId !== null) {
3062
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
3063
+ }
838
3064
  if (xAppUserId !== undefined && xAppUserId !== null) {
839
3065
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
840
3066
  }
841
- if (xUserMePrivilege !== undefined && xUserMePrivilege !== null) {
842
- localVarHeaderParameter['X-User-MePrivilege'] = String(xUserMePrivilege);
843
- }
844
3067
  options.queryParams = localVarQueryParameter;
3068
+ options.pathParams = { 'room_id': roomId, };
845
3069
  options.headers = localVarHeaderParameter;
846
3070
  return options;
847
3071
  },
848
3072
  /**
849
- * 该接口用于恢复被删除至回收站的媒体资产。
3073
+ * 该接口用于上报直播间事件。
850
3074
  *
851
3075
  * Please refer to HUAWEI cloud API Explorer for details.
852
3076
  */
853
- restoreAsset(restoreAssetRequest) {
3077
+ liveEventReport(liveEventReportRequest) {
854
3078
  const options = {
855
3079
  method: "POST",
856
- url: "/v1/{project_id}/digital-assets/{asset_id}/restore",
3080
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}/live-event-report",
857
3081
  contentType: "application/json",
858
3082
  queryParams: {},
859
3083
  pathParams: {},
860
- headers: {}
3084
+ headers: {},
3085
+ data: {}
861
3086
  };
862
3087
  const localVarHeaderParameter = {};
863
- let assetId;
3088
+ const localVarQueryParameter = {};
3089
+ let body;
3090
+ let roomId;
3091
+ let jobId;
864
3092
  let authorization;
865
3093
  let xSdkDate;
3094
+ let xProjectId;
866
3095
  let xAppUserId;
867
- if (restoreAssetRequest !== null && restoreAssetRequest !== undefined) {
868
- if (restoreAssetRequest instanceof RestoreAssetRequest_1.RestoreAssetRequest) {
869
- assetId = restoreAssetRequest.assetId;
870
- authorization = restoreAssetRequest.authorization;
871
- xSdkDate = restoreAssetRequest.xSdkDate;
872
- xAppUserId = restoreAssetRequest.xAppUserId;
3096
+ let authKey;
3097
+ let expiresTime;
3098
+ let refreshUrl;
3099
+ if (liveEventReportRequest !== null && liveEventReportRequest !== undefined) {
3100
+ if (liveEventReportRequest instanceof LiveEventReportRequest_1.LiveEventReportRequest) {
3101
+ roomId = liveEventReportRequest.roomId;
3102
+ jobId = liveEventReportRequest.jobId;
3103
+ body = liveEventReportRequest.body;
3104
+ authorization = liveEventReportRequest.authorization;
3105
+ xSdkDate = liveEventReportRequest.xSdkDate;
3106
+ xProjectId = liveEventReportRequest.xProjectId;
3107
+ xAppUserId = liveEventReportRequest.xAppUserId;
3108
+ authKey = liveEventReportRequest.authKey;
3109
+ expiresTime = liveEventReportRequest.expiresTime;
3110
+ refreshUrl = liveEventReportRequest.refreshUrl;
873
3111
  }
874
3112
  else {
875
- assetId = restoreAssetRequest['asset_id'];
876
- authorization = restoreAssetRequest['Authorization'];
877
- xSdkDate = restoreAssetRequest['X-Sdk-Date'];
878
- xAppUserId = restoreAssetRequest['X-App-UserId'];
3113
+ roomId = liveEventReportRequest['room_id'];
3114
+ jobId = liveEventReportRequest['job_id'];
3115
+ body = liveEventReportRequest['body'];
3116
+ authorization = liveEventReportRequest['Authorization'];
3117
+ xSdkDate = liveEventReportRequest['X-Sdk-Date'];
3118
+ xProjectId = liveEventReportRequest['X-Project-Id'];
3119
+ xAppUserId = liveEventReportRequest['X-App-UserId'];
3120
+ authKey = liveEventReportRequest['auth_key'];
3121
+ expiresTime = liveEventReportRequest['expires_time'];
3122
+ refreshUrl = liveEventReportRequest['refresh_url'];
879
3123
  }
880
3124
  }
881
- if (assetId === null || assetId === undefined) {
882
- throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling restoreAsset.');
3125
+ if (roomId === null || roomId === undefined) {
3126
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling liveEventReport.');
883
3127
  }
884
- if (authorization !== undefined && authorization !== null) {
885
- localVarHeaderParameter['Authorization'] = String(authorization);
3128
+ if (jobId === null || jobId === undefined) {
3129
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling liveEventReport.');
886
3130
  }
887
- if (xSdkDate !== undefined && xSdkDate !== null) {
888
- localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
3131
+ if (body === null || body === undefined) {
3132
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
889
3133
  }
890
- if (xAppUserId !== undefined && xAppUserId !== null) {
891
- localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
3134
+ if (authKey !== null && authKey !== undefined) {
3135
+ localVarQueryParameter['auth_key'] = authKey;
892
3136
  }
893
- options.pathParams = { 'asset_id': assetId, };
894
- options.headers = localVarHeaderParameter;
895
- return options;
896
- },
897
- /**
898
- * 该接口用于查询资产库中指定媒体资产的详情。
899
- *
900
- * Please refer to HUAWEI cloud API Explorer for details.
901
- */
902
- showAsset(showAssetRequest) {
903
- const options = {
904
- method: "GET",
905
- url: "/v1/{project_id}/digital-assets/{asset_id}",
906
- contentType: "application/json",
907
- queryParams: {},
908
- pathParams: {},
909
- headers: {}
910
- };
911
- const localVarHeaderParameter = {};
912
- let assetId;
913
- let authorization;
914
- let xSdkDate;
915
- let xAppUserId;
916
- if (showAssetRequest !== null && showAssetRequest !== undefined) {
917
- if (showAssetRequest instanceof ShowAssetRequest_1.ShowAssetRequest) {
918
- assetId = showAssetRequest.assetId;
919
- authorization = showAssetRequest.authorization;
920
- xSdkDate = showAssetRequest.xSdkDate;
921
- xAppUserId = showAssetRequest.xAppUserId;
922
- }
923
- else {
924
- assetId = showAssetRequest['asset_id'];
925
- authorization = showAssetRequest['Authorization'];
926
- xSdkDate = showAssetRequest['X-Sdk-Date'];
927
- xAppUserId = showAssetRequest['X-App-UserId'];
928
- }
3137
+ if (expiresTime !== null && expiresTime !== undefined) {
3138
+ localVarQueryParameter['expires_time'] = expiresTime;
929
3139
  }
930
- if (assetId === null || assetId === undefined) {
931
- throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling showAsset.');
3140
+ if (refreshUrl !== null && refreshUrl !== undefined) {
3141
+ localVarQueryParameter['refresh_url'] = refreshUrl;
932
3142
  }
933
3143
  if (authorization !== undefined && authorization !== null) {
934
3144
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -936,55 +3146,63 @@ const ParamCreater = function () {
936
3146
  if (xSdkDate !== undefined && xSdkDate !== null) {
937
3147
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
938
3148
  }
3149
+ if (xProjectId !== undefined && xProjectId !== null) {
3150
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
3151
+ }
939
3152
  if (xAppUserId !== undefined && xAppUserId !== null) {
940
3153
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
941
3154
  }
942
- options.pathParams = { 'asset_id': assetId, };
3155
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3156
+ options.data = body !== undefined ? body : {};
3157
+ options.queryParams = localVarQueryParameter;
3158
+ options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
943
3159
  options.headers = localVarHeaderParameter;
944
3160
  return options;
945
3161
  },
946
3162
  /**
947
- * 该接口用于更新资产库中的媒体资产信息。
3163
+ * 该接口用于查询数字人智能直播任务详情。
948
3164
  *
949
3165
  * Please refer to HUAWEI cloud API Explorer for details.
950
3166
  */
951
- updateDigitalAsset(updateDigitalAssetRequest) {
3167
+ showSmartLive(showSmartLiveRequest) {
952
3168
  const options = {
953
- method: "PUT",
954
- url: "/v1/{project_id}/digital-assets/{asset_id}",
3169
+ method: "GET",
3170
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}",
955
3171
  contentType: "application/json",
956
3172
  queryParams: {},
957
3173
  pathParams: {},
958
- headers: {},
959
- data: {}
3174
+ headers: {}
960
3175
  };
961
3176
  const localVarHeaderParameter = {};
962
- let body;
963
- let assetId;
3177
+ let roomId;
3178
+ let jobId;
964
3179
  let authorization;
965
3180
  let xSdkDate;
3181
+ let xProjectId;
966
3182
  let xAppUserId;
967
- if (updateDigitalAssetRequest !== null && updateDigitalAssetRequest !== undefined) {
968
- if (updateDigitalAssetRequest instanceof UpdateDigitalAssetRequest_1.UpdateDigitalAssetRequest) {
969
- assetId = updateDigitalAssetRequest.assetId;
970
- body = updateDigitalAssetRequest.body;
971
- authorization = updateDigitalAssetRequest.authorization;
972
- xSdkDate = updateDigitalAssetRequest.xSdkDate;
973
- xAppUserId = updateDigitalAssetRequest.xAppUserId;
3183
+ if (showSmartLiveRequest !== null && showSmartLiveRequest !== undefined) {
3184
+ if (showSmartLiveRequest instanceof ShowSmartLiveRequest_1.ShowSmartLiveRequest) {
3185
+ roomId = showSmartLiveRequest.roomId;
3186
+ jobId = showSmartLiveRequest.jobId;
3187
+ authorization = showSmartLiveRequest.authorization;
3188
+ xSdkDate = showSmartLiveRequest.xSdkDate;
3189
+ xProjectId = showSmartLiveRequest.xProjectId;
3190
+ xAppUserId = showSmartLiveRequest.xAppUserId;
974
3191
  }
975
3192
  else {
976
- assetId = updateDigitalAssetRequest['asset_id'];
977
- body = updateDigitalAssetRequest['body'];
978
- authorization = updateDigitalAssetRequest['Authorization'];
979
- xSdkDate = updateDigitalAssetRequest['X-Sdk-Date'];
980
- xAppUserId = updateDigitalAssetRequest['X-App-UserId'];
3193
+ roomId = showSmartLiveRequest['room_id'];
3194
+ jobId = showSmartLiveRequest['job_id'];
3195
+ authorization = showSmartLiveRequest['Authorization'];
3196
+ xSdkDate = showSmartLiveRequest['X-Sdk-Date'];
3197
+ xProjectId = showSmartLiveRequest['X-Project-Id'];
3198
+ xAppUserId = showSmartLiveRequest['X-App-UserId'];
981
3199
  }
982
3200
  }
983
- if (assetId === null || assetId === undefined) {
984
- throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling updateDigitalAsset.');
3201
+ if (roomId === null || roomId === undefined) {
3202
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling showSmartLive.');
985
3203
  }
986
- if (body === null || body === undefined) {
987
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3204
+ if (jobId === null || jobId === undefined) {
3205
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showSmartLive.');
988
3206
  }
989
3207
  if (authorization !== undefined && authorization !== null) {
990
3208
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -992,24 +3210,25 @@ const ParamCreater = function () {
992
3210
  if (xSdkDate !== undefined && xSdkDate !== null) {
993
3211
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
994
3212
  }
3213
+ if (xProjectId !== undefined && xProjectId !== null) {
3214
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
3215
+ }
995
3216
  if (xAppUserId !== undefined && xAppUserId !== null) {
996
3217
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
997
3218
  }
998
- localVarHeaderParameter['Content-Type'] = 'application/json';
999
- options.data = body !== undefined ? body : {};
1000
- options.pathParams = { 'asset_id': assetId, };
3219
+ options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
1001
3220
  options.headers = localVarHeaderParameter;
1002
3221
  return options;
1003
3222
  },
1004
3223
  /**
1005
- * 资产文件上传完毕后,通过该接口确认上传完成。
3224
+ * 该接口用于启动数字人智能直播任务。
1006
3225
  *
1007
3226
  * Please refer to HUAWEI cloud API Explorer for details.
1008
3227
  */
1009
- confirmFileUpload(confirmFileUploadRequest) {
3228
+ startSmartLive(startSmartLiveRequest) {
1010
3229
  const options = {
1011
3230
  method: "POST",
1012
- url: "/v1/{project_id}/files/{file_id}/complete",
3231
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs",
1013
3232
  contentType: "application/json",
1014
3233
  queryParams: {},
1015
3234
  pathParams: {},
@@ -1018,28 +3237,31 @@ const ParamCreater = function () {
1018
3237
  };
1019
3238
  const localVarHeaderParameter = {};
1020
3239
  let body;
1021
- let fileId;
3240
+ let roomId;
1022
3241
  let authorization;
1023
3242
  let xSdkDate;
3243
+ let xProjectId;
1024
3244
  let xAppUserId;
1025
- if (confirmFileUploadRequest !== null && confirmFileUploadRequest !== undefined) {
1026
- if (confirmFileUploadRequest instanceof ConfirmFileUploadRequest_1.ConfirmFileUploadRequest) {
1027
- fileId = confirmFileUploadRequest.fileId;
1028
- body = confirmFileUploadRequest.body;
1029
- authorization = confirmFileUploadRequest.authorization;
1030
- xSdkDate = confirmFileUploadRequest.xSdkDate;
1031
- xAppUserId = confirmFileUploadRequest.xAppUserId;
3245
+ if (startSmartLiveRequest !== null && startSmartLiveRequest !== undefined) {
3246
+ if (startSmartLiveRequest instanceof StartSmartLiveRequest_1.StartSmartLiveRequest) {
3247
+ roomId = startSmartLiveRequest.roomId;
3248
+ body = startSmartLiveRequest.body;
3249
+ authorization = startSmartLiveRequest.authorization;
3250
+ xSdkDate = startSmartLiveRequest.xSdkDate;
3251
+ xProjectId = startSmartLiveRequest.xProjectId;
3252
+ xAppUserId = startSmartLiveRequest.xAppUserId;
1032
3253
  }
1033
3254
  else {
1034
- fileId = confirmFileUploadRequest['file_id'];
1035
- body = confirmFileUploadRequest['body'];
1036
- authorization = confirmFileUploadRequest['Authorization'];
1037
- xSdkDate = confirmFileUploadRequest['X-Sdk-Date'];
1038
- xAppUserId = confirmFileUploadRequest['X-App-UserId'];
3255
+ roomId = startSmartLiveRequest['room_id'];
3256
+ body = startSmartLiveRequest['body'];
3257
+ authorization = startSmartLiveRequest['Authorization'];
3258
+ xSdkDate = startSmartLiveRequest['X-Sdk-Date'];
3259
+ xProjectId = startSmartLiveRequest['X-Project-Id'];
3260
+ xAppUserId = startSmartLiveRequest['X-App-UserId'];
1039
3261
  }
1040
3262
  }
1041
- if (fileId === null || fileId === undefined) {
1042
- throw new RequiredError('fileId', 'Required parameter fileId was null or undefined when calling confirmFileUpload.');
3263
+ if (roomId === null || roomId === undefined) {
3264
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling startSmartLive.');
1043
3265
  }
1044
3266
  if (body === null || body === undefined) {
1045
3267
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
@@ -1050,51 +3272,62 @@ const ParamCreater = function () {
1050
3272
  if (xSdkDate !== undefined && xSdkDate !== null) {
1051
3273
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1052
3274
  }
3275
+ if (xProjectId !== undefined && xProjectId !== null) {
3276
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
3277
+ }
1053
3278
  if (xAppUserId !== undefined && xAppUserId !== null) {
1054
3279
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1055
3280
  }
1056
3281
  localVarHeaderParameter['Content-Type'] = 'application/json';
1057
3282
  options.data = body !== undefined ? body : {};
1058
- options.pathParams = { 'file_id': fileId, };
3283
+ options.pathParams = { 'room_id': roomId, };
1059
3284
  options.headers = localVarHeaderParameter;
1060
3285
  return options;
1061
3286
  },
1062
3287
  /**
1063
- * 该接口用于创建文件并获取上传URL。
3288
+ * 该接口用于结束数字人智能直播任务。
1064
3289
  *
1065
3290
  * Please refer to HUAWEI cloud API Explorer for details.
1066
3291
  */
1067
- createFile(createFileRequest) {
3292
+ stopSmartLive(stopSmartLiveRequest) {
1068
3293
  const options = {
1069
3294
  method: "POST",
1070
- url: "/v1/{project_id}/files",
3295
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}/smart-live-jobs/{job_id}/stop",
1071
3296
  contentType: "application/json",
1072
3297
  queryParams: {},
1073
3298
  pathParams: {},
1074
- headers: {},
1075
- data: {}
3299
+ headers: {}
1076
3300
  };
1077
3301
  const localVarHeaderParameter = {};
1078
- let body;
3302
+ let roomId;
3303
+ let jobId;
1079
3304
  let authorization;
1080
3305
  let xSdkDate;
3306
+ let xProjectId;
1081
3307
  let xAppUserId;
1082
- if (createFileRequest !== null && createFileRequest !== undefined) {
1083
- if (createFileRequest instanceof CreateFileRequest_1.CreateFileRequest) {
1084
- body = createFileRequest.body;
1085
- authorization = createFileRequest.authorization;
1086
- xSdkDate = createFileRequest.xSdkDate;
1087
- xAppUserId = createFileRequest.xAppUserId;
3308
+ if (stopSmartLiveRequest !== null && stopSmartLiveRequest !== undefined) {
3309
+ if (stopSmartLiveRequest instanceof StopSmartLiveRequest_1.StopSmartLiveRequest) {
3310
+ roomId = stopSmartLiveRequest.roomId;
3311
+ jobId = stopSmartLiveRequest.jobId;
3312
+ authorization = stopSmartLiveRequest.authorization;
3313
+ xSdkDate = stopSmartLiveRequest.xSdkDate;
3314
+ xProjectId = stopSmartLiveRequest.xProjectId;
3315
+ xAppUserId = stopSmartLiveRequest.xAppUserId;
1088
3316
  }
1089
3317
  else {
1090
- body = createFileRequest['body'];
1091
- authorization = createFileRequest['Authorization'];
1092
- xSdkDate = createFileRequest['X-Sdk-Date'];
1093
- xAppUserId = createFileRequest['X-App-UserId'];
3318
+ roomId = stopSmartLiveRequest['room_id'];
3319
+ jobId = stopSmartLiveRequest['job_id'];
3320
+ authorization = stopSmartLiveRequest['Authorization'];
3321
+ xSdkDate = stopSmartLiveRequest['X-Sdk-Date'];
3322
+ xProjectId = stopSmartLiveRequest['X-Project-Id'];
3323
+ xAppUserId = stopSmartLiveRequest['X-App-UserId'];
1094
3324
  }
1095
3325
  }
1096
- if (body === null || body === undefined) {
1097
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3326
+ if (roomId === null || roomId === undefined) {
3327
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling stopSmartLive.');
3328
+ }
3329
+ if (jobId === null || jobId === undefined) {
3330
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling stopSmartLive.');
1098
3331
  }
1099
3332
  if (authorization !== undefined && authorization !== null) {
1100
3333
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -1102,49 +3335,55 @@ const ParamCreater = function () {
1102
3335
  if (xSdkDate !== undefined && xSdkDate !== null) {
1103
3336
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1104
3337
  }
3338
+ if (xProjectId !== undefined && xProjectId !== null) {
3339
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
3340
+ }
1105
3341
  if (xAppUserId !== undefined && xAppUserId !== null) {
1106
3342
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1107
3343
  }
1108
- localVarHeaderParameter['Content-Type'] = 'application/json';
1109
- options.data = body !== undefined ? body : {};
3344
+ options.pathParams = { 'room_id': roomId, 'job_id': jobId, };
1110
3345
  options.headers = localVarHeaderParameter;
1111
3346
  return options;
1112
3347
  },
1113
3348
  /**
1114
- * 该接口用于删除媒体资产库中指定的文件。
3349
+ * 该接口用于创建智能直播间。
1115
3350
  *
1116
3351
  * Please refer to HUAWEI cloud API Explorer for details.
1117
3352
  */
1118
- deleteFile(deleteFileRequest) {
3353
+ createSmartLiveRoom(createSmartLiveRoomRequest) {
1119
3354
  const options = {
1120
- method: "DELETE",
1121
- url: "/v1/{project_id}/files/{file_id}",
3355
+ method: "POST",
3356
+ url: "/v1/{project_id}/smart-live-rooms",
1122
3357
  contentType: "application/json",
1123
3358
  queryParams: {},
1124
3359
  pathParams: {},
1125
- headers: {}
3360
+ headers: {},
3361
+ data: {}
1126
3362
  };
1127
3363
  const localVarHeaderParameter = {};
1128
- let fileId;
3364
+ let body;
1129
3365
  let authorization;
1130
3366
  let xSdkDate;
3367
+ let xProjectId;
1131
3368
  let xAppUserId;
1132
- if (deleteFileRequest !== null && deleteFileRequest !== undefined) {
1133
- if (deleteFileRequest instanceof DeleteFileRequest_1.DeleteFileRequest) {
1134
- fileId = deleteFileRequest.fileId;
1135
- authorization = deleteFileRequest.authorization;
1136
- xSdkDate = deleteFileRequest.xSdkDate;
1137
- xAppUserId = deleteFileRequest.xAppUserId;
3369
+ if (createSmartLiveRoomRequest !== null && createSmartLiveRoomRequest !== undefined) {
3370
+ if (createSmartLiveRoomRequest instanceof CreateSmartLiveRoomRequest_1.CreateSmartLiveRoomRequest) {
3371
+ body = createSmartLiveRoomRequest.body;
3372
+ authorization = createSmartLiveRoomRequest.authorization;
3373
+ xSdkDate = createSmartLiveRoomRequest.xSdkDate;
3374
+ xProjectId = createSmartLiveRoomRequest.xProjectId;
3375
+ xAppUserId = createSmartLiveRoomRequest.xAppUserId;
1138
3376
  }
1139
3377
  else {
1140
- fileId = deleteFileRequest['file_id'];
1141
- authorization = deleteFileRequest['Authorization'];
1142
- xSdkDate = deleteFileRequest['X-Sdk-Date'];
1143
- xAppUserId = deleteFileRequest['X-App-UserId'];
3378
+ body = createSmartLiveRoomRequest['body'];
3379
+ authorization = createSmartLiveRoomRequest['Authorization'];
3380
+ xSdkDate = createSmartLiveRoomRequest['X-Sdk-Date'];
3381
+ xProjectId = createSmartLiveRoomRequest['X-Project-Id'];
3382
+ xAppUserId = createSmartLiveRoomRequest['X-App-UserId'];
1144
3383
  }
1145
3384
  }
1146
- if (fileId === null || fileId === undefined) {
1147
- throw new RequiredError('fileId', 'Required parameter fileId was null or undefined when calling deleteFile.');
3385
+ if (body === null || body === undefined) {
3386
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1148
3387
  }
1149
3388
  if (authorization !== undefined && authorization !== null) {
1150
3389
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -1152,52 +3391,55 @@ const ParamCreater = function () {
1152
3391
  if (xSdkDate !== undefined && xSdkDate !== null) {
1153
3392
  localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
1154
3393
  }
3394
+ if (xProjectId !== undefined && xProjectId !== null) {
3395
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
3396
+ }
1155
3397
  if (xAppUserId !== undefined && xAppUserId !== null) {
1156
3398
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1157
3399
  }
1158
- options.pathParams = { 'file_id': fileId, };
3400
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3401
+ options.data = body !== undefined ? body : {};
1159
3402
  options.headers = localVarHeaderParameter;
1160
3403
  return options;
1161
3404
  },
1162
3405
  /**
1163
- * 该接口用于从URL中获取图片进行照片建模任务。
3406
+ * 该接口用于删除智能直播间。
1164
3407
  *
1165
3408
  * Please refer to HUAWEI cloud API Explorer for details.
1166
3409
  */
1167
- createPictureModelingByUrlJob(createPictureModelingByUrlJobRequest) {
3410
+ deleteSmartLiveRoom(deleteSmartLiveRoomRequest) {
1168
3411
  const options = {
1169
- method: "POST",
1170
- url: "/v1/{project_id}/digital-human/stylized/picture-modelings-by-url",
3412
+ method: "DELETE",
3413
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}",
1171
3414
  contentType: "application/json",
1172
3415
  queryParams: {},
1173
3416
  pathParams: {},
1174
- headers: {},
1175
- data: {}
3417
+ headers: {}
1176
3418
  };
1177
3419
  const localVarHeaderParameter = {};
1178
- let body;
3420
+ let roomId;
1179
3421
  let authorization;
1180
3422
  let xSdkDate;
1181
3423
  let xProjectId;
1182
3424
  let xAppUserId;
1183
- if (createPictureModelingByUrlJobRequest !== null && createPictureModelingByUrlJobRequest !== undefined) {
1184
- if (createPictureModelingByUrlJobRequest instanceof CreatePictureModelingByUrlJobRequest_1.CreatePictureModelingByUrlJobRequest) {
1185
- body = createPictureModelingByUrlJobRequest.body;
1186
- authorization = createPictureModelingByUrlJobRequest.authorization;
1187
- xSdkDate = createPictureModelingByUrlJobRequest.xSdkDate;
1188
- xProjectId = createPictureModelingByUrlJobRequest.xProjectId;
1189
- xAppUserId = createPictureModelingByUrlJobRequest.xAppUserId;
3425
+ if (deleteSmartLiveRoomRequest !== null && deleteSmartLiveRoomRequest !== undefined) {
3426
+ if (deleteSmartLiveRoomRequest instanceof DeleteSmartLiveRoomRequest_1.DeleteSmartLiveRoomRequest) {
3427
+ roomId = deleteSmartLiveRoomRequest.roomId;
3428
+ authorization = deleteSmartLiveRoomRequest.authorization;
3429
+ xSdkDate = deleteSmartLiveRoomRequest.xSdkDate;
3430
+ xProjectId = deleteSmartLiveRoomRequest.xProjectId;
3431
+ xAppUserId = deleteSmartLiveRoomRequest.xAppUserId;
1190
3432
  }
1191
3433
  else {
1192
- body = createPictureModelingByUrlJobRequest['body'];
1193
- authorization = createPictureModelingByUrlJobRequest['Authorization'];
1194
- xSdkDate = createPictureModelingByUrlJobRequest['X-Sdk-Date'];
1195
- xProjectId = createPictureModelingByUrlJobRequest['X-Project-Id'];
1196
- xAppUserId = createPictureModelingByUrlJobRequest['X-App-UserId'];
3434
+ roomId = deleteSmartLiveRoomRequest['room_id'];
3435
+ authorization = deleteSmartLiveRoomRequest['Authorization'];
3436
+ xSdkDate = deleteSmartLiveRoomRequest['X-Sdk-Date'];
3437
+ xProjectId = deleteSmartLiveRoomRequest['X-Project-Id'];
3438
+ xAppUserId = deleteSmartLiveRoomRequest['X-App-UserId'];
1197
3439
  }
1198
3440
  }
1199
- if (body === null || body === undefined) {
1200
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
3441
+ if (roomId === null || roomId === undefined) {
3442
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling deleteSmartLiveRoom.');
1201
3443
  }
1202
3444
  if (authorization !== undefined && authorization !== null) {
1203
3445
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -1211,82 +3453,91 @@ const ParamCreater = function () {
1211
3453
  if (xAppUserId !== undefined && xAppUserId !== null) {
1212
3454
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1213
3455
  }
1214
- localVarHeaderParameter['Content-Type'] = 'application/json';
1215
- options.data = body !== undefined ? body : {};
3456
+ options.pathParams = { 'room_id': roomId, };
1216
3457
  options.headers = localVarHeaderParameter;
1217
3458
  return options;
1218
3459
  },
1219
3460
  /**
1220
- * 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。
3461
+ * 该接口用于智能直播间列表。
1221
3462
  *
1222
3463
  * Please refer to HUAWEI cloud API Explorer for details.
1223
3464
  */
1224
- createPictureModelingJob(createPictureModelingJobRequest) {
1225
- var _a, _b, _c, _d;
3465
+ listSmartLiveRooms(listSmartLiveRoomsRequest) {
1226
3466
  const options = {
1227
- method: "POST",
1228
- url: "/v1/{project_id}/digital-human/stylized/picture-modelings",
1229
- contentType: "multipart/form-data",
3467
+ method: "GET",
3468
+ url: "/v1/{project_id}/smart-live-rooms",
3469
+ contentType: "application/json",
1230
3470
  queryParams: {},
1231
3471
  pathParams: {},
1232
- headers: {},
1233
- data: {}
3472
+ headers: {}
1234
3473
  };
1235
3474
  const localVarHeaderParameter = {};
1236
- const localVarFormParams = new form_data_1.default();
1237
- let file;
1238
- let styleId;
1239
- let name;
3475
+ const localVarQueryParameter = {};
1240
3476
  let authorization;
1241
3477
  let xSdkDate;
1242
3478
  let xProjectId;
1243
3479
  let xAppUserId;
1244
- let xUserPrivilege;
1245
- let notifyUrl;
1246
- if (createPictureModelingJobRequest !== null && createPictureModelingJobRequest !== undefined) {
1247
- if (createPictureModelingJobRequest instanceof CreatePictureModelingJobRequest_1.CreatePictureModelingJobRequest) {
1248
- file = (_a = createPictureModelingJobRequest.body) === null || _a === void 0 ? void 0 : _a.file;
1249
- styleId = (_b = createPictureModelingJobRequest.body) === null || _b === void 0 ? void 0 : _b.styleId;
1250
- name = (_c = createPictureModelingJobRequest.body) === null || _c === void 0 ? void 0 : _c.name;
1251
- authorization = createPictureModelingJobRequest.authorization;
1252
- xSdkDate = createPictureModelingJobRequest.xSdkDate;
1253
- xProjectId = createPictureModelingJobRequest.xProjectId;
1254
- xAppUserId = createPictureModelingJobRequest.xAppUserId;
1255
- xUserPrivilege = createPictureModelingJobRequest.xUserPrivilege;
1256
- notifyUrl = (_d = createPictureModelingJobRequest.body) === null || _d === void 0 ? void 0 : _d.notifyUrl;
3480
+ let offset;
3481
+ let limit;
3482
+ let roomName;
3483
+ let dhId;
3484
+ let modelName;
3485
+ let liveState;
3486
+ let startTime;
3487
+ let endTime;
3488
+ if (listSmartLiveRoomsRequest !== null && listSmartLiveRoomsRequest !== undefined) {
3489
+ if (listSmartLiveRoomsRequest instanceof ListSmartLiveRoomsRequest_1.ListSmartLiveRoomsRequest) {
3490
+ authorization = listSmartLiveRoomsRequest.authorization;
3491
+ xSdkDate = listSmartLiveRoomsRequest.xSdkDate;
3492
+ xProjectId = listSmartLiveRoomsRequest.xProjectId;
3493
+ xAppUserId = listSmartLiveRoomsRequest.xAppUserId;
3494
+ offset = listSmartLiveRoomsRequest.offset;
3495
+ limit = listSmartLiveRoomsRequest.limit;
3496
+ roomName = listSmartLiveRoomsRequest.roomName;
3497
+ dhId = listSmartLiveRoomsRequest.dhId;
3498
+ modelName = listSmartLiveRoomsRequest.modelName;
3499
+ liveState = listSmartLiveRoomsRequest.liveState;
3500
+ startTime = listSmartLiveRoomsRequest.startTime;
3501
+ endTime = listSmartLiveRoomsRequest.endTime;
1257
3502
  }
1258
3503
  else {
1259
- file = createPictureModelingJobRequest['body']['file'];
1260
- styleId = createPictureModelingJobRequest['body']['styleId'];
1261
- name = createPictureModelingJobRequest['body']['name'];
1262
- authorization = createPictureModelingJobRequest['Authorization'];
1263
- xSdkDate = createPictureModelingJobRequest['X-Sdk-Date'];
1264
- xProjectId = createPictureModelingJobRequest['X-Project-Id'];
1265
- xAppUserId = createPictureModelingJobRequest['X-App-UserId'];
1266
- xUserPrivilege = createPictureModelingJobRequest['X-User-Privilege'];
1267
- notifyUrl = createPictureModelingJobRequest['body']['notifyUrl'];
3504
+ authorization = listSmartLiveRoomsRequest['Authorization'];
3505
+ xSdkDate = listSmartLiveRoomsRequest['X-Sdk-Date'];
3506
+ xProjectId = listSmartLiveRoomsRequest['X-Project-Id'];
3507
+ xAppUserId = listSmartLiveRoomsRequest['X-App-UserId'];
3508
+ offset = listSmartLiveRoomsRequest['offset'];
3509
+ limit = listSmartLiveRoomsRequest['limit'];
3510
+ roomName = listSmartLiveRoomsRequest['room_name'];
3511
+ dhId = listSmartLiveRoomsRequest['dh_id'];
3512
+ modelName = listSmartLiveRoomsRequest['model_name'];
3513
+ liveState = listSmartLiveRoomsRequest['live_state'];
3514
+ startTime = listSmartLiveRoomsRequest['start_time'];
3515
+ endTime = listSmartLiveRoomsRequest['end_time'];
1268
3516
  }
1269
3517
  }
1270
- if (file === null || file === undefined) {
1271
- throw new RequiredError('file', 'Required parameter file was null or undefined when calling createPictureModelingJob.');
3518
+ if (offset !== null && offset !== undefined) {
3519
+ localVarQueryParameter['offset'] = offset;
1272
3520
  }
1273
- if (styleId === null || styleId === undefined) {
1274
- throw new RequiredError('styleId', 'Required parameter styleId was null or undefined when calling createPictureModelingJob.');
3521
+ if (limit !== null && limit !== undefined) {
3522
+ localVarQueryParameter['limit'] = limit;
1275
3523
  }
1276
- if (name === null || name === undefined) {
1277
- throw new RequiredError('name', 'Required parameter name was null or undefined when calling createPictureModelingJob.');
3524
+ if (roomName !== null && roomName !== undefined) {
3525
+ localVarQueryParameter['room_name'] = roomName;
1278
3526
  }
1279
- if (styleId !== undefined) {
1280
- localVarFormParams.append('style_id', styleId);
3527
+ if (dhId !== null && dhId !== undefined) {
3528
+ localVarQueryParameter['dh_id'] = dhId;
1281
3529
  }
1282
- if (name !== undefined) {
1283
- localVarFormParams.append('name', name);
3530
+ if (modelName !== null && modelName !== undefined) {
3531
+ localVarQueryParameter['model_name'] = modelName;
1284
3532
  }
1285
- if (notifyUrl !== undefined) {
1286
- localVarFormParams.append('notify_url', notifyUrl);
3533
+ if (liveState !== null && liveState !== undefined) {
3534
+ localVarQueryParameter['live_state'] = liveState;
1287
3535
  }
1288
- if (file !== undefined) {
1289
- localVarFormParams.append('file', file);
3536
+ if (startTime !== null && startTime !== undefined) {
3537
+ localVarQueryParameter['start_time'] = startTime;
3538
+ }
3539
+ if (endTime !== null && endTime !== undefined) {
3540
+ localVarQueryParameter['end_time'] = endTime;
1290
3541
  }
1291
3542
  if (authorization !== undefined && authorization !== null) {
1292
3543
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -1300,90 +3551,48 @@ const ParamCreater = function () {
1300
3551
  if (xAppUserId !== undefined && xAppUserId !== null) {
1301
3552
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1302
3553
  }
1303
- if (xUserPrivilege !== undefined && xUserPrivilege !== null) {
1304
- localVarHeaderParameter['X-User-Privilege'] = String(xUserPrivilege);
1305
- }
1306
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
1307
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1308
- options.data = localVarFormParams;
3554
+ options.queryParams = localVarQueryParameter;
1309
3555
  options.headers = localVarHeaderParameter;
1310
3556
  return options;
1311
3557
  },
1312
3558
  /**
1313
- * 该接口用于查询风格化照片建模任务列表。
3559
+ * 该接口用于查询智能直播剧本详情。
1314
3560
  *
1315
3561
  * Please refer to HUAWEI cloud API Explorer for details.
1316
3562
  */
1317
- listPictureModelingJobs(listPictureModelingJobsRequest) {
3563
+ showSmartLiveRoom(showSmartLiveRoomRequest) {
1318
3564
  const options = {
1319
3565
  method: "GET",
1320
- url: "/v1/{project_id}/digital-human/stylized/picture-modelings",
3566
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}",
1321
3567
  contentType: "application/json",
1322
3568
  queryParams: {},
1323
3569
  pathParams: {},
1324
3570
  headers: {}
1325
3571
  };
1326
3572
  const localVarHeaderParameter = {};
1327
- const localVarQueryParameter = {};
3573
+ let roomId;
1328
3574
  let authorization;
1329
3575
  let xSdkDate;
1330
3576
  let xProjectId;
1331
- let xAppUserId;
1332
- let offset;
1333
- let limit;
1334
- let state;
1335
- let sortKey;
1336
- let sortDir;
1337
- let createUntil;
1338
- let createSince;
1339
- if (listPictureModelingJobsRequest !== null && listPictureModelingJobsRequest !== undefined) {
1340
- if (listPictureModelingJobsRequest instanceof ListPictureModelingJobsRequest_1.ListPictureModelingJobsRequest) {
1341
- authorization = listPictureModelingJobsRequest.authorization;
1342
- xSdkDate = listPictureModelingJobsRequest.xSdkDate;
1343
- xProjectId = listPictureModelingJobsRequest.xProjectId;
1344
- xAppUserId = listPictureModelingJobsRequest.xAppUserId;
1345
- offset = listPictureModelingJobsRequest.offset;
1346
- limit = listPictureModelingJobsRequest.limit;
1347
- state = listPictureModelingJobsRequest.state;
1348
- sortKey = listPictureModelingJobsRequest.sortKey;
1349
- sortDir = listPictureModelingJobsRequest.sortDir;
1350
- createUntil = listPictureModelingJobsRequest.createUntil;
1351
- createSince = listPictureModelingJobsRequest.createSince;
1352
- }
1353
- else {
1354
- authorization = listPictureModelingJobsRequest['Authorization'];
1355
- xSdkDate = listPictureModelingJobsRequest['X-Sdk-Date'];
1356
- xProjectId = listPictureModelingJobsRequest['X-Project-Id'];
1357
- xAppUserId = listPictureModelingJobsRequest['X-App-UserId'];
1358
- offset = listPictureModelingJobsRequest['offset'];
1359
- limit = listPictureModelingJobsRequest['limit'];
1360
- state = listPictureModelingJobsRequest['state'];
1361
- sortKey = listPictureModelingJobsRequest['sort_key'];
1362
- sortDir = listPictureModelingJobsRequest['sort_dir'];
1363
- createUntil = listPictureModelingJobsRequest['create_until'];
1364
- createSince = listPictureModelingJobsRequest['create_since'];
3577
+ let xAppUserId;
3578
+ if (showSmartLiveRoomRequest !== null && showSmartLiveRoomRequest !== undefined) {
3579
+ if (showSmartLiveRoomRequest instanceof ShowSmartLiveRoomRequest_1.ShowSmartLiveRoomRequest) {
3580
+ roomId = showSmartLiveRoomRequest.roomId;
3581
+ authorization = showSmartLiveRoomRequest.authorization;
3582
+ xSdkDate = showSmartLiveRoomRequest.xSdkDate;
3583
+ xProjectId = showSmartLiveRoomRequest.xProjectId;
3584
+ xAppUserId = showSmartLiveRoomRequest.xAppUserId;
3585
+ }
3586
+ else {
3587
+ roomId = showSmartLiveRoomRequest['room_id'];
3588
+ authorization = showSmartLiveRoomRequest['Authorization'];
3589
+ xSdkDate = showSmartLiveRoomRequest['X-Sdk-Date'];
3590
+ xProjectId = showSmartLiveRoomRequest['X-Project-Id'];
3591
+ xAppUserId = showSmartLiveRoomRequest['X-App-UserId'];
1365
3592
  }
1366
3593
  }
1367
- if (offset !== null && offset !== undefined) {
1368
- localVarQueryParameter['offset'] = offset;
1369
- }
1370
- if (limit !== null && limit !== undefined) {
1371
- localVarQueryParameter['limit'] = limit;
1372
- }
1373
- if (state !== null && state !== undefined) {
1374
- localVarQueryParameter['state'] = state;
1375
- }
1376
- if (sortKey !== null && sortKey !== undefined) {
1377
- localVarQueryParameter['sort_key'] = sortKey;
1378
- }
1379
- if (sortDir !== null && sortDir !== undefined) {
1380
- localVarQueryParameter['sort_dir'] = sortDir;
1381
- }
1382
- if (createUntil !== null && createUntil !== undefined) {
1383
- localVarQueryParameter['create_until'] = createUntil;
1384
- }
1385
- if (createSince !== null && createSince !== undefined) {
1386
- localVarQueryParameter['create_since'] = createSince;
3594
+ if (roomId === null || roomId === undefined) {
3595
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling showSmartLiveRoom.');
1387
3596
  }
1388
3597
  if (authorization !== undefined && authorization !== null) {
1389
3598
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -1397,48 +3606,55 @@ const ParamCreater = function () {
1397
3606
  if (xAppUserId !== undefined && xAppUserId !== null) {
1398
3607
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1399
3608
  }
1400
- options.queryParams = localVarQueryParameter;
3609
+ options.pathParams = { 'room_id': roomId, };
1401
3610
  options.headers = localVarHeaderParameter;
1402
3611
  return options;
1403
3612
  },
1404
3613
  /**
1405
- * 该接口用于风格化查询照片建模任务详情。
3614
+ * 该接口用于智能直播间信息。
1406
3615
  *
1407
3616
  * Please refer to HUAWEI cloud API Explorer for details.
1408
3617
  */
1409
- showPictureModelingJob(showPictureModelingJobRequest) {
3618
+ updateSmartLiveRoom(updateSmartLiveRoomRequest) {
1410
3619
  const options = {
1411
- method: "GET",
1412
- url: "/v1/{project_id}/digital-human/stylized/picture-modelings/{job_id}",
3620
+ method: "PUT",
3621
+ url: "/v1/{project_id}/smart-live-rooms/{room_id}",
1413
3622
  contentType: "application/json",
1414
3623
  queryParams: {},
1415
3624
  pathParams: {},
1416
- headers: {}
3625
+ headers: {},
3626
+ data: {}
1417
3627
  };
1418
3628
  const localVarHeaderParameter = {};
1419
- let jobId;
3629
+ let body;
3630
+ let roomId;
1420
3631
  let authorization;
1421
3632
  let xSdkDate;
1422
3633
  let xProjectId;
1423
3634
  let xAppUserId;
1424
- if (showPictureModelingJobRequest !== null && showPictureModelingJobRequest !== undefined) {
1425
- if (showPictureModelingJobRequest instanceof ShowPictureModelingJobRequest_1.ShowPictureModelingJobRequest) {
1426
- jobId = showPictureModelingJobRequest.jobId;
1427
- authorization = showPictureModelingJobRequest.authorization;
1428
- xSdkDate = showPictureModelingJobRequest.xSdkDate;
1429
- xProjectId = showPictureModelingJobRequest.xProjectId;
1430
- xAppUserId = showPictureModelingJobRequest.xAppUserId;
3635
+ if (updateSmartLiveRoomRequest !== null && updateSmartLiveRoomRequest !== undefined) {
3636
+ if (updateSmartLiveRoomRequest instanceof UpdateSmartLiveRoomRequest_1.UpdateSmartLiveRoomRequest) {
3637
+ roomId = updateSmartLiveRoomRequest.roomId;
3638
+ body = updateSmartLiveRoomRequest.body;
3639
+ authorization = updateSmartLiveRoomRequest.authorization;
3640
+ xSdkDate = updateSmartLiveRoomRequest.xSdkDate;
3641
+ xProjectId = updateSmartLiveRoomRequest.xProjectId;
3642
+ xAppUserId = updateSmartLiveRoomRequest.xAppUserId;
1431
3643
  }
1432
3644
  else {
1433
- jobId = showPictureModelingJobRequest['job_id'];
1434
- authorization = showPictureModelingJobRequest['Authorization'];
1435
- xSdkDate = showPictureModelingJobRequest['X-Sdk-Date'];
1436
- xProjectId = showPictureModelingJobRequest['X-Project-Id'];
1437
- xAppUserId = showPictureModelingJobRequest['X-App-UserId'];
3645
+ roomId = updateSmartLiveRoomRequest['room_id'];
3646
+ body = updateSmartLiveRoomRequest['body'];
3647
+ authorization = updateSmartLiveRoomRequest['Authorization'];
3648
+ xSdkDate = updateSmartLiveRoomRequest['X-Sdk-Date'];
3649
+ xProjectId = updateSmartLiveRoomRequest['X-Project-Id'];
3650
+ xAppUserId = updateSmartLiveRoomRequest['X-App-UserId'];
1438
3651
  }
1439
3652
  }
1440
- if (jobId === null || jobId === undefined) {
1441
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showPictureModelingJob.');
3653
+ if (roomId === null || roomId === undefined) {
3654
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling updateSmartLiveRoom.');
3655
+ }
3656
+ if (body === null || body === undefined) {
3657
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1442
3658
  }
1443
3659
  if (authorization !== undefined && authorization !== null) {
1444
3660
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -1452,7 +3668,9 @@ const ParamCreater = function () {
1452
3668
  if (xAppUserId !== undefined && xAppUserId !== null) {
1453
3669
  localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
1454
3670
  }
1455
- options.pathParams = { 'job_id': jobId, };
3671
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3672
+ options.data = body !== undefined ? body : {};
3673
+ options.pathParams = { 'room_id': roomId, };
1456
3674
  options.headers = localVarHeaderParameter;
1457
3675
  return options;
1458
3676
  },
@@ -2029,6 +4247,299 @@ const ParamCreater = function () {
2029
4247
  options.headers = localVarHeaderParameter;
2030
4248
  return options;
2031
4249
  },
4250
+ /**
4251
+ * 该接口用于创建视频制作剧本。
4252
+ *
4253
+ * Please refer to HUAWEI cloud API Explorer for details.
4254
+ */
4255
+ createVideoScripts(createVideoScriptsRequest) {
4256
+ const options = {
4257
+ method: "POST",
4258
+ url: "/v1/{project_id}/digital-human-video-scripts",
4259
+ contentType: "application/json",
4260
+ queryParams: {},
4261
+ pathParams: {},
4262
+ headers: {},
4263
+ data: {}
4264
+ };
4265
+ const localVarHeaderParameter = {};
4266
+ let body;
4267
+ let authorization;
4268
+ let xSdkDate;
4269
+ let xProjectId;
4270
+ let xAppUserId;
4271
+ if (createVideoScriptsRequest !== null && createVideoScriptsRequest !== undefined) {
4272
+ if (createVideoScriptsRequest instanceof CreateVideoScriptsRequest_1.CreateVideoScriptsRequest) {
4273
+ body = createVideoScriptsRequest.body;
4274
+ authorization = createVideoScriptsRequest.authorization;
4275
+ xSdkDate = createVideoScriptsRequest.xSdkDate;
4276
+ xProjectId = createVideoScriptsRequest.xProjectId;
4277
+ xAppUserId = createVideoScriptsRequest.xAppUserId;
4278
+ }
4279
+ else {
4280
+ body = createVideoScriptsRequest['body'];
4281
+ authorization = createVideoScriptsRequest['Authorization'];
4282
+ xSdkDate = createVideoScriptsRequest['X-Sdk-Date'];
4283
+ xProjectId = createVideoScriptsRequest['X-Project-Id'];
4284
+ xAppUserId = createVideoScriptsRequest['X-App-UserId'];
4285
+ }
4286
+ }
4287
+ if (body === null || body === undefined) {
4288
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4289
+ }
4290
+ if (authorization !== undefined && authorization !== null) {
4291
+ localVarHeaderParameter['Authorization'] = String(authorization);
4292
+ }
4293
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4294
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4295
+ }
4296
+ if (xProjectId !== undefined && xProjectId !== null) {
4297
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4298
+ }
4299
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4300
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4301
+ }
4302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4303
+ options.data = body !== undefined ? body : {};
4304
+ options.headers = localVarHeaderParameter;
4305
+ return options;
4306
+ },
4307
+ /**
4308
+ * 该接口用于删除视频制作剧本。
4309
+ *
4310
+ * Please refer to HUAWEI cloud API Explorer for details.
4311
+ */
4312
+ deleteVideoScript(deleteVideoScriptRequest) {
4313
+ const options = {
4314
+ method: "DELETE",
4315
+ url: "/v1/{project_id}/digital-human-video-scripts/{script_id}",
4316
+ contentType: "application/json",
4317
+ queryParams: {},
4318
+ pathParams: {},
4319
+ headers: {}
4320
+ };
4321
+ const localVarHeaderParameter = {};
4322
+ let scriptId;
4323
+ let authorization;
4324
+ let xSdkDate;
4325
+ let xProjectId;
4326
+ let xAppUserId;
4327
+ if (deleteVideoScriptRequest !== null && deleteVideoScriptRequest !== undefined) {
4328
+ if (deleteVideoScriptRequest instanceof DeleteVideoScriptRequest_1.DeleteVideoScriptRequest) {
4329
+ scriptId = deleteVideoScriptRequest.scriptId;
4330
+ authorization = deleteVideoScriptRequest.authorization;
4331
+ xSdkDate = deleteVideoScriptRequest.xSdkDate;
4332
+ xProjectId = deleteVideoScriptRequest.xProjectId;
4333
+ xAppUserId = deleteVideoScriptRequest.xAppUserId;
4334
+ }
4335
+ else {
4336
+ scriptId = deleteVideoScriptRequest['script_id'];
4337
+ authorization = deleteVideoScriptRequest['Authorization'];
4338
+ xSdkDate = deleteVideoScriptRequest['X-Sdk-Date'];
4339
+ xProjectId = deleteVideoScriptRequest['X-Project-Id'];
4340
+ xAppUserId = deleteVideoScriptRequest['X-App-UserId'];
4341
+ }
4342
+ }
4343
+ if (scriptId === null || scriptId === undefined) {
4344
+ throw new RequiredError('scriptId', 'Required parameter scriptId was null or undefined when calling deleteVideoScript.');
4345
+ }
4346
+ if (authorization !== undefined && authorization !== null) {
4347
+ localVarHeaderParameter['Authorization'] = String(authorization);
4348
+ }
4349
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4350
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4351
+ }
4352
+ if (xProjectId !== undefined && xProjectId !== null) {
4353
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4354
+ }
4355
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4356
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4357
+ }
4358
+ options.pathParams = { 'script_id': scriptId, };
4359
+ options.headers = localVarHeaderParameter;
4360
+ return options;
4361
+ },
4362
+ /**
4363
+ * 该接口用于查询视频制作剧本列表。
4364
+ *
4365
+ * Please refer to HUAWEI cloud API Explorer for details.
4366
+ */
4367
+ listVideoScripts(listVideoScriptsRequest) {
4368
+ const options = {
4369
+ method: "GET",
4370
+ url: "/v1/{project_id}/digital-human-video-scripts",
4371
+ contentType: "application/json",
4372
+ queryParams: {},
4373
+ pathParams: {},
4374
+ headers: {}
4375
+ };
4376
+ const localVarHeaderParameter = {};
4377
+ const localVarQueryParameter = {};
4378
+ let authorization;
4379
+ let xSdkDate;
4380
+ let xProjectId;
4381
+ let xAppUserId;
4382
+ let offset;
4383
+ let limit;
4384
+ if (listVideoScriptsRequest !== null && listVideoScriptsRequest !== undefined) {
4385
+ if (listVideoScriptsRequest instanceof ListVideoScriptsRequest_1.ListVideoScriptsRequest) {
4386
+ authorization = listVideoScriptsRequest.authorization;
4387
+ xSdkDate = listVideoScriptsRequest.xSdkDate;
4388
+ xProjectId = listVideoScriptsRequest.xProjectId;
4389
+ xAppUserId = listVideoScriptsRequest.xAppUserId;
4390
+ offset = listVideoScriptsRequest.offset;
4391
+ limit = listVideoScriptsRequest.limit;
4392
+ }
4393
+ else {
4394
+ authorization = listVideoScriptsRequest['Authorization'];
4395
+ xSdkDate = listVideoScriptsRequest['X-Sdk-Date'];
4396
+ xProjectId = listVideoScriptsRequest['X-Project-Id'];
4397
+ xAppUserId = listVideoScriptsRequest['X-App-UserId'];
4398
+ offset = listVideoScriptsRequest['offset'];
4399
+ limit = listVideoScriptsRequest['limit'];
4400
+ }
4401
+ }
4402
+ if (offset !== null && offset !== undefined) {
4403
+ localVarQueryParameter['offset'] = offset;
4404
+ }
4405
+ if (limit !== null && limit !== undefined) {
4406
+ localVarQueryParameter['limit'] = limit;
4407
+ }
4408
+ if (authorization !== undefined && authorization !== null) {
4409
+ localVarHeaderParameter['Authorization'] = String(authorization);
4410
+ }
4411
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4412
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4413
+ }
4414
+ if (xProjectId !== undefined && xProjectId !== null) {
4415
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4416
+ }
4417
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4418
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4419
+ }
4420
+ options.queryParams = localVarQueryParameter;
4421
+ options.headers = localVarHeaderParameter;
4422
+ return options;
4423
+ },
4424
+ /**
4425
+ * 该接口用于查询视频制作剧本详情。
4426
+ *
4427
+ * Please refer to HUAWEI cloud API Explorer for details.
4428
+ */
4429
+ showVideoScript(showVideoScriptRequest) {
4430
+ const options = {
4431
+ method: "GET",
4432
+ url: "/v1/{project_id}/digital-human-video-scripts/{script_id}",
4433
+ contentType: "application/json",
4434
+ queryParams: {},
4435
+ pathParams: {},
4436
+ headers: {}
4437
+ };
4438
+ const localVarHeaderParameter = {};
4439
+ let scriptId;
4440
+ let authorization;
4441
+ let xSdkDate;
4442
+ let xProjectId;
4443
+ let xAppUserId;
4444
+ if (showVideoScriptRequest !== null && showVideoScriptRequest !== undefined) {
4445
+ if (showVideoScriptRequest instanceof ShowVideoScriptRequest_1.ShowVideoScriptRequest) {
4446
+ scriptId = showVideoScriptRequest.scriptId;
4447
+ authorization = showVideoScriptRequest.authorization;
4448
+ xSdkDate = showVideoScriptRequest.xSdkDate;
4449
+ xProjectId = showVideoScriptRequest.xProjectId;
4450
+ xAppUserId = showVideoScriptRequest.xAppUserId;
4451
+ }
4452
+ else {
4453
+ scriptId = showVideoScriptRequest['script_id'];
4454
+ authorization = showVideoScriptRequest['Authorization'];
4455
+ xSdkDate = showVideoScriptRequest['X-Sdk-Date'];
4456
+ xProjectId = showVideoScriptRequest['X-Project-Id'];
4457
+ xAppUserId = showVideoScriptRequest['X-App-UserId'];
4458
+ }
4459
+ }
4460
+ if (scriptId === null || scriptId === undefined) {
4461
+ throw new RequiredError('scriptId', 'Required parameter scriptId was null or undefined when calling showVideoScript.');
4462
+ }
4463
+ if (authorization !== undefined && authorization !== null) {
4464
+ localVarHeaderParameter['Authorization'] = String(authorization);
4465
+ }
4466
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4467
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4468
+ }
4469
+ if (xProjectId !== undefined && xProjectId !== null) {
4470
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4471
+ }
4472
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4473
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4474
+ }
4475
+ options.pathParams = { 'script_id': scriptId, };
4476
+ options.headers = localVarHeaderParameter;
4477
+ return options;
4478
+ },
4479
+ /**
4480
+ * 该接口用于更新视频制作剧本。
4481
+ *
4482
+ * Please refer to HUAWEI cloud API Explorer for details.
4483
+ */
4484
+ updateVideoScript(updateVideoScriptRequest) {
4485
+ const options = {
4486
+ method: "PUT",
4487
+ url: "/v1/{project_id}/digital-human-video-scripts/{script_id}",
4488
+ contentType: "application/json",
4489
+ queryParams: {},
4490
+ pathParams: {},
4491
+ headers: {},
4492
+ data: {}
4493
+ };
4494
+ const localVarHeaderParameter = {};
4495
+ let body;
4496
+ let scriptId;
4497
+ let authorization;
4498
+ let xSdkDate;
4499
+ let xProjectId;
4500
+ let xAppUserId;
4501
+ if (updateVideoScriptRequest !== null && updateVideoScriptRequest !== undefined) {
4502
+ if (updateVideoScriptRequest instanceof UpdateVideoScriptRequest_1.UpdateVideoScriptRequest) {
4503
+ scriptId = updateVideoScriptRequest.scriptId;
4504
+ body = updateVideoScriptRequest.body;
4505
+ authorization = updateVideoScriptRequest.authorization;
4506
+ xSdkDate = updateVideoScriptRequest.xSdkDate;
4507
+ xProjectId = updateVideoScriptRequest.xProjectId;
4508
+ xAppUserId = updateVideoScriptRequest.xAppUserId;
4509
+ }
4510
+ else {
4511
+ scriptId = updateVideoScriptRequest['script_id'];
4512
+ body = updateVideoScriptRequest['body'];
4513
+ authorization = updateVideoScriptRequest['Authorization'];
4514
+ xSdkDate = updateVideoScriptRequest['X-Sdk-Date'];
4515
+ xProjectId = updateVideoScriptRequest['X-Project-Id'];
4516
+ xAppUserId = updateVideoScriptRequest['X-App-UserId'];
4517
+ }
4518
+ }
4519
+ if (scriptId === null || scriptId === undefined) {
4520
+ throw new RequiredError('scriptId', 'Required parameter scriptId was null or undefined when calling updateVideoScript.');
4521
+ }
4522
+ if (body === null || body === undefined) {
4523
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
4524
+ }
4525
+ if (authorization !== undefined && authorization !== null) {
4526
+ localVarHeaderParameter['Authorization'] = String(authorization);
4527
+ }
4528
+ if (xSdkDate !== undefined && xSdkDate !== null) {
4529
+ localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
4530
+ }
4531
+ if (xProjectId !== undefined && xProjectId !== null) {
4532
+ localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
4533
+ }
4534
+ if (xAppUserId !== undefined && xAppUserId !== null) {
4535
+ localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
4536
+ }
4537
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4538
+ options.data = body !== undefined ? body : {};
4539
+ options.pathParams = { 'script_id': scriptId, };
4540
+ options.headers = localVarHeaderParameter;
4541
+ return options;
4542
+ },
2032
4543
  };
2033
4544
  };
2034
4545
  exports.ParamCreater = ParamCreater;