|
|
|
@ -23,6 +23,7 @@ type JobInput struct {
|
|
|
|
|
Key string `xml:"Key"`
|
|
|
|
|
Value string `xml:"Value"`
|
|
|
|
|
} `xml:"CosHeaders"`
|
|
|
|
|
Url string `xml:"Url,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// StreamExtract TODO
|
|
|
|
@ -38,6 +39,8 @@ type JobOutput struct {
|
|
|
|
|
Object string `xml:"Object,omitempty"`
|
|
|
|
|
SpriteObject string `xml:"SpriteObject,omitempty"`
|
|
|
|
|
AuObject string `xml:"AuObject,omitempty"`
|
|
|
|
|
BassObject string `xml:"BassObject,omitempty"`
|
|
|
|
|
DrumObject string `xml:"DrumObject,omitempty"`
|
|
|
|
|
StreamExtract []StreamExtract `xml:"StreamExtract,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -339,9 +342,12 @@ type HlsEncrypt struct {
|
|
|
|
|
|
|
|
|
|
// Segment TODO
|
|
|
|
|
type Segment struct {
|
|
|
|
|
Format string `xml:"Format,omitempty"`
|
|
|
|
|
Duration string `xml:"Duration,omitempty"`
|
|
|
|
|
HlsEncrypt *HlsEncrypt `xml:"HlsEncrypt,omitempty"`
|
|
|
|
|
Format string `xml:"Format,omitempty"`
|
|
|
|
|
Duration string `xml:"Duration,omitempty"`
|
|
|
|
|
TranscodeIndex string `xml:"TranscodeIndex,omitempty"`
|
|
|
|
|
HlsEncrypt *HlsEncrypt `xml:"HlsEncrypt,omitempty"`
|
|
|
|
|
StartTime string `xml:"StartTime,omitempty"`
|
|
|
|
|
EndTime string `xml:"EndTime,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// VideoMontageVideo TODO
|
|
|
|
@ -731,6 +737,12 @@ type MediaProcessJobOperation struct {
|
|
|
|
|
SoundHoundResult *SoundHoundResult `xml:"SoundHoundResult,omitempty"`
|
|
|
|
|
FillConcat *FillConcat `xml:"FillConcat,omitempty"`
|
|
|
|
|
VideoSynthesis *VideoSynthesis `xml:"VideoSynthesis,omitempty"`
|
|
|
|
|
DnaConfig *DnaConfig `xml:"DnaConfig,omitempty"`
|
|
|
|
|
DnaResult *DnaResult `xml:"DnaResult,omitempty"`
|
|
|
|
|
VocalScore *VocalScore `xml:"VocalScore,omitempty"`
|
|
|
|
|
VocalScoreResult *VocalScoreResult `xml:"VocalScoreResult,omitempty"`
|
|
|
|
|
ImageInspect *ImageInspect `xml:"ImageInspect,omitempty"`
|
|
|
|
|
ImageInspectResult *ImageInspectResult `xml:"ImageInspectResult,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CreatePicJobsOptions TODO
|
|
|
|
@ -1587,11 +1599,14 @@ type NodeInput struct {
|
|
|
|
|
|
|
|
|
|
// NodeOutput TODO
|
|
|
|
|
type NodeOutput struct {
|
|
|
|
|
Region string `xml:"Region,omitempty"`
|
|
|
|
|
Bucket string `xml:"Bucket,omitempty"`
|
|
|
|
|
Object string `xml:"Object,omitempty"`
|
|
|
|
|
AuObject string `xml:"AuObject,omitempty"`
|
|
|
|
|
SpriteObject string `xml:"SpriteObject,omitempty"`
|
|
|
|
|
Region string `xml:"Region,omitempty"`
|
|
|
|
|
Bucket string `xml:"Bucket,omitempty"`
|
|
|
|
|
Object string `xml:"Object,omitempty"`
|
|
|
|
|
AuObject string `xml:"AuObject,omitempty"`
|
|
|
|
|
SpriteObject string `xml:"SpriteObject,omitempty"`
|
|
|
|
|
BassObject string `xml:"BassObject,omitempty"`
|
|
|
|
|
DrumObject string `xml:"DrumObject,omitempty"`
|
|
|
|
|
StreamExtract []StreamExtract `xml:"StreamExtract,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DelogoParam TODO
|
|
|
|
@ -1639,6 +1654,10 @@ type SegmentVideoBody struct {
|
|
|
|
|
BackgroundRed string `xml:"BackgroundRed,omitempty"`
|
|
|
|
|
BackgroundGreen string `xml:"BackgroundGreen,omitempty"`
|
|
|
|
|
BackgroundLogoUrl string `xml:"BackgroundLogoUrl,omitempty"`
|
|
|
|
|
BinaryThreshold string `xml:"BinaryThreshold,omitempty"`
|
|
|
|
|
RemoveRed string `xml:"RemoveRed,omitempty"`
|
|
|
|
|
RemoveGreen string `xml:"RemoveGreen,omitempty"`
|
|
|
|
|
RemoveBlue string `xml:"RemoveBlue,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// NodeSmartCover TODO
|
|
|
|
@ -1680,6 +1699,7 @@ type NodeOperation struct {
|
|
|
|
|
StreamPackInfo *NodeHlsPackInfo `xml:"StreamPackInfo,omitempty" json:"StreamPackInfo,omitempty"`
|
|
|
|
|
Condition *WorkflowNodeCondition `xml:"Condition,omitempty" json:"Condition,omitempty"`
|
|
|
|
|
SegmentVideoBody *SegmentVideoBody `xml:"SegmentVideoBody,omitempty" json:"SegmentVideoBody,omitempty"`
|
|
|
|
|
ImageInspect *ImageInspect `xml:"ImageInspect,omitempty" json:"ImageInspect,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Node TODO
|
|
|
|
@ -3053,6 +3073,12 @@ type InventoryTriggerJobOperationJobParam struct {
|
|
|
|
|
WordsGeneralize *WordsGeneralize `xml:"WordsGeneralize,omitempty"`
|
|
|
|
|
WordsGeneralizeResult *WordsGeneralizeResult `xml:"WordsGeneralizeResult,omitempty"`
|
|
|
|
|
NoiseReduction *NoiseReduction `xml:"NoiseReduction,omitempty"`
|
|
|
|
|
DnaConfig *DnaConfig `xml:"DnaConfig,omitempty"`
|
|
|
|
|
DnaResult *DnaResult `xml:"DnaResult,omitempty"`
|
|
|
|
|
VocalScore *VocalScore `xml:"VocalScore,omitempty"`
|
|
|
|
|
VocalScoreResult *VocalScoreResult `xml:"VocalScoreResult,omitempty"`
|
|
|
|
|
ImageInspect *ImageInspect `xml:"ImageInspect,omitempty"`
|
|
|
|
|
ImageInspectResult *ImageInspectResult `xml:"ImageInspectResult,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// InventoryTriggerJob TODO
|
|
|
|
@ -3429,3 +3455,189 @@ type VideoSynthesisSpliceInfo struct {
|
|
|
|
|
Width string `xml:"Width,omitempty"`
|
|
|
|
|
Height string `xml:"Height,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DnaConfig DNA任务配置
|
|
|
|
|
type DnaConfig struct {
|
|
|
|
|
RuleType string `xml:"RuleType,omitempty"`
|
|
|
|
|
DnaDbId string `xml:"DnaDbId,omitempty"`
|
|
|
|
|
VideoId string `xml:"VideoId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DnaResult DNA任务结果
|
|
|
|
|
type DnaResult struct {
|
|
|
|
|
VideoId string `xml:"VideoId,omitempty"`
|
|
|
|
|
Duration int `xml:"Duration,omitempty"`
|
|
|
|
|
Detection *DnaResultDetection `xml:"Detection,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DnaResultDetection DNA任务结果
|
|
|
|
|
type DnaResultDetection struct {
|
|
|
|
|
VideoId string `xml:"VideoId,omitempty"`
|
|
|
|
|
Similar int `xml:"Similar,omitempty"`
|
|
|
|
|
SimilarDuration int `xml:"SimilarDuration,omitempty"`
|
|
|
|
|
Duration int `xml:"Duration,omitempty"`
|
|
|
|
|
MatchDetail []DnaResultMatchDetail `xml:"MatchDetail,omitempty"`
|
|
|
|
|
Audio DnaResultAudio `xml:"Audio,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DnaResultDetection DNA任务结果
|
|
|
|
|
type DnaResultMatchDetail struct {
|
|
|
|
|
MatchStartTime int `xml:"MatchStartTime,omitempty"`
|
|
|
|
|
MatchEndTime int `xml:"MatchEndTime,omitempty"`
|
|
|
|
|
SrcStartTime int `xml:"SrcStartTime,omitempty"`
|
|
|
|
|
SrcEndTime int `xml:"SrcEndTime,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DnaResultAudio DNA任务结果
|
|
|
|
|
type DnaResultAudio struct {
|
|
|
|
|
Similar int `xml:"Similar,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDnaDbOptions 查询 DNA 库列表参数
|
|
|
|
|
type GetDnaDbOptions struct {
|
|
|
|
|
Ids string `url:"ids,omitempty"`
|
|
|
|
|
PageNumber string `url:"pageNumber,omitempty"`
|
|
|
|
|
PageSize string `url:"pageSize,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDnaDbResult 查询 DNA 库列表结果
|
|
|
|
|
type GetDnaDbResult struct {
|
|
|
|
|
XMLName xml.Name `xml:"Response"`
|
|
|
|
|
RequestId string `xml:"RequestId,omitempty"`
|
|
|
|
|
TotalCount int `xml:"TotalCount,omitempty"`
|
|
|
|
|
PageNumber int `xml:"PageNumber,omitempty"`
|
|
|
|
|
PageSize int `xml:"PageSize,omitempty"`
|
|
|
|
|
DNADbConfig []DNADbConfig `xml:"DNADbConfig,omitempty"`
|
|
|
|
|
NonExistIDs []string `xml:"NonExistIDs,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DNADbConfig DNA 库详情
|
|
|
|
|
type DNADbConfig struct {
|
|
|
|
|
BucketId string `xml:"BucketId,omitempty"`
|
|
|
|
|
Region string `xml:"Region,omitempty"`
|
|
|
|
|
DNADbId string `xml:"DNADbId,omitempty"`
|
|
|
|
|
DNADbName string `xml:"DNADbName,omitempty"`
|
|
|
|
|
Capacity int `xml:"Capacity,omitempty"`
|
|
|
|
|
Description string `xml:"Description,omitempty"`
|
|
|
|
|
UpdateTime string `xml:"UpdateTime,omitempty"`
|
|
|
|
|
CreateTime string `xml:"CreateTime,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDnaDb 查询 DNA 库列表
|
|
|
|
|
func (s *CIService) GetDnaDb(ctx context.Context, opt *GetDnaDbOptions) (*GetDnaDbResult, *Response, error) {
|
|
|
|
|
var res GetDnaDbResult
|
|
|
|
|
sendOpt := sendOptions{
|
|
|
|
|
baseURL: s.client.BaseURL.CIURL,
|
|
|
|
|
uri: "/dnadb",
|
|
|
|
|
optQuery: opt,
|
|
|
|
|
method: http.MethodGet,
|
|
|
|
|
result: &res,
|
|
|
|
|
}
|
|
|
|
|
resp, err := s.client.send(ctx, &sendOpt)
|
|
|
|
|
return &res, resp, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDnaDbFilesOptions 获取 DNA 库中文件列表参数
|
|
|
|
|
type GetDnaDbFilesOptions struct {
|
|
|
|
|
object string `url:"object,omitempty"`
|
|
|
|
|
DnaDbId string `url:"dnaDbId,omitempty"`
|
|
|
|
|
PageNumber string `url:"pageNumber,omitempty"`
|
|
|
|
|
PageSize string `url:"pageSize,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDnaDbFilesResult 查询 DNA 库列表结果
|
|
|
|
|
type GetDnaDbFilesResult struct {
|
|
|
|
|
XMLName xml.Name `xml:"Response"`
|
|
|
|
|
RequestId string `xml:"RequestId,omitempty"`
|
|
|
|
|
TotalCount int `xml:"TotalCount,omitempty"`
|
|
|
|
|
PageNumber int `xml:"PageNumber,omitempty"`
|
|
|
|
|
PageSize int `xml:"PageSize,omitempty"`
|
|
|
|
|
DNADbFiles []DNADbFiles `xml:"DNADbFiles,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DNADbFiles DNA 文件详情
|
|
|
|
|
type DNADbFiles struct {
|
|
|
|
|
BucketId string `xml:"BucketId,omitempty"`
|
|
|
|
|
Region string `xml:"Region,omitempty"`
|
|
|
|
|
DNADbId string `xml:"DNADbId,omitempty"`
|
|
|
|
|
VideoId string `xml:"VideoId,omitempty"`
|
|
|
|
|
Object int `xml:"Object,omitempty"`
|
|
|
|
|
ETag string `xml:"ETag,omitempty"`
|
|
|
|
|
UpdateTime string `xml:"UpdateTime,omitempty"`
|
|
|
|
|
CreateTime string `xml:"CreateTime,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDnaDb 查询 DNA 库列表
|
|
|
|
|
func (s *CIService) GetDnaDbFiles(ctx context.Context, opt *GetDnaDbFilesOptions) (*GetDnaDbFilesResult, *Response, error) {
|
|
|
|
|
var res GetDnaDbFilesResult
|
|
|
|
|
sendOpt := sendOptions{
|
|
|
|
|
baseURL: s.client.BaseURL.CIURL,
|
|
|
|
|
uri: "/dnadb_files",
|
|
|
|
|
optQuery: opt,
|
|
|
|
|
method: http.MethodGet,
|
|
|
|
|
result: &res,
|
|
|
|
|
}
|
|
|
|
|
resp, err := s.client.send(ctx, &sendOpt)
|
|
|
|
|
return &res, resp, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// VocalScore 音乐评分
|
|
|
|
|
type VocalScore struct {
|
|
|
|
|
StandardObject string `xml:"StandardObject,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// VocalScore 音乐评分结果
|
|
|
|
|
type VocalScoreResult struct {
|
|
|
|
|
PitchScore *VocalScoreResultPitchScore `xml:"PitchScore,omitempty"`
|
|
|
|
|
RhythemScore *VocalScoreResultRhythemScore `xml:"RhythemScore,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VocalScoreResultPitchScore struct {
|
|
|
|
|
TotalScore float64 `xml:"TotalScore,omitempty"`
|
|
|
|
|
SentenceScores []VocalScoreResultSentenceScores `xml:"SentenceScores,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VocalScoreResultSentenceScores struct {
|
|
|
|
|
StartTime float64 `xml:"StartTime,omitempty"`
|
|
|
|
|
EndTime float64 `xml:"EndTime,omitempty"`
|
|
|
|
|
Score float64 `xml:"Score,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VocalScoreResultRhythemScore struct {
|
|
|
|
|
TotalScore float64 `xml:"TotalScore,omitempty"`
|
|
|
|
|
SentenceScores []VocalScoreResultSentenceScores `xml:"SentenceScores,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageInspect 黑产检测
|
|
|
|
|
type ImageInspect struct {
|
|
|
|
|
AutoProcess string `xml:"AutoProcess,omitempty"`
|
|
|
|
|
ProcessType string `xml:"ProcessType,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageInspectResult 黑产检测结果
|
|
|
|
|
type ImageInspectResult struct {
|
|
|
|
|
State string `xml:"State,omitempty"`
|
|
|
|
|
Code string `xml:"Code,omitempty"`
|
|
|
|
|
Message string `xml:"Message,omitempty"`
|
|
|
|
|
InputObjectName string `xml:"InputObjectName,omitempty"`
|
|
|
|
|
InputObjectUrl string `xml:"InputObjectUrl,omitempty"`
|
|
|
|
|
ProcessResult *ImageInspectProcessResult `xml:"ProcessResult,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageInspectProcessResult 黑产检测结果
|
|
|
|
|
type ImageInspectProcessResult struct {
|
|
|
|
|
PicSize int `xml:"PicSize,omitempty"`
|
|
|
|
|
PicType string `xml:"PicType,omitempty"`
|
|
|
|
|
Suspicious string `xml:"Suspicious,omitempty"`
|
|
|
|
|
SuspiciousBeginByte int `xml:"SuspiciousBeginByte,omitempty"`
|
|
|
|
|
SuspiciousEndByte int `xml:"SuspiciousEndByte,omitempty"`
|
|
|
|
|
SuspiciousSize int `xml:"SuspiciousSize,omitempty"`
|
|
|
|
|
SuspiciousType string `xml:"SuspiciousType,omitempty"`
|
|
|
|
|
AutoProcessResult *ImageInspectAutoProcessResult `xml:"AutoProcessResult,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ImageInspectResult 黑产检测结果
|
|
|
|
|
type ImageInspectAutoProcessResult struct {
|
|
|
|
|
Code string `xml:"Code,omitempty"`
|
|
|
|
|
Message string `xml:"Message,omitempty"`
|
|
|
|
|
}
|
|
|
|
|