setting, session and profile fix
This commit is contained in:
parent
068142ed61
commit
a434af224c
34 changed files with 497 additions and 119 deletions
|
|
@ -418,6 +418,14 @@ class OrgMemberRoleUpdate(BaseModel):
|
|||
org_role: Literal["user", "admin"]
|
||||
|
||||
|
||||
class EmailAttachmentCreate(BaseModel):
|
||||
filename: str = Field(min_length=1, max_length=255)
|
||||
content_type: str = Field(default="application/octet-stream", max_length=200)
|
||||
content_base64: str = Field(min_length=1)
|
||||
disposition: Literal["attachment", "inline"] = "attachment"
|
||||
content_id: str | None = Field(default=None, max_length=200)
|
||||
|
||||
|
||||
class EmailCreate(BaseModel):
|
||||
recipients: list[EmailStr] = Field(default_factory=list)
|
||||
cc: list[EmailStr] = Field(default_factory=list)
|
||||
|
|
@ -428,6 +436,7 @@ class EmailCreate(BaseModel):
|
|||
reply_to_message_id: str | None = None
|
||||
reply_all: bool = False
|
||||
thread_id: str | None = None
|
||||
attachments: list[EmailAttachmentCreate] = Field(default_factory=list, max_length=10)
|
||||
|
||||
@model_validator(mode="after")
|
||||
def recipients_required_without_reply(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue