{"openapi":"3.1.0","info":{"title":"uniobox","version":"0.1.0"},"paths":{"/api/auth/status":{"get":{"tags":["auth"],"summary":"Status","operationId":"status_api_auth_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/start":{"post":{"tags":["auth"],"summary":"Start","operationId":"start_api_auth_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-code":{"post":{"tags":["auth"],"summary":"Verify Login Code","operationId":"verify_login_code_api_auth_verify_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/recover":{"post":{"tags":["auth"],"summary":"Recover","operationId":"recover_api_auth_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_auth_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/invite":{"post":{"tags":["auth"],"summary":"Invite","operationId":"invite_api_auth_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/accept-invite":{"post":{"tags":["auth"],"summary":"Accept Invite","operationId":"accept_invite_api_auth_accept_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"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":{}}}}}},"patch":{"tags":["auth"],"summary":"Patch Me","operationId":"patch_me_api_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/password":{"post":{"tags":["auth"],"summary":"Change Password","operationId":"change_password_api_auth_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChangeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users":{"get":{"tags":["auth"],"summary":"List Users","operationId":"list_users_api_auth_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/setup/providers":{"get":{"tags":["setup"],"summary":"Providers","operationId":"providers_api_setup_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/setup/check-email":{"post":{"tags":["setup"],"summary":"Check Email","operationId":"check_email_api_setup_check_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheckIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/send-code":{"post":{"tags":["setup"],"summary":"Send Connect Code","operationId":"send_connect_code_api_setup_send_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/check-connection":{"post":{"tags":["setup"],"summary":"Check Connection","operationId":"check_connection_api_setup_check_connection_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/account":{"post":{"tags":["setup"],"summary":"Create Account","operationId":"create_account_api_setup_account_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/{account_id}/sync-mode":{"post":{"tags":["setup"],"summary":"Set Sync Mode","operationId":"set_sync_mode_api_setup__account_id__sync_mode_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncModeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/{account_id}/labels":{"post":{"tags":["setup"],"summary":"Set Labels","operationId":"set_labels_api_setup__account_id__labels_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelsSetupIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/{account_id}/classifier":{"post":{"tags":["setup"],"summary":"Set Classifier","operationId":"set_classifier_api_setup__account_id__classifier_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassifierIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/{account_id}/signatures":{"post":{"tags":["setup"],"summary":"Set Signatures","operationId":"set_signatures_api_setup__account_id__signatures_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignatureIn"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/{account_id}/monitoring":{"post":{"tags":["setup"],"summary":"Set Monitoring","operationId":"set_monitoring_api_setup__account_id__monitoring_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderMonitoringIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/setup/defaults/labels":{"get":{"tags":["setup"],"summary":"Default Labels","operationId":"default_labels_api_setup_defaults_labels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/sync":{"post":{"tags":["accounts"],"summary":"Manual Sync","operationId":"manual_sync_api_sync_post","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts":{"get":{"tags":["accounts"],"summary":"List Accounts","operationId":"list_accounts_api_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AccountOut"},"type":"array","title":"Response List Accounts Api Accounts Get"}}}}}}},"/api/accounts/{account_id}/isolate":{"patch":{"tags":["accounts"],"summary":"Set Isolate","operationId":"set_isolate_api_accounts__account_id__isolate_patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsolateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}":{"patch":{"tags":["accounts"],"summary":"Patch Account","operationId":"patch_account_api_accounts__account_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["accounts"],"summary":"Get Account","operationId":"get_account_api_accounts__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/test-connection":{"post":{"tags":["accounts"],"summary":"Test Account Connection","operationId":"test_account_connection_api_accounts__account_id__test_connection_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConnectionTestIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/shares":{"get":{"tags":["accounts"],"summary":"List Shares","operationId":"list_shares_api_accounts__account_id__shares_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["accounts"],"summary":"Add Share","operationId":"add_share_api_accounts__account_id__shares_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shares/{share_id}":{"patch":{"tags":["accounts"],"summary":"Patch Share","operationId":"patch_share_api_shares__share_id__patch","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"integer","title":"Share Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["accounts"],"summary":"Delete Share","operationId":"delete_share_api_shares__share_id__delete","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"integer","title":"Share Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/folders":{"get":{"tags":["accounts"],"summary":"List Folders","operationId":"list_folders_api_accounts__account_id__folders_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FolderOut"},"title":"Response List Folders Api Accounts  Account Id  Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/labels":{"get":{"tags":["accounts"],"summary":"List Labels","operationId":"list_labels_api_accounts__account_id__labels_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LabelOut"},"title":"Response List Labels Api Accounts  Account Id  Labels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["accounts"],"summary":"Add Label","operationId":"add_label_api_accounts__account_id__labels_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/sig-assets":{"post":{"tags":["accounts"],"summary":"Upload Sig Asset","operationId":"upload_sig_asset_api_accounts__account_id__sig_assets_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_sig_asset_api_accounts__account_id__sig_assets_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/signatures":{"get":{"tags":["accounts"],"summary":"List Signatures","operationId":"list_signatures_api_accounts__account_id__signatures_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["accounts"],"summary":"Add Signature","operationId":"add_signature_api_accounts__account_id__signatures_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatureIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/signatures/{signature_id}":{"patch":{"tags":["accounts"],"summary":"Patch Signature","operationId":"patch_signature_api_accounts__account_id__signatures__signature_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"signature_id","in":"path","required":true,"schema":{"type":"integer","title":"Signature Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatureIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["accounts"],"summary":"Delete Signature","operationId":"delete_signature_api_accounts__account_id__signatures__signature_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"signature_id","in":"path","required":true,"schema":{"type":"integer","title":"Signature Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/forwards":{"get":{"tags":["accounts"],"summary":"List Forwards","operationId":"list_forwards_api_accounts__account_id__forwards_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ForwardRuleOut"},"title":"Response List Forwards Api Accounts  Account Id  Forwards Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["accounts"],"summary":"Add Forward","operationId":"add_forward_api_accounts__account_id__forwards_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardRuleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardRuleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/forwards/{rule_id}":{"patch":{"tags":["accounts"],"summary":"Patch Forward","operationId":"patch_forward_api_accounts__account_id__forwards__rule_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardRuleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardRuleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["accounts"],"summary":"Delete Forward","operationId":"delete_forward_api_accounts__account_id__forwards__rule_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/labels/{label_id}":{"patch":{"tags":["accounts"],"summary":"Patch Label","operationId":"patch_label_api_accounts__account_id__labels__label_id__patch","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"label_id","in":"path","required":true,"schema":{"type":"integer","title":"Label Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["accounts"],"summary":"Delete Label","operationId":"delete_label_api_accounts__account_id__labels__label_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"label_id","in":"path","required":true,"schema":{"type":"integer","title":"Label Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/threads":{"get":{"tags":["mail"],"summary":"List Threads","operationId":"list_threads_api_accounts__account_id__threads_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Folder Id"}},{"name":"label_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThreadOut"},"title":"Response List Threads Api Accounts  Account Id  Threads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threads/{thread_id}/messages":{"get":{"tags":["mail"],"summary":"Thread Messages","operationId":"thread_messages_api_threads__thread_id__messages_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"integer","title":"Thread Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"mark_read","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Mark Read"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageOut"},"title":"Response Thread Messages Api Threads  Thread Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{message_id}":{"get":{"tags":["mail"],"summary":"Get Message","operationId":"get_message_api_messages__message_id__get","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["mail"],"summary":"Patch Message","operationId":"patch_message_api_messages__message_id__patch","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{message_id}/trash":{"post":{"tags":["mail"],"summary":"Trash Message","operationId":"trash_message_api_messages__message_id__trash_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{message_id}/junk":{"post":{"tags":["mail"],"summary":"Junk Message","operationId":"junk_message_api_messages__message_id__junk_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{message_id}/feedback":{"post":{"tags":["mail"],"summary":"Feedback","operationId":"feedback_api_messages__message_id__feedback_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compose":{"post":{"tags":["mail"],"summary":"Compose","operationId":"compose_api_compose_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts":{"get":{"tags":["mail"],"summary":"Get Draft","operationId":"get_draft_api_drafts_get","parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"in_reply_to","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"In Reply To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DraftOut"},{"type":"null"}],"title":"Response Get Draft Api Drafts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mail"],"summary":"Save Draft","operationId":"save_draft_api_drafts_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{draft_id}/files":{"get":{"tags":["mail"],"summary":"List Draft Files","operationId":"list_draft_files_api_drafts__draft_id__files_get","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DraftFileOut"},"title":"Response List Draft Files Api Drafts  Draft Id  Files Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mail"],"summary":"Upload Draft File","operationId":"upload_draft_file_api_drafts__draft_id__files_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_draft_file_api_drafts__draft_id__files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftFileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{draft_id}/files/{file_id}":{"delete":{"tags":["mail"],"summary":"Delete Draft File","operationId":"delete_draft_file_api_drafts__draft_id__files__file_id__delete","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"integer","title":"File Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{draft_id}":{"delete":{"tags":["mail"],"summary":"Delete Draft","operationId":"delete_draft_api_drafts__draft_id__delete","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"integer","title":"Draft Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threads/{thread_id}/attachments":{"get":{"tags":["mail"],"summary":"Thread Attachments","operationId":"thread_attachments_api_threads__thread_id__attachments_get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"integer","title":"Thread Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentOut"},"title":"Response Thread Attachments Api Threads  Thread Id  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{message_id}/attachments":{"get":{"tags":["mail"],"summary":"Message Attachments","operationId":"message_attachments_api_messages__message_id__attachments_get","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentOut"},"title":"Response Message Attachments Api Messages  Message Id  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/attachments/{attachment_id}/content":{"get":{"tags":["mail"],"summary":"Attachment Content","operationId":"attachment_content_api_attachments__attachment_id__content_get","parameters":[{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","title":"Attachment Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/senders":{"get":{"tags":["mail"],"summary":"List Senders","operationId":"list_senders_api_accounts__account_id__senders_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"min_risk","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Risk"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SenderOut"},"title":"Response List Senders Api Accounts  Account Id  Senders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/search":{"get":{"tags":["mail"],"summary":"Search","operationId":"search_api_search_get","parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/messages/{message_id}/invite":{"post":{"tags":["mail"],"summary":"Message Invite","operationId":"message_invite_api_messages__message_id__invite_post","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"integer","title":"Message Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/threads":{"get":{"tags":["inbox"],"summary":"Unified Threads","operationId":"unified_threads_api_inbox_threads_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"inbox","title":"Kind"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}},{"name":"label_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Name"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":40,"title":"Limit"}},{"name":"account_ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Account Ids"}},{"name":"from_q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Q"}},{"name":"to_q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Q"}},{"name":"subject_q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Q"}},{"name":"contain_q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contain Q"}},{"name":"exclude_q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude Q"}},{"name":"exclude_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude From"}},{"name":"has_attachments","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Has Attachments"}},{"name":"unread","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unread"}},{"name":"flagged","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagged"}},{"name":"all_folders","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"All Folders"}},{"name":"size_op","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size Op"}},{"name":"size_bytes","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"labels","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Labels"}},{"name":"label_mode","in":"query","required":false,"schema":{"type":"string","default":"any","title":"Label Mode"}},{"name":"exclude_labels","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude Labels"}},{"name":"has_unsubscribe","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Has Unsubscribe"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/nav":{"get":{"tags":["inbox"],"summary":"Unified Nav","operationId":"unified_nav_api_inbox_nav_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}},{"name":"account_ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Account Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/media":{"get":{"tags":["inbox"],"summary":"Unified Media","operationId":"unified_media_api_inbox_media_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kind"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"contact","in":"query","required":false,"schema":{"type":"string","default":"","title":"Contact"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":24,"title":"Limit"}},{"name":"account_ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Account Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/scheduled":{"get":{"tags":["inbox"],"summary":"Unified Scheduled","operationId":"unified_scheduled_api_inbox_scheduled_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}},{"name":"account_ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Account Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/contacts":{"get":{"tags":["inbox"],"summary":"Unified Contacts","operationId":"unified_contacts_api_inbox_contacts_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kind"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"account_ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Account Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inbox/bulk":{"post":{"tags":["inbox"],"summary":"Bulk Action","operationId":"bulk_action_api_inbox_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/contacts":{"get":{"tags":["workspace"],"summary":"List Contacts","operationId":"list_contacts_api_accounts__account_id__contacts_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspace"],"summary":"Create Contact","operationId":"create_contact_api_accounts__account_id__contacts_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}":{"patch":{"tags":["workspace"],"summary":"Update Contact","operationId":"update_contact_api_contacts__contact_id__patch","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}/extract":{"post":{"tags":["workspace"],"summary":"Extract Contact","operationId":"extract_contact_api_contacts__contact_id__extract_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/contacts/extract":{"post":{"tags":["workspace"],"summary":"Extract Missing Contacts","operationId":"extract_missing_contacts_api_accounts__account_id__contacts_extract_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/events":{"get":{"tags":["workspace"],"summary":"List Events","operationId":"list_events_api_accounts__account_id__events_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"from_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From At"}},{"name":"to_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To At"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspace"],"summary":"Create Event","operationId":"create_event_api_accounts__account_id__events_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_id}":{"patch":{"tags":["workspace"],"summary":"Patch Event","operationId":"patch_event_api_events__event_id__patch","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"integer","title":"Event Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspace"],"summary":"Delete Event","operationId":"delete_event_api_events__event_id__delete","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"integer","title":"Event Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/scheduled":{"get":{"tags":["workspace"],"summary":"List Scheduled","operationId":"list_scheduled_api_accounts__account_id__scheduled_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheduled/{scheduled_id}":{"patch":{"tags":["workspace"],"summary":"Patch Scheduled","operationId":"patch_scheduled_api_scheduled__scheduled_id__patch","parameters":[{"name":"scheduled_id","in":"path","required":true,"schema":{"type":"integer","title":"Scheduled Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/scheduled/{scheduled_id}/cancel":{"post":{"tags":["workspace"],"summary":"Cancel Scheduled","operationId":"cancel_scheduled_api_scheduled__scheduled_id__cancel_post","parameters":[{"name":"scheduled_id","in":"path","required":true,"schema":{"type":"integer","title":"Scheduled Id"}},{"name":"account_id","in":"query","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/status":{"get":{"tags":["workspace"],"summary":"Ai Status","operationId":"ai_status_api_ai_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/usage":{"get":{"tags":["workspace"],"summary":"Ai Usage","operationId":"ai_usage_api_ai_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/accounts/{account_id}/ai-usage":{"get":{"tags":["workspace"],"summary":"Account Ai Usage","operationId":"account_ai_usage_api_accounts__account_id__ai_usage_get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ai/prompts":{"get":{"tags":["workspace"],"summary":"List Prompts","operationId":"list_prompts_api_ai_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ai/prompts/{prompt_id}":{"patch":{"tags":["workspace"],"summary":"Update Prompt","operationId":"update_prompt_api_ai_prompts__prompt_id__patch","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compose/review":{"post":{"tags":["workspace"],"summary":"Compose Review","operationId":"compose_review_api_compose_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiReviewIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compose/phishing":{"post":{"tags":["workspace"],"summary":"Compose Phishing","operationId":"compose_phishing_api_compose_phishing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhishingIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/compose/ai":{"post":{"tags":["workspace"],"summary":"Compose Ai","operationId":"compose_ai_api_compose_ai_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiComposeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shards":{"get":{"tags":["shards"],"summary":"Shards","operationId":"shards_api_shards_get","parameters":[{"name":"x-internal-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["shards"],"summary":"Add Shard","operationId":"add_shard_api_shards_post","parameters":[{"name":"x-internal-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Internal-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShardPairIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/sync":{"post":{"summary":"Internal Sync","operationId":"internal_sync_internal_sync_post","parameters":[{"name":"x-internal-token","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Internal-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sig/{account_id}/{name}":{"get":{"summary":"Sig Asset","operationId":"sig_asset_sig__account_id___name__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"integer","title":"Account Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{path}":{"get":{"summary":"Spa","operationId":"spa__path__get","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"provider":{"type":"string","title":"Provider"},"sync_mode":{"type":"string","title":"Sync Mode"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"classifier_mode":{"type":"string","title":"Classifier Mode"},"sender_monitoring":{"type":"boolean","title":"Sender Monitoring"},"ai_review_on_send":{"type":"boolean","title":"Ai Review On Send","default":true},"setup_step":{"type":"string","title":"Setup Step"},"setup_completed":{"type":"boolean","title":"Setup Completed"},"isolate_mailbox":{"type":"boolean","title":"Isolate Mailbox","default":false},"mailbox_kind":{"type":"string","title":"Mailbox Kind","default":"work"},"smtp_host":{"type":"string","title":"Smtp Host","default":""},"smtp_port":{"type":"integer","title":"Smtp Port","default":587},"smtp_username":{"type":"string","title":"Smtp Username","default":""},"smtp_use_tls":{"type":"boolean","title":"Smtp Use Tls","default":true},"smtp_security":{"type":"string","title":"Smtp Security","default":"starttls"},"smtp_auth":{"type":"boolean","title":"Smtp Auth","default":true},"imap_host":{"type":"string","title":"Imap Host","default":""},"imap_port":{"type":"integer","title":"Imap Port","default":993},"imap_username":{"type":"string","title":"Imap Username","default":""},"imap_use_ssl":{"type":"boolean","title":"Imap Use Ssl","default":true},"imap_security":{"type":"string","title":"Imap Security","default":"ssl"},"access":{"type":"string","title":"Access","default":"owner"}},"type":"object","required":["id","email","display_name","provider","sync_mode","last_sync_at","classifier_mode","sender_monitoring","setup_step","setup_completed"],"title":"AccountOut"},"AccountPatch":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"classifier_mode":{"anyOf":[{"type":"string","pattern":"^(feedback|learn_only)$"},{"type":"null"}],"title":"Classifier Mode"},"sender_monitoring":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sender Monitoring"},"ai_review_on_send":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Review On Send"},"isolate_mailbox":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isolate Mailbox"},"mailbox_kind":{"anyOf":[{"type":"string","pattern":"^(personal|work)$"},{"type":"null"}],"title":"Mailbox Kind"},"sync_mode":{"anyOf":[{"type":"string","pattern":"^(now|last_24h|last_7d|last_30d)$"},{"type":"null"}],"title":"Sync Mode"},"smtp_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Host"},"smtp_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Smtp Port"},"smtp_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Username"},"smtp_use_tls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smtp Use Tls"},"smtp_security":{"anyOf":[{"type":"string","pattern":"^(none|starttls|ssl)$"},{"type":"null"}],"title":"Smtp Security"},"smtp_auth":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smtp Auth"},"smtp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Password"},"imap_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Host"},"imap_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Imap Port"},"imap_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Username"},"imap_use_ssl":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Imap Use Ssl"},"imap_security":{"anyOf":[{"type":"string","pattern":"^(none|starttls|ssl)$"},{"type":"null"}],"title":"Imap Security"},"imap_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Password"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"AccountPatch"},"AiComposeIn":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Id"},"action":{"type":"string","title":"Action","default":"draft"},"instruction":{"type":"string","title":"Instruction","default":""},"current_draft":{"type":"string","title":"Current Draft","default":""}},"type":"object","required":["account_id"],"title":"AiComposeIn"},"AiReviewIn":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Id"},"subject":{"type":"string","title":"Subject","default":""},"current_draft":{"type":"string","title":"Current Draft","default":""}},"type":"object","required":["account_id"],"title":"AiReviewIn"},"AttachmentOut":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"provider_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Url"},"content_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"},"message_id":{"type":"integer","title":"Message Id"},"thread_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thread Id"},"is_inline":{"type":"boolean","title":"Is Inline","default":false}},"type":"object","required":["id","filename","mime_type","size_bytes","provider_url","message_id","thread_id"],"title":"AttachmentOut"},"AuthIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":200,"minLength":8,"title":"Password"}},"type":"object","required":["email","password"],"title":"AuthIn"},"Body_upload_draft_file_api_drafts__draft_id__files_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_draft_file_api_drafts__draft_id__files_post"},"Body_upload_sig_asset_api_accounts__account_id__sig_assets_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_sig_asset_api_accounts__account_id__sig_assets_post"},"BulkIn":{"properties":{"action":{"type":"string","pattern":"^(trash|junk|label_add|label_remove|mark_read)$","title":"Action"},"items":{"items":{"$ref":"#/components/schemas/BulkItem"},"type":"array","title":"Items"},"label_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Name"}},"type":"object","required":["action","items"],"title":"BulkIn"},"BulkItem":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"thread_id":{"type":"integer","title":"Thread Id"}},"type":"object","required":["account_id","thread_id"],"title":"BulkItem"},"ClassifierIn":{"properties":{"classifier_mode":{"type":"string","pattern":"^(feedback|learn_only)$","title":"Classifier Mode"}},"type":"object","required":["classifier_mode"],"title":"ClassifierIn"},"CodeIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","maxLength":12,"minLength":4,"title":"Code"},"password":{"type":"string","maxLength":200,"minLength":8,"title":"Password"}},"type":"object","required":["email","code","password"],"title":"CodeIn"},"ComposeIn":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"to_addrs":{"items":{"type":"string"},"type":"array","title":"To Addrs","default":[]},"cc_addrs":{"items":{"type":"string"},"type":"array","title":"Cc Addrs","default":[]},"bcc_addrs":{"items":{"type":"string"},"type":"array","title":"Bcc Addrs","default":[]},"subject":{"type":"string","title":"Subject","default":""},"body_html":{"type":"string","title":"Body Html"},"signature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signature Id"},"in_reply_to_message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"In Reply To Message Id"},"send_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Send At"},"draft_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Id"},"reply_all":{"type":"boolean","title":"Reply All","default":false}},"type":"object","required":["account_id","body_html"],"title":"ComposeIn"},"ConnectionIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"provider":{"type":"string","title":"Provider","default":"custom"},"password":{"type":"string","title":"Password"},"smtp_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Host"},"smtp_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Smtp Port"},"smtp_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Username"},"smtp_use_tls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smtp Use Tls"},"smtp_security":{"anyOf":[{"type":"string","pattern":"^(none|starttls|ssl)$"},{"type":"null"}],"title":"Smtp Security"},"smtp_auth":{"type":"boolean","title":"Smtp Auth","default":true},"smtp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Password"},"imap_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Host"},"imap_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Imap Port"},"imap_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Username"},"imap_use_ssl":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Imap Use Ssl"},"imap_security":{"anyOf":[{"type":"string","pattern":"^(none|starttls|ssl)$"},{"type":"null"}],"title":"Imap Security"},"imap_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Password"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"mailbox_kind":{"anyOf":[{"type":"string","pattern":"^(personal|work)$"},{"type":"null"}],"title":"Mailbox Kind"}},"type":"object","required":["email","password"],"title":"ConnectionIn"},"ConnectionTestIn":{"properties":{"smtp_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Host"},"smtp_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Smtp Port"},"smtp_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Username"},"smtp_use_tls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smtp Use Tls"},"smtp_security":{"anyOf":[{"type":"string","pattern":"^(none|starttls|ssl)$"},{"type":"null"}],"title":"Smtp Security"},"smtp_auth":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Smtp Auth"},"smtp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Password"},"imap_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Host"},"imap_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Imap Port"},"imap_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Username"},"imap_use_ssl":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Imap Use Ssl"},"imap_security":{"anyOf":[{"type":"string","pattern":"^(none|starttls|ssl)$"},{"type":"null"}],"title":"Imap Security"},"imap_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Password"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"ConnectionTestIn"},"ContactIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["email"],"title":"ContactIn"},"DraftFileOut":{"properties":{"id":{"type":"integer","title":"Id"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["id","filename","mime_type","size_bytes"],"title":"DraftFileOut"},"DraftIn":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"in_reply_to_message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"In Reply To Message Id"},"to_addrs":{"items":{"type":"string"},"type":"array","title":"To Addrs","default":[]},"cc_addrs":{"items":{"type":"string"},"type":"array","title":"Cc Addrs","default":[]},"bcc_addrs":{"items":{"type":"string"},"type":"array","title":"Bcc Addrs","default":[]},"subject":{"type":"string","title":"Subject","default":""},"body_html":{"type":"string","title":"Body Html","default":""},"signature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signature Id"}},"type":"object","required":["account_id"],"title":"DraftIn"},"DraftOut":{"properties":{"id":{"type":"integer","title":"Id"},"account_id":{"type":"integer","title":"Account Id"},"in_reply_to_message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"In Reply To Message Id"},"to_addrs":{"items":{},"type":"array","title":"To Addrs","default":[]},"cc_addrs":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Cc Addrs"},"bcc_addrs":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Bcc Addrs"},"subject":{"type":"string","title":"Subject","default":""},"body_html":{"type":"string","title":"Body Html","default":""},"signature_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Signature Id"}},"type":"object","required":["id","account_id","in_reply_to_message_id"],"title":"DraftOut"},"EmailCheckIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"EmailCheckIn"},"EmailIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"EmailIn"},"EventIn":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start_at":{"type":"string","format":"date-time","title":"Start At"},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End At"},"all_day":{"type":"boolean","title":"All Day","default":false},"related_message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Related Message Id"}},"type":"object","required":["title","start_at"],"title":"EventIn"},"EventPatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At"},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End At"},"all_day":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Day"}},"type":"object","title":"EventPatch"},"FeedbackIn":{"properties":{"label_id":{"type":"integer","title":"Label Id"}},"type":"object","required":["label_id"],"title":"FeedbackIn"},"FolderOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"unread":{"type":"integer","title":"Unread","default":0}},"type":"object","required":["id","name","kind"],"title":"FolderOut"},"ForwardRuleIn":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"name":{"type":"string","maxLength":80,"title":"Name","default":""},"from_q":{"type":"string","maxLength":320,"title":"From Q","default":""},"to_q":{"type":"string","maxLength":320,"title":"To Q","default":""},"subject_q":{"type":"string","maxLength":255,"title":"Subject Q","default":""},"contain_q":{"type":"string","maxLength":255,"title":"Contain Q","default":""},"has_attachments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Attachments"},"forward_to":{"type":"string","title":"Forward To","default":""},"stop_on_match":{"type":"boolean","title":"Stop On Match","default":false},"actions":{"items":{"type":"object"},"type":"array","title":"Actions","default":[]}},"type":"object","title":"ForwardRuleIn"},"ForwardRuleOut":{"properties":{"id":{"type":"integer","title":"Id"},"enabled":{"type":"boolean","title":"Enabled"},"name":{"type":"string","title":"Name"},"from_q":{"type":"string","title":"From Q"},"to_q":{"type":"string","title":"To Q"},"subject_q":{"type":"string","title":"Subject Q"},"contain_q":{"type":"string","title":"Contain Q"},"has_attachments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Attachments"},"forward_to":{"type":"string","title":"Forward To","default":""},"stop_on_match":{"type":"boolean","title":"Stop On Match","default":false},"actions":{"items":{},"type":"array","title":"Actions","default":[]},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"last_forwarded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Forwarded At"},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"}},"type":"object","required":["id","enabled","name","from_q","to_q","subject_q","contain_q"],"title":"ForwardRuleOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InviteActionIn":{"properties":{"action":{"type":"string","pattern":"^(accept|maybe|decline)$","title":"Action"}},"type":"object","required":["action"],"title":"InviteActionIn"},"InviteOut":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At"},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End At"},"all_day":{"type":"boolean","title":"All Day","default":false},"organizer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizer"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"event_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Event Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["title"],"title":"InviteOut"},"IsolateIn":{"properties":{"isolate_mailbox":{"type":"boolean","title":"Isolate Mailbox"}},"type":"object","required":["isolate_mailbox"],"title":"IsolateIn"},"LabelIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"color":{"type":"string","title":"Color","default":"#007AFF"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"LabelIn"},"LabelOut":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"color":{"type":"string","title":"Color"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_system":{"type":"boolean","title":"Is System"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","name","color","is_system","sort_order"],"title":"LabelOut"},"LabelsSetupIn":{"properties":{"labels":{"items":{"$ref":"#/components/schemas/LabelIn"},"type":"array","title":"Labels"}},"type":"object","required":["labels"],"title":"LabelsSetupIn"},"MessageOut":{"properties":{"id":{"type":"integer","title":"Id"},"thread_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thread Id"},"from_addr":{"type":"string","title":"From Addr"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"subject":{"type":"string","title":"Subject"},"snippet":{"type":"string","title":"Snippet"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"is_read":{"type":"boolean","title":"Is Read"},"is_flagged":{"type":"boolean","title":"Is Flagged"},"has_attachments":{"type":"boolean","title":"Has Attachments"},"labels":{"items":{"$ref":"#/components/schemas/LabelOut"},"type":"array","title":"Labels","default":[]},"risk_score":{"type":"integer","title":"Risk Score","default":0},"risk_flags":{"items":{"type":"string"},"type":"array","title":"Risk Flags","default":[]},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"ai_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Tone"},"ai_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Intent"},"ai_urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Urgency"},"account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"},"to_addrs":{"items":{},"type":"array","title":"To Addrs"},"cc_addrs":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Cc Addrs"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"provider_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Url"},"unsubscribe_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unsubscribe Url"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentOut"},"type":"array","title":"Attachments","default":[]},"invite":{"anyOf":[{"$ref":"#/components/schemas/InviteOut"},{"type":"null"}]}},"type":"object","required":["id","thread_id","from_addr","from_name","subject","snippet","sent_at","is_read","is_flagged","has_attachments","to_addrs","cc_addrs","body_html","body_text","provider_url"],"title":"MessageOut"},"MessagePatch":{"properties":{"is_read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Read"},"is_flagged":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Flagged"},"label_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Label Ids"}},"type":"object","title":"MessagePatch"},"NodeIn":{"properties":{"host":{"type":"string","title":"Host"},"port":{"type":"integer","title":"Port","default":3306},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"database":{"type":"string","title":"Database","default":"aimailman"}},"type":"object","required":["host","username","password"],"title":"NodeIn"},"PasswordChangeIn":{"properties":{"current":{"type":"string","maxLength":200,"minLength":1,"title":"Current"},"password":{"type":"string","maxLength":200,"minLength":8,"title":"Password"}},"type":"object","required":["current","password"],"title":"PasswordChangeIn"},"PhishingIn":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"message_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Message Id"},"to_addrs":{"items":{"type":"string"},"type":"array","title":"To Addrs","default":[]},"subject":{"type":"string","title":"Subject","default":""},"current_draft":{"type":"string","title":"Current Draft","default":""}},"type":"object","required":["account_id"],"title":"PhishingIn"},"ProfileIn":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Full Name"},"company":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Role"},"phone":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone"}},"type":"object","title":"ProfileIn"},"ScheduledPatch":{"properties":{"send_at":{"type":"string","format":"date-time","title":"Send At"}},"type":"object","required":["send_at"],"title":"ScheduledPatch"},"SenderMonitoringIn":{"properties":{"sender_monitoring":{"type":"boolean","title":"Sender Monitoring","default":true},"isolate_mailbox":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isolate Mailbox"}},"type":"object","title":"SenderMonitoringIn"},"SenderOut":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"domain":{"type":"string","title":"Domain"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"inbound_count":{"type":"integer","title":"Inbound Count"},"outbound_count":{"type":"integer","title":"Outbound Count"},"risk_score":{"type":"integer","title":"Risk Score"},"flags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Flags"}},"type":"object","required":["id","email","display_name","domain","first_seen_at","inbound_count","outbound_count","risk_score","flags"],"title":"SenderOut"},"ShardPairIn":{"properties":{"name":{"type":"string","title":"Name"},"primary":{"$ref":"#/components/schemas/NodeIn"},"replica":{"$ref":"#/components/schemas/NodeIn"}},"type":"object","required":["name","primary","replica"],"title":"ShardPairIn"},"ShareIn":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"level":{"type":"string","pattern":"^(read|write|manage)$","title":"Level","default":"read"}},"type":"object","required":["email"],"title":"ShareIn"},"SharePatch":{"properties":{"level":{"type":"string","pattern":"^(read|write|manage)$","title":"Level"}},"type":"object","required":["level"],"title":"SharePatch"},"SignatureIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"body_html":{"type":"string","title":"Body Html"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["name","body_html"],"title":"SignatureIn"},"SyncModeIn":{"properties":{"sync_mode":{"type":"string","pattern":"^(now|last_24h|last_7d|last_30d)$","title":"Sync Mode"}},"type":"object","required":["sync_mode"],"title":"SyncModeIn"},"ThreadOut":{"properties":{"id":{"type":"integer","title":"Id"},"subject":{"type":"string","title":"Subject"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"message_count":{"type":"integer","title":"Message Count"},"snippet":{"type":"string","title":"Snippet"},"unread_count":{"type":"integer","title":"Unread Count"},"from_addr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Addr"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"to_addrs":{"items":{},"type":"array","title":"To Addrs","default":[]},"is_flagged":{"type":"boolean","title":"Is Flagged","default":false},"has_attachments":{"type":"boolean","title":"Has Attachments","default":false},"labels":{"items":{"$ref":"#/components/schemas/LabelOut"},"type":"array","title":"Labels","default":[]},"risk_score":{"type":"integer","title":"Risk Score","default":0},"account_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"},"account_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Email"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"ai_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Tone"},"ai_intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Intent"},"ai_urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Urgency"},"unsubscribe_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unsubscribe Url"}},"type":"object","required":["id","subject","last_message_at","message_count","snippet","unread_count"],"title":"ThreadOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}