Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/admin/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ type AssetResult struct {
CinemagraphAnalysis CinemagraphAnalysisResult `json:"cinemagraph_analysis"`
Usage interface{} `json:"usage"`
OriginalFilename string `json:"original_filename"`
Context AssetContextResult `json:"context"`
Error api.ErrorResp `json:"error,omitempty"`
Response interface{}
}
Expand Down Expand Up @@ -142,6 +143,11 @@ type PredominantResult struct {
Cloudinary [][]interface{} `json:"cloudinary"`
}

// AssetContextResult contains the contextual metadata
type AssetContextResult struct {
Custom map[string]string `json:"custom"`
}

// UpdateAssetParams are the parameters for UpdateAsset.
type UpdateAssetParams struct {
AssetType api.AssetType `json:"-"`
Expand Down