{"openapi":"3.1.0","info":{"title":"tempforward-backend","description":"Per-site TempForward backend. Serves the public API on port 3000; inbound mail\narrives on the separate internal port (see `internal_api.py`), which is only\nreachable from the shared `tempforward-mail` docker network.\n","version":"1.0.0"},"paths":{"/api/auth/send-code":{"post":{"tags":["auth"],"summary":"Send Code","operationId":"send_code_api_auth_send_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessMessageResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-code":{"post":{"tags":["auth"],"summary":"Verify Code","operationId":"verify_code_api_auth_verify_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-2fa":{"post":{"tags":["auth"],"summary":"Verify 2Fa","operationId":"verify_2fa_api_auth_verify_2fa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verify2FARequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/auth/2fa/setup":{"post":{"tags":["auth"],"summary":"Setup 2Fa","operationId":"setup_2fa_api_auth_2fa_setup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoFactorSetupResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/auth/2fa/confirm":{"post":{"tags":["auth"],"summary":"Confirm 2Fa","operationId":"confirm_2fa_api_auth_2fa_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessMessageResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/2fa/disable":{"post":{"tags":["auth"],"summary":"Disable 2Fa","operationId":"disable_2fa_api_auth_2fa_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessMessageResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/aliases":{"get":{"tags":["aliases"],"summary":"List Aliases","operationId":"list_aliases_api_aliases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliasListResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["aliases"],"summary":"Create Alias","operationId":"create_alias_api_aliases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAliasRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliasMutationResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/aliases/{alias_id}/toggle":{"patch":{"tags":["aliases"],"summary":"Toggle Alias","operationId":"toggle_alias_api_aliases__alias_id__toggle_patch","parameters":[{"name":"alias_id","in":"path","required":true,"schema":{"type":"integer","title":"Alias Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliasMutationResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/aliases/{alias_id}":{"delete":{"tags":["aliases"],"summary":"Delete Alias","operationId":"delete_alias_api_aliases__alias_id__delete","parameters":[{"name":"alias_id","in":"path","required":true,"schema":{"type":"integer","title":"Alias Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/aliases/{alias_id}/stats":{"get":{"tags":["aliases"],"summary":"Alias Stats","operationId":"alias_stats_api_aliases__alias_id__stats_get","parameters":[{"name":"alias_id","in":"path","required":true,"schema":{"type":"integer","title":"Alias Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliasStatsResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/emails":{"get":{"tags":["emails"],"summary":"List Emails","operationId":"list_emails_api_emails_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"alias_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailListResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["emails"],"summary":"Clear Emails","operationId":"clear_emails_api_emails_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"}}}},"/api/emails/senders/reputation":{"get":{"tags":["emails"],"summary":"List Sender Reputation","operationId":"list_sender_reputation_api_emails_senders_reputation_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderReputationListResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/emails/senders/{reputation_id}":{"delete":{"tags":["emails"],"summary":"Delete Sender Reputation","operationId":"delete_sender_reputation_api_emails_senders__reputation_id__delete","parameters":[{"name":"reputation_id","in":"path","required":true,"schema":{"type":"integer","title":"Reputation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/emails/sender/{action}":{"post":{"tags":["emails"],"summary":"Sender Action","operationId":"sender_action_api_emails_sender__action__post","parameters":[{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessMessageResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/emails/{email_id}":{"get":{"tags":["emails"],"summary":"Get Email","operationId":"get_email_api_emails__email_id__get","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDetail"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["emails"],"summary":"Delete Email","operationId":"delete_email_api_emails__email_id__delete","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/emails/{email_id}/attachment/{filename}":{"get":{"tags":["emails"],"summary":"Download Attachment","operationId":"download_attachment_api_emails__email_id__attachment__filename__get","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"附件内容","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/emails/{email_id}/spam":{"post":{"tags":["emails"],"summary":"Mark Spam","operationId":"mark_spam_api_emails__email_id__spam_post","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkSpamRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/emails/{email_id}/retry":{"post":{"tags":["emails"],"summary":"Retry Forward","operationId":"retry_forward_api_emails__email_id__retry_post","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tempmail/create":{"post":{"tags":["tempmail"],"summary":"Create Mailbox","operationId":"create_mailbox_api_tempmail_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMailboxRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tempmail/regenerate":{"post":{"tags":["tempmail"],"summary":"Regenerate Mailbox","operationId":"regenerate_mailbox_api_tempmail_regenerate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tempmail/extend":{"post":{"tags":["tempmail"],"summary":"Extend Mailbox","operationId":"extend_mailbox_api_tempmail_extend_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtendRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxExtendResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tempmail/inbox":{"get":{"tags":["tempmail"],"summary":"Inbox","operationId":"inbox_api_tempmail_inbox_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tempmail/mailbox":{"delete":{"tags":["tempmail"],"summary":"Delete Mailbox","operationId":"delete_mailbox_api_tempmail_mailbox_delete","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tempmail/email/{email_id}":{"get":{"tags":["tempmail"],"summary":"Get Temp Email","operationId":"get_temp_email_api_tempmail_email__email_id__get","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TempEmailDetail"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tempmail"],"summary":"Delete Temp Email","operationId":"delete_temp_email_api_tempmail_email__email_id__delete","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tempmail/attachment/{email_id}/{filename}":{"get":{"tags":["tempmail"],"summary":"Download Temp Attachment","operationId":"download_temp_attachment_api_tempmail_attachment__email_id___filename__get","parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"integer","title":"Email Id"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"附件内容","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/auth":{"post":{"tags":["admin"],"summary":"Admin Auth","operationId":"admin_auth_api_admin_auth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAuthResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/temp-emails":{"post":{"tags":["admin"],"summary":"Temp Emails","operationId":"temp_emails_api_admin_temp_emails_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminListRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TempArchiveListResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/temp-emails/{archive_id}":{"post":{"tags":["admin"],"summary":"Temp Email Detail","operationId":"temp_email_detail_api_admin_temp_emails__archive_id__post","parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAuthRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TempArchiveDetailResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/forwarded-emails":{"post":{"tags":["admin"],"summary":"Forwarded Emails","operationId":"forwarded_emails_api_admin_forwarded_emails_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminListRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardedArchiveListResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/forwarded-emails/{archive_id}":{"post":{"tags":["admin"],"summary":"Forwarded Email Detail","operationId":"forwarded_email_detail_api_admin_forwarded_emails__archive_id__post","parameters":[{"name":"archive_id","in":"path","required":true,"schema":{"type":"integer","title":"Archive Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAuthRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardedArchiveDetailResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/stats":{"post":{"tags":["admin"],"summary":"Stats","operationId":"stats_api_admin_stats_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminStatsResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/attachment/{mail_uuid}/{filename}":{"get":{"tags":["admin"],"summary":"Download Attachment","operationId":"download_attachment_api_admin_attachment__mail_uuid___filename__get","parameters":[{"name":"mail_uuid","in":"path","required":true,"schema":{"type":"string","title":"Mail Uuid"}},{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}},{"name":"password","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}}],"responses":{"200":{"description":"附件内容","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/query/emails":{"get":{"tags":["query"],"summary":"Query Emails","operationId":"query_emails_api_query_emails_get","parameters":[{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryEmailsResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/query/mailboxes":{"get":{"tags":["query"],"summary":"Query Mailboxes","operationId":"query_mailboxes_api_query_mailboxes_get","parameters":[{"name":"active_only","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryMailboxesResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/query/aliases":{"get":{"tags":["query"],"summary":"Query Aliases","operationId":"query_aliases_api_query_aliases_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryAliasesResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/query/health":{"get":{"tags":["query"],"summary":"Query Health","operationId":"query_health_api_query_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryHealthResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"AdminAuthRequest":{"properties":{"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"AdminAuthRequest"},"AdminAuthResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message","default":"Authentication successful"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["timestamp"],"title":"AdminAuthResponse"},"AdminListRequest":{"properties":{"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"page":{"type":"integer","title":"Page","default":1},"limit":{"type":"integer","title":"Limit","default":50},"search":{"type":"string","title":"Search","default":""}},"type":"object","title":"AdminListRequest"},"AdminStats":{"properties":{"total_temp_emails":{"type":"integer","title":"Total Temp Emails"},"total_forwarded_emails":{"type":"integer","title":"Total Forwarded Emails"},"today_temp_emails":{"type":"integer","title":"Today Temp Emails"},"today_forwarded_emails":{"type":"integer","title":"Today Forwarded Emails"},"last_24h_temp_emails":{"type":"integer","title":"Last 24H Temp Emails"},"last_24h_forwarded_emails":{"type":"integer","title":"Last 24H Forwarded Emails"}},"type":"object","required":["total_temp_emails","total_forwarded_emails","today_temp_emails","today_forwarded_emails","last_24h_temp_emails","last_24h_forwarded_emails"],"title":"AdminStats"},"AdminStatsResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/AdminStats"}},"type":"object","required":["data"],"title":"AdminStatsResponse"},"AliasFull":{"properties":{"id":{"type":"integer","title":"Id"},"address":{"type":"string","title":"Address"},"active":{"type":"boolean","title":"Active"},"forwarded_count":{"type":"integer","title":"Forwarded Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["id","address","active","forwarded_count","blocked_count","created_at"],"title":"AliasFull","description":"stats 接口里 legacy 用的是 SELECT *，比列表多一个 user_id。"},"AliasListResponse":{"properties":{"aliases":{"items":{"$ref":"#/components/schemas/AliasOut"},"type":"array","title":"Aliases"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["aliases","total","limit"],"title":"AliasListResponse"},"AliasMutationResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"alias":{"$ref":"#/components/schemas/AliasOut"}},"type":"object","required":["alias"],"title":"AliasMutationResponse"},"AliasOut":{"properties":{"id":{"type":"integer","title":"Id"},"address":{"type":"string","title":"Address"},"active":{"type":"boolean","title":"Active"},"forwarded_count":{"type":"integer","title":"Forwarded Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","address","active","forwarded_count","blocked_count","created_at"],"title":"AliasOut"},"AliasStatsCounts":{"properties":{"forwarded":{"type":"integer","title":"Forwarded"},"spam":{"type":"integer","title":"Spam"},"failed":{"type":"integer","title":"Failed"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["forwarded","spam","failed","total"],"title":"AliasStatsCounts"},"AliasStatsResponse":{"properties":{"alias":{"$ref":"#/components/schemas/AliasFull"},"stats":{"$ref":"#/components/schemas/AliasStatsCounts"},"topSenders":{"items":{"$ref":"#/components/schemas/TopSender"},"type":"array","title":"Topsenders"}},"type":"object","required":["alias","stats","topSenders"],"title":"AliasStatsResponse"},"AttachmentOut":{"properties":{"filename":{"type":"string","title":"Filename"},"path":{"type":"string","title":"Path"},"size":{"type":"integer","title":"Size"},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contenttype"},"contentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contentid"}},"type":"object","required":["filename","path","size"],"title":"AttachmentOut"},"CreateAliasRequest":{"properties":{"prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix"}},"type":"object","title":"CreateAliasRequest"},"CreateMailboxRequest":{"properties":{"expiryHours":{"type":"number","title":"Expiryhours","default":3}},"type":"object","title":"CreateMailboxRequest"},"EmailDetail":{"properties":{"id":{"type":"integer","title":"Id"},"alias_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alias Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"status":{"type":"string","title":"Status"},"spam_score":{"type":"number","title":"Spam Score"},"is_spam":{"type":"boolean","title":"Is Spam"},"forwarded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Forwarded At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"mail_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mail Uuid"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"alias_address":{"type":"string","title":"Alias Address"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"daysLeft":{"type":"integer","title":"Daysleft"}},"type":"object","required":["id","from_address","status","spam_score","is_spam","created_at","alias_address","daysLeft"],"title":"EmailDetail"},"EmailListItem":{"properties":{"id":{"type":"integer","title":"Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"status":{"type":"string","title":"Status"},"spam_score":{"type":"number","title":"Spam Score"},"is_spam":{"type":"boolean","title":"Is Spam"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"alias_address":{"type":"string","title":"Alias Address"},"daysLeft":{"type":"integer","title":"Daysleft"}},"type":"object","required":["id","from_address","status","spam_score","is_spam","created_at","alias_address","daysLeft"],"title":"EmailListItem"},"EmailListResponse":{"properties":{"emails":{"items":{"$ref":"#/components/schemas/EmailListItem"},"type":"array","title":"Emails"},"pagination":{"$ref":"#/components/schemas/PaginationOut"}},"type":"object","required":["emails","pagination"],"title":"EmailListResponse"},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Details"}},"type":"object","required":["error"],"title":"ErrorResponse","description":"legacy 全线用 {\"error\": \"...\"} 报错，FastAPI 默认的 {\"detail\": ...} 不兼容。"},"ExtendRequest":{"properties":{"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"hours":{"type":"number","title":"Hours","default":3}},"type":"object","title":"ExtendRequest"},"ForwardArchiveRow":{"properties":{"email_type":{"type":"string","const":"forward_archive","title":"Email Type","default":"forward_archive"},"id":{"type":"integer","title":"Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"alias_address":{"type":"string","title":"Alias Address"},"target_email":{"type":"string","title":"Target Email"},"resend_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resend Message Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","from_address","alias_address","target_email","created_at"],"title":"ForwardArchiveRow"},"ForwardEmailRow":{"properties":{"email_type":{"type":"string","const":"forward","title":"Email Type","default":"forward"},"id":{"type":"integer","title":"Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"mail_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mail Uuid"},"status":{"type":"string","title":"Status"},"spam_score":{"type":"number","title":"Spam Score"},"is_spam":{"type":"boolean","title":"Is Spam"},"forwarded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Forwarded At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"alias_address":{"type":"string","title":"Alias Address"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"}},"type":"object","required":["id","from_address","status","spam_score","is_spam","created_at","alias_address"],"title":"ForwardEmailRow"},"ForwardedArchiveDetail":{"properties":{"id":{"type":"integer","title":"Id"},"original_from_address":{"type":"string","title":"Original From Address"},"original_from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original From Name"},"original_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Subject"},"original_body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Body Text"},"original_body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Body Html"},"original_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Message Id"},"alias_address":{"type":"string","title":"Alias Address"},"target_email":{"type":"string","title":"Target Email"},"resend_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resend Message Id"},"forwarded_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forwarded Subject"},"forwarded_body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forwarded Body Text"},"forwarded_body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forwarded Body Html"},"forwarded_at":{"type":"string","format":"date-time","title":"Forwarded At"},"mail_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mail Uuid"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"}},"type":"object","required":["id","original_from_address","alias_address","target_email","forwarded_at"],"title":"ForwardedArchiveDetail"},"ForwardedArchiveDetailResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/ForwardedArchiveDetail"}},"type":"object","required":["data"],"title":"ForwardedArchiveDetailResponse"},"ForwardedArchiveListItem":{"properties":{"id":{"type":"integer","title":"Id"},"alias_address":{"type":"string","title":"Alias Address"},"target_email":{"type":"string","title":"Target Email"},"original_from_address":{"type":"string","title":"Original From Address"},"original_from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original From Name"},"original_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Subject"},"forwarded_at":{"type":"string","format":"date-time","title":"Forwarded At"},"resend_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resend Message Id"}},"type":"object","required":["id","alias_address","target_email","original_from_address","forwarded_at"],"title":"ForwardedArchiveListItem"},"ForwardedArchiveListResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"items":{"$ref":"#/components/schemas/ForwardedArchiveListItem"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationOut"}},"type":"object","required":["data","pagination"],"title":"ForwardedArchiveListResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"time":{"type":"string","format":"date-time","title":"Time"}},"type":"object","required":["time"],"title":"HealthResponse"},"InboxEmailItem":{"properties":{"id":{"type":"integer","title":"Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"is_read":{"type":"boolean","title":"Is Read"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"attachment_count":{"type":"integer","title":"Attachment Count"}},"type":"object","required":["id","from_address","is_read","created_at","attachment_count"],"title":"InboxEmailItem"},"InboxMailbox":{"properties":{"id":{"type":"integer","title":"Id"},"address":{"type":"string","title":"Address"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"},"timeLeftSeconds":{"type":"integer","title":"Timeleftseconds"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["id","address","expiresAt","timeLeftSeconds","createdAt"],"title":"InboxMailbox"},"InboxResponse":{"properties":{"mailbox":{"$ref":"#/components/schemas/InboxMailbox"},"emails":{"items":{"$ref":"#/components/schemas/InboxEmailItem"},"type":"array","title":"Emails"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["mailbox","emails","count"],"title":"InboxResponse"},"LoginResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"requires2FA":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Requires2Fa"},"tempToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temptoken"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserBrief"},{"type":"null"}]},"isNewUser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isnewuser"}},"type":"object","title":"LoginResponse","description":"verify-code 有两种形态：要 2FA 的半程响应，和直接发 token 的完整响应。\n\nlegacy 是同一个 handler 里 return 两种 JSON，所以这里用一个模型 + 空字段裁剪\n来复刻，路由上挂 response_model_exclude_none=True。"},"MailboxExtendResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"mailbox":{"$ref":"#/components/schemas/MailboxExtendedOut"}},"type":"object","required":["mailbox"],"title":"MailboxExtendResponse"},"MailboxExtendedOut":{"properties":{"id":{"type":"integer","title":"Id"},"address":{"type":"string","title":"Address"},"token":{"type":"string","title":"Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","address","token","expires_at"],"title":"MailboxExtendedOut","description":"extend 的 RETURNING 里没有 created_at，少一个字段，别顺手补齐。"},"MailboxOut":{"properties":{"id":{"type":"integer","title":"Id"},"address":{"type":"string","title":"Address"},"token":{"type":"string","title":"Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","address","token","expires_at","created_at"],"title":"MailboxOut"},"MailboxResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"mailbox":{"$ref":"#/components/schemas/MailboxOut"}},"type":"object","required":["mailbox"],"title":"MailboxResponse"},"MarkSpamRequest":{"properties":{"isSpam":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isspam"}},"type":"object","title":"MarkSpamRequest"},"MeResponse":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"twoFactorEnabled":{"type":"boolean","title":"Twofactorenabled"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"lastLogin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastlogin"},"aliasCount":{"type":"integer","title":"Aliascount"}},"type":"object","required":["id","email","twoFactorEnabled","aliasCount"],"title":"MeResponse"},"PaginationOut":{"properties":{"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total":{"type":"integer","title":"Total"},"totalPages":{"type":"integer","title":"Totalpages"}},"type":"object","required":["page","limit","total","totalPages"],"title":"PaginationOut"},"QueryAliasOut":{"properties":{"id":{"type":"integer","title":"Id"},"address":{"type":"string","title":"Address"},"active":{"type":"boolean","title":"Active"},"forwarded_count":{"type":"integer","title":"Forwarded Count"},"blocked_count":{"type":"integer","title":"Blocked Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"email_count":{"type":"integer","title":"Email Count"}},"type":"object","required":["id","address","active","forwarded_count","blocked_count","created_at","email_count"],"title":"QueryAliasOut"},"QueryAliasesResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"count":{"type":"integer","title":"Count"},"aliases":{"items":{"$ref":"#/components/schemas/QueryAliasOut"},"type":"array","title":"Aliases"}},"type":"object","required":["count","aliases"],"title":"QueryAliasesResponse"},"QueryEmailsResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"email":{"type":"string","title":"Email"},"summary":{"$ref":"#/components/schemas/QuerySummary"},"emails":{"items":{"oneOf":[{"$ref":"#/components/schemas/TempEmailRow"},{"$ref":"#/components/schemas/ForwardEmailRow"},{"$ref":"#/components/schemas/TempArchiveRow"},{"$ref":"#/components/schemas/ForwardArchiveRow"}],"discriminator":{"propertyName":"email_type","mapping":{"forward":"#/components/schemas/ForwardEmailRow","forward_archive":"#/components/schemas/ForwardArchiveRow","temp":"#/components/schemas/TempEmailRow","temp_archive":"#/components/schemas/TempArchiveRow"}}},"type":"array","title":"Emails"}},"type":"object","required":["email","summary","emails"],"title":"QueryEmailsResponse"},"QueryHealthResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"service":{"type":"string","title":"Service","default":"query-api"},"allowed_ips":{"items":{"type":"string"},"type":"array","title":"Allowed Ips"},"time":{"type":"string","format":"date-time","title":"Time"}},"type":"object","required":["allowed_ips","time"],"title":"QueryHealthResponse"},"QueryMailboxOut":{"properties":{"id":{"type":"integer","title":"Id"},"address":{"type":"string","title":"Address"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"email_count":{"type":"integer","title":"Email Count"}},"type":"object","required":["id","address","expires_at","created_at","email_count"],"title":"QueryMailboxOut"},"QueryMailboxesResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"count":{"type":"integer","title":"Count"},"mailboxes":{"items":{"$ref":"#/components/schemas/QueryMailboxOut"},"type":"array","title":"Mailboxes"}},"type":"object","required":["count","mailboxes"],"title":"QueryMailboxesResponse"},"QuerySummary":{"properties":{"temp_emails":{"type":"integer","title":"Temp Emails"},"forward_emails":{"type":"integer","title":"Forward Emails"},"temp_archive":{"type":"integer","title":"Temp Archive"},"forward_archive":{"type":"integer","title":"Forward Archive"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["temp_emails","forward_emails","temp_archive","forward_archive","total"],"title":"QuerySummary"},"RetryResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"status":{"type":"string","title":"Status","default":"forwarded"}},"type":"object","title":"RetryResponse"},"SendCodeRequest":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"lang":{"type":"string","title":"Lang","default":"zh"}},"type":"object","title":"SendCodeRequest"},"SenderActionRequest":{"properties":{"senderPattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Senderpattern"}},"type":"object","title":"SenderActionRequest"},"SenderReputationListResponse":{"properties":{"senders":{"items":{"$ref":"#/components/schemas/SenderReputationOut"},"type":"array","title":"Senders"}},"type":"object","required":["senders"],"title":"SenderReputationListResponse"},"SenderReputationOut":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"sender_pattern":{"type":"string","title":"Sender Pattern"},"reputation":{"type":"string","title":"Reputation"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","sender_pattern","reputation","created_at"],"title":"SenderReputationOut"},"SuccessMessageResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"SuccessMessageResponse"},"SuccessResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true}},"type":"object","title":"SuccessResponse"},"TempArchiveDetail":{"properties":{"id":{"type":"integer","title":"Id"},"mailbox_address":{"type":"string","title":"Mailbox Address"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"mail_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mail Uuid"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"received_at":{"type":"string","format":"date-time","title":"Received At"}},"type":"object","required":["id","mailbox_address","from_address","received_at"],"title":"TempArchiveDetail"},"TempArchiveDetailResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"$ref":"#/components/schemas/TempArchiveDetail"}},"type":"object","required":["data"],"title":"TempArchiveDetailResponse"},"TempArchiveListItem":{"properties":{"id":{"type":"integer","title":"Id"},"mailbox_address":{"type":"string","title":"Mailbox Address"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"received_at":{"type":"string","format":"date-time","title":"Received At"}},"type":"object","required":["id","mailbox_address","from_address","received_at"],"title":"TempArchiveListItem"},"TempArchiveListResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"data":{"items":{"$ref":"#/components/schemas/TempArchiveListItem"},"type":"array","title":"Data"},"pagination":{"$ref":"#/components/schemas/PaginationOut"}},"type":"object","required":["data","pagination"],"title":"TempArchiveListResponse"},"TempArchiveRow":{"properties":{"email_type":{"type":"string","const":"temp_archive","title":"Email Type","default":"temp_archive"},"id":{"type":"integer","title":"Id"},"mailbox_address":{"type":"string","title":"Mailbox Address"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"mail_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mail Uuid"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","mailbox_address","from_address","created_at"],"title":"TempArchiveRow"},"TempEmailDetail":{"properties":{"id":{"type":"integer","title":"Id"},"mailbox_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mailbox Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"text_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Body"},"html_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Body"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"is_read":{"type":"boolean","title":"Is Read"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"mail_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mail Uuid"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"}},"type":"object","required":["id","from_address","is_read","created_at"],"title":"TempEmailDetail"},"TempEmailRow":{"properties":{"email_type":{"type":"string","const":"temp","title":"Email Type","default":"temp"},"id":{"type":"integer","title":"Id"},"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments"},"mail_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mail Uuid"},"is_read":{"type":"boolean","title":"Is Read"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"mailbox_address":{"type":"string","title":"Mailbox Address"},"mailbox_expires_at":{"type":"string","format":"date-time","title":"Mailbox Expires At"}},"type":"object","required":["id","from_address","is_read","created_at","mailbox_address","mailbox_expires_at"],"title":"TempEmailRow"},"TokenRequest":{"properties":{"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},"type":"object","title":"TokenRequest"},"TopSender":{"properties":{"from_address":{"type":"string","title":"From Address"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["from_address","count"],"title":"TopSender"},"TotpCodeRequest":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","title":"TotpCodeRequest"},"TwoFactorSetupResponse":{"properties":{"secret":{"type":"string","title":"Secret"},"qrCode":{"type":"string","title":"Qrcode"}},"type":"object","required":["secret","qrCode"],"title":"TwoFactorSetupResponse"},"UserBrief":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"twoFactorEnabled":{"type":"boolean","title":"Twofactorenabled"}},"type":"object","required":["id","email","twoFactorEnabled"],"title":"UserBrief"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"Verify2FARequest":{"properties":{"tempToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temptoken"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","title":"Verify2FARequest"},"VerifyCodeRequest":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},"type":"object","title":"VerifyCodeRequest"}}}}