@huaweicloud/huaweicloud-sdk-metastudio 3.1.56 → 3.1.57

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