{"openapi":"3.1.0","info":{"title":"AI Workforce Solutions","description":"Put Our AI Workforce to Work","version":"0.1.0"},"paths":{"/admin/dashboard":{"get":{"tags":["admin"],"summary":"Admin Dashboard","description":"Admin dashboard.","operationId":"admin_dashboard_admin_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/users":{"get":{"tags":["admin"],"summary":"Admin Users","description":"User management page.","operationId":"admin_users_admin_users_get","parameters":[{"name":"show_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Show Inactive"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/new":{"get":{"tags":["admin"],"summary":"New User Form","description":"New user form.","operationId":"new_user_form_admin_users_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/users/{user_id}/edit":{"get":{"tags":["admin"],"summary":"Edit User Form","description":"Edit user form.","operationId":"edit_user_form_admin_users__user_id__edit_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/save":{"post":{"tags":["admin"],"summary":"Save User","description":"Save user (create or update).","operationId":"save_user_admin_users_save_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_user_admin_users_save_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/delete":{"post":{"tags":["admin"],"summary":"Delete User","description":"Soft-delete a user by setting is_active = False.","operationId":"delete_user_admin_users__user_id__delete_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/reactivate":{"post":{"tags":["admin"],"summary":"Reactivate User","description":"Reactivate a previously deactivated user.","operationId":"reactivate_user_admin_users__user_id__reactivate_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies":{"get":{"tags":["admin"],"summary":"Admin Companies","description":"Company management page.","operationId":"admin_companies_admin_companies_get","parameters":[{"name":"show_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Show Inactive"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/new":{"get":{"tags":["admin"],"summary":"New Company Form","description":"New company form.","operationId":"new_company_form_admin_companies_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/companies/{company_id}/edit":{"get":{"tags":["admin"],"summary":"Edit Company Form","description":"Edit company form.","operationId":"edit_company_form_admin_companies__company_id__edit_get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/save":{"post":{"tags":["admin"],"summary":"Save Company","description":"Save company (create or update).","operationId":"save_company_admin_companies_save_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_company_admin_companies_save_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/delete":{"post":{"tags":["admin"],"summary":"Delete Company","description":"Soft-delete a company by setting is_active = False.","operationId":"delete_company_admin_companies__company_id__delete_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/reactivate":{"post":{"tags":["admin"],"summary":"Reactivate Company","description":"Reactivate a previously deactivated company.","operationId":"reactivate_company_admin_companies__company_id__reactivate_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"integer","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/system":{"get":{"tags":["admin"],"summary":"Admin System","description":"System parameters management.","operationId":"admin_system_admin_system_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/system/save":{"post":{"tags":["admin"],"summary":"Save System Parameter","description":"Save system parameter.","operationId":"save_system_parameter_admin_system_save_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_system_parameter_admin_system_save_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/logs":{"get":{"tags":["admin"],"summary":"Admin Logs","description":"View application logs.","operationId":"admin_logs_admin_logs_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/sql":{"get":{"tags":["admin"],"summary":"Sql Helper","description":"SQL query tool for admins.","operationId":"sql_helper_admin_sql_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/sql/execute":{"post":{"tags":["admin"],"summary":"Execute Sql","description":"Execute SQL query.","operationId":"execute_sql_admin_sql_execute_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_execute_sql_admin_sql_execute_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/logs/export":{"get":{"tags":["admin"],"summary":"Export Logs","description":"Export tbl_log rows as CSV.","operationId":"export_logs_admin_logs_export_get","parameters":[{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"}},{"name":"user","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"}},{"name":"result","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audit":{"get":{"tags":["admin"],"summary":"Audit Trail","operationId":"audit_trail_admin_audit_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audit/export":{"get":{"tags":["admin"],"summary":"Export Audit","operationId":"export_audit_admin_audit_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/system/delete":{"post":{"tags":["admin"],"summary":"Delete System Parameter","description":"Delete a system parameter.","operationId":"delete_system_parameter_admin_system_delete_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_delete_system_parameter_admin_system_delete_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/contacts":{"get":{"tags":["admin"],"summary":"Contacts List","description":"Contact management page.","operationId":"contacts_list_admin_contacts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/contacts/save":{"post":{"tags":["admin"],"summary":"Save Contact","description":"Save contact (create or update).","operationId":"save_contact_admin_contacts_save_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_save_contact_admin_contacts_save_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/contacts/{contact_id}/delete":{"post":{"tags":["admin"],"summary":"Delete Contact","operationId":"delete_contact_admin_contacts__contact_id__delete_post","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/contracts":{"get":{"tags":["contracts"],"summary":"Contracts List","operationId":"contracts_list_admin_contracts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/contracts/{contract_id}/edit":{"get":{"tags":["contracts"],"summary":"Contract Edit","operationId":"contract_edit_admin_contracts__contract_id__edit_get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"integer","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/contracts/save":{"post":{"tags":["contracts"],"summary":"Contract Save","operationId":"contract_save_admin_contracts_save_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_contract_save_admin_contracts_save_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/contracts/{contract_id}/delete":{"post":{"tags":["contracts"],"summary":"Contract Delete","operationId":"contract_delete_admin_contracts__contract_id__delete_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"integer","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/contracts/{contract_id}/document":{"get":{"tags":["contracts"],"summary":"Contract Document","operationId":"contract_document_admin_contracts__contract_id__document_get","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"integer","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invoices":{"get":{"tags":["contracts"],"summary":"Invoices List","operationId":"invoices_list_admin_invoices_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/contracts/{contract_id}/generate-invoice":{"post":{"tags":["contracts"],"summary":"Generate Invoice","operationId":"generate_invoice_admin_contracts__contract_id__generate_invoice_post","parameters":[{"name":"contract_id","in":"path","required":true,"schema":{"type":"integer","title":"Contract Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invoices/{invoice_id}/mark-paid":{"post":{"tags":["contracts"],"summary":"Mark Invoice Paid","operationId":"mark_invoice_paid_admin_invoices__invoice_id__mark_paid_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invoices/{invoice_id}/mark-unpaid":{"post":{"tags":["contracts"],"summary":"Mark Invoice Unpaid","operationId":"mark_invoice_unpaid_admin_invoices__invoice_id__mark_unpaid_post","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/invoices/{invoice_id}/document":{"get":{"tags":["contracts"],"summary":"Invoice Document","operationId":"invoice_document_admin_invoices__invoice_id__document_get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/contracts/enhance":{"post":{"tags":["contracts"],"summary":"Contract Enhance","description":"AI Enhance description - calls OpenAI to polish scope text.","operationId":"contract_enhance_admin_contracts_enhance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnhanceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contacts/":{"get":{"tags":["contacts"],"summary":"Contacts List","description":"Contact list page.","operationId":"contacts_list_contacts__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile/":{"get":{"tags":["profile"],"summary":"Profile Page","description":"User profile page with password change.","operationId":"profile_page_profile__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/profile/change-password":{"post":{"tags":["profile"],"summary":"Change Password","description":"Change user password.","operationId":"change_password_profile_change_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_change_password_profile_change_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/update":{"post":{"tags":["profile"],"summary":"Update Profile","description":"Update user profile details.","operationId":"update_profile_profile_update_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"allOf":[{"$ref":"#/components/schemas/Body_update_profile_profile_update_post"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/email-sort":{"post":{"tags":["api"],"summary":"Email Sort","description":"Classify an email using OpenAI GPT.\n\nAccepts JSON with: from, to, subject, body, messageId\nReturns: classification analysis with category, priority, confidence, etc.\n\nThin wrapper over app.mail_ai_classify.classify_email (AWF-165) -- the\npersonal email monitor's AI rule type calls that function in-process\nrather than over this route, so the actual classification logic lives\nthere, not here.","operationId":"email_sort_api_email_sort_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/receipt":{"post":{"tags":["api"],"summary":"Receipt Handler","description":"Process a receipt upload and extract structured data.","operationId":"receipt_handler_api_receipt_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/usage":{"post":{"tags":["api"],"summary":"Agent Usage","description":"Log agent/API usage for analytics.","operationId":"agent_usage_api_usage_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/compute-value":{"get":{"tags":["business_case"],"summary":"Compute Value Page","description":"Business case calculator page.","operationId":"compute_value_page_compute_value_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/compute-value":{"post":{"tags":["business_case"],"summary":"Compute Value","description":"Log a business case calculation.","operationId":"compute_value_api_compute_value_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/save-business-case":{"post":{"tags":["business_case"],"summary":"Save Business Case","description":"Save a named business case.","operationId":"save_business_case_api_save_business_case_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/qbo":{"get":{"tags":["qbo"],"summary":"Qbo Dashboard","description":"QBO integration dashboard.","operationId":"qbo_dashboard_admin_qbo_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/qbo/authorize":{"get":{"tags":["qbo"],"summary":"Qbo Authorize","description":"Start QBO OAuth2 flow — redirect to Intuit.","operationId":"qbo_authorize_admin_qbo_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/qbo/callback":{"get":{"tags":["qbo"],"summary":"Qbo Callback","description":"Handle QBO OAuth2 callback — exchange code for tokens.","operationId":"qbo_callback_admin_qbo_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"realmId","in":"query","required":false,"schema":{"type":"string","default":"","title":"Realmid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/qbo/disconnect":{"post":{"tags":["qbo"],"summary":"Qbo Disconnect","description":"Disconnect QBO integration.","operationId":"qbo_disconnect_admin_qbo_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/qbo/customers":{"get":{"tags":["qbo"],"summary":"Qbo Customers","description":"Fetch customers from QBO.","operationId":"qbo_customers_api_qbo_customers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/qbo/map":{"get":{"tags":["qbo"],"summary":"Qbo Employee Map","operationId":"qbo_employee_map_admin_qbo_map_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["qbo"],"summary":"Qbo Employee Map Save","operationId":"qbo_employee_map_save_admin_qbo_map_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/payroll/qbo-preview":{"get":{"tags":["qbo"],"summary":"Qbo Push Preview","operationId":"qbo_push_preview_admin_payroll_qbo_preview_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/payroll/qbo-push":{"post":{"tags":["qbo"],"summary":"Qbo Push","operationId":"qbo_push_admin_payroll_qbo_push_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/qbo/employees":{"get":{"tags":["qbo"],"summary":"Qbo Employees","description":"Fetch employees from QBO — returns each QBO Employee Id + name, which is\nwhat payroll TimeActivity records reference (EmployeeRef).","operationId":"qbo_employees_api_qbo_employees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/email/send":{"post":{"tags":["email"],"summary":"Send Email","operationId":"send_email_api_v1_email_send_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_send_email_api_v1_email_send_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email/senders":{"get":{"tags":["admin-email"],"summary":"List Senders","operationId":"list_senders_admin_email_senders_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["admin-email"],"summary":"Create Sender","operationId":"create_sender_admin_email_senders_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_sender_admin_email_senders_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email/senders/new":{"get":{"tags":["admin-email"],"summary":"New Sender Form","operationId":"new_sender_form_admin_email_senders_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/email/senders/{sender_id}/edit":{"get":{"tags":["admin-email"],"summary":"Edit Sender Form","operationId":"edit_sender_form_admin_email_senders__sender_id__edit_get","parameters":[{"name":"sender_id","in":"path","required":true,"schema":{"type":"integer","title":"Sender Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email/senders/{sender_id}":{"post":{"tags":["admin-email"],"summary":"Update Sender","operationId":"update_sender_admin_email_senders__sender_id__post","parameters":[{"name":"sender_id","in":"path","required":true,"schema":{"type":"integer","title":"Sender Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_sender_admin_email_senders__sender_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email/senders/{sender_id}/delete":{"post":{"tags":["admin-email"],"summary":"Deactivate Sender","operationId":"deactivate_sender_admin_email_senders__sender_id__delete_post","parameters":[{"name":"sender_id","in":"path","required":true,"schema":{"type":"integer","title":"Sender Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email/keys":{"get":{"tags":["admin-email"],"summary":"List Keys","operationId":"list_keys_admin_email_keys_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["admin-email"],"summary":"Create Key","operationId":"create_key_admin_email_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/email/keys/new":{"get":{"tags":["admin-email"],"summary":"New Key Form","operationId":"new_key_form_admin_email_keys_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/email/keys/{key_id}/revoke":{"post":{"tags":["admin-email"],"summary":"Revoke Key","operationId":"revoke_key_admin_email_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/email/usage":{"get":{"tags":["admin-email"],"summary":"Usage Dashboard","operationId":"usage_dashboard_admin_email_usage_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/email/log":{"get":{"tags":["admin-email"],"summary":"Send Log","operationId":"send_log_admin_email_log_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/personal-agent":{"post":{"tags":["personal-agent"],"summary":"Personal Agent","operationId":"personal_agent_api_v1_personal_agent_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/personal-agent/keys":{"get":{"tags":["admin-personal-agent"],"summary":"List Keys","operationId":"list_keys_admin_personal_agent_keys_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["admin-personal-agent"],"summary":"Create Key","operationId":"create_key_admin_personal_agent_keys_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_key_admin_personal_agent_keys_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/keys/new":{"get":{"tags":["admin-personal-agent"],"summary":"New Key Form","operationId":"new_key_form_admin_personal_agent_keys_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/personal-agent/keys/{key_id}/revoke":{"post":{"tags":["admin-personal-agent"],"summary":"Revoke Key","operationId":"revoke_key_admin_personal_agent_keys__key_id__revoke_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/usage":{"get":{"tags":["admin-personal-agent"],"summary":"Usage Dashboard","operationId":"usage_dashboard_admin_personal_agent_usage_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/personal-agent/memories":{"get":{"tags":["admin-personal-agent"],"summary":"List Memories","operationId":"list_memories_admin_personal_agent_memories_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["admin-personal-agent"],"summary":"Create Memory","operationId":"create_memory_admin_personal_agent_memories_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_memory_admin_personal_agent_memories_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/memories/new":{"get":{"tags":["admin-personal-agent"],"summary":"New Memory Form","operationId":"new_memory_form_admin_personal_agent_memories_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/personal-agent/memories/{memory_id}/edit":{"get":{"tags":["admin-personal-agent"],"summary":"Edit Memory Form","operationId":"edit_memory_form_admin_personal_agent_memories__memory_id__edit_get","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"integer","title":"Memory Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/memories/{memory_id}":{"post":{"tags":["admin-personal-agent"],"summary":"Update Memory","operationId":"update_memory_admin_personal_agent_memories__memory_id__post","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"integer","title":"Memory Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_memory_admin_personal_agent_memories__memory_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/memories/{memory_id}/delete":{"post":{"tags":["admin-personal-agent"],"summary":"Delete Memory","operationId":"delete_memory_admin_personal_agent_memories__memory_id__delete_post","parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"integer","title":"Memory Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/playground":{"get":{"tags":["admin-personal-agent"],"summary":"Playground Form","operationId":"playground_form_admin_personal_agent_playground_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["admin-personal-agent"],"summary":"Playground Run","operationId":"playground_run_admin_personal_agent_playground_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_playground_run_admin_personal_agent_playground_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes":{"get":{"tags":["personal-agent-mail"],"summary":"List Mailboxes","operationId":"list_mailboxes_admin_personal_agent_mailboxes_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["personal-agent-mail"],"summary":"Create Mailbox","operationId":"create_mailbox_admin_personal_agent_mailboxes_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_mailbox_admin_personal_agent_mailboxes_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/new":{"get":{"tags":["personal-agent-mail"],"summary":"New Mailbox Form","operationId":"new_mailbox_form_admin_personal_agent_mailboxes_new_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/edit":{"get":{"tags":["personal-agent-mail"],"summary":"Edit Mailbox Form","operationId":"edit_mailbox_form_admin_personal_agent_mailboxes__mailbox_id__edit_get","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}":{"post":{"tags":["personal-agent-mail"],"summary":"Update Mailbox","operationId":"update_mailbox_admin_personal_agent_mailboxes__mailbox_id__post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_mailbox_admin_personal_agent_mailboxes__mailbox_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/delete":{"post":{"tags":["personal-agent-mail"],"summary":"Delete Mailbox","operationId":"delete_mailbox_admin_personal_agent_mailboxes__mailbox_id__delete_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/test":{"post":{"tags":["personal-agent-mail"],"summary":"Test Mailbox","description":"Authenticate and EXAMINE the watched folder. Changes nothing.","operationId":"test_mailbox_admin_personal_agent_mailboxes__mailbox_id__test_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/folders":{"get":{"tags":["personal-agent-mail"],"summary":"Mailbox Folders","description":"Live folder listing. Server-rendered rather than fetched as JSON — the\nSeaside notes (SSR-27) record a whole family of \"JSON.parse: unexpected\ncharacter\" bugs from front-end fetch() calls hitting routes that returned\nan HTML error page.","operationId":"mailbox_folders_admin_personal_agent_mailboxes__mailbox_id__folders_get","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/folders/create":{"post":{"tags":["personal-agent-mail"],"summary":"Create Folder","description":"Create a destination folder the user named.\n\nDistinct from the auto-create that the move action deliberately refuses:\nthere, a typo would manufacture a folder nobody looks in. Here the user\ntyped it, sees the result, and the new folder appears in the listing and in\nevery rule's destination picker.","operationId":"create_folder_admin_personal_agent_mailboxes__mailbox_id__folders_create_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_folder_admin_personal_agent_mailboxes__mailbox_id__folders_create_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/toggle":{"post":{"tags":["personal-agent-mail"],"summary":"Toggle Mailbox","description":"Enable or disable polling.\n\nEnabling baselines the watermark to the folder's current UIDNEXT so the\nmonitor starts from *now*. Without this the first poll would sweep the\nentire folder — years of mail — and file all of it. If the baseline probe\nfails we refuse to enable rather than enabling with a NULL watermark.","operationId":"toggle_mailbox_admin_personal_agent_mailboxes__mailbox_id__toggle_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/toggle-dry-run":{"post":{"tags":["personal-agent-mail"],"summary":"Toggle Dry Run","description":"Turn live filing on or off for a mailbox.\n\nOnly meaningful in prod: outside it dev_guard.contain_mailbox_action forces\ndry run regardless, so the flag is recorded but has no effect. The flash\nsays so rather than letting a dev box look armed when it isn't.","operationId":"toggle_dry_run_admin_personal_agent_mailboxes__mailbox_id__toggle_dry_run_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/rules":{"get":{"tags":["personal-agent-mail"],"summary":"List Rules","operationId":"list_rules_admin_personal_agent_rules_get","parameters":[{"name":"mailbox_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["personal-agent-mail"],"summary":"Create Rule","operationId":"create_rule_admin_personal_agent_rules_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_create_rule_admin_personal_agent_rules_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/rules/new":{"get":{"tags":["personal-agent-mail"],"summary":"New Rule Form","description":"New-rule form, optionally pre-filled.\n\nPreview links here with the sender already filled in, so \"this address\nsends me 40 messages a week\" turns into a rule in one click instead of\nretyping an address into an empty form.","operationId":"new_rule_form_admin_personal_agent_rules_new_get","parameters":[{"name":"mailbox_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mailbox Id"}},{"name":"match_field","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Field"}},{"name":"match_value","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Value"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/rules/{rule_id}/edit":{"get":{"tags":["personal-agent-mail"],"summary":"Edit Rule Form","operationId":"edit_rule_form_admin_personal_agent_rules__rule_id__edit_get","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/rules/{rule_id}":{"post":{"tags":["personal-agent-mail"],"summary":"Update Rule","operationId":"update_rule_admin_personal_agent_rules__rule_id__post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_update_rule_admin_personal_agent_rules__rule_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/rules/{rule_id}/toggle":{"post":{"tags":["personal-agent-mail"],"summary":"Toggle Rule","operationId":"toggle_rule_admin_personal_agent_rules__rule_id__toggle_post","parameters":[{"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"}}}}}}},"/admin/personal-agent/rules/{rule_id}/delete":{"post":{"tags":["personal-agent-mail"],"summary":"Delete Rule","operationId":"delete_rule_admin_personal_agent_rules__rule_id__delete_post","parameters":[{"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"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/preview":{"get":{"tags":["personal-agent-mail"],"summary":"Preview Mailbox","description":"Dry run against the newest messages already in the folder.\n\nTouches nothing and advances nothing -- not the watermark, not the hit\ncounters, not the activity log. Tuning a rule needs real mail to test\nagainst, and this is the only sample available before new mail arrives.","operationId":"preview_mailbox_admin_personal_agent_mailboxes__mailbox_id__preview_get","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/process-now":{"post":{"tags":["personal-agent-mail"],"summary":"Process Now","description":"Run a real poll tick for this mailbox immediately.\n\nStill preview-only in phase 2 -- it advances the watermark and writes\nactivity rows, but performs no action on the mailbox.","operationId":"process_now_admin_personal_agent_mailboxes__mailbox_id__process_now_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/run-range":{"post":{"tags":["personal-agent-mail"],"summary":"Run Range","description":"Apply the rules to a historical date range, for real.\n\nSeparate from Process Now, which polls forward from the watermark. This\nreaches backwards and never moves the watermark, so a backlog sweep cannot\ndisturb live polling.","operationId":"run_range_admin_personal_agent_mailboxes__mailbox_id__run_range_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"allOf":[{"$ref":"#/components/schemas/Body_run_range_admin_personal_agent_mailboxes__mailbox_id__run_range_post"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/mailboxes/{mailbox_id}/cleanup-stranded":{"post":{"tags":["personal-agent-mail"],"summary":"Cleanup Stranded","description":"Finish moves that only copied, by removing the flagged-deleted originals.\n\nOnly touches UIDs this mailbox recorded as copied-but-not-expunged, and\nonly those still flagged \\Deleted on the server right now.","operationId":"cleanup_stranded_admin_personal_agent_mailboxes__mailbox_id__cleanup_stranded_post","parameters":[{"name":"mailbox_id","in":"path","required":true,"schema":{"type":"integer","title":"Mailbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/personal-agent/activity":{"get":{"tags":["personal-agent-mail"],"summary":"Activity","operationId":"activity_admin_personal_agent_activity_get","parameters":[{"name":"mailbox_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mailbox Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/capabilities":{"get":{"tags":["capabilities"],"summary":"Capabilities Page","operationId":"capabilities_page_admin_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/capabilities/add":{"post":{"tags":["capabilities"],"summary":"Capability Add","operationId":"capability_add_admin_capabilities_add_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_capability_add_admin_capabilities_add_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/capabilities/remove":{"post":{"tags":["capabilities"],"summary":"Capability Remove","operationId":"capability_remove_admin_capabilities_remove_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_capability_remove_admin_capabilities_remove_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/capabilities":{"get":{"tags":["capabilities"],"summary":"User Capabilities Page","operationId":"user_capabilities_page_admin_users__user_id__capabilities_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/capabilities/grant":{"post":{"tags":["capabilities"],"summary":"User Capability Grant","operationId":"user_capability_grant_admin_users__user_id__capabilities_grant_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_user_capability_grant_admin_users__user_id__capabilities_grant_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/capabilities/revoke":{"post":{"tags":["capabilities"],"summary":"User Capability Revoke","operationId":"user_capability_revoke_admin_users__user_id__capabilities_revoke_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_user_capability_revoke_admin_users__user_id__capabilities_revoke_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/capabilities/{override_id}/delete":{"post":{"tags":["capabilities"],"summary":"User Capability Delete","operationId":"user_capability_delete_admin_users__user_id__capabilities__override_id__delete_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"override_id","in":"path","required":true,"schema":{"type":"integer","title":"Override Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support":{"get":{"tags":["support"],"summary":"Support Entry","description":"Convert an Authentik identity into a short-lived admin session.","operationId":"support_entry_support_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/timeclock/punch":{"post":{"tags":["timeclock"],"summary":"Punch","description":"Toggle clock in/out. Works with Bearer token, session, or employee_id+PIN.\n\nBody (all optional):\n    action: \"toggle\" (default), \"in\", or \"out\"\n    employee_id: 12, pin: \"123456\" (for kiosk mode -- AWF-155, both required)\n    source: \"web\", \"shortcut\", \"mcp\", \"kiosk\"\n    location: {\"lat\": 32.89, \"lng\": -96.79}\n    notes: \"optional note\"","operationId":"punch_api_timeclock_punch_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/timeclock/status":{"get":{"tags":["timeclock"],"summary":"Timeclock Status","description":"Get current clock-in status for the authenticated employee.","operationId":"timeclock_status_api_timeclock_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/timeclock/timecard":{"get":{"tags":["timeclock"],"summary":"Timecard Api","description":"Get timecard for authenticated employee. Defaults to the current (open) pay period.","operationId":"timecard_api_api_timeclock_timecard_get","parameters":[{"name":"start","in":"query","required":false,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/timeclock/employee-punches":{"get":{"tags":["timeclock"],"summary":"Employee Punches","description":"Admin: list one employee's punches for a date range, plus refreshed totals.\n\nBacks the Timecards drill-down (click an employee row to expand their punches).\nAdmin-gated — these reads expose other employees' time, so do not loosen to\nrequire_auth (see the security ticket on over-permissive timeclock endpoints).","operationId":"employee_punches_api_timeclock_employee_punches_get","parameters":[{"name":"emp_id","in":"query","required":true,"schema":{"type":"integer","title":"Emp Id"}},{"name":"start","in":"query","required":false,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"type":"string","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/timeclock/kiosk":{"post":{"tags":["timeclock"],"summary":"Kiosk Punch","description":"Employee-ID + PIN clock in/out for shared kiosk devices (AWF-155:\nPIN alone can no longer resolve who submitted it -- see\nresolve_employee_from_pin).","operationId":"kiosk_punch_api_timeclock_kiosk_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/timeclock/active":{"get":{"tags":["timeclock"],"summary":"Active Employees","description":"Get all currently clocked-in employees (admin view).","operationId":"active_employees_api_timeclock_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/employees/{employee_id}/token":{"post":{"tags":["timeclock"],"summary":"Create Employee Token","description":"Generate a new API token for an employee (admin only).","operationId":"create_employee_token_api_employees__employee_id__token_post","parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"integer","title":"Employee Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/timeclock":{"get":{"tags":["timeclock"],"summary":"Timeclock Page","description":"Timeclock dashboard — shows status and clock in/out button.","operationId":"timeclock_page_timeclock_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/kiosk":{"get":{"tags":["timeclock"],"summary":"Kiosk Page","description":"PIN entry kiosk page — no login required, standalone.","operationId":"kiosk_page_kiosk_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/punch-approval":{"get":{"tags":["timeclock"],"summary":"Punch Approval Page","description":"Show pending punches that need supervisor/admin approval.","operationId":"punch_approval_page_admin_punch_approval_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/notifications":{"get":{"tags":["timeclock"],"summary":"Notifications Settings Page","description":"Operational notification settings: recipients + last-send status per rule.","operationId":"notifications_settings_page_admin_notifications_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/notifications/save":{"post":{"tags":["timeclock"],"summary":"Save Notification Recipients","description":"Save the notification recipient lists for all three operational notification rules.","operationId":"save_notification_recipients_admin_notifications_save_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"allOf":[{"$ref":"#/components/schemas/Body_save_notification_recipients_admin_notifications_save_post"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/timeclock/approve/{punch_id}":{"post":{"tags":["timeclock"],"summary":"Approve Punch","description":"Approve a timecard punch (admin only).","operationId":"approve_punch_api_timeclock_approve__punch_id__post","parameters":[{"name":"punch_id","in":"path","required":true,"schema":{"type":"integer","title":"Punch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/timeclock/approve-all":{"post":{"tags":["timeclock"],"summary":"Approve All Punches","description":"Approve all pending punches except the caller's own (admin only).","operationId":"approve_all_punches_api_timeclock_approve_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/timeclock/reject/{punch_id}":{"post":{"tags":["timeclock"],"summary":"Reject Punch","description":"Reject a punch — soft-delete (preserves history) + audit (admin only).","operationId":"reject_punch_api_timeclock_reject__punch_id__post","parameters":[{"name":"punch_id","in":"path","required":true,"schema":{"type":"integer","title":"Punch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/timeclock/manual-punch":{"post":{"tags":["timeclock"],"summary":"Manual Punch","description":"Admin: manually add or edit a timecard punch.","operationId":"manual_punch_api_timeclock_manual_punch_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/manual-punch":{"get":{"tags":["timeclock"],"summary":"Manual Punch Page","description":"Admin screen to maintain time entries: add, edit, approve, reject.\n\nQuery params (all optional):\n    punch_id    preload this entry into the form for editing\n                (used by the Punch Approval click-through)\n    employee_id preselect this employee for a new entry\n    emp         filter the entry list to one employee\n    start, end  YYYY-MM-DD range for the entry list (default: open pay period)","operationId":"manual_punch_page_admin_manual_punch_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/payroll":{"get":{"tags":["timeclock"],"summary":"Payroll Report","description":"Payroll report — approved hours × pay rate per employee.","operationId":"payroll_report_admin_payroll_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/timeclock/self-register":{"post":{"tags":["timeclock"],"summary":"Self Register","description":"Self-registration for employees (kiosk mode). Disabled by default.\nEnable with ALLOW_SELF_REGISTRATION=true env var. Even when enabled, requires\nthe same X-Service-Key as punch-as/status-as/active-svc (AWF-170) -- the env\nflag is a feature toggle, not the auth check. Without this, the route lost its\nonly protection (an unrelated Caddy edge gate, removed as part of AWF-169) and\nbecame one env-var flip away from public, attacker-chosen-PIN employee creation.","operationId":"self_register_api_timeclock_self_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/payroll/export":{"get":{"tags":["timeclock"],"summary":"Export Payroll Csv","description":"Export payroll data as CSV.","operationId":"export_payroll_csv_admin_payroll_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/timecards/export":{"get":{"tags":["timeclock"],"summary":"Export Timecards Csv","description":"Export timecard data as CSV.","operationId":"export_timecards_csv_admin_timecards_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/timeclock-weekly":{"get":{"tags":["timeclock"],"summary":"Timeclock Weekly","description":"Bi-weekly grid of hours per employee per day (Sun–Sat × 2), aligned to the\npay periods defined in shared.py, plus who is currently clocked in with a\nrunning duration and a forgot-to-clock-out (>10h) flag.\n\nDefaults to the most recently completed pay period; ?start&end (from the\nperiod nav) override. Overtime is highlighted per week (>40h in either week).","operationId":"timeclock_weekly_admin_timeclock_weekly_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/timeclock/punch-as":{"post":{"tags":["timeclock"],"summary":"Punch As","description":"Service-authed clock in/out on behalf of a named employee.\n\nAuth:  header  X-Service-Key: <TIMECLOCK_SERVICE_KEY>\nBody:  {\"employee\": \"<email or handle>\", \"action\": \"in\"|\"out\"|\"toggle\",\n        \"source\"?: str, \"notes\"?: str}\n\n'employee' matches the full email OR the email local-part (handle),\ncase-insensitive. Powers MCP self clock-in (caller -> email) and the\nadmin 'clock in a named employee' tool.","operationId":"punch_as_api_timeclock_punch_as_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/timeclock/status-as":{"get":{"tags":["timeclock"],"summary":"Status As","description":"Service-authed clock-in status + today/week hours for a named employee.","operationId":"status_as_api_timeclock_status_as_get","parameters":[{"name":"employee","in":"query","required":false,"schema":{"type":"string","default":"","title":"Employee"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/timeclock/active-svc":{"get":{"tags":["timeclock"],"summary":"Active Svc","description":"Service-authed list of everyone currently clocked in.","operationId":"active_svc_api_timeclock_active_svc_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/employees":{"get":{"tags":["employees"],"summary":"Employee List","operationId":"employee_list_admin_employees_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/employees/add":{"post":{"tags":["employees"],"summary":"Add Employee","operationId":"add_employee_admin_employees_add_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_employee_admin_employees_add_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employees/import-template":{"get":{"tags":["employees"],"summary":"Employee Import Template","description":"Download a starter CSV with the expected columns + one example row.","operationId":"employee_import_template_admin_employees_import_template_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/employees/import":{"post":{"tags":["employees"],"summary":"Import Employees","description":"Bulk-create employee records from an uploaded CSV.\n\nCreates employee records only — same as single-add today, this does not\ncreate a login account in the same step (AWF-129: account creation stays\na separate manual step via Register / Admin > Users). A bad optional field\n(PIN, pay_rate, hire_date, department) doesn't fail the whole row — the\nemployee is still imported and the issue is reported so it can be fixed\nafterward, since re-uploading a whole file over one typo is poor UX for\nonboarding a full team at once.","operationId":"import_employees_admin_employees_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_employees_admin_employees_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employees/{emp_id}/edit":{"get":{"tags":["employees"],"summary":"Edit Employee Form","operationId":"edit_employee_form_admin_employees__emp_id__edit_get","parameters":[{"name":"emp_id","in":"path","required":true,"schema":{"type":"integer","title":"Emp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["employees"],"summary":"Edit Employee","operationId":"edit_employee_admin_employees__emp_id__edit_post","parameters":[{"name":"emp_id","in":"path","required":true,"schema":{"type":"integer","title":"Emp Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_edit_employee_admin_employees__emp_id__edit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employees/{emp_id}/deactivate":{"post":{"tags":["employees"],"summary":"Deactivate Employee","operationId":"deactivate_employee_admin_employees__emp_id__deactivate_post","parameters":[{"name":"emp_id","in":"path","required":true,"schema":{"type":"integer","title":"Emp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employees/{emp_id}/delete":{"post":{"tags":["employees"],"summary":"Delete Employee","operationId":"delete_employee_admin_employees__emp_id__delete_post","parameters":[{"name":"emp_id","in":"path","required":true,"schema":{"type":"integer","title":"Emp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employees/{emp_id}/generate-token":{"post":{"tags":["employees"],"summary":"Generate Token","operationId":"generate_token_admin_employees__emp_id__generate_token_post","parameters":[{"name":"emp_id","in":"path","required":true,"schema":{"type":"integer","title":"Emp Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employees/{emp_id}/revoke-token/{token_id}":{"post":{"tags":["employees"],"summary":"Revoke Token","operationId":"revoke_token_admin_employees__emp_id__revoke_token__token_id__post","parameters":[{"name":"emp_id","in":"path","required":true,"schema":{"type":"integer","title":"Emp Id"}},{"name":"token_id","in":"path","required":true,"schema":{"type":"integer","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/departments":{"get":{"tags":["employees"],"summary":"Department List","operationId":"department_list_admin_departments_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/departments/add":{"post":{"tags":["employees"],"summary":"Add Department","operationId":"add_department_admin_departments_add_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_department_admin_departments_add_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/timecards":{"get":{"tags":["employees"],"summary":"Timecard Report","operationId":"timecard_report_admin_timecards_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/app/auth/request-code":{"post":{"tags":["field-app"],"summary":"Request Code","operationId":"request_code_api_app_auth_request_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/auth/verify":{"post":{"tags":["field-app"],"summary":"Verify","operationId":"verify_api_app_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/auth/refresh":{"post":{"tags":["field-app"],"summary":"Refresh","operationId":"refresh_api_app_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/auth/logout":{"post":{"tags":["field-app"],"summary":"Logout","operationId":"logout_api_app_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/me":{"get":{"tags":["field-app"],"summary":"Me","description":"Confirms the token works and identifies the signed-in operator.","operationId":"me_api_app_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/app/capabilities":{"get":{"tags":["field-app"],"summary":"Capabilities","description":"What this operator's app can do — the enabled capabilities (config-driven).","operationId":"capabilities_api_app_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/app/sessions":{"get":{"tags":["field-app"],"summary":"List Sessions","operationId":"list_sessions_api_app_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["field-app"],"summary":"Create Session","operationId":"create_session_api_app_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/sessions/{session_id}/close":{"post":{"tags":["field-app"],"summary":"Close Session","operationId":"close_session_api_app_sessions__session_id__close_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/captures/presign":{"post":{"tags":["field-app"],"summary":"Presign","operationId":"presign_api_app_captures_presign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/captures/upload":{"put":{"tags":["field-app"],"summary":"Upload","operationId":"upload_api_app_captures_upload_put","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/captures":{"post":{"tags":["field-app"],"summary":"Register","operationId":"register_api_app_captures_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/captures/session/{session_id}":{"get":{"tags":["field-app"],"summary":"Poll","operationId":"poll_api_app_captures_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/captures/{capture_id}/confirm":{"post":{"tags":["field-app"],"summary":"Confirm","description":"Human-in-the-loop commit: record + audit atomically, then run the configured actions.","operationId":"confirm_api_app_captures__capture_id__confirm_post","parameters":[{"name":"capture_id","in":"path","required":true,"schema":{"type":"integer","title":"Capture Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/captures/{capture_id}/reject":{"post":{"tags":["field-app"],"summary":"Reject","operationId":"reject_api_app_captures__capture_id__reject_post","parameters":[{"name":"capture_id","in":"path","required":true,"schema":{"type":"integer","title":"Capture Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/app/requests":{"get":{"tags":["field-app"],"summary":"List Requests","operationId":"list_requests_api_app_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["field-app"],"summary":"Create Request","operationId":"create_request_api_app_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/field":{"get":{"tags":["field-admin"],"summary":"Dashboard","operationId":"dashboard_admin_field_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/field/sessions/{session_id}":{"get":{"tags":["field-admin"],"summary":"Session Detail","operationId":"session_detail_admin_field_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/field/media/{kind}/{name}":{"get":{"tags":["field-admin"],"summary":"Media","operationId":"media_admin_field_media__kind___name__get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"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"}}}}}}},"/admin/field/captures/{capture_id}/confirm":{"post":{"tags":["field-admin"],"summary":"Web Confirm","operationId":"web_confirm_admin_field_captures__capture_id__confirm_post","parameters":[{"name":"capture_id","in":"path","required":true,"schema":{"type":"integer","title":"Capture Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_web_confirm_admin_field_captures__capture_id__confirm_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/field/captures/{capture_id}/reject":{"post":{"tags":["field-admin"],"summary":"Web Reject","operationId":"web_reject_admin_field_captures__capture_id__reject_post","parameters":[{"name":"capture_id","in":"path","required":true,"schema":{"type":"integer","title":"Capture Id"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_web_reject_admin_field_captures__capture_id__reject_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/field/config":{"get":{"tags":["field-admin"],"summary":"Config Page","operationId":"config_page_admin_field_config_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/field/config/mapping/{mapping_id}/toggle-confirm":{"post":{"tags":["field-admin"],"summary":"Toggle Confirm","operationId":"toggle_confirm_admin_field_config_mapping__mapping_id__toggle_confirm_post","parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"integer","title":"Mapping Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/field/config/mapping/{mapping_id}/toggle-active":{"post":{"tags":["field-admin"],"summary":"Toggle Active","operationId":"toggle_active_admin_field_config_mapping__mapping_id__toggle_active_post","parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"integer","title":"Mapping Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/field/config/mapping/add":{"post":{"tags":["field-admin"],"summary":"Add Mapping","operationId":"add_mapping_admin_field_config_mapping_add_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_add_mapping_admin_field_config_mapping_add_post"}}},"required":true},"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 Check","description":"Health check endpoint.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin":{"get":{"summary":"Admin Redirect","operationId":"admin_redirect_admin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Home","description":"Home page - marketing content or dashboard if logged in.","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/dashboard":{"get":{"summary":"Dashboard","description":"User dashboard with KPIs.","operationId":"dashboard_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/login":{"get":{"summary":"Login Page","description":"Login page.","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Do Login","description":"Process login form.","operationId":"do_login_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_do_login_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/logout":{"post":{"summary":"Do Logout","description":"Logout user.","operationId":"do_logout_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/about":{"get":{"summary":"About","description":"About page.","operationId":"about_about_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/contact":{"get":{"summary":"Contact","description":"Contact page.","operationId":"contact_contact_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Contact Submit","operationId":"contact_submit_contact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/solutions":{"get":{"summary":"Solutions","description":"Solutions overview.","operationId":"solutions_solutions_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/solutions/automated-workflows":{"get":{"summary":"Automated Workflows","description":"Automated Workflows solution page.","operationId":"automated_workflows_solutions_automated_workflows_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/solutions/document-automation":{"get":{"summary":"Document Automation","description":"Document Automation solution page.","operationId":"document_automation_solutions_document_automation_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/solutions/service-desk":{"get":{"summary":"Service Desk","description":"Service Desk solution page.","operationId":"service_desk_solutions_service_desk_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/solutions/receipts":{"get":{"summary":"Receipts","description":"Receipts & Billing solution page.","operationId":"receipts_solutions_receipts_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pricing":{"get":{"summary":"Pricing","description":"Pricing page (AWF-126). Shown as \"Contact us\" (no published prices).\nLinked from the main nav.","operationId":"pricing_pricing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/industries":{"get":{"summary":"Industries","description":"Industries overview.","operationId":"industries_industries_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/industries/manufacturing":{"get":{"summary":"Manufacturing","description":"Manufacturing industry page.","operationId":"manufacturing_industries_manufacturing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/industries/aviation":{"get":{"summary":"Aviation","operationId":"aviation_industries_aviation_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/industries/retail":{"get":{"summary":"Retail","description":"Retail industry page.","operationId":"retail_industries_retail_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/use-cases":{"get":{"summary":"Use Cases","description":"Use cases page.","operationId":"use_cases_use_cases_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/register":{"get":{"summary":"Register Page","description":"User registration page.","operationId":"register_page_register_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Do Register","operationId":"do_register_register_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_do_register_register_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot-password":{"get":{"summary":"Forgot Password Page","description":"Forgot-password request form.","operationId":"forgot_password_page_forgot_password_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Forgot Password Submit","description":"Send a reset link if the email matches an active account. Always shows the same\ngeneric confirmation, whether or not the account exists, to avoid leaking which\nemails are registered.","operationId":"forgot_password_submit_forgot_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_forgot_password_submit_forgot_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reset-password":{"get":{"summary":"Reset Password Page","description":"Password reset form. Rejects missing/expired/invalid tokens up front.","operationId":"reset_password_page_reset_password_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Reset Password Submit","operationId":"reset_password_submit_reset_password_post","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_reset_password_submit_reset_password_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/automation":{"get":{"summary":"Automation","description":"AI Automation page.","operationId":"automation_automation_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/consulting":{"get":{"summary":"Consulting","description":"Consulting page.","operationId":"consulting_consulting_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"Body_add_department_admin_departments_add_post":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"Body_add_department_admin_departments_add_post"},"Body_add_employee_admin_employees_add_post":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email","default":""},"phone":{"type":"string","title":"Phone","default":""},"department_id":{"type":"integer","title":"Department Id"},"job_title":{"type":"string","title":"Job Title","default":""},"pay_rate":{"type":"number","title":"Pay Rate","default":0},"pay_type":{"type":"string","title":"Pay Type","default":"hourly"},"pin":{"type":"string","title":"Pin","default":""}},"type":"object","required":["first_name","last_name"],"title":"Body_add_employee_admin_employees_add_post"},"Body_add_mapping_admin_field_config_mapping_add_post":{"properties":{"capability_id":{"type":"integer","title":"Capability Id"},"action_id":{"type":"integer","title":"Action Id"},"requires_confirm":{"type":"string","title":"Requires Confirm","default":""},"sort_order":{"type":"integer","title":"Sort Order","default":1}},"type":"object","required":["capability_id","action_id"],"title":"Body_add_mapping_admin_field_config_mapping_add_post"},"Body_capability_add_admin_capabilities_add_post":{"properties":{"auth_level":{"type":"string","title":"Auth Level"},"capability":{"type":"string","title":"Capability"}},"type":"object","required":["auth_level","capability"],"title":"Body_capability_add_admin_capabilities_add_post"},"Body_capability_remove_admin_capabilities_remove_post":{"properties":{"auth_level":{"type":"string","title":"Auth Level"},"capability":{"type":"string","title":"Capability"}},"type":"object","required":["auth_level","capability"],"title":"Body_capability_remove_admin_capabilities_remove_post"},"Body_change_password_profile_change_password_post":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"},"confirm_password":{"type":"string","title":"Confirm Password"}},"type":"object","required":["current_password","new_password","confirm_password"],"title":"Body_change_password_profile_change_password_post"},"Body_contract_save_admin_contracts_save_post":{"properties":{"contract_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contract Id"},"company_id":{"type":"integer","title":"Company Id"},"contract_name":{"type":"string","title":"Contract Name"},"start_date":{"type":"string","title":"Start Date","default":""},"end_date":{"type":"string","title":"End Date","default":""},"contract_terms":{"type":"string","title":"Contract Terms","default":""},"total_amount":{"type":"string","title":"Total Amount","default":""},"monthly_fee":{"type":"string","title":"Monthly Fee","default":""},"support_hours":{"type":"string","title":"Support Hours","default":"4"},"payment_terms":{"type":"string","title":"Payment Terms","default":""},"governing_law":{"type":"string","title":"Governing Law","default":""},"status":{"type":"string","title":"Status","default":"Draft"},"apply_tax":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apply Tax"}},"type":"object","required":["company_id","contract_name"],"title":"Body_contract_save_admin_contracts_save_post"},"Body_create_folder_admin_personal_agent_mailboxes__mailbox_id__folders_create_post":{"properties":{"folder_name":{"type":"string","title":"Folder Name"}},"type":"object","required":["folder_name"],"title":"Body_create_folder_admin_personal_agent_mailboxes__mailbox_id__folders_create_post"},"Body_create_key_admin_personal_agent_keys_post":{"properties":{"label":{"type":"string","title":"Label"},"bound_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bound Username"},"rate_limit_per_hour":{"type":"integer","title":"Rate Limit Per Hour","default":60},"debug_enabled":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Debug Enabled"},"confirm_unbound":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Unbound"}},"type":"object","required":["label"],"title":"Body_create_key_admin_personal_agent_keys_post"},"Body_create_mailbox_admin_personal_agent_mailboxes_post":{"properties":{"label":{"type":"string","title":"Label"},"provider":{"type":"string","title":"Provider","default":"imap"},"imap_host":{"type":"string","title":"Imap Host"},"imap_port":{"type":"integer","title":"Imap Port","default":993},"imap_username":{"type":"string","title":"Imap Username"},"imap_password":{"type":"string","title":"Imap Password"},"watch_folder":{"type":"string","title":"Watch Folder","default":"INBOX"},"poll_interval_minutes":{"type":"integer","title":"Poll Interval Minutes","default":15},"use_ssl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Ssl"}},"type":"object","required":["label","imap_host","imap_username","imap_password"],"title":"Body_create_mailbox_admin_personal_agent_mailboxes_post"},"Body_create_memory_admin_personal_agent_memories_post":{"properties":{"username":{"type":"string","title":"Username"},"content":{"type":"string","title":"Content"}},"type":"object","required":["username","content"],"title":"Body_create_memory_admin_personal_agent_memories_post"},"Body_create_rule_admin_personal_agent_rules_post":{"properties":{"mailbox_id":{"type":"integer","title":"Mailbox Id"},"match_field":{"type":"string","title":"Match Field"},"match_op":{"type":"string","title":"Match Op"},"match_value":{"type":"string","title":"Match Value","default":""},"action":{"type":"string","title":"Action"},"action_target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Target"},"sort_order":{"type":"integer","title":"Sort Order","default":100},"min_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Confidence"}},"type":"object","required":["mailbox_id","match_field","match_op","action"],"title":"Body_create_rule_admin_personal_agent_rules_post"},"Body_create_sender_admin_email_senders_post":{"properties":{"from_address":{"type":"string","title":"From Address"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"smtp_host":{"type":"string","title":"Smtp Host"},"smtp_port":{"type":"integer","title":"Smtp Port","default":587},"smtp_username":{"type":"string","title":"Smtp Username"},"smtp_password":{"type":"string","title":"Smtp Password"},"use_tls":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Tls"}},"type":"object","required":["from_address","smtp_host","smtp_username","smtp_password"],"title":"Body_create_sender_admin_email_senders_post"},"Body_delete_system_parameter_admin_system_delete_post":{"properties":{"param_id":{"type":"integer","title":"Param Id"}},"type":"object","required":["param_id"],"title":"Body_delete_system_parameter_admin_system_delete_post"},"Body_do_login_login_post":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"Body_do_login_login_post"},"Body_do_register_register_post":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"mobile":{"type":"string","title":"Mobile","default":""},"password":{"type":"string","title":"Password"},"confirm_password":{"type":"string","title":"Confirm Password"},"company_name":{"type":"string","title":"Company Name","default":""},"timezone":{"type":"string","title":"Timezone","default":"America/Chicago"},"sms_opt_in":{"type":"string","title":"Sms Opt In","default":""}},"type":"object","required":["first_name","last_name","email","password","confirm_password"],"title":"Body_do_register_register_post"},"Body_edit_employee_admin_employees__emp_id__edit_post":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email","default":""},"phone":{"type":"string","title":"Phone","default":""},"department_id":{"type":"integer","title":"Department Id"},"job_title":{"type":"string","title":"Job Title","default":""},"pay_rate":{"type":"number","title":"Pay Rate","default":0},"pay_type":{"type":"string","title":"Pay Type","default":"hourly"},"pin":{"type":"string","title":"Pin","default":""},"clear_pin":{"type":"boolean","title":"Clear Pin","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true},"emergency_contact_name":{"type":"string","title":"Emergency Contact Name","default":""},"emergency_contact_phone":{"type":"string","title":"Emergency Contact Phone","default":""}},"type":"object","required":["first_name","last_name"],"title":"Body_edit_employee_admin_employees__emp_id__edit_post"},"Body_execute_sql_admin_sql_execute_post":{"properties":{"query":{"type":"string","title":"Query"}},"type":"object","required":["query"],"title":"Body_execute_sql_admin_sql_execute_post"},"Body_forgot_password_submit_forgot_password_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_forgot_password_submit_forgot_password_post"},"Body_import_employees_admin_employees_import_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_import_employees_admin_employees_import_post"},"Body_playground_run_admin_personal_agent_playground_post":{"properties":{"command":{"type":"string","title":"Command"},"username":{"type":"string","title":"Username"},"classify_prompt_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classify Prompt Override"},"answer_prompt_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Prompt Override"}},"type":"object","required":["command","username"],"title":"Body_playground_run_admin_personal_agent_playground_post"},"Body_reset_password_submit_reset_password_post":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"},"confirm_password":{"type":"string","title":"Confirm Password"}},"type":"object","required":["token","password","confirm_password"],"title":"Body_reset_password_submit_reset_password_post"},"Body_run_range_admin_personal_agent_mailboxes__mailbox_id__run_range_post":{"properties":{"since":{"type":"string","title":"Since","default":""},"before":{"type":"string","title":"Before","default":""},"limit":{"type":"integer","title":"Limit","default":100}},"type":"object","title":"Body_run_range_admin_personal_agent_mailboxes__mailbox_id__run_range_post"},"Body_save_company_admin_companies_save_post":{"properties":{"company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"address_line1":{"type":"string","title":"Address Line1","default":""},"address_line2":{"type":"string","title":"Address Line2","default":""},"city":{"type":"string","title":"City","default":""},"state":{"type":"string","title":"State","default":""},"zip_code":{"type":"string","title":"Zip Code","default":""},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"website":{"type":"string","title":"Website","default":""},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["company_name"],"title":"Body_save_company_admin_companies_save_post"},"Body_save_contact_admin_contacts_save_post":{"properties":{"contact_id":{"type":"integer","title":"Contact Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email","default":""},"phone":{"type":"string","title":"Phone","default":""},"mobile":{"type":"string","title":"Mobile","default":""},"company_id":{"type":"integer","title":"Company Id"},"title":{"type":"string","title":"Title","default":""},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["first_name","last_name"],"title":"Body_save_contact_admin_contacts_save_post"},"Body_save_notification_recipients_admin_notifications_save_post":{"properties":{"punch_approval_emails":{"type":"string","title":"Punch Approval Emails","default":""},"overtime_warning_emails":{"type":"string","title":"Overtime Warning Emails","default":""},"pay_period_close_emails":{"type":"string","title":"Pay Period Close Emails","default":""}},"type":"object","title":"Body_save_notification_recipients_admin_notifications_save_post"},"Body_save_system_parameter_admin_system_save_post":{"properties":{"param_name":{"type":"string","title":"Param Name"},"param_value":{"type":"string","title":"Param Value"},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["param_name","param_value"],"title":"Body_save_system_parameter_admin_system_save_post"},"Body_save_user_admin_users_save_post":{"properties":{"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"username":{"type":"string","title":"Username"},"first_name":{"type":"string","title":"First Name","default":""},"last_name":{"type":"string","title":"Last Name","default":""},"email":{"type":"string","title":"Email","default":""},"password":{"type":"string","title":"Password","default":""},"is_admin":{"type":"boolean","title":"Is Admin","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true},"authorization_level":{"type":"string","title":"Authorization Level","default":"User"},"default_company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Company Id"}},"type":"object","required":["username"],"title":"Body_save_user_admin_users_save_post"},"Body_send_email_api_v1_email_send_post":{"properties":{"from_":{"type":"string","title":"From "},"to":{"type":"string","title":"To"},"subject":{"type":"string","title":"Subject"},"cc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cc"},"bcc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bcc"},"body_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Text"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"attachments":{"items":{"type":"string","format":"binary"},"type":"array","title":"Attachments","default":[]}},"type":"object","required":["from_","to","subject"],"title":"Body_send_email_api_v1_email_send_post"},"Body_update_mailbox_admin_personal_agent_mailboxes__mailbox_id__post":{"properties":{"label":{"type":"string","title":"Label"},"provider":{"type":"string","title":"Provider","default":"imap"},"imap_host":{"type":"string","title":"Imap Host"},"imap_port":{"type":"integer","title":"Imap Port","default":993},"imap_username":{"type":"string","title":"Imap Username"},"imap_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imap Password"},"watch_folder":{"type":"string","title":"Watch Folder","default":"INBOX"},"poll_interval_minutes":{"type":"integer","title":"Poll Interval Minutes","default":15},"use_ssl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Ssl"}},"type":"object","required":["label","imap_host","imap_username"],"title":"Body_update_mailbox_admin_personal_agent_mailboxes__mailbox_id__post"},"Body_update_memory_admin_personal_agent_memories__memory_id__post":{"properties":{"username":{"type":"string","title":"Username"},"content":{"type":"string","title":"Content"}},"type":"object","required":["username","content"],"title":"Body_update_memory_admin_personal_agent_memories__memory_id__post"},"Body_update_profile_profile_update_post":{"properties":{"first_name":{"type":"string","title":"First Name","default":""},"last_name":{"type":"string","title":"Last Name","default":""},"email":{"type":"string","title":"Email","default":""},"phone":{"type":"string","title":"Phone","default":""}},"type":"object","title":"Body_update_profile_profile_update_post"},"Body_update_rule_admin_personal_agent_rules__rule_id__post":{"properties":{"match_field":{"type":"string","title":"Match Field"},"match_op":{"type":"string","title":"Match Op"},"match_value":{"type":"string","title":"Match Value","default":""},"action":{"type":"string","title":"Action"},"action_target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Target"},"sort_order":{"type":"integer","title":"Sort Order","default":100},"min_confidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Confidence"}},"type":"object","required":["match_field","match_op","action"],"title":"Body_update_rule_admin_personal_agent_rules__rule_id__post"},"Body_update_sender_admin_email_senders__sender_id__post":{"properties":{"from_address":{"type":"string","title":"From Address"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"smtp_host":{"type":"string","title":"Smtp Host"},"smtp_port":{"type":"integer","title":"Smtp Port","default":587},"smtp_username":{"type":"string","title":"Smtp Username"},"smtp_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smtp Password"},"use_tls":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Tls"},"is_active":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["from_address","smtp_host","smtp_username"],"title":"Body_update_sender_admin_email_senders__sender_id__post"},"Body_user_capability_grant_admin_users__user_id__capabilities_grant_post":{"properties":{"capability":{"type":"string","title":"Capability"}},"type":"object","required":["capability"],"title":"Body_user_capability_grant_admin_users__user_id__capabilities_grant_post"},"Body_user_capability_revoke_admin_users__user_id__capabilities_revoke_post":{"properties":{"capability":{"type":"string","title":"Capability"}},"type":"object","required":["capability"],"title":"Body_user_capability_revoke_admin_users__user_id__capabilities_revoke_post"},"Body_web_confirm_admin_field_captures__capture_id__confirm_post":{"properties":{"back":{"type":"string","title":"Back"}},"type":"object","required":["back"],"title":"Body_web_confirm_admin_field_captures__capture_id__confirm_post"},"Body_web_reject_admin_field_captures__capture_id__reject_post":{"properties":{"back":{"type":"string","title":"Back"}},"type":"object","required":["back"],"title":"Body_web_reject_admin_field_captures__capture_id__reject_post"},"EnhanceRequest":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"EnhanceRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PhoneIn":{"properties":{"phone":{"type":"string","title":"Phone"},"app_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Signature"}},"type":"object","required":["phone"],"title":"PhoneIn"},"PresignIn":{"properties":{"kind":{"type":"string","title":"Kind"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["kind","content_type"],"title":"PresignIn"},"RefreshIn":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshIn"},"RegisterIn":{"properties":{"client_uuid":{"type":"string","title":"Client Uuid"},"session_id":{"type":"integer","title":"Session Id"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"},"audio_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Key"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["client_uuid","session_id"],"title":"RegisterIn"},"RequestIn":{"properties":{"client_uuid":{"type":"string","title":"Client Uuid"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"image_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Key"}},"type":"object","required":["client_uuid"],"title":"RequestIn"},"SessionIn":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","title":"SessionIn"},"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"},"VerifyIn":{"properties":{"phone":{"type":"string","title":"Phone"},"code":{"type":"string","title":"Code"}},"type":"object","required":["phone","code"],"title":"VerifyIn"}}}}