(20241205) Accepting many token ids to list mails.

This commit is contained in:
2024-12-05 15:07:07 +05:30
parent 9b154a6cce
commit 2c053fa6f2
7 changed files with 19 additions and 11 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ sys.path.append("..")
# For making data behaviour_models:
from pydantic import BaseModel, Field, field_validator, PastDatetime
from typing import Optional, Literal
from typing import Optional, Literal, List
# My utils:
from utils_v2.string import regex
@@ -101,8 +101,8 @@ class MailListRequestHeaders(BaseModel):
class MailListByAccountIdRequestData(BaseModel):
tokenId: str = Field(
description = "the account identifier (Mongo ObjectId) granted by 'MailOAuthModel.get_account_identifier'",
tokenId: str | List[str] = Field(
description = "the account identifier(s) (Mongo ObjectId) granted by 'MailOAuthModel.get_account_identifier'",
frozen = True
)