initial commit: applephotos CLI with progress, cloud status, per-asset export

This commit is contained in:
Ein Anderssono
2026-06-11 20:25:07 +02:00
commit 6ec16f3966
21 changed files with 3488 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
package photos
type Album struct {
ID string `json:"id"`
Title string `json:"title"`
}
type Asset struct {
ID string `json:"id"`
Filename string `json:"filename"`
Cloud bool `json:"cloud"`
}
type ExportResult struct {
Filename string `json:"filename"`
Size int64 `json:"size"`
Cloud string `json:"cloud"`
Error string `json:"error,omitempty"`
}
type CollectionNode struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Kind string `json:"kind"`
Children []CollectionNode `json:"children,omitempty"`
}
type AlbumsResponse struct {
Albums []Album `json:"albums"`
}
type AssetsResponse struct {
Assets []Asset `json:"assets"`
Total int `json:"total"`
}
type TreeResponse struct {
Collections []CollectionNode `json:"collections"`
}
type ErrorResponse struct {
Error string `json:"error"`
}
type ExportResultResponse struct {
ExportResult
}