@huaweicloud/huaweicloud-sdk-metastudio 3.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/huaweicloud-sdk-metastudio.d.ts +3 -0
- package/huaweicloud-sdk-metastudio.d.ts.map +1 -0
- package/huaweicloud-sdk-metastudio.js +32 -0
- package/huaweicloud-sdk-metastudio.js.map +1 -0
- package/package.json +23 -0
- package/v1/MetaStudioClient.d.ts +753 -0
- package/v1/MetaStudioClient.d.ts.map +1 -0
- package/v1/MetaStudioClient.js +2052 -0
- package/v1/MetaStudioClient.js.map +1 -0
- package/v1/MetaStudioRegion.d.ts +7 -0
- package/v1/MetaStudioRegion.d.ts.map +1 -0
- package/v1/MetaStudioRegion.js +22 -0
- package/v1/MetaStudioRegion.js.map +1 -0
- package/v1/model/AnimationAssetMeta.d.ts +30 -0
- package/v1/model/AnimationAssetMeta.d.ts.map +1 -0
- package/v1/model/AnimationAssetMeta.js +62 -0
- package/v1/model/AnimationAssetMeta.js.map +1 -0
- package/v1/model/AnimationItem.d.ts +10 -0
- package/v1/model/AnimationItem.d.ts.map +1 -0
- package/v1/model/AnimationItem.js +23 -0
- package/v1/model/AnimationItem.js.map +1 -0
- package/v1/model/AssetExtraMeta.d.ts +39 -0
- package/v1/model/AssetExtraMeta.d.ts.map +1 -0
- package/v1/model/AssetExtraMeta.js +79 -0
- package/v1/model/AssetExtraMeta.js.map +1 -0
- package/v1/model/AssetFileInfo.d.ts +32 -0
- package/v1/model/AssetFileInfo.d.ts.map +1 -0
- package/v1/model/AssetFileInfo.js +79 -0
- package/v1/model/AssetFileInfo.js.map +1 -0
- package/v1/model/ComponentInfo.d.ts +16 -0
- package/v1/model/ComponentInfo.d.ts.map +1 -0
- package/v1/model/ComponentInfo.js +41 -0
- package/v1/model/ComponentInfo.js.map +1 -0
- package/v1/model/ConfirmFileUploadRequest.d.ts +23 -0
- package/v1/model/ConfirmFileUploadRequest.d.ts.map +1 -0
- package/v1/model/ConfirmFileUploadRequest.js +54 -0
- package/v1/model/ConfirmFileUploadRequest.js.map +1 -0
- package/v1/model/ConfirmFileUploadRequestBody.d.ts +15 -0
- package/v1/model/ConfirmFileUploadRequestBody.d.ts.map +1 -0
- package/v1/model/ConfirmFileUploadRequestBody.js +24 -0
- package/v1/model/ConfirmFileUploadRequestBody.js.map +1 -0
- package/v1/model/ConfirmFileUploadResponse.d.ts +5 -0
- package/v1/model/ConfirmFileUploadResponse.d.ts.map +1 -0
- package/v1/model/ConfirmFileUploadResponse.js +11 -0
- package/v1/model/ConfirmFileUploadResponse.js.map +1 -0
- package/v1/model/ControlDigitalHumanLiveReq.d.ts +20 -0
- package/v1/model/ControlDigitalHumanLiveReq.d.ts.map +1 -0
- package/v1/model/ControlDigitalHumanLiveReq.js +31 -0
- package/v1/model/ControlDigitalHumanLiveReq.js.map +1 -0
- package/v1/model/CreateDigitalAssetRequest.d.ts +19 -0
- package/v1/model/CreateDigitalAssetRequest.d.ts.map +1 -0
- package/v1/model/CreateDigitalAssetRequest.js +43 -0
- package/v1/model/CreateDigitalAssetRequest.js.map +1 -0
- package/v1/model/CreateDigitalAssetRequestBody.d.ts +51 -0
- package/v1/model/CreateDigitalAssetRequestBody.d.ts.map +1 -0
- package/v1/model/CreateDigitalAssetRequestBody.js +95 -0
- package/v1/model/CreateDigitalAssetRequestBody.js.map +1 -0
- package/v1/model/CreateDigitalAssetResponse.d.ts +9 -0
- package/v1/model/CreateDigitalAssetResponse.d.ts.map +1 -0
- package/v1/model/CreateDigitalAssetResponse.js +21 -0
- package/v1/model/CreateDigitalAssetResponse.js.map +1 -0
- package/v1/model/CreateFileRequest.d.ts +19 -0
- package/v1/model/CreateFileRequest.d.ts.map +1 -0
- package/v1/model/CreateFileRequest.js +43 -0
- package/v1/model/CreateFileRequest.js.map +1 -0
- package/v1/model/CreateFileResponse.d.ts +13 -0
- package/v1/model/CreateFileResponse.d.ts.map +1 -0
- package/v1/model/CreateFileResponse.js +31 -0
- package/v1/model/CreateFileResponse.js.map +1 -0
- package/v1/model/CreatePictureModelingByUrlJobRequest.d.ts +23 -0
- package/v1/model/CreatePictureModelingByUrlJobRequest.d.ts.map +1 -0
- package/v1/model/CreatePictureModelingByUrlJobRequest.js +53 -0
- package/v1/model/CreatePictureModelingByUrlJobRequest.js.map +1 -0
- package/v1/model/CreatePictureModelingByUrlJobResponse.d.ts +13 -0
- package/v1/model/CreatePictureModelingByUrlJobResponse.d.ts.map +1 -0
- package/v1/model/CreatePictureModelingByUrlJobResponse.js +31 -0
- package/v1/model/CreatePictureModelingByUrlJobResponse.js.map +1 -0
- package/v1/model/CreatePictureModelingJobRequest.d.ts +27 -0
- package/v1/model/CreatePictureModelingJobRequest.d.ts.map +1 -0
- package/v1/model/CreatePictureModelingJobRequest.js +63 -0
- package/v1/model/CreatePictureModelingJobRequest.js.map +1 -0
- package/v1/model/CreatePictureModelingJobRequestBody.d.ts +16 -0
- package/v1/model/CreatePictureModelingJobRequestBody.d.ts.map +1 -0
- package/v1/model/CreatePictureModelingJobRequestBody.js +40 -0
- package/v1/model/CreatePictureModelingJobRequestBody.js.map +1 -0
- package/v1/model/CreatePictureModelingJobResponse.d.ts +13 -0
- package/v1/model/CreatePictureModelingJobResponse.d.ts.map +1 -0
- package/v1/model/CreatePictureModelingJobResponse.js +31 -0
- package/v1/model/CreatePictureModelingJobResponse.js.map +1 -0
- package/v1/model/CreateStyleRequestBody.d.ts +37 -0
- package/v1/model/CreateStyleRequestBody.d.ts.map +1 -0
- package/v1/model/CreateStyleRequestBody.js +70 -0
- package/v1/model/CreateStyleRequestBody.js.map +1 -0
- package/v1/model/CreateTTSAReq.d.ts +34 -0
- package/v1/model/CreateTTSAReq.d.ts.map +1 -0
- package/v1/model/CreateTTSAReq.js +81 -0
- package/v1/model/CreateTTSAReq.js.map +1 -0
- package/v1/model/CreateTtsaRequest.d.ts +27 -0
- package/v1/model/CreateTtsaRequest.d.ts.map +1 -0
- package/v1/model/CreateTtsaRequest.js +63 -0
- package/v1/model/CreateTtsaRequest.js.map +1 -0
- package/v1/model/CreateTtsaResponse.d.ts +9 -0
- package/v1/model/CreateTtsaResponse.d.ts.map +1 -0
- package/v1/model/CreateTtsaResponse.js +21 -0
- package/v1/model/CreateTtsaResponse.js.map +1 -0
- package/v1/model/CreateVideoMotionCaptureJobRequest.d.ts +27 -0
- package/v1/model/CreateVideoMotionCaptureJobRequest.d.ts.map +1 -0
- package/v1/model/CreateVideoMotionCaptureJobRequest.js +63 -0
- package/v1/model/CreateVideoMotionCaptureJobRequest.js.map +1 -0
- package/v1/model/CreateVideoMotionCaptureJobResponse.d.ts +14 -0
- package/v1/model/CreateVideoMotionCaptureJobResponse.d.ts.map +1 -0
- package/v1/model/CreateVideoMotionCaptureJobResponse.js +31 -0
- package/v1/model/CreateVideoMotionCaptureJobResponse.js.map +1 -0
- package/v1/model/DeleteAssetRequest.d.ts +22 -0
- package/v1/model/DeleteAssetRequest.d.ts.map +1 -0
- package/v1/model/DeleteAssetRequest.js +54 -0
- package/v1/model/DeleteAssetRequest.js.map +1 -0
- package/v1/model/DeleteAssetResponse.d.ts +5 -0
- package/v1/model/DeleteAssetResponse.d.ts.map +1 -0
- package/v1/model/DeleteAssetResponse.js +11 -0
- package/v1/model/DeleteAssetResponse.js.map +1 -0
- package/v1/model/DeleteFileRequest.d.ts +20 -0
- package/v1/model/DeleteFileRequest.d.ts.map +1 -0
- package/v1/model/DeleteFileRequest.js +50 -0
- package/v1/model/DeleteFileRequest.js.map +1 -0
- package/v1/model/DeleteFileResponse.d.ts +5 -0
- package/v1/model/DeleteFileResponse.d.ts.map +1 -0
- package/v1/model/DeleteFileResponse.js +11 -0
- package/v1/model/DeleteFileResponse.js.map +1 -0
- package/v1/model/DigitalAssetInfo.d.ts +79 -0
- package/v1/model/DigitalAssetInfo.d.ts.map +1 -0
- package/v1/model/DigitalAssetInfo.js +141 -0
- package/v1/model/DigitalAssetInfo.js.map +1 -0
- package/v1/model/DigitalAssetSummary.d.ts +38 -0
- package/v1/model/DigitalAssetSummary.d.ts.map +1 -0
- package/v1/model/DigitalAssetSummary.js +68 -0
- package/v1/model/DigitalAssetSummary.js.map +1 -0
- package/v1/model/DigitalHumanModelingJobInfo.d.ts +35 -0
- package/v1/model/DigitalHumanModelingJobInfo.d.ts.map +1 -0
- package/v1/model/DigitalHumanModelingJobInfo.js +68 -0
- package/v1/model/DigitalHumanModelingJobInfo.js.map +1 -0
- package/v1/model/EngineAssetInfo.d.ts +12 -0
- package/v1/model/EngineAssetInfo.d.ts.map +1 -0
- package/v1/model/EngineAssetInfo.js +29 -0
- package/v1/model/EngineAssetInfo.js.map +1 -0
- package/v1/model/ErrorResponse.d.ts +12 -0
- package/v1/model/ErrorResponse.d.ts.map +1 -0
- package/v1/model/ErrorResponse.js +29 -0
- package/v1/model/ErrorResponse.js.map +1 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandRequest.d.ts +27 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandRequest.d.ts.map +1 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandRequest.js +64 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandRequest.js.map +1 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandResponse.d.ts +5 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandResponse.d.ts.map +1 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandResponse.js +11 -0
- package/v1/model/ExecuteVideoMotionCaptureCommandResponse.js.map +1 -0
- package/v1/model/ExternalVoiceAssetMeta.d.ts +24 -0
- package/v1/model/ExternalVoiceAssetMeta.d.ts.map +1 -0
- package/v1/model/ExternalVoiceAssetMeta.js +43 -0
- package/v1/model/ExternalVoiceAssetMeta.js.map +1 -0
- package/v1/model/FilesCreateReq.d.ts +28 -0
- package/v1/model/FilesCreateReq.d.ts.map +1 -0
- package/v1/model/FilesCreateReq.js +75 -0
- package/v1/model/FilesCreateReq.js.map +1 -0
- package/v1/model/HuaweiEIVoiceAssetMeta.d.ts +14 -0
- package/v1/model/HuaweiEIVoiceAssetMeta.d.ts.map +1 -0
- package/v1/model/HuaweiEIVoiceAssetMeta.js +34 -0
- package/v1/model/HuaweiEIVoiceAssetMeta.js.map +1 -0
- package/v1/model/HumanModel2DAssetMeta.d.ts +32 -0
- package/v1/model/HumanModel2DAssetMeta.d.ts.map +1 -0
- package/v1/model/HumanModel2DAssetMeta.js +68 -0
- package/v1/model/HumanModel2DAssetMeta.js.map +1 -0
- package/v1/model/HumanModelAssetMeta.d.ts +33 -0
- package/v1/model/HumanModelAssetMeta.d.ts.map +1 -0
- package/v1/model/HumanModelAssetMeta.js +63 -0
- package/v1/model/HumanModelAssetMeta.js.map +1 -0
- package/v1/model/HumanModelMetaProperties.d.ts +12 -0
- package/v1/model/HumanModelMetaProperties.d.ts.map +1 -0
- package/v1/model/HumanModelMetaProperties.js +29 -0
- package/v1/model/HumanModelMetaProperties.js.map +1 -0
- package/v1/model/InputInfo.d.ts +9 -0
- package/v1/model/InputInfo.d.ts.map +1 -0
- package/v1/model/InputInfo.js +19 -0
- package/v1/model/InputInfo.js.map +1 -0
- package/v1/model/ListAssetSummaryRequest.d.ts +15 -0
- package/v1/model/ListAssetSummaryRequest.d.ts.map +1 -0
- package/v1/model/ListAssetSummaryRequest.js +33 -0
- package/v1/model/ListAssetSummaryRequest.js.map +1 -0
- package/v1/model/ListAssetSummaryResponse.d.ts +10 -0
- package/v1/model/ListAssetSummaryResponse.d.ts.map +1 -0
- package/v1/model/ListAssetSummaryResponse.js +21 -0
- package/v1/model/ListAssetSummaryResponse.js.map +1 -0
- package/v1/model/ListAssetSummarysReq.d.ts +8 -0
- package/v1/model/ListAssetSummarysReq.d.ts.map +1 -0
- package/v1/model/ListAssetSummarysReq.js +20 -0
- package/v1/model/ListAssetSummarysReq.js.map +1 -0
- package/v1/model/ListAssetsRequest.d.ts +103 -0
- package/v1/model/ListAssetsRequest.d.ts.map +1 -0
- package/v1/model/ListAssetsRequest.js +218 -0
- package/v1/model/ListAssetsRequest.js.map +1 -0
- package/v1/model/ListAssetsResponse.d.ts +10 -0
- package/v1/model/ListAssetsResponse.d.ts.map +1 -0
- package/v1/model/ListAssetsResponse.js +19 -0
- package/v1/model/ListAssetsResponse.js.map +1 -0
- package/v1/model/ListPictureModelingJobsRequest.d.ts +42 -0
- package/v1/model/ListPictureModelingJobsRequest.d.ts.map +1 -0
- package/v1/model/ListPictureModelingJobsRequest.js +101 -0
- package/v1/model/ListPictureModelingJobsRequest.js.map +1 -0
- package/v1/model/ListPictureModelingJobsResponse.d.ts +12 -0
- package/v1/model/ListPictureModelingJobsResponse.d.ts.map +1 -0
- package/v1/model/ListPictureModelingJobsResponse.js +25 -0
- package/v1/model/ListPictureModelingJobsResponse.js.map +1 -0
- package/v1/model/ListStylesRequest.d.ts +42 -0
- package/v1/model/ListStylesRequest.d.ts.map +1 -0
- package/v1/model/ListStylesRequest.js +101 -0
- package/v1/model/ListStylesRequest.js.map +1 -0
- package/v1/model/ListStylesResponse.d.ts +10 -0
- package/v1/model/ListStylesResponse.d.ts.map +1 -0
- package/v1/model/ListStylesResponse.js +19 -0
- package/v1/model/ListStylesResponse.js.map +1 -0
- package/v1/model/ListTtsaDataRequest.d.ts +22 -0
- package/v1/model/ListTtsaDataRequest.d.ts.map +1 -0
- package/v1/model/ListTtsaDataRequest.js +54 -0
- package/v1/model/ListTtsaDataRequest.js.map +1 -0
- package/v1/model/ListTtsaDataResponse.d.ts +17 -0
- package/v1/model/ListTtsaDataResponse.d.ts.map +1 -0
- package/v1/model/ListTtsaDataResponse.js +31 -0
- package/v1/model/ListTtsaDataResponse.js.map +1 -0
- package/v1/model/ListTtsaJobsRequest.d.ts +24 -0
- package/v1/model/ListTtsaJobsRequest.d.ts.map +1 -0
- package/v1/model/ListTtsaJobsRequest.js +57 -0
- package/v1/model/ListTtsaJobsRequest.js.map +1 -0
- package/v1/model/ListTtsaJobsResponse.d.ts +12 -0
- package/v1/model/ListTtsaJobsResponse.d.ts.map +1 -0
- package/v1/model/ListTtsaJobsResponse.js +25 -0
- package/v1/model/ListTtsaJobsResponse.js.map +1 -0
- package/v1/model/ListVideoMotionCaptureJobsRequest.d.ts +24 -0
- package/v1/model/ListVideoMotionCaptureJobsRequest.d.ts.map +1 -0
- package/v1/model/ListVideoMotionCaptureJobsRequest.js +57 -0
- package/v1/model/ListVideoMotionCaptureJobsRequest.js.map +1 -0
- package/v1/model/ListVideoMotionCaptureJobsResponse.d.ts +12 -0
- package/v1/model/ListVideoMotionCaptureJobsResponse.d.ts.map +1 -0
- package/v1/model/ListVideoMotionCaptureJobsResponse.js +25 -0
- package/v1/model/ListVideoMotionCaptureJobsResponse.js.map +1 -0
- package/v1/model/MaterialAssetMeta.d.ts +7 -0
- package/v1/model/MaterialAssetMeta.d.ts.map +1 -0
- package/v1/model/MaterialAssetMeta.js +13 -0
- package/v1/model/MaterialAssetMeta.js.map +1 -0
- package/v1/model/MaterialComponentInfo.d.ts +28 -0
- package/v1/model/MaterialComponentInfo.d.ts.map +1 -0
- package/v1/model/MaterialComponentInfo.js +54 -0
- package/v1/model/MaterialComponentInfo.js.map +1 -0
- package/v1/model/MotionItem.d.ts +12 -0
- package/v1/model/MotionItem.d.ts.map +1 -0
- package/v1/model/MotionItem.js +25 -0
- package/v1/model/MotionItem.js.map +1 -0
- package/v1/model/OutputInfo.d.ts +20 -0
- package/v1/model/OutputInfo.d.ts.map +1 -0
- package/v1/model/OutputInfo.js +49 -0
- package/v1/model/OutputInfo.js.map +1 -0
- package/v1/model/PPTAssetMeta.d.ts +31 -0
- package/v1/model/PPTAssetMeta.d.ts.map +1 -0
- package/v1/model/PPTAssetMeta.js +56 -0
- package/v1/model/PPTAssetMeta.js.map +1 -0
- package/v1/model/PPTPageInfo.d.ts +16 -0
- package/v1/model/PPTPageInfo.d.ts.map +1 -0
- package/v1/model/PPTPageInfo.js +39 -0
- package/v1/model/PPTPageInfo.js.map +1 -0
- package/v1/model/PictureModelingByUrlReq.d.ts +18 -0
- package/v1/model/PictureModelingByUrlReq.d.ts.map +1 -0
- package/v1/model/PictureModelingByUrlReq.js +46 -0
- package/v1/model/PictureModelingByUrlReq.js.map +1 -0
- package/v1/model/PictureModelingInfo.d.ts +49 -0
- package/v1/model/PictureModelingInfo.d.ts.map +1 -0
- package/v1/model/PictureModelingInfo.js +102 -0
- package/v1/model/PictureModelingInfo.js.map +1 -0
- package/v1/model/RTCRoomInfoList.d.ts +15 -0
- package/v1/model/RTCRoomInfoList.d.ts.map +1 -0
- package/v1/model/RTCRoomInfoList.js +33 -0
- package/v1/model/RTCRoomInfoList.js.map +1 -0
- package/v1/model/RTCUserInfo.d.ts +26 -0
- package/v1/model/RTCUserInfo.d.ts.map +1 -0
- package/v1/model/RTCUserInfo.js +48 -0
- package/v1/model/RTCUserInfo.js.map +1 -0
- package/v1/model/RestoreAssetRequest.d.ts +20 -0
- package/v1/model/RestoreAssetRequest.d.ts.map +1 -0
- package/v1/model/RestoreAssetRequest.js +50 -0
- package/v1/model/RestoreAssetRequest.js.map +1 -0
- package/v1/model/RestoreAssetResponse.d.ts +5 -0
- package/v1/model/RestoreAssetResponse.d.ts.map +1 -0
- package/v1/model/RestoreAssetResponse.js +11 -0
- package/v1/model/RestoreAssetResponse.js.map +1 -0
- package/v1/model/SceneAssetMeta.d.ts +17 -0
- package/v1/model/SceneAssetMeta.d.ts.map +1 -0
- package/v1/model/SceneAssetMeta.js +23 -0
- package/v1/model/SceneAssetMeta.js.map +1 -0
- package/v1/model/SceneComponentInfo.d.ts +27 -0
- package/v1/model/SceneComponentInfo.d.ts.map +1 -0
- package/v1/model/SceneComponentInfo.js +55 -0
- package/v1/model/SceneComponentInfo.js.map +1 -0
- package/v1/model/ShowAssetRequest.d.ts +20 -0
- package/v1/model/ShowAssetRequest.d.ts.map +1 -0
- package/v1/model/ShowAssetRequest.js +50 -0
- package/v1/model/ShowAssetRequest.js.map +1 -0
- package/v1/model/ShowAssetResponse.d.ts +80 -0
- package/v1/model/ShowAssetResponse.d.ts.map +1 -0
- package/v1/model/ShowAssetResponse.js +143 -0
- package/v1/model/ShowAssetResponse.js.map +1 -0
- package/v1/model/ShowPictureModelingJobRequest.d.ts +24 -0
- package/v1/model/ShowPictureModelingJobRequest.d.ts.map +1 -0
- package/v1/model/ShowPictureModelingJobRequest.js +60 -0
- package/v1/model/ShowPictureModelingJobRequest.js.map +1 -0
- package/v1/model/ShowPictureModelingJobResponse.d.ts +50 -0
- package/v1/model/ShowPictureModelingJobResponse.d.ts.map +1 -0
- package/v1/model/ShowPictureModelingJobResponse.js +104 -0
- package/v1/model/ShowPictureModelingJobResponse.js.map +1 -0
- package/v1/model/ShowVideoMotionCaptureJobRequest.d.ts +24 -0
- package/v1/model/ShowVideoMotionCaptureJobRequest.d.ts.map +1 -0
- package/v1/model/ShowVideoMotionCaptureJobRequest.js +60 -0
- package/v1/model/ShowVideoMotionCaptureJobRequest.js.map +1 -0
- package/v1/model/ShowVideoMotionCaptureJobResponse.d.ts +53 -0
- package/v1/model/ShowVideoMotionCaptureJobResponse.d.ts.map +1 -0
- package/v1/model/ShowVideoMotionCaptureJobResponse.js +97 -0
- package/v1/model/ShowVideoMotionCaptureJobResponse.js.map +1 -0
- package/v1/model/StopVideoMotionCaptureJobRequest.d.ts +24 -0
- package/v1/model/StopVideoMotionCaptureJobRequest.d.ts.map +1 -0
- package/v1/model/StopVideoMotionCaptureJobRequest.js +60 -0
- package/v1/model/StopVideoMotionCaptureJobRequest.js.map +1 -0
- package/v1/model/StopVideoMotionCaptureJobResponse.d.ts +5 -0
- package/v1/model/StopVideoMotionCaptureJobResponse.d.ts.map +1 -0
- package/v1/model/StopVideoMotionCaptureJobResponse.js +11 -0
- package/v1/model/StopVideoMotionCaptureJobResponse.js.map +1 -0
- package/v1/model/StyleAssetItem.d.ts +24 -0
- package/v1/model/StyleAssetItem.d.ts.map +1 -0
- package/v1/model/StyleAssetItem.js +48 -0
- package/v1/model/StyleAssetItem.js.map +1 -0
- package/v1/model/StyleExtraMeta.d.ts +64 -0
- package/v1/model/StyleExtraMeta.d.ts.map +1 -0
- package/v1/model/StyleExtraMeta.js +89 -0
- package/v1/model/StyleExtraMeta.js.map +1 -0
- package/v1/model/StyleExtraMetaAdditionalProperties.d.ts +39 -0
- package/v1/model/StyleExtraMetaAdditionalProperties.d.ts.map +1 -0
- package/v1/model/StyleExtraMetaAdditionalProperties.js +67 -0
- package/v1/model/StyleExtraMetaAdditionalProperties.js.map +1 -0
- package/v1/model/StyleExtraMetaAdditionalProperties1.d.ts +22 -0
- package/v1/model/StyleExtraMetaAdditionalProperties1.d.ts.map +1 -0
- package/v1/model/StyleExtraMetaAdditionalProperties1.js +38 -0
- package/v1/model/StyleExtraMetaAdditionalProperties1.js.map +1 -0
- package/v1/model/StyleExtraMetaEditColorItems.d.ts +18 -0
- package/v1/model/StyleExtraMetaEditColorItems.d.ts.map +1 -0
- package/v1/model/StyleExtraMetaEditColorItems.js +33 -0
- package/v1/model/StyleExtraMetaEditColorItems.js.map +1 -0
- package/v1/model/StyleExtraMetaEditComponents.d.ts +7 -0
- package/v1/model/StyleExtraMetaEditComponents.d.ts.map +1 -0
- package/v1/model/StyleExtraMetaEditComponents.js +13 -0
- package/v1/model/StyleExtraMetaEditComponents.js.map +1 -0
- package/v1/model/StyleExtraMetaEditValueItems.d.ts +18 -0
- package/v1/model/StyleExtraMetaEditValueItems.d.ts.map +1 -0
- package/v1/model/StyleExtraMetaEditValueItems.js +33 -0
- package/v1/model/StyleExtraMetaEditValueItems.js.map +1 -0
- package/v1/model/StyleExtraMetaModellingAlgorithm.d.ts +7 -0
- package/v1/model/StyleExtraMetaModellingAlgorithm.d.ts.map +1 -0
- package/v1/model/StyleExtraMetaModellingAlgorithm.js +13 -0
- package/v1/model/StyleExtraMetaModellingAlgorithm.js.map +1 -0
- package/v1/model/StyleInfo.d.ts +62 -0
- package/v1/model/StyleInfo.d.ts.map +1 -0
- package/v1/model/StyleInfo.js +116 -0
- package/v1/model/StyleInfo.js.map +1 -0
- package/v1/model/SystemProperty.d.ts +31 -0
- package/v1/model/SystemProperty.d.ts.map +1 -0
- package/v1/model/SystemProperty.js +44 -0
- package/v1/model/SystemProperty.js.map +1 -0
- package/v1/model/TTSAJob.d.ts +32 -0
- package/v1/model/TTSAJob.d.ts.map +1 -0
- package/v1/model/TTSAJob.js +64 -0
- package/v1/model/TTSAJob.js.map +1 -0
- package/v1/model/UpdateDigitalAssetRequest.d.ts +23 -0
- package/v1/model/UpdateDigitalAssetRequest.d.ts.map +1 -0
- package/v1/model/UpdateDigitalAssetRequest.js +54 -0
- package/v1/model/UpdateDigitalAssetRequest.js.map +1 -0
- package/v1/model/UpdateDigitalAssetRequestBody.d.ts +63 -0
- package/v1/model/UpdateDigitalAssetRequestBody.d.ts.map +1 -0
- package/v1/model/UpdateDigitalAssetRequestBody.js +112 -0
- package/v1/model/UpdateDigitalAssetRequestBody.js.map +1 -0
- package/v1/model/UpdateDigitalAssetResponse.d.ts +80 -0
- package/v1/model/UpdateDigitalAssetResponse.d.ts.map +1 -0
- package/v1/model/UpdateDigitalAssetResponse.js +143 -0
- package/v1/model/UpdateDigitalAssetResponse.js.map +1 -0
- package/v1/model/VideoMotionCaptureInfo.d.ts +52 -0
- package/v1/model/VideoMotionCaptureInfo.d.ts.map +1 -0
- package/v1/model/VideoMotionCaptureInfo.js +95 -0
- package/v1/model/VideoMotionCaptureInfo.js.map +1 -0
- package/v1/model/VideoMotionCaptureJobReq.d.ts +28 -0
- package/v1/model/VideoMotionCaptureJobReq.d.ts.map +1 -0
- package/v1/model/VideoMotionCaptureJobReq.js +50 -0
- package/v1/model/VideoMotionCaptureJobReq.js.map +1 -0
- package/v1/model/VoiceModelAssetMeta.d.ts +56 -0
- package/v1/model/VoiceModelAssetMeta.d.ts.map +1 -0
- package/v1/model/VoiceModelAssetMeta.js +86 -0
- package/v1/model/VoiceModelAssetMeta.js.map +1 -0
- package/v1/model/XimalayaVoiceAssetMeta.d.ts +14 -0
- package/v1/model/XimalayaVoiceAssetMeta.d.ts.map +1 -0
- package/v1/model/XimalayaVoiceAssetMeta.js +36 -0
- package/v1/model/XimalayaVoiceAssetMeta.js.map +1 -0
- package/v1/public-api.d.ts +101 -0
- package/v1/public-api.d.ts.map +1 -0
- package/v1/public-api.js +117 -0
- package/v1/public-api.js.map +1 -0
|
@@ -0,0 +1,2052 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RequiredError = exports.ParamCreater = exports.MetaStudioClient = void 0;
|
|
7
|
+
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
|
8
|
+
const form_data_1 = __importDefault(require("form-data"));
|
|
9
|
+
const ConfirmFileUploadRequest_1 = require("./model/ConfirmFileUploadRequest");
|
|
10
|
+
const CreateDigitalAssetRequest_1 = require("./model/CreateDigitalAssetRequest");
|
|
11
|
+
const CreateFileRequest_1 = require("./model/CreateFileRequest");
|
|
12
|
+
const CreatePictureModelingByUrlJobRequest_1 = require("./model/CreatePictureModelingByUrlJobRequest");
|
|
13
|
+
const CreatePictureModelingJobRequest_1 = require("./model/CreatePictureModelingJobRequest");
|
|
14
|
+
const CreateTtsaRequest_1 = require("./model/CreateTtsaRequest");
|
|
15
|
+
const CreateVideoMotionCaptureJobRequest_1 = require("./model/CreateVideoMotionCaptureJobRequest");
|
|
16
|
+
const DeleteAssetRequest_1 = require("./model/DeleteAssetRequest");
|
|
17
|
+
const DeleteFileRequest_1 = require("./model/DeleteFileRequest");
|
|
18
|
+
const ExecuteVideoMotionCaptureCommandRequest_1 = require("./model/ExecuteVideoMotionCaptureCommandRequest");
|
|
19
|
+
const ListAssetSummaryRequest_1 = require("./model/ListAssetSummaryRequest");
|
|
20
|
+
const ListAssetsRequest_1 = require("./model/ListAssetsRequest");
|
|
21
|
+
const ListPictureModelingJobsRequest_1 = require("./model/ListPictureModelingJobsRequest");
|
|
22
|
+
const ListStylesRequest_1 = require("./model/ListStylesRequest");
|
|
23
|
+
const ListTtsaDataRequest_1 = require("./model/ListTtsaDataRequest");
|
|
24
|
+
const ListTtsaJobsRequest_1 = require("./model/ListTtsaJobsRequest");
|
|
25
|
+
const ListVideoMotionCaptureJobsRequest_1 = require("./model/ListVideoMotionCaptureJobsRequest");
|
|
26
|
+
const RestoreAssetRequest_1 = require("./model/RestoreAssetRequest");
|
|
27
|
+
const ShowAssetRequest_1 = require("./model/ShowAssetRequest");
|
|
28
|
+
const ShowPictureModelingJobRequest_1 = require("./model/ShowPictureModelingJobRequest");
|
|
29
|
+
const ShowVideoMotionCaptureJobRequest_1 = require("./model/ShowVideoMotionCaptureJobRequest");
|
|
30
|
+
const StopVideoMotionCaptureJobRequest_1 = require("./model/StopVideoMotionCaptureJobRequest");
|
|
31
|
+
const UpdateDigitalAssetRequest_1 = require("./model/UpdateDigitalAssetRequest");
|
|
32
|
+
class MetaStudioClient {
|
|
33
|
+
static newBuilder() {
|
|
34
|
+
return new ClientBuilder_1.ClientBuilder(newClient);
|
|
35
|
+
}
|
|
36
|
+
constructor(client) {
|
|
37
|
+
this.hcClient = client;
|
|
38
|
+
}
|
|
39
|
+
getPath() {
|
|
40
|
+
return __dirname;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:数字人模型、素材、视频、图片、场景等。
|
|
44
|
+
*
|
|
45
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
46
|
+
*
|
|
47
|
+
* @summary 创建资产
|
|
48
|
+
* @param {CreateDigitalAssetRequestBody} createDigitalAssetRequestBody 创建资产
|
|
49
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
50
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
51
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
createDigitalAsset(createDigitalAssetRequest) {
|
|
56
|
+
const options = (0, exports.ParamCreater)().createDigitalAsset(createDigitalAssetRequest);
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
options['responseHeaders'] = [''];
|
|
59
|
+
return this.hcClient.sendRequest(options);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* 该接口用于删除资产库中的媒体资产。第一次调用删除接口,将指定资产放入回收站;第二次调用删除接口,将指定资产彻底删除。
|
|
63
|
+
*
|
|
64
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
65
|
+
*
|
|
66
|
+
* @summary 删除资产
|
|
67
|
+
* @param {string} assetId 资产ID。
|
|
68
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
69
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
70
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
71
|
+
* @param {string} [mode] 删除模式
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
deleteAsset(deleteAssetRequest) {
|
|
76
|
+
const options = (0, exports.ParamCreater)().deleteAsset(deleteAssetRequest);
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
options['responseHeaders'] = [''];
|
|
79
|
+
return this.hcClient.sendRequest(options);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 该接口用于查询媒体资产库中指定的多个资产的概要信息。
|
|
83
|
+
*
|
|
84
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
85
|
+
*
|
|
86
|
+
* @summary 查询资产概要
|
|
87
|
+
* @param {ListAssetSummarysReq} listAssetSummaryRequestBody 资产概要查询。
|
|
88
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
89
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
listAssetSummary(listAssetSummaryRequest) {
|
|
94
|
+
const options = (0, exports.ParamCreater)().listAssetSummary(listAssetSummaryRequest);
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
options['responseHeaders'] = [''];
|
|
97
|
+
return this.hcClient.sendRequest(options);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* 该接口用于查询资产库中的媒体资产列表。
|
|
101
|
+
*
|
|
102
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
103
|
+
*
|
|
104
|
+
* @summary 查询资产列表
|
|
105
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
106
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
107
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
108
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
109
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
110
|
+
* @param {string} [name] 按名称模糊查询。
|
|
111
|
+
* @param {string} [tag] 按标签模糊查询。
|
|
112
|
+
* @param {string} [startTime] 起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。
|
|
113
|
+
* @param {string} [endTime] 结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。
|
|
114
|
+
* @param {string} [assetType] 资产类型。多个类型使用英文逗号分割。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐
|
|
115
|
+
* @param {string} [sortKey] 排序字段,目前只支持create_time。
|
|
116
|
+
* @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
|
|
117
|
+
* @param {'SYSTEM' | 'CUSTOMIZATION' | 'ALL'} [assetSource] 资产来源。 * SYSTEM:系统资产 * CUSTOMIZATION:租户资产 * ALL:所有资产 默认查询租户资产。
|
|
118
|
+
* @param {'UPLOAD' | 'UPLOADED' | 'UPLOADING' | 'UPLOAD_FAILED' | 'DOWNLOAD' | 'COLLECTIO' | 'DRAFT' | 'RECYCLE'} [assetManageType] 资产管理分类。 * UPLOAD:我的上传 * UPLOADED:已上传 * UPLOADING:UPLOADING * UPLOAD_FAILED:上传失败 * DOWNLOAD:我的下载 * COLLECTION:我的收藏 * DRAFT:草稿箱 * RECYCLE:回收站
|
|
119
|
+
* @param {string} [assetState] 资产状态。多个资产状态使用英文逗号分割。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK:资产被冻结,资产不可用,不可查看文件。 默认查询所有状态的资产。
|
|
120
|
+
* @param {string} [styleId] 基于风格化ID查询关联资产。 * system_male_001:男性风格01 * system_female_001:女性风格01 * system_male_002:男性风格02 * system_female_002:女性风格02
|
|
121
|
+
* @param {string} [xUserMePrivilege] 玄天引擎测试用户字段。
|
|
122
|
+
* @param {string} [renderEngine] 可用引擎。 * UE:UE引擎 * MetaEngine:MetaEngine引擎 > 该字段当前只对MetaEngine白名单用户生效
|
|
123
|
+
* @param {string} [sex] 性别。多选使用英文逗号分隔。
|
|
124
|
+
* @param {string} [language] 语言。多选使用英文逗号分隔。
|
|
125
|
+
* @param {string} [systemProperty] 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: * STYLE_ID:风格Id * RENDER_ENGINE:引擎类型,可取值UE或MetaEngine * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) * CREATED_BY_PLATFORM:是否平台生成,可取值Yes
|
|
126
|
+
* @param {boolean} [actionEditable] 动作是否可编辑。仅在分身数字人模型查询时有效。
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
listAssets(listAssetsRequest) {
|
|
131
|
+
const options = (0, exports.ParamCreater)().listAssets(listAssetsRequest);
|
|
132
|
+
// @ts-ignore
|
|
133
|
+
options['responseHeaders'] = [''];
|
|
134
|
+
return this.hcClient.sendRequest(options);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* 该接口用于恢复被删除至回收站的媒体资产。
|
|
138
|
+
*
|
|
139
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
140
|
+
*
|
|
141
|
+
* @summary 恢复被删除的资产
|
|
142
|
+
* @param {string} assetId 资产ID。
|
|
143
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
144
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
145
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
restoreAsset(restoreAssetRequest) {
|
|
150
|
+
const options = (0, exports.ParamCreater)().restoreAsset(restoreAssetRequest);
|
|
151
|
+
// @ts-ignore
|
|
152
|
+
options['responseHeaders'] = [''];
|
|
153
|
+
return this.hcClient.sendRequest(options);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 该接口用于查询资产库中指定媒体资产的详情。
|
|
157
|
+
*
|
|
158
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
159
|
+
*
|
|
160
|
+
* @summary 查询资产详情
|
|
161
|
+
* @param {string} assetId 资产ID。
|
|
162
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
163
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
164
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
showAsset(showAssetRequest) {
|
|
169
|
+
const options = (0, exports.ParamCreater)().showAsset(showAssetRequest);
|
|
170
|
+
// @ts-ignore
|
|
171
|
+
options['responseHeaders'] = [''];
|
|
172
|
+
return this.hcClient.sendRequest(options);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* 该接口用于更新资产库中的媒体资产信息。
|
|
176
|
+
*
|
|
177
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
178
|
+
*
|
|
179
|
+
* @summary 更新资产
|
|
180
|
+
* @param {string} assetId 资产ID。
|
|
181
|
+
* @param {UpdateDigitalAssetRequestBody} updateDigitalAssetRequestBody 创建资产
|
|
182
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
183
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
184
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
updateDigitalAsset(updateDigitalAssetRequest) {
|
|
189
|
+
const options = (0, exports.ParamCreater)().updateDigitalAsset(updateDigitalAssetRequest);
|
|
190
|
+
// @ts-ignore
|
|
191
|
+
options['responseHeaders'] = [''];
|
|
192
|
+
return this.hcClient.sendRequest(options);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* 资产文件上传完毕后,通过该接口确认上传完成。
|
|
196
|
+
*
|
|
197
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
198
|
+
*
|
|
199
|
+
* @summary 确认文件已上传
|
|
200
|
+
* @param {string} fileId 文件ID。
|
|
201
|
+
* @param {ConfirmFileUploadRequestBody} confirmFileUploadRequestBody 确认媒资上传
|
|
202
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
203
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
204
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
confirmFileUpload(confirmFileUploadRequest) {
|
|
209
|
+
const options = (0, exports.ParamCreater)().confirmFileUpload(confirmFileUploadRequest);
|
|
210
|
+
// @ts-ignore
|
|
211
|
+
options['responseHeaders'] = [''];
|
|
212
|
+
return this.hcClient.sendRequest(options);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* 该接口用于创建文件并获取上传URL。
|
|
216
|
+
*
|
|
217
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
218
|
+
*
|
|
219
|
+
* @summary 创建文件并获取上传URL
|
|
220
|
+
* @param {FilesCreateReq} createFileRequestBody 创建文件请求。
|
|
221
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
222
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
223
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
createFile(createFileRequest) {
|
|
228
|
+
const options = (0, exports.ParamCreater)().createFile(createFileRequest);
|
|
229
|
+
// @ts-ignore
|
|
230
|
+
options['responseHeaders'] = [''];
|
|
231
|
+
return this.hcClient.sendRequest(options);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* 该接口用于删除媒体资产库中指定的文件。
|
|
235
|
+
*
|
|
236
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
237
|
+
*
|
|
238
|
+
* @summary 删除文件
|
|
239
|
+
* @param {string} fileId 文件ID。
|
|
240
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
241
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
242
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
*/
|
|
246
|
+
deleteFile(deleteFileRequest) {
|
|
247
|
+
const options = (0, exports.ParamCreater)().deleteFile(deleteFileRequest);
|
|
248
|
+
// @ts-ignore
|
|
249
|
+
options['responseHeaders'] = [''];
|
|
250
|
+
return this.hcClient.sendRequest(options);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* 该接口用于从URL中获取图片进行照片建模任务。
|
|
254
|
+
*
|
|
255
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
256
|
+
*
|
|
257
|
+
* @summary 基于图片URL创建照片建模任务
|
|
258
|
+
* @param {PictureModelingByUrlReq} createPictureModelingByUrlJobRequestBody 建模请求
|
|
259
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
260
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
261
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
262
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
createPictureModelingByUrlJob(createPictureModelingByUrlJobRequest) {
|
|
267
|
+
const options = (0, exports.ParamCreater)().createPictureModelingByUrlJob(createPictureModelingByUrlJobRequest);
|
|
268
|
+
// @ts-ignore
|
|
269
|
+
options['responseHeaders'] = [''];
|
|
270
|
+
return this.hcClient.sendRequest(options);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。
|
|
274
|
+
*
|
|
275
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
276
|
+
*
|
|
277
|
+
* @summary 创建照片建模任务
|
|
278
|
+
* @param {any} file 照片文件。 > 只能上传jpg/jpeg/png格式文件, 最大分辨率为3840*2160
|
|
279
|
+
* @param {string} styleId 数字人风格ID。 * system_male_001:男性风格01 * system_female_001:女性风格01 * system_male_002:男性风格02 * system_female_002:女性风格02
|
|
280
|
+
* @param {string} name 数字人模型名称,首次创建时使用。
|
|
281
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
282
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
283
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
284
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
285
|
+
* @param {string} [xUserPrivilege] 测试用户判断。
|
|
286
|
+
* @param {string} [notifyUrl] 照片建模任务结束的回调地址。
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
createPictureModelingJob(createPictureModelingJobRequest) {
|
|
291
|
+
const options = (0, exports.ParamCreater)().createPictureModelingJob(createPictureModelingJobRequest);
|
|
292
|
+
// @ts-ignore
|
|
293
|
+
options['responseHeaders'] = [''];
|
|
294
|
+
return this.hcClient.sendRequest(options);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* 该接口用于查询风格化照片建模任务列表。
|
|
298
|
+
*
|
|
299
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
300
|
+
*
|
|
301
|
+
* @summary 照片建模任务列表查询
|
|
302
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
303
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
304
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
305
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
306
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
307
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
308
|
+
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
309
|
+
* @param {string} [sortKey] 排序字段,目前只支持create_time。
|
|
310
|
+
* @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
|
|
311
|
+
* @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
|
|
312
|
+
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
listPictureModelingJobs(listPictureModelingJobsRequest) {
|
|
317
|
+
const options = (0, exports.ParamCreater)().listPictureModelingJobs(listPictureModelingJobsRequest);
|
|
318
|
+
// @ts-ignore
|
|
319
|
+
options['responseHeaders'] = [''];
|
|
320
|
+
return this.hcClient.sendRequest(options);
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* 该接口用于风格化查询照片建模任务详情。
|
|
324
|
+
*
|
|
325
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
326
|
+
*
|
|
327
|
+
* @summary 照片建模任务详情查询
|
|
328
|
+
* @param {string} jobId 任务ID。
|
|
329
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
330
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
331
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
332
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
showPictureModelingJob(showPictureModelingJobRequest) {
|
|
337
|
+
const options = (0, exports.ParamCreater)().showPictureModelingJob(showPictureModelingJobRequest);
|
|
338
|
+
// @ts-ignore
|
|
339
|
+
options['responseHeaders'] = [''];
|
|
340
|
+
return this.hcClient.sendRequest(options);
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* 查询数字人风格列表
|
|
344
|
+
*
|
|
345
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
346
|
+
*
|
|
347
|
+
* @summary 查询数字人风格列表
|
|
348
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
349
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
350
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
351
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
352
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
353
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
354
|
+
* @param {string} [state] 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED
|
|
355
|
+
* @param {string} [sortKey] 排序字段,目前只支持create_time。
|
|
356
|
+
* @param {string} [sortDir] 排序方式。 * asc:升序 * desc:降序 默认asc升序。
|
|
357
|
+
* @param {string} [createUntil] 过滤创建时间<=输入时间的记录。
|
|
358
|
+
* @param {string} [createSince] 过滤创建时间>=输入时间的记录。
|
|
359
|
+
* @param {*} [options] Override http request option.
|
|
360
|
+
* @throws {RequiredError}
|
|
361
|
+
*/
|
|
362
|
+
listStyles(listStylesRequest) {
|
|
363
|
+
const options = (0, exports.ParamCreater)().listStyles(listStylesRequest);
|
|
364
|
+
// @ts-ignore
|
|
365
|
+
options['responseHeaders'] = [''];
|
|
366
|
+
return this.hcClient.sendRequest(options);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* 该接口用于创建驱动数字人表情、动作及语音的任务。
|
|
370
|
+
*
|
|
371
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
372
|
+
*
|
|
373
|
+
* @summary 创建语音驱动任务
|
|
374
|
+
* @param {CreateTTSAReq} createTTSARequestBody 数字人语音驱动任务创建请求。
|
|
375
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
376
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
377
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
378
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
379
|
+
* @param {string} [xUserPrivilege] 账号类型(INTERNAL_TEST:测试账号)
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
createTtsa(createTtsaRequest) {
|
|
384
|
+
const options = (0, exports.ParamCreater)().createTtsa(createTtsaRequest);
|
|
385
|
+
// @ts-ignore
|
|
386
|
+
options['responseHeaders'] = [''];
|
|
387
|
+
return this.hcClient.sendRequest(options);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
|
|
391
|
+
*
|
|
392
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
393
|
+
*
|
|
394
|
+
* @summary 获取语音驱动数据
|
|
395
|
+
* @param {string} jobId 任务ID。
|
|
396
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
397
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
398
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
399
|
+
* @param {number} [offset] 偏移量,表示生成内容时间偏移,目前每次返回2秒内容。
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
listTtsaData(listTtsaDataRequest) {
|
|
404
|
+
const options = (0, exports.ParamCreater)().listTtsaData(listTtsaDataRequest);
|
|
405
|
+
// @ts-ignore
|
|
406
|
+
options['responseHeaders'] = [''];
|
|
407
|
+
return this.hcClient.sendRequest(options);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* 该接口用于查询驱动数字人表情、动作及语音的任务列表。
|
|
411
|
+
*
|
|
412
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
413
|
+
*
|
|
414
|
+
* @summary 获取语音驱动任务列表
|
|
415
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
416
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
417
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
418
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
419
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
420
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
*/
|
|
424
|
+
listTtsaJobs(listTtsaJobsRequest) {
|
|
425
|
+
const options = (0, exports.ParamCreater)().listTtsaJobs(listTtsaJobsRequest);
|
|
426
|
+
// @ts-ignore
|
|
427
|
+
options['responseHeaders'] = [''];
|
|
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 {VideoMotionCaptureJobReq} createVideoMotionCaptureJobRequestBody 视频驱动任务创建请求。
|
|
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 {string} [xUserPrivilege] 测试用户判断。
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest) {
|
|
446
|
+
const options = (0, exports.ParamCreater)().createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest);
|
|
447
|
+
// @ts-ignore
|
|
448
|
+
options['responseHeaders'] = [''];
|
|
449
|
+
return this.hcClient.sendRequest(options);
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* 该接口用于控制数字人驱动。
|
|
453
|
+
*
|
|
454
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
455
|
+
*
|
|
456
|
+
* @summary 控制数字人驱动
|
|
457
|
+
* @param {string} jobId 任务ID。
|
|
458
|
+
* @param {ControlDigitalHumanLiveReq} executeVideoMotionCaptureCommandRequestBody 控制数字人驱动。
|
|
459
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
460
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
461
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
462
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
463
|
+
* @param {*} [options] Override http request option.
|
|
464
|
+
* @throws {RequiredError}
|
|
465
|
+
*/
|
|
466
|
+
executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest) {
|
|
467
|
+
const options = (0, exports.ParamCreater)().executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest);
|
|
468
|
+
// @ts-ignore
|
|
469
|
+
options['responseHeaders'] = [''];
|
|
470
|
+
return this.hcClient.sendRequest(options);
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* 该接口用于查询视频驱动任务列表。
|
|
474
|
+
*
|
|
475
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
476
|
+
*
|
|
477
|
+
* @summary 查询视频驱动任务列表
|
|
478
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
479
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
480
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
481
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
482
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询。
|
|
483
|
+
* @param {number} [limit] 每页显示的条目数量。
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
*/
|
|
487
|
+
listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest) {
|
|
488
|
+
const options = (0, exports.ParamCreater)().listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest);
|
|
489
|
+
// @ts-ignore
|
|
490
|
+
options['responseHeaders'] = [''];
|
|
491
|
+
return this.hcClient.sendRequest(options);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* 该接口用于查询视频驱动任务详情。
|
|
495
|
+
*
|
|
496
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
497
|
+
*
|
|
498
|
+
* @summary 查询视频驱动任务详情
|
|
499
|
+
* @param {string} jobId 任务ID。
|
|
500
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
501
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
502
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
503
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest) {
|
|
508
|
+
const options = (0, exports.ParamCreater)().showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest);
|
|
509
|
+
// @ts-ignore
|
|
510
|
+
options['responseHeaders'] = [''];
|
|
511
|
+
return this.hcClient.sendRequest(options);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* 该接口用于停止视频驱动任务。
|
|
515
|
+
*
|
|
516
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
517
|
+
*
|
|
518
|
+
* @summary 停止视频驱动任务
|
|
519
|
+
* @param {string} jobId 任务ID。
|
|
520
|
+
* @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。
|
|
521
|
+
* @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。
|
|
522
|
+
* @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。
|
|
523
|
+
* @param {string} [xAppUserId] 开发者应用作为资产权属的可选字段。
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest) {
|
|
528
|
+
const options = (0, exports.ParamCreater)().stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest);
|
|
529
|
+
// @ts-ignore
|
|
530
|
+
options['responseHeaders'] = [''];
|
|
531
|
+
return this.hcClient.sendRequest(options);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
exports.MetaStudioClient = MetaStudioClient;
|
|
535
|
+
const ParamCreater = function () {
|
|
536
|
+
return {
|
|
537
|
+
/**
|
|
538
|
+
* 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:数字人模型、素材、视频、图片、场景等。
|
|
539
|
+
*
|
|
540
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
541
|
+
*/
|
|
542
|
+
createDigitalAsset(createDigitalAssetRequest) {
|
|
543
|
+
const options = {
|
|
544
|
+
method: "POST",
|
|
545
|
+
url: "/v1/{project_id}/digital-assets",
|
|
546
|
+
contentType: "application/json",
|
|
547
|
+
queryParams: {},
|
|
548
|
+
pathParams: {},
|
|
549
|
+
headers: {},
|
|
550
|
+
data: {}
|
|
551
|
+
};
|
|
552
|
+
const localVarHeaderParameter = {};
|
|
553
|
+
let body;
|
|
554
|
+
let authorization;
|
|
555
|
+
let xSdkDate;
|
|
556
|
+
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;
|
|
563
|
+
}
|
|
564
|
+
else {
|
|
565
|
+
body = createDigitalAssetRequest['body'];
|
|
566
|
+
authorization = createDigitalAssetRequest['Authorization'];
|
|
567
|
+
xSdkDate = createDigitalAssetRequest['X-Sdk-Date'];
|
|
568
|
+
xAppUserId = createDigitalAssetRequest['X-App-UserId'];
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
if (body === null || body === undefined) {
|
|
572
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
573
|
+
}
|
|
574
|
+
if (authorization !== undefined && authorization !== null) {
|
|
575
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
576
|
+
}
|
|
577
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
578
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
579
|
+
}
|
|
580
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
581
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
582
|
+
}
|
|
583
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
584
|
+
options.data = body !== undefined ? body : {};
|
|
585
|
+
options.headers = localVarHeaderParameter;
|
|
586
|
+
return options;
|
|
587
|
+
},
|
|
588
|
+
/**
|
|
589
|
+
* 该接口用于删除资产库中的媒体资产。第一次调用删除接口,将指定资产放入回收站;第二次调用删除接口,将指定资产彻底删除。
|
|
590
|
+
*
|
|
591
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
592
|
+
*/
|
|
593
|
+
deleteAsset(deleteAssetRequest) {
|
|
594
|
+
const options = {
|
|
595
|
+
method: "DELETE",
|
|
596
|
+
url: "/v1/{project_id}/digital-assets/{asset_id}",
|
|
597
|
+
contentType: "application/json",
|
|
598
|
+
queryParams: {},
|
|
599
|
+
pathParams: {},
|
|
600
|
+
headers: {}
|
|
601
|
+
};
|
|
602
|
+
const localVarHeaderParameter = {};
|
|
603
|
+
const localVarQueryParameter = {};
|
|
604
|
+
let assetId;
|
|
605
|
+
let authorization;
|
|
606
|
+
let xSdkDate;
|
|
607
|
+
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;
|
|
616
|
+
}
|
|
617
|
+
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'];
|
|
623
|
+
}
|
|
624
|
+
}
|
|
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;
|
|
630
|
+
}
|
|
631
|
+
if (authorization !== undefined && authorization !== null) {
|
|
632
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
633
|
+
}
|
|
634
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
635
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
636
|
+
}
|
|
637
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
638
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
639
|
+
}
|
|
640
|
+
options.queryParams = localVarQueryParameter;
|
|
641
|
+
options.pathParams = { 'asset_id': assetId, };
|
|
642
|
+
options.headers = localVarHeaderParameter;
|
|
643
|
+
return options;
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
* 该接口用于查询媒体资产库中指定的多个资产的概要信息。
|
|
647
|
+
*
|
|
648
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
649
|
+
*/
|
|
650
|
+
listAssetSummary(listAssetSummaryRequest) {
|
|
651
|
+
const options = {
|
|
652
|
+
method: "POST",
|
|
653
|
+
url: "/v1/{project_id}/digital-assets/summarys",
|
|
654
|
+
contentType: "application/json",
|
|
655
|
+
queryParams: {},
|
|
656
|
+
pathParams: {},
|
|
657
|
+
headers: {},
|
|
658
|
+
data: {}
|
|
659
|
+
};
|
|
660
|
+
const localVarHeaderParameter = {};
|
|
661
|
+
let body;
|
|
662
|
+
let authorization;
|
|
663
|
+
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;
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
body = listAssetSummaryRequest['body'];
|
|
672
|
+
authorization = listAssetSummaryRequest['Authorization'];
|
|
673
|
+
xSdkDate = listAssetSummaryRequest['X-Sdk-Date'];
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
if (body === null || body === undefined) {
|
|
677
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
678
|
+
}
|
|
679
|
+
if (authorization !== undefined && authorization !== null) {
|
|
680
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
681
|
+
}
|
|
682
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
683
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
684
|
+
}
|
|
685
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
686
|
+
options.data = body !== undefined ? body : {};
|
|
687
|
+
options.headers = localVarHeaderParameter;
|
|
688
|
+
return options;
|
|
689
|
+
},
|
|
690
|
+
/**
|
|
691
|
+
* 该接口用于查询资产库中的媒体资产列表。
|
|
692
|
+
*
|
|
693
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
694
|
+
*/
|
|
695
|
+
listAssets(listAssetsRequest) {
|
|
696
|
+
const options = {
|
|
697
|
+
method: "GET",
|
|
698
|
+
url: "/v1/{project_id}/digital-assets",
|
|
699
|
+
contentType: "application/json",
|
|
700
|
+
queryParams: {},
|
|
701
|
+
pathParams: {},
|
|
702
|
+
headers: {}
|
|
703
|
+
};
|
|
704
|
+
const localVarHeaderParameter = {};
|
|
705
|
+
const localVarQueryParameter = {};
|
|
706
|
+
let authorization;
|
|
707
|
+
let xSdkDate;
|
|
708
|
+
let xAppUserId;
|
|
709
|
+
let limit;
|
|
710
|
+
let offset;
|
|
711
|
+
let name;
|
|
712
|
+
let tag;
|
|
713
|
+
let startTime;
|
|
714
|
+
let endTime;
|
|
715
|
+
let assetType;
|
|
716
|
+
let sortKey;
|
|
717
|
+
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;
|
|
752
|
+
}
|
|
753
|
+
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'];
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if (limit !== null && limit !== undefined) {
|
|
779
|
+
localVarQueryParameter['limit'] = limit;
|
|
780
|
+
}
|
|
781
|
+
if (offset !== null && offset !== undefined) {
|
|
782
|
+
localVarQueryParameter['offset'] = offset;
|
|
783
|
+
}
|
|
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;
|
|
795
|
+
}
|
|
796
|
+
if (assetType !== null && assetType !== undefined) {
|
|
797
|
+
localVarQueryParameter['asset_type'] = assetType;
|
|
798
|
+
}
|
|
799
|
+
if (sortKey !== null && sortKey !== undefined) {
|
|
800
|
+
localVarQueryParameter['sort_key'] = sortKey;
|
|
801
|
+
}
|
|
802
|
+
if (sortDir !== null && sortDir !== undefined) {
|
|
803
|
+
localVarQueryParameter['sort_dir'] = sortDir;
|
|
804
|
+
}
|
|
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;
|
|
828
|
+
}
|
|
829
|
+
if (actionEditable !== null && actionEditable !== undefined) {
|
|
830
|
+
localVarQueryParameter['action_editable'] = actionEditable;
|
|
831
|
+
}
|
|
832
|
+
if (authorization !== undefined && authorization !== null) {
|
|
833
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
834
|
+
}
|
|
835
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
836
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
837
|
+
}
|
|
838
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
839
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
840
|
+
}
|
|
841
|
+
if (xUserMePrivilege !== undefined && xUserMePrivilege !== null) {
|
|
842
|
+
localVarHeaderParameter['X-User-MePrivilege'] = String(xUserMePrivilege);
|
|
843
|
+
}
|
|
844
|
+
options.queryParams = localVarQueryParameter;
|
|
845
|
+
options.headers = localVarHeaderParameter;
|
|
846
|
+
return options;
|
|
847
|
+
},
|
|
848
|
+
/**
|
|
849
|
+
* 该接口用于恢复被删除至回收站的媒体资产。
|
|
850
|
+
*
|
|
851
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
852
|
+
*/
|
|
853
|
+
restoreAsset(restoreAssetRequest) {
|
|
854
|
+
const options = {
|
|
855
|
+
method: "POST",
|
|
856
|
+
url: "/v1/{project_id}/digital-assets/{asset_id}/restore",
|
|
857
|
+
contentType: "application/json",
|
|
858
|
+
queryParams: {},
|
|
859
|
+
pathParams: {},
|
|
860
|
+
headers: {}
|
|
861
|
+
};
|
|
862
|
+
const localVarHeaderParameter = {};
|
|
863
|
+
let assetId;
|
|
864
|
+
let authorization;
|
|
865
|
+
let xSdkDate;
|
|
866
|
+
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;
|
|
873
|
+
}
|
|
874
|
+
else {
|
|
875
|
+
assetId = restoreAssetRequest['asset_id'];
|
|
876
|
+
authorization = restoreAssetRequest['Authorization'];
|
|
877
|
+
xSdkDate = restoreAssetRequest['X-Sdk-Date'];
|
|
878
|
+
xAppUserId = restoreAssetRequest['X-App-UserId'];
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
if (assetId === null || assetId === undefined) {
|
|
882
|
+
throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling restoreAsset.');
|
|
883
|
+
}
|
|
884
|
+
if (authorization !== undefined && authorization !== null) {
|
|
885
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
886
|
+
}
|
|
887
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
888
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
889
|
+
}
|
|
890
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
891
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
892
|
+
}
|
|
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
|
+
}
|
|
929
|
+
}
|
|
930
|
+
if (assetId === null || assetId === undefined) {
|
|
931
|
+
throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling showAsset.');
|
|
932
|
+
}
|
|
933
|
+
if (authorization !== undefined && authorization !== null) {
|
|
934
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
935
|
+
}
|
|
936
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
937
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
938
|
+
}
|
|
939
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
940
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
941
|
+
}
|
|
942
|
+
options.pathParams = { 'asset_id': assetId, };
|
|
943
|
+
options.headers = localVarHeaderParameter;
|
|
944
|
+
return options;
|
|
945
|
+
},
|
|
946
|
+
/**
|
|
947
|
+
* 该接口用于更新资产库中的媒体资产信息。
|
|
948
|
+
*
|
|
949
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
950
|
+
*/
|
|
951
|
+
updateDigitalAsset(updateDigitalAssetRequest) {
|
|
952
|
+
const options = {
|
|
953
|
+
method: "PUT",
|
|
954
|
+
url: "/v1/{project_id}/digital-assets/{asset_id}",
|
|
955
|
+
contentType: "application/json",
|
|
956
|
+
queryParams: {},
|
|
957
|
+
pathParams: {},
|
|
958
|
+
headers: {},
|
|
959
|
+
data: {}
|
|
960
|
+
};
|
|
961
|
+
const localVarHeaderParameter = {};
|
|
962
|
+
let body;
|
|
963
|
+
let assetId;
|
|
964
|
+
let authorization;
|
|
965
|
+
let xSdkDate;
|
|
966
|
+
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;
|
|
974
|
+
}
|
|
975
|
+
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'];
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
if (assetId === null || assetId === undefined) {
|
|
984
|
+
throw new RequiredError('assetId', 'Required parameter assetId was null or undefined when calling updateDigitalAsset.');
|
|
985
|
+
}
|
|
986
|
+
if (body === null || body === undefined) {
|
|
987
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
988
|
+
}
|
|
989
|
+
if (authorization !== undefined && authorization !== null) {
|
|
990
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
991
|
+
}
|
|
992
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
993
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
994
|
+
}
|
|
995
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
996
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
997
|
+
}
|
|
998
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
999
|
+
options.data = body !== undefined ? body : {};
|
|
1000
|
+
options.pathParams = { 'asset_id': assetId, };
|
|
1001
|
+
options.headers = localVarHeaderParameter;
|
|
1002
|
+
return options;
|
|
1003
|
+
},
|
|
1004
|
+
/**
|
|
1005
|
+
* 资产文件上传完毕后,通过该接口确认上传完成。
|
|
1006
|
+
*
|
|
1007
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1008
|
+
*/
|
|
1009
|
+
confirmFileUpload(confirmFileUploadRequest) {
|
|
1010
|
+
const options = {
|
|
1011
|
+
method: "POST",
|
|
1012
|
+
url: "/v1/{project_id}/files/{file_id}/complete",
|
|
1013
|
+
contentType: "application/json",
|
|
1014
|
+
queryParams: {},
|
|
1015
|
+
pathParams: {},
|
|
1016
|
+
headers: {},
|
|
1017
|
+
data: {}
|
|
1018
|
+
};
|
|
1019
|
+
const localVarHeaderParameter = {};
|
|
1020
|
+
let body;
|
|
1021
|
+
let fileId;
|
|
1022
|
+
let authorization;
|
|
1023
|
+
let xSdkDate;
|
|
1024
|
+
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;
|
|
1032
|
+
}
|
|
1033
|
+
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'];
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
if (fileId === null || fileId === undefined) {
|
|
1042
|
+
throw new RequiredError('fileId', 'Required parameter fileId was null or undefined when calling confirmFileUpload.');
|
|
1043
|
+
}
|
|
1044
|
+
if (body === null || body === undefined) {
|
|
1045
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1046
|
+
}
|
|
1047
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1048
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1049
|
+
}
|
|
1050
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1051
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1052
|
+
}
|
|
1053
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1054
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1055
|
+
}
|
|
1056
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1057
|
+
options.data = body !== undefined ? body : {};
|
|
1058
|
+
options.pathParams = { 'file_id': fileId, };
|
|
1059
|
+
options.headers = localVarHeaderParameter;
|
|
1060
|
+
return options;
|
|
1061
|
+
},
|
|
1062
|
+
/**
|
|
1063
|
+
* 该接口用于创建文件并获取上传URL。
|
|
1064
|
+
*
|
|
1065
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1066
|
+
*/
|
|
1067
|
+
createFile(createFileRequest) {
|
|
1068
|
+
const options = {
|
|
1069
|
+
method: "POST",
|
|
1070
|
+
url: "/v1/{project_id}/files",
|
|
1071
|
+
contentType: "application/json",
|
|
1072
|
+
queryParams: {},
|
|
1073
|
+
pathParams: {},
|
|
1074
|
+
headers: {},
|
|
1075
|
+
data: {}
|
|
1076
|
+
};
|
|
1077
|
+
const localVarHeaderParameter = {};
|
|
1078
|
+
let body;
|
|
1079
|
+
let authorization;
|
|
1080
|
+
let xSdkDate;
|
|
1081
|
+
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;
|
|
1088
|
+
}
|
|
1089
|
+
else {
|
|
1090
|
+
body = createFileRequest['body'];
|
|
1091
|
+
authorization = createFileRequest['Authorization'];
|
|
1092
|
+
xSdkDate = createFileRequest['X-Sdk-Date'];
|
|
1093
|
+
xAppUserId = createFileRequest['X-App-UserId'];
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
if (body === null || body === undefined) {
|
|
1097
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1098
|
+
}
|
|
1099
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1100
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1101
|
+
}
|
|
1102
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1103
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1104
|
+
}
|
|
1105
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1106
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1107
|
+
}
|
|
1108
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1109
|
+
options.data = body !== undefined ? body : {};
|
|
1110
|
+
options.headers = localVarHeaderParameter;
|
|
1111
|
+
return options;
|
|
1112
|
+
},
|
|
1113
|
+
/**
|
|
1114
|
+
* 该接口用于删除媒体资产库中指定的文件。
|
|
1115
|
+
*
|
|
1116
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1117
|
+
*/
|
|
1118
|
+
deleteFile(deleteFileRequest) {
|
|
1119
|
+
const options = {
|
|
1120
|
+
method: "DELETE",
|
|
1121
|
+
url: "/v1/{project_id}/files/{file_id}",
|
|
1122
|
+
contentType: "application/json",
|
|
1123
|
+
queryParams: {},
|
|
1124
|
+
pathParams: {},
|
|
1125
|
+
headers: {}
|
|
1126
|
+
};
|
|
1127
|
+
const localVarHeaderParameter = {};
|
|
1128
|
+
let fileId;
|
|
1129
|
+
let authorization;
|
|
1130
|
+
let xSdkDate;
|
|
1131
|
+
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;
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
fileId = deleteFileRequest['file_id'];
|
|
1141
|
+
authorization = deleteFileRequest['Authorization'];
|
|
1142
|
+
xSdkDate = deleteFileRequest['X-Sdk-Date'];
|
|
1143
|
+
xAppUserId = deleteFileRequest['X-App-UserId'];
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
if (fileId === null || fileId === undefined) {
|
|
1147
|
+
throw new RequiredError('fileId', 'Required parameter fileId was null or undefined when calling deleteFile.');
|
|
1148
|
+
}
|
|
1149
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1150
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1151
|
+
}
|
|
1152
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1153
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1154
|
+
}
|
|
1155
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1156
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1157
|
+
}
|
|
1158
|
+
options.pathParams = { 'file_id': fileId, };
|
|
1159
|
+
options.headers = localVarHeaderParameter;
|
|
1160
|
+
return options;
|
|
1161
|
+
},
|
|
1162
|
+
/**
|
|
1163
|
+
* 该接口用于从URL中获取图片进行照片建模任务。
|
|
1164
|
+
*
|
|
1165
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1166
|
+
*/
|
|
1167
|
+
createPictureModelingByUrlJob(createPictureModelingByUrlJobRequest) {
|
|
1168
|
+
const options = {
|
|
1169
|
+
method: "POST",
|
|
1170
|
+
url: "/v1/{project_id}/digital-human/stylized/picture-modelings-by-url",
|
|
1171
|
+
contentType: "application/json",
|
|
1172
|
+
queryParams: {},
|
|
1173
|
+
pathParams: {},
|
|
1174
|
+
headers: {},
|
|
1175
|
+
data: {}
|
|
1176
|
+
};
|
|
1177
|
+
const localVarHeaderParameter = {};
|
|
1178
|
+
let body;
|
|
1179
|
+
let authorization;
|
|
1180
|
+
let xSdkDate;
|
|
1181
|
+
let xProjectId;
|
|
1182
|
+
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;
|
|
1190
|
+
}
|
|
1191
|
+
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'];
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
if (body === null || body === undefined) {
|
|
1200
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1201
|
+
}
|
|
1202
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1203
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1204
|
+
}
|
|
1205
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1206
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1207
|
+
}
|
|
1208
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1209
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1210
|
+
}
|
|
1211
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1212
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1213
|
+
}
|
|
1214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1215
|
+
options.data = body !== undefined ? body : {};
|
|
1216
|
+
options.headers = localVarHeaderParameter;
|
|
1217
|
+
return options;
|
|
1218
|
+
},
|
|
1219
|
+
/**
|
|
1220
|
+
* 该接口用于创建风格化照片建模任务。通过上传照片,生成风格化数字人模型。
|
|
1221
|
+
*
|
|
1222
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1223
|
+
*/
|
|
1224
|
+
createPictureModelingJob(createPictureModelingJobRequest) {
|
|
1225
|
+
var _a, _b, _c, _d;
|
|
1226
|
+
const options = {
|
|
1227
|
+
method: "POST",
|
|
1228
|
+
url: "/v1/{project_id}/digital-human/stylized/picture-modelings",
|
|
1229
|
+
contentType: "multipart/form-data",
|
|
1230
|
+
queryParams: {},
|
|
1231
|
+
pathParams: {},
|
|
1232
|
+
headers: {},
|
|
1233
|
+
data: {}
|
|
1234
|
+
};
|
|
1235
|
+
const localVarHeaderParameter = {};
|
|
1236
|
+
const localVarFormParams = new form_data_1.default();
|
|
1237
|
+
let file;
|
|
1238
|
+
let styleId;
|
|
1239
|
+
let name;
|
|
1240
|
+
let authorization;
|
|
1241
|
+
let xSdkDate;
|
|
1242
|
+
let xProjectId;
|
|
1243
|
+
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;
|
|
1257
|
+
}
|
|
1258
|
+
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'];
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
if (file === null || file === undefined) {
|
|
1271
|
+
throw new RequiredError('file', 'Required parameter file was null or undefined when calling createPictureModelingJob.');
|
|
1272
|
+
}
|
|
1273
|
+
if (styleId === null || styleId === undefined) {
|
|
1274
|
+
throw new RequiredError('styleId', 'Required parameter styleId was null or undefined when calling createPictureModelingJob.');
|
|
1275
|
+
}
|
|
1276
|
+
if (name === null || name === undefined) {
|
|
1277
|
+
throw new RequiredError('name', 'Required parameter name was null or undefined when calling createPictureModelingJob.');
|
|
1278
|
+
}
|
|
1279
|
+
if (styleId !== undefined) {
|
|
1280
|
+
localVarFormParams.append('style_id', styleId);
|
|
1281
|
+
}
|
|
1282
|
+
if (name !== undefined) {
|
|
1283
|
+
localVarFormParams.append('name', name);
|
|
1284
|
+
}
|
|
1285
|
+
if (notifyUrl !== undefined) {
|
|
1286
|
+
localVarFormParams.append('notify_url', notifyUrl);
|
|
1287
|
+
}
|
|
1288
|
+
if (file !== undefined) {
|
|
1289
|
+
localVarFormParams.append('file', file);
|
|
1290
|
+
}
|
|
1291
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1292
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1293
|
+
}
|
|
1294
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1295
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1296
|
+
}
|
|
1297
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1298
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1299
|
+
}
|
|
1300
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1301
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1302
|
+
}
|
|
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;
|
|
1309
|
+
options.headers = localVarHeaderParameter;
|
|
1310
|
+
return options;
|
|
1311
|
+
},
|
|
1312
|
+
/**
|
|
1313
|
+
* 该接口用于查询风格化照片建模任务列表。
|
|
1314
|
+
*
|
|
1315
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1316
|
+
*/
|
|
1317
|
+
listPictureModelingJobs(listPictureModelingJobsRequest) {
|
|
1318
|
+
const options = {
|
|
1319
|
+
method: "GET",
|
|
1320
|
+
url: "/v1/{project_id}/digital-human/stylized/picture-modelings",
|
|
1321
|
+
contentType: "application/json",
|
|
1322
|
+
queryParams: {},
|
|
1323
|
+
pathParams: {},
|
|
1324
|
+
headers: {}
|
|
1325
|
+
};
|
|
1326
|
+
const localVarHeaderParameter = {};
|
|
1327
|
+
const localVarQueryParameter = {};
|
|
1328
|
+
let authorization;
|
|
1329
|
+
let xSdkDate;
|
|
1330
|
+
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'];
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
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;
|
|
1387
|
+
}
|
|
1388
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1389
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1390
|
+
}
|
|
1391
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1392
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1393
|
+
}
|
|
1394
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1395
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1396
|
+
}
|
|
1397
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1398
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1399
|
+
}
|
|
1400
|
+
options.queryParams = localVarQueryParameter;
|
|
1401
|
+
options.headers = localVarHeaderParameter;
|
|
1402
|
+
return options;
|
|
1403
|
+
},
|
|
1404
|
+
/**
|
|
1405
|
+
* 该接口用于风格化查询照片建模任务详情。
|
|
1406
|
+
*
|
|
1407
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1408
|
+
*/
|
|
1409
|
+
showPictureModelingJob(showPictureModelingJobRequest) {
|
|
1410
|
+
const options = {
|
|
1411
|
+
method: "GET",
|
|
1412
|
+
url: "/v1/{project_id}/digital-human/stylized/picture-modelings/{job_id}",
|
|
1413
|
+
contentType: "application/json",
|
|
1414
|
+
queryParams: {},
|
|
1415
|
+
pathParams: {},
|
|
1416
|
+
headers: {}
|
|
1417
|
+
};
|
|
1418
|
+
const localVarHeaderParameter = {};
|
|
1419
|
+
let jobId;
|
|
1420
|
+
let authorization;
|
|
1421
|
+
let xSdkDate;
|
|
1422
|
+
let xProjectId;
|
|
1423
|
+
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;
|
|
1431
|
+
}
|
|
1432
|
+
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'];
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
if (jobId === null || jobId === undefined) {
|
|
1441
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showPictureModelingJob.');
|
|
1442
|
+
}
|
|
1443
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1444
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1445
|
+
}
|
|
1446
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1447
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1448
|
+
}
|
|
1449
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1450
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1451
|
+
}
|
|
1452
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1453
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1454
|
+
}
|
|
1455
|
+
options.pathParams = { 'job_id': jobId, };
|
|
1456
|
+
options.headers = localVarHeaderParameter;
|
|
1457
|
+
return options;
|
|
1458
|
+
},
|
|
1459
|
+
/**
|
|
1460
|
+
* 查询数字人风格列表
|
|
1461
|
+
*
|
|
1462
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1463
|
+
*/
|
|
1464
|
+
listStyles(listStylesRequest) {
|
|
1465
|
+
const options = {
|
|
1466
|
+
method: "GET",
|
|
1467
|
+
url: "/v1/{project_id}/styles",
|
|
1468
|
+
contentType: "application/json",
|
|
1469
|
+
queryParams: {},
|
|
1470
|
+
pathParams: {},
|
|
1471
|
+
headers: {}
|
|
1472
|
+
};
|
|
1473
|
+
const localVarHeaderParameter = {};
|
|
1474
|
+
const localVarQueryParameter = {};
|
|
1475
|
+
let authorization;
|
|
1476
|
+
let xSdkDate;
|
|
1477
|
+
let xProjectId;
|
|
1478
|
+
let xAppUserId;
|
|
1479
|
+
let offset;
|
|
1480
|
+
let limit;
|
|
1481
|
+
let state;
|
|
1482
|
+
let sortKey;
|
|
1483
|
+
let sortDir;
|
|
1484
|
+
let createUntil;
|
|
1485
|
+
let createSince;
|
|
1486
|
+
if (listStylesRequest !== null && listStylesRequest !== undefined) {
|
|
1487
|
+
if (listStylesRequest instanceof ListStylesRequest_1.ListStylesRequest) {
|
|
1488
|
+
authorization = listStylesRequest.authorization;
|
|
1489
|
+
xSdkDate = listStylesRequest.xSdkDate;
|
|
1490
|
+
xProjectId = listStylesRequest.xProjectId;
|
|
1491
|
+
xAppUserId = listStylesRequest.xAppUserId;
|
|
1492
|
+
offset = listStylesRequest.offset;
|
|
1493
|
+
limit = listStylesRequest.limit;
|
|
1494
|
+
state = listStylesRequest.state;
|
|
1495
|
+
sortKey = listStylesRequest.sortKey;
|
|
1496
|
+
sortDir = listStylesRequest.sortDir;
|
|
1497
|
+
createUntil = listStylesRequest.createUntil;
|
|
1498
|
+
createSince = listStylesRequest.createSince;
|
|
1499
|
+
}
|
|
1500
|
+
else {
|
|
1501
|
+
authorization = listStylesRequest['Authorization'];
|
|
1502
|
+
xSdkDate = listStylesRequest['X-Sdk-Date'];
|
|
1503
|
+
xProjectId = listStylesRequest['X-Project-Id'];
|
|
1504
|
+
xAppUserId = listStylesRequest['X-App-UserId'];
|
|
1505
|
+
offset = listStylesRequest['offset'];
|
|
1506
|
+
limit = listStylesRequest['limit'];
|
|
1507
|
+
state = listStylesRequest['state'];
|
|
1508
|
+
sortKey = listStylesRequest['sort_key'];
|
|
1509
|
+
sortDir = listStylesRequest['sort_dir'];
|
|
1510
|
+
createUntil = listStylesRequest['create_until'];
|
|
1511
|
+
createSince = listStylesRequest['create_since'];
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
if (offset !== null && offset !== undefined) {
|
|
1515
|
+
localVarQueryParameter['offset'] = offset;
|
|
1516
|
+
}
|
|
1517
|
+
if (limit !== null && limit !== undefined) {
|
|
1518
|
+
localVarQueryParameter['limit'] = limit;
|
|
1519
|
+
}
|
|
1520
|
+
if (state !== null && state !== undefined) {
|
|
1521
|
+
localVarQueryParameter['state'] = state;
|
|
1522
|
+
}
|
|
1523
|
+
if (sortKey !== null && sortKey !== undefined) {
|
|
1524
|
+
localVarQueryParameter['sort_key'] = sortKey;
|
|
1525
|
+
}
|
|
1526
|
+
if (sortDir !== null && sortDir !== undefined) {
|
|
1527
|
+
localVarQueryParameter['sort_dir'] = sortDir;
|
|
1528
|
+
}
|
|
1529
|
+
if (createUntil !== null && createUntil !== undefined) {
|
|
1530
|
+
localVarQueryParameter['create_until'] = createUntil;
|
|
1531
|
+
}
|
|
1532
|
+
if (createSince !== null && createSince !== undefined) {
|
|
1533
|
+
localVarQueryParameter['create_since'] = createSince;
|
|
1534
|
+
}
|
|
1535
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1536
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1537
|
+
}
|
|
1538
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1539
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1540
|
+
}
|
|
1541
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1542
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1543
|
+
}
|
|
1544
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1545
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1546
|
+
}
|
|
1547
|
+
options.queryParams = localVarQueryParameter;
|
|
1548
|
+
options.headers = localVarHeaderParameter;
|
|
1549
|
+
return options;
|
|
1550
|
+
},
|
|
1551
|
+
/**
|
|
1552
|
+
* 该接口用于创建驱动数字人表情、动作及语音的任务。
|
|
1553
|
+
*
|
|
1554
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1555
|
+
*/
|
|
1556
|
+
createTtsa(createTtsaRequest) {
|
|
1557
|
+
const options = {
|
|
1558
|
+
method: "POST",
|
|
1559
|
+
url: "/v1/{project_id}/ttsa-jobs",
|
|
1560
|
+
contentType: "application/json",
|
|
1561
|
+
queryParams: {},
|
|
1562
|
+
pathParams: {},
|
|
1563
|
+
headers: {},
|
|
1564
|
+
data: {}
|
|
1565
|
+
};
|
|
1566
|
+
const localVarHeaderParameter = {};
|
|
1567
|
+
let body;
|
|
1568
|
+
let authorization;
|
|
1569
|
+
let xSdkDate;
|
|
1570
|
+
let xProjectId;
|
|
1571
|
+
let xAppUserId;
|
|
1572
|
+
let xUserPrivilege;
|
|
1573
|
+
if (createTtsaRequest !== null && createTtsaRequest !== undefined) {
|
|
1574
|
+
if (createTtsaRequest instanceof CreateTtsaRequest_1.CreateTtsaRequest) {
|
|
1575
|
+
body = createTtsaRequest.body;
|
|
1576
|
+
authorization = createTtsaRequest.authorization;
|
|
1577
|
+
xSdkDate = createTtsaRequest.xSdkDate;
|
|
1578
|
+
xProjectId = createTtsaRequest.xProjectId;
|
|
1579
|
+
xAppUserId = createTtsaRequest.xAppUserId;
|
|
1580
|
+
xUserPrivilege = createTtsaRequest.xUserPrivilege;
|
|
1581
|
+
}
|
|
1582
|
+
else {
|
|
1583
|
+
body = createTtsaRequest['body'];
|
|
1584
|
+
authorization = createTtsaRequest['Authorization'];
|
|
1585
|
+
xSdkDate = createTtsaRequest['X-Sdk-Date'];
|
|
1586
|
+
xProjectId = createTtsaRequest['X-Project-Id'];
|
|
1587
|
+
xAppUserId = createTtsaRequest['X-App-UserId'];
|
|
1588
|
+
xUserPrivilege = createTtsaRequest['X-User-Privilege'];
|
|
1589
|
+
}
|
|
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 (xProjectId !== undefined && xProjectId !== null) {
|
|
1601
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1602
|
+
}
|
|
1603
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1604
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1605
|
+
}
|
|
1606
|
+
if (xUserPrivilege !== undefined && xUserPrivilege !== null) {
|
|
1607
|
+
localVarHeaderParameter['X-User-Privilege'] = String(xUserPrivilege);
|
|
1608
|
+
}
|
|
1609
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1610
|
+
options.data = body !== undefined ? body : {};
|
|
1611
|
+
options.headers = localVarHeaderParameter;
|
|
1612
|
+
return options;
|
|
1613
|
+
},
|
|
1614
|
+
/**
|
|
1615
|
+
* 该接口用于获取生成的数字人驱动数据,包括语音、表情、动作等。
|
|
1616
|
+
*
|
|
1617
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1618
|
+
*/
|
|
1619
|
+
listTtsaData(listTtsaDataRequest) {
|
|
1620
|
+
const options = {
|
|
1621
|
+
method: "GET",
|
|
1622
|
+
url: "/v1/{project_id}/ttsa-jobs/{job_id}",
|
|
1623
|
+
contentType: "application/json",
|
|
1624
|
+
queryParams: {},
|
|
1625
|
+
pathParams: {},
|
|
1626
|
+
headers: {}
|
|
1627
|
+
};
|
|
1628
|
+
const localVarHeaderParameter = {};
|
|
1629
|
+
const localVarQueryParameter = {};
|
|
1630
|
+
let jobId;
|
|
1631
|
+
let authorization;
|
|
1632
|
+
let xSdkDate;
|
|
1633
|
+
let xProjectId;
|
|
1634
|
+
let offset;
|
|
1635
|
+
if (listTtsaDataRequest !== null && listTtsaDataRequest !== undefined) {
|
|
1636
|
+
if (listTtsaDataRequest instanceof ListTtsaDataRequest_1.ListTtsaDataRequest) {
|
|
1637
|
+
jobId = listTtsaDataRequest.jobId;
|
|
1638
|
+
authorization = listTtsaDataRequest.authorization;
|
|
1639
|
+
xSdkDate = listTtsaDataRequest.xSdkDate;
|
|
1640
|
+
xProjectId = listTtsaDataRequest.xProjectId;
|
|
1641
|
+
offset = listTtsaDataRequest.offset;
|
|
1642
|
+
}
|
|
1643
|
+
else {
|
|
1644
|
+
jobId = listTtsaDataRequest['job_id'];
|
|
1645
|
+
authorization = listTtsaDataRequest['Authorization'];
|
|
1646
|
+
xSdkDate = listTtsaDataRequest['X-Sdk-Date'];
|
|
1647
|
+
xProjectId = listTtsaDataRequest['X-Project-Id'];
|
|
1648
|
+
offset = listTtsaDataRequest['offset'];
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
if (jobId === null || jobId === undefined) {
|
|
1652
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listTtsaData.');
|
|
1653
|
+
}
|
|
1654
|
+
if (offset !== null && offset !== undefined) {
|
|
1655
|
+
localVarQueryParameter['offset'] = offset;
|
|
1656
|
+
}
|
|
1657
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1658
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1659
|
+
}
|
|
1660
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1661
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1662
|
+
}
|
|
1663
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1664
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1665
|
+
}
|
|
1666
|
+
options.queryParams = localVarQueryParameter;
|
|
1667
|
+
options.pathParams = { 'job_id': jobId, };
|
|
1668
|
+
options.headers = localVarHeaderParameter;
|
|
1669
|
+
return options;
|
|
1670
|
+
},
|
|
1671
|
+
/**
|
|
1672
|
+
* 该接口用于查询驱动数字人表情、动作及语音的任务列表。
|
|
1673
|
+
*
|
|
1674
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1675
|
+
*/
|
|
1676
|
+
listTtsaJobs(listTtsaJobsRequest) {
|
|
1677
|
+
const options = {
|
|
1678
|
+
method: "GET",
|
|
1679
|
+
url: "/v1/{project_id}/ttsa-jobs",
|
|
1680
|
+
contentType: "application/json",
|
|
1681
|
+
queryParams: {},
|
|
1682
|
+
pathParams: {},
|
|
1683
|
+
headers: {}
|
|
1684
|
+
};
|
|
1685
|
+
const localVarHeaderParameter = {};
|
|
1686
|
+
const localVarQueryParameter = {};
|
|
1687
|
+
let authorization;
|
|
1688
|
+
let xSdkDate;
|
|
1689
|
+
let xProjectId;
|
|
1690
|
+
let offset;
|
|
1691
|
+
let limit;
|
|
1692
|
+
let xAppUserId;
|
|
1693
|
+
if (listTtsaJobsRequest !== null && listTtsaJobsRequest !== undefined) {
|
|
1694
|
+
if (listTtsaJobsRequest instanceof ListTtsaJobsRequest_1.ListTtsaJobsRequest) {
|
|
1695
|
+
authorization = listTtsaJobsRequest.authorization;
|
|
1696
|
+
xSdkDate = listTtsaJobsRequest.xSdkDate;
|
|
1697
|
+
xProjectId = listTtsaJobsRequest.xProjectId;
|
|
1698
|
+
offset = listTtsaJobsRequest.offset;
|
|
1699
|
+
limit = listTtsaJobsRequest.limit;
|
|
1700
|
+
xAppUserId = listTtsaJobsRequest.xAppUserId;
|
|
1701
|
+
}
|
|
1702
|
+
else {
|
|
1703
|
+
authorization = listTtsaJobsRequest['Authorization'];
|
|
1704
|
+
xSdkDate = listTtsaJobsRequest['X-Sdk-Date'];
|
|
1705
|
+
xProjectId = listTtsaJobsRequest['X-Project-Id'];
|
|
1706
|
+
offset = listTtsaJobsRequest['offset'];
|
|
1707
|
+
limit = listTtsaJobsRequest['limit'];
|
|
1708
|
+
xAppUserId = listTtsaJobsRequest['X-App-UserId'];
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
if (offset !== null && offset !== undefined) {
|
|
1712
|
+
localVarQueryParameter['offset'] = offset;
|
|
1713
|
+
}
|
|
1714
|
+
if (limit !== null && limit !== undefined) {
|
|
1715
|
+
localVarQueryParameter['limit'] = limit;
|
|
1716
|
+
}
|
|
1717
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1718
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1719
|
+
}
|
|
1720
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1721
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1722
|
+
}
|
|
1723
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1724
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1725
|
+
}
|
|
1726
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1727
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1728
|
+
}
|
|
1729
|
+
options.queryParams = localVarQueryParameter;
|
|
1730
|
+
options.headers = localVarHeaderParameter;
|
|
1731
|
+
return options;
|
|
1732
|
+
},
|
|
1733
|
+
/**
|
|
1734
|
+
* 该接口用于创建视频驱动任务。
|
|
1735
|
+
*
|
|
1736
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1737
|
+
*/
|
|
1738
|
+
createVideoMotionCaptureJob(createVideoMotionCaptureJobRequest) {
|
|
1739
|
+
const options = {
|
|
1740
|
+
method: "POST",
|
|
1741
|
+
url: "/v1/{project_id}/video-motion-capture-jobs",
|
|
1742
|
+
contentType: "application/json",
|
|
1743
|
+
queryParams: {},
|
|
1744
|
+
pathParams: {},
|
|
1745
|
+
headers: {},
|
|
1746
|
+
data: {}
|
|
1747
|
+
};
|
|
1748
|
+
const localVarHeaderParameter = {};
|
|
1749
|
+
let body;
|
|
1750
|
+
let authorization;
|
|
1751
|
+
let xSdkDate;
|
|
1752
|
+
let xProjectId;
|
|
1753
|
+
let xAppUserId;
|
|
1754
|
+
let xUserPrivilege;
|
|
1755
|
+
if (createVideoMotionCaptureJobRequest !== null && createVideoMotionCaptureJobRequest !== undefined) {
|
|
1756
|
+
if (createVideoMotionCaptureJobRequest instanceof CreateVideoMotionCaptureJobRequest_1.CreateVideoMotionCaptureJobRequest) {
|
|
1757
|
+
body = createVideoMotionCaptureJobRequest.body;
|
|
1758
|
+
authorization = createVideoMotionCaptureJobRequest.authorization;
|
|
1759
|
+
xSdkDate = createVideoMotionCaptureJobRequest.xSdkDate;
|
|
1760
|
+
xProjectId = createVideoMotionCaptureJobRequest.xProjectId;
|
|
1761
|
+
xAppUserId = createVideoMotionCaptureJobRequest.xAppUserId;
|
|
1762
|
+
xUserPrivilege = createVideoMotionCaptureJobRequest.xUserPrivilege;
|
|
1763
|
+
}
|
|
1764
|
+
else {
|
|
1765
|
+
body = createVideoMotionCaptureJobRequest['body'];
|
|
1766
|
+
authorization = createVideoMotionCaptureJobRequest['Authorization'];
|
|
1767
|
+
xSdkDate = createVideoMotionCaptureJobRequest['X-Sdk-Date'];
|
|
1768
|
+
xProjectId = createVideoMotionCaptureJobRequest['X-Project-Id'];
|
|
1769
|
+
xAppUserId = createVideoMotionCaptureJobRequest['X-App-UserId'];
|
|
1770
|
+
xUserPrivilege = createVideoMotionCaptureJobRequest['X-User-Privilege'];
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
if (body === null || body === undefined) {
|
|
1774
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1775
|
+
}
|
|
1776
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1777
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1778
|
+
}
|
|
1779
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1780
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1781
|
+
}
|
|
1782
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1783
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1784
|
+
}
|
|
1785
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1786
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1787
|
+
}
|
|
1788
|
+
if (xUserPrivilege !== undefined && xUserPrivilege !== null) {
|
|
1789
|
+
localVarHeaderParameter['X-User-Privilege'] = String(xUserPrivilege);
|
|
1790
|
+
}
|
|
1791
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1792
|
+
options.data = body !== undefined ? body : {};
|
|
1793
|
+
options.headers = localVarHeaderParameter;
|
|
1794
|
+
return options;
|
|
1795
|
+
},
|
|
1796
|
+
/**
|
|
1797
|
+
* 该接口用于控制数字人驱动。
|
|
1798
|
+
*
|
|
1799
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1800
|
+
*/
|
|
1801
|
+
executeVideoMotionCaptureCommand(executeVideoMotionCaptureCommandRequest) {
|
|
1802
|
+
const options = {
|
|
1803
|
+
method: "POST",
|
|
1804
|
+
url: "/v1/{project_id}/video-motion-capture-jobs/{job_id}/command",
|
|
1805
|
+
contentType: "application/json",
|
|
1806
|
+
queryParams: {},
|
|
1807
|
+
pathParams: {},
|
|
1808
|
+
headers: {},
|
|
1809
|
+
data: {}
|
|
1810
|
+
};
|
|
1811
|
+
const localVarHeaderParameter = {};
|
|
1812
|
+
let body;
|
|
1813
|
+
let jobId;
|
|
1814
|
+
let authorization;
|
|
1815
|
+
let xSdkDate;
|
|
1816
|
+
let xProjectId;
|
|
1817
|
+
let xAppUserId;
|
|
1818
|
+
if (executeVideoMotionCaptureCommandRequest !== null && executeVideoMotionCaptureCommandRequest !== undefined) {
|
|
1819
|
+
if (executeVideoMotionCaptureCommandRequest instanceof ExecuteVideoMotionCaptureCommandRequest_1.ExecuteVideoMotionCaptureCommandRequest) {
|
|
1820
|
+
jobId = executeVideoMotionCaptureCommandRequest.jobId;
|
|
1821
|
+
body = executeVideoMotionCaptureCommandRequest.body;
|
|
1822
|
+
authorization = executeVideoMotionCaptureCommandRequest.authorization;
|
|
1823
|
+
xSdkDate = executeVideoMotionCaptureCommandRequest.xSdkDate;
|
|
1824
|
+
xProjectId = executeVideoMotionCaptureCommandRequest.xProjectId;
|
|
1825
|
+
xAppUserId = executeVideoMotionCaptureCommandRequest.xAppUserId;
|
|
1826
|
+
}
|
|
1827
|
+
else {
|
|
1828
|
+
jobId = executeVideoMotionCaptureCommandRequest['job_id'];
|
|
1829
|
+
body = executeVideoMotionCaptureCommandRequest['body'];
|
|
1830
|
+
authorization = executeVideoMotionCaptureCommandRequest['Authorization'];
|
|
1831
|
+
xSdkDate = executeVideoMotionCaptureCommandRequest['X-Sdk-Date'];
|
|
1832
|
+
xProjectId = executeVideoMotionCaptureCommandRequest['X-Project-Id'];
|
|
1833
|
+
xAppUserId = executeVideoMotionCaptureCommandRequest['X-App-UserId'];
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
if (jobId === null || jobId === undefined) {
|
|
1837
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling executeVideoMotionCaptureCommand.');
|
|
1838
|
+
}
|
|
1839
|
+
if (body === null || body === undefined) {
|
|
1840
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1841
|
+
}
|
|
1842
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1843
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1844
|
+
}
|
|
1845
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1846
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1847
|
+
}
|
|
1848
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1849
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1850
|
+
}
|
|
1851
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1852
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1853
|
+
}
|
|
1854
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1855
|
+
options.data = body !== undefined ? body : {};
|
|
1856
|
+
options.pathParams = { 'job_id': jobId, };
|
|
1857
|
+
options.headers = localVarHeaderParameter;
|
|
1858
|
+
return options;
|
|
1859
|
+
},
|
|
1860
|
+
/**
|
|
1861
|
+
* 该接口用于查询视频驱动任务列表。
|
|
1862
|
+
*
|
|
1863
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1864
|
+
*/
|
|
1865
|
+
listVideoMotionCaptureJobs(listVideoMotionCaptureJobsRequest) {
|
|
1866
|
+
const options = {
|
|
1867
|
+
method: "GET",
|
|
1868
|
+
url: "/v1/{project_id}/video-motion-capture-jobs",
|
|
1869
|
+
contentType: "application/json",
|
|
1870
|
+
queryParams: {},
|
|
1871
|
+
pathParams: {},
|
|
1872
|
+
headers: {}
|
|
1873
|
+
};
|
|
1874
|
+
const localVarHeaderParameter = {};
|
|
1875
|
+
const localVarQueryParameter = {};
|
|
1876
|
+
let authorization;
|
|
1877
|
+
let xSdkDate;
|
|
1878
|
+
let xProjectId;
|
|
1879
|
+
let xAppUserId;
|
|
1880
|
+
let offset;
|
|
1881
|
+
let limit;
|
|
1882
|
+
if (listVideoMotionCaptureJobsRequest !== null && listVideoMotionCaptureJobsRequest !== undefined) {
|
|
1883
|
+
if (listVideoMotionCaptureJobsRequest instanceof ListVideoMotionCaptureJobsRequest_1.ListVideoMotionCaptureJobsRequest) {
|
|
1884
|
+
authorization = listVideoMotionCaptureJobsRequest.authorization;
|
|
1885
|
+
xSdkDate = listVideoMotionCaptureJobsRequest.xSdkDate;
|
|
1886
|
+
xProjectId = listVideoMotionCaptureJobsRequest.xProjectId;
|
|
1887
|
+
xAppUserId = listVideoMotionCaptureJobsRequest.xAppUserId;
|
|
1888
|
+
offset = listVideoMotionCaptureJobsRequest.offset;
|
|
1889
|
+
limit = listVideoMotionCaptureJobsRequest.limit;
|
|
1890
|
+
}
|
|
1891
|
+
else {
|
|
1892
|
+
authorization = listVideoMotionCaptureJobsRequest['Authorization'];
|
|
1893
|
+
xSdkDate = listVideoMotionCaptureJobsRequest['X-Sdk-Date'];
|
|
1894
|
+
xProjectId = listVideoMotionCaptureJobsRequest['X-Project-Id'];
|
|
1895
|
+
xAppUserId = listVideoMotionCaptureJobsRequest['X-App-UserId'];
|
|
1896
|
+
offset = listVideoMotionCaptureJobsRequest['offset'];
|
|
1897
|
+
limit = listVideoMotionCaptureJobsRequest['limit'];
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
if (offset !== null && offset !== undefined) {
|
|
1901
|
+
localVarQueryParameter['offset'] = offset;
|
|
1902
|
+
}
|
|
1903
|
+
if (limit !== null && limit !== undefined) {
|
|
1904
|
+
localVarQueryParameter['limit'] = limit;
|
|
1905
|
+
}
|
|
1906
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1907
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1908
|
+
}
|
|
1909
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1910
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1911
|
+
}
|
|
1912
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1913
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1914
|
+
}
|
|
1915
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1916
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1917
|
+
}
|
|
1918
|
+
options.queryParams = localVarQueryParameter;
|
|
1919
|
+
options.headers = localVarHeaderParameter;
|
|
1920
|
+
return options;
|
|
1921
|
+
},
|
|
1922
|
+
/**
|
|
1923
|
+
* 该接口用于查询视频驱动任务详情。
|
|
1924
|
+
*
|
|
1925
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1926
|
+
*/
|
|
1927
|
+
showVideoMotionCaptureJob(showVideoMotionCaptureJobRequest) {
|
|
1928
|
+
const options = {
|
|
1929
|
+
method: "GET",
|
|
1930
|
+
url: "/v1/{project_id}/video-motion-capture-jobs/{job_id}",
|
|
1931
|
+
contentType: "application/json",
|
|
1932
|
+
queryParams: {},
|
|
1933
|
+
pathParams: {},
|
|
1934
|
+
headers: {}
|
|
1935
|
+
};
|
|
1936
|
+
const localVarHeaderParameter = {};
|
|
1937
|
+
let jobId;
|
|
1938
|
+
let authorization;
|
|
1939
|
+
let xSdkDate;
|
|
1940
|
+
let xProjectId;
|
|
1941
|
+
let xAppUserId;
|
|
1942
|
+
if (showVideoMotionCaptureJobRequest !== null && showVideoMotionCaptureJobRequest !== undefined) {
|
|
1943
|
+
if (showVideoMotionCaptureJobRequest instanceof ShowVideoMotionCaptureJobRequest_1.ShowVideoMotionCaptureJobRequest) {
|
|
1944
|
+
jobId = showVideoMotionCaptureJobRequest.jobId;
|
|
1945
|
+
authorization = showVideoMotionCaptureJobRequest.authorization;
|
|
1946
|
+
xSdkDate = showVideoMotionCaptureJobRequest.xSdkDate;
|
|
1947
|
+
xProjectId = showVideoMotionCaptureJobRequest.xProjectId;
|
|
1948
|
+
xAppUserId = showVideoMotionCaptureJobRequest.xAppUserId;
|
|
1949
|
+
}
|
|
1950
|
+
else {
|
|
1951
|
+
jobId = showVideoMotionCaptureJobRequest['job_id'];
|
|
1952
|
+
authorization = showVideoMotionCaptureJobRequest['Authorization'];
|
|
1953
|
+
xSdkDate = showVideoMotionCaptureJobRequest['X-Sdk-Date'];
|
|
1954
|
+
xProjectId = showVideoMotionCaptureJobRequest['X-Project-Id'];
|
|
1955
|
+
xAppUserId = showVideoMotionCaptureJobRequest['X-App-UserId'];
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
if (jobId === null || jobId === undefined) {
|
|
1959
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showVideoMotionCaptureJob.');
|
|
1960
|
+
}
|
|
1961
|
+
if (authorization !== undefined && authorization !== null) {
|
|
1962
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
1963
|
+
}
|
|
1964
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
1965
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
1966
|
+
}
|
|
1967
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
1968
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
1969
|
+
}
|
|
1970
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
1971
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
1972
|
+
}
|
|
1973
|
+
options.pathParams = { 'job_id': jobId, };
|
|
1974
|
+
options.headers = localVarHeaderParameter;
|
|
1975
|
+
return options;
|
|
1976
|
+
},
|
|
1977
|
+
/**
|
|
1978
|
+
* 该接口用于停止视频驱动任务。
|
|
1979
|
+
*
|
|
1980
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1981
|
+
*/
|
|
1982
|
+
stopVideoMotionCaptureJob(stopVideoMotionCaptureJobRequest) {
|
|
1983
|
+
const options = {
|
|
1984
|
+
method: "POST",
|
|
1985
|
+
url: "/v1/{project_id}/video-motion-capture-jobs/{job_id}/finish",
|
|
1986
|
+
contentType: "application/json",
|
|
1987
|
+
queryParams: {},
|
|
1988
|
+
pathParams: {},
|
|
1989
|
+
headers: {}
|
|
1990
|
+
};
|
|
1991
|
+
const localVarHeaderParameter = {};
|
|
1992
|
+
let jobId;
|
|
1993
|
+
let authorization;
|
|
1994
|
+
let xSdkDate;
|
|
1995
|
+
let xProjectId;
|
|
1996
|
+
let xAppUserId;
|
|
1997
|
+
if (stopVideoMotionCaptureJobRequest !== null && stopVideoMotionCaptureJobRequest !== undefined) {
|
|
1998
|
+
if (stopVideoMotionCaptureJobRequest instanceof StopVideoMotionCaptureJobRequest_1.StopVideoMotionCaptureJobRequest) {
|
|
1999
|
+
jobId = stopVideoMotionCaptureJobRequest.jobId;
|
|
2000
|
+
authorization = stopVideoMotionCaptureJobRequest.authorization;
|
|
2001
|
+
xSdkDate = stopVideoMotionCaptureJobRequest.xSdkDate;
|
|
2002
|
+
xProjectId = stopVideoMotionCaptureJobRequest.xProjectId;
|
|
2003
|
+
xAppUserId = stopVideoMotionCaptureJobRequest.xAppUserId;
|
|
2004
|
+
}
|
|
2005
|
+
else {
|
|
2006
|
+
jobId = stopVideoMotionCaptureJobRequest['job_id'];
|
|
2007
|
+
authorization = stopVideoMotionCaptureJobRequest['Authorization'];
|
|
2008
|
+
xSdkDate = stopVideoMotionCaptureJobRequest['X-Sdk-Date'];
|
|
2009
|
+
xProjectId = stopVideoMotionCaptureJobRequest['X-Project-Id'];
|
|
2010
|
+
xAppUserId = stopVideoMotionCaptureJobRequest['X-App-UserId'];
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
if (jobId === null || jobId === undefined) {
|
|
2014
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling stopVideoMotionCaptureJob.');
|
|
2015
|
+
}
|
|
2016
|
+
if (authorization !== undefined && authorization !== null) {
|
|
2017
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
2018
|
+
}
|
|
2019
|
+
if (xSdkDate !== undefined && xSdkDate !== null) {
|
|
2020
|
+
localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate);
|
|
2021
|
+
}
|
|
2022
|
+
if (xProjectId !== undefined && xProjectId !== null) {
|
|
2023
|
+
localVarHeaderParameter['X-Project-Id'] = String(xProjectId);
|
|
2024
|
+
}
|
|
2025
|
+
if (xAppUserId !== undefined && xAppUserId !== null) {
|
|
2026
|
+
localVarHeaderParameter['X-App-UserId'] = String(xAppUserId);
|
|
2027
|
+
}
|
|
2028
|
+
options.pathParams = { 'job_id': jobId, };
|
|
2029
|
+
options.headers = localVarHeaderParameter;
|
|
2030
|
+
return options;
|
|
2031
|
+
},
|
|
2032
|
+
};
|
|
2033
|
+
};
|
|
2034
|
+
exports.ParamCreater = ParamCreater;
|
|
2035
|
+
function newClient(client) {
|
|
2036
|
+
return new MetaStudioClient(client);
|
|
2037
|
+
}
|
|
2038
|
+
/**
|
|
2039
|
+
*
|
|
2040
|
+
* @export
|
|
2041
|
+
* @class RequiredError
|
|
2042
|
+
* @extends {Error}
|
|
2043
|
+
*/
|
|
2044
|
+
class RequiredError extends Error {
|
|
2045
|
+
constructor(field, msg) {
|
|
2046
|
+
super(msg);
|
|
2047
|
+
this.field = field;
|
|
2048
|
+
this.name = "RequiredError";
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
exports.RequiredError = RequiredError;
|
|
2052
|
+
//# sourceMappingURL=MetaStudioClient.js.map
|