(20241214) testing token keys instead of direct ids.
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user