add stable media support and sync skillhub UI
This commit is contained in:
+37
-14
@@ -46,12 +46,17 @@ type jobError struct {
|
||||
}
|
||||
|
||||
type resultRef struct {
|
||||
Kind string `json:"kind"`
|
||||
URL string `json:"url,omitempty"`
|
||||
DataURL string `json:"data_url,omitempty"`
|
||||
Filename string `json:"filename,omitempty"`
|
||||
ContentType string `json:"content_type,omitempty"`
|
||||
SizeBytes int64 `json:"size_bytes,omitempty"`
|
||||
Kind string `json:"kind"`
|
||||
URL string `json:"url,omitempty"`
|
||||
DataURL string `json:"data_url,omitempty"`
|
||||
LocalPath string `json:"local_path,omitempty"`
|
||||
MediaID string `json:"media_id,omitempty"`
|
||||
Filename string `json:"filename,omitempty"`
|
||||
ContentType string `json:"content_type,omitempty"`
|
||||
SizeBytes int64 `json:"size_bytes,omitempty"`
|
||||
Visibility string `json:"visibility,omitempty"`
|
||||
SHA256 string `json:"sha256,omitempty"`
|
||||
StorageStatus string `json:"storage_status,omitempty"`
|
||||
}
|
||||
|
||||
type job struct {
|
||||
@@ -85,14 +90,32 @@ type logEntry struct {
|
||||
}
|
||||
|
||||
type artifact struct {
|
||||
ID string `json:"id"`
|
||||
JobID string `json:"job_id"`
|
||||
Filename string `json:"filename"`
|
||||
ContentType string `json:"content_type"`
|
||||
SizeBytes int64 `json:"size_bytes"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
ExpiresAt string `json:"expires_at"`
|
||||
Ref resultRef `json:"-"`
|
||||
ID string `json:"id"`
|
||||
JobID string `json:"job_id"`
|
||||
MediaID string `json:"media_id,omitempty"`
|
||||
Filename string `json:"filename"`
|
||||
ContentType string `json:"content_type"`
|
||||
SizeBytes int64 `json:"size_bytes"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
ExpiresAt string `json:"expires_at"`
|
||||
URL string `json:"url,omitempty"`
|
||||
Visibility string `json:"visibility,omitempty"`
|
||||
SHA256 string `json:"sha256,omitempty"`
|
||||
StorageStatus string `json:"storage_status,omitempty"`
|
||||
Ref resultRef `json:"-"`
|
||||
}
|
||||
|
||||
type media struct {
|
||||
ID string `json:"id"`
|
||||
ArtifactID string `json:"artifact_id,omitempty"`
|
||||
ProjectID string `json:"project_id,omitempty"`
|
||||
Filename string `json:"filename"`
|
||||
ContentType string `json:"content_type"`
|
||||
SizeBytes int64 `json:"size_bytes"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
URL string `json:"url"`
|
||||
Visibility string `json:"visibility,omitempty"`
|
||||
SHA256 string `json:"sha256,omitempty"`
|
||||
}
|
||||
|
||||
type project struct {
|
||||
|
||||
Reference in New Issue
Block a user