Make collage selection automatic and restore dashboard navigation order
This commit is contained in:
@@ -68,6 +68,19 @@ class PhotoSourceContent(StrictModel):
|
||||
profile: Profile = Profile.color
|
||||
|
||||
|
||||
class AutoCollageContent(StrictModel):
|
||||
type: Literal["auto_collage"]
|
||||
source_id: str | None = Field(default=None, pattern=r"^[a-z0-9-]{1,60}$")
|
||||
count: int = Field(default=4, ge=1, le=12)
|
||||
title: str = Field(default="", max_length=100)
|
||||
message: str = Field(default="", max_length=500)
|
||||
orientation: Literal["auto", "portrait", "landscape"] = "auto"
|
||||
style: Literal["grid", "hero", "poster"] = "grid"
|
||||
use_ai: bool = True
|
||||
prompt: str = Field(default="", max_length=1500)
|
||||
profile: Profile = Profile.color
|
||||
|
||||
|
||||
class ProviderContent(StrictModel):
|
||||
type: Literal["provider"]
|
||||
provider_id: str = Field(pattern=r"^[a-z0-9-]{1,60}$")
|
||||
@@ -86,6 +99,7 @@ Content = Annotated[
|
||||
| URLContent
|
||||
| TemplateContent
|
||||
| PhotoSourceContent
|
||||
| AutoCollageContent
|
||||
| ProviderContent
|
||||
| FutureContent,
|
||||
Field(discriminator="type"),
|
||||
|
||||
Reference in New Issue
Block a user