Initial updates server repository commit.
Reinitialize repository history and exclude generated OTA artifact outputs. Made-with: Cursor
This commit is contained in:
47
internal/model/types.go
Normal file
47
internal/model/types.go
Normal file
@@ -0,0 +1,47 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type MetadataFile struct {
|
||||
Version int `json:"version"`
|
||||
FileMetadata struct {
|
||||
Android PlatformMetadata `json:"android"`
|
||||
IOS PlatformMetadata `json:"ios"`
|
||||
} `json:"fileMetadata"`
|
||||
}
|
||||
|
||||
type PlatformMetadata struct {
|
||||
Bundle string `json:"bundle"`
|
||||
Assets []MetadataAssetEl `json:"assets"`
|
||||
}
|
||||
|
||||
type MetadataAssetEl struct {
|
||||
Path string `json:"path"`
|
||||
Ext string `json:"ext"`
|
||||
}
|
||||
|
||||
type AssetMetadata struct {
|
||||
Hash string `json:"hash"`
|
||||
Key string `json:"key"`
|
||||
FileExtension string `json:"fileExtension"`
|
||||
ContentType string `json:"contentType"`
|
||||
URL string `json:"url"`
|
||||
}
|
||||
|
||||
type Manifest struct {
|
||||
ID string `json:"id"`
|
||||
CreatedAt string `json:"createdAt"`
|
||||
RuntimeVersion string `json:"runtimeVersion"`
|
||||
Assets []AssetMetadata `json:"assets"`
|
||||
LaunchAsset AssetMetadata `json:"launchAsset"`
|
||||
Metadata map[string]any `json:"metadata"`
|
||||
Extra map[string]any `json:"extra"`
|
||||
}
|
||||
|
||||
type ReleaseInfo struct {
|
||||
RuntimeVersion string `json:"runtimeVersion"`
|
||||
ReleaseID string `json:"releaseId"`
|
||||
Path string `json:"path"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user