diff --git a/pkg/mapper/mapper.go b/pkg/mapper/mapper.go index f2a2893..d21454f 100644 --- a/pkg/mapper/mapper.go +++ b/pkg/mapper/mapper.go @@ -17,6 +17,7 @@ func ToFileOut(file models.File) *schemas.FileOut { MimeType: file.MimeType, Category: file.Category, Path: file.Path, + Encrypted: file.Encrypted, Size: size, Starred: file.Starred, ParentID: file.ParentID, diff --git a/pkg/schemas/file.go b/pkg/schemas/file.go index 76765ea..89d30d4 100644 --- a/pkg/schemas/file.go +++ b/pkg/schemas/file.go @@ -43,6 +43,7 @@ type FileOut struct { Type string `json:"type"` MimeType string `json:"mimeType"` Category string `json:"category,omitempty"` + Encrypted bool `json:"encrypted"` Path string `json:"path,omitempty"` Size int64 `json:"size,omitempty"` Starred bool `json:"starred"`