(20241214) testing token keys instead of direct ids.

This commit is contained in:
2024-12-14 11:55:05 +05:30
parent 3a03dd4a61
commit c673c3511f
14 changed files with 164 additions and 60 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ class MailGetRequestHeaders(BaseModel):
class MailGetRequestData(BaseModel):
tokenId: str = Field(
tokenKey: str = Field(
description = "the id of the token associated with the mail; needed for security",
frozen = True
)
+2 -2
View File
@@ -101,9 +101,9 @@ class MailListRequestHeaders(BaseModel):
class MailListRequestData(BaseModel):
tokenIds: str | List[str] = Field(
tokenKeys: str | List[str] = Field(
description = "the token identifier(s) that tell you which auth-tokens were used for fetching those messages",
frozen = True
frozen = True,
)
count: int = Field(
+1 -1
View File
@@ -104,7 +104,7 @@ class MailSyncRequestHeaders(BaseModel):
class MailSyncRequestData(BaseModel):
tokenId: str = Field(
tokenKey: str = Field(
description = "the account identifier (Mongo ObjectId) granted by 'MailOAuthModel.get_account_identifier'",
frozen = True
)
+1 -1
View File
@@ -101,7 +101,7 @@ class MailUpdateTagsRequestHeaders(BaseModel):
class MailUpdateTagsRequestData(BaseModel):
tokenId: str = Field(
tokenKey: str = Field(
description = "the id of the token associated with the mail; needed for security",
frozen = True
)