Updated Video model
This commit is contained in:
parent
7580478ac3
commit
b285fc0668
@ -1,6 +1,7 @@
|
||||
from typing import List, Union
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Photo(BaseModel):
|
||||
id: str
|
||||
album: str
|
||||
@ -17,17 +18,24 @@ class PhotoSearch(BaseModel):
|
||||
filename: str
|
||||
caption: Union[str, None]
|
||||
|
||||
|
||||
class Video(BaseModel):
|
||||
id: str
|
||||
album: str
|
||||
hash: str
|
||||
filename: str
|
||||
|
||||
class VideoPublic(BaseModel):
|
||||
id: str
|
||||
caption: str
|
||||
filename: str
|
||||
|
||||
class VideoSearch(BaseModel):
|
||||
id: str
|
||||
filename: str
|
||||
caption: Union[str, None]
|
||||
|
||||
|
||||
class Album(BaseModel):
|
||||
id: str
|
||||
name: str
|
||||
@ -43,6 +51,7 @@ class AlbumModified(BaseModel):
|
||||
title: str
|
||||
cover: Union[str, None]
|
||||
|
||||
|
||||
class SearchResultsAlbum(BaseModel):
|
||||
results: List[Album]
|
||||
next_page: Union[str, None]
|
||||
@ -55,5 +64,6 @@ class SearchResultsVideo(BaseModel):
|
||||
results: List[VideoSearch]
|
||||
next_page: Union[str, None]
|
||||
|
||||
|
||||
class EmailConfirmed(BaseModel):
|
||||
detail: str
|
Loading…
Reference in New Issue
Block a user