{"openapi":"3.1.0","info":{"title":"Disportex","description":"API Disportex — SSO Quarkoia","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["Health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/api/v1/auth/sso":{"post":{"tags":["Auth"],"summary":"Auth Sso","operationId":"auth_sso_api_v1_auth_sso_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPairWithRefresh"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["Auth"],"summary":"Auth Login","operationId":"auth_login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPairWithRefresh"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["Auth"],"summary":"Auth Refresh","operationId":"auth_refresh_api_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPairWithRefresh"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/password":{"post":{"tags":["Auth"],"summary":"Auth Set Password","operationId":"auth_set_password_api_v1_auth_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Auth"],"summary":"Auth Change Password","operationId":"auth_change_password_api_v1_auth_password_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/forgot-password":{"post":{"tags":["Auth"],"summary":"Auth Forgot Password","operationId":"auth_forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["Auth"],"summary":"Auth Reset Password","operationId":"auth_reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me":{"get":{"tags":["Me"],"summary":"Me","operationId":"me_api_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeRead"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users":{"get":{"tags":["Users"],"summary":"List Users","operationId":"list_users_api_v1_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserRead"},"type":"array","title":"Response List Users Api V1 Users Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Users"],"summary":"Create User","operationId":"create_user_api_v1_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/{user_id}":{"patch":{"tags":["Users"],"summary":"Update User","operationId":"update_user_api_v1_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Users"],"summary":"Delete User","operationId":"delete_user_api_v1_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/forms/{kind}/active":{"get":{"tags":["Forms"],"summary":"Get Active Form","operationId":"get_active_form_api_v1_forms__kind__active_get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormDefinitionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/forms/{kind}/versions":{"post":{"tags":["Forms"],"summary":"Create Draft Version","operationId":"create_draft_version_api_v1_forms__kind__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormVersionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormVersionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/forms/{kind}/versions/{version_id}":{"patch":{"tags":["Forms"],"summary":"Update Draft Version","operationId":"update_draft_version_api_v1_forms__kind__versions__version_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormVersionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormVersionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/forms/{kind}/versions/{version_id}/publish":{"post":{"tags":["Forms"],"summary":"Publish Version","operationId":"publish_version_api_v1_forms__kind__versions__version_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormVersionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports":{"post":{"tags":["Activity Reports"],"summary":"Create Activity Report","operationId":"create_activity_report_api_v1_activity_reports_post","security":[{"HTTPBearer":[]}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}}}},"get":{"tags":["Activity Reports"],"summary":"List Activity Reports","operationId":"list_activity_reports_api_v1_activity_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentStatus"},{"type":"null"}],"title":"Status"}},{"name":"statut_intervention","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statut Intervention"}},{"name":"type_intervention","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Intervention"}},{"name":"decision","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"date_tech_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Tech From"}},{"name":"date_tech_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Tech To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityReportListItem"},"title":"Response List Activity Reports Api V1 Activity Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/import":{"post":{"tags":["Activity Reports"],"summary":"Import Activity Report","operationId":"import_activity_report_api_v1_activity_reports_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportCreateFromImport"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/activity-reports/summary":{"get":{"tags":["Activity Reports"],"summary":"Get Activity Reports Summary","operationId":"get_activity_reports_summary_api_v1_activity_reports_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalSummaryDonut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/activity-reports/{report_id}":{"get":{"tags":["Activity Reports"],"summary":"Get Activity Report","operationId":"get_activity_report_api_v1_activity_reports__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Activity Reports"],"summary":"Delete Activity Report","operationId":"delete_activity_report_api_v1_activity_reports__report_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/attachments":{"get":{"tags":["Activity Reports"],"summary":"Get Activity Report Attachments","operationId":"get_activity_report_attachments_api_v1_activity_reports__report_id__attachments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"file_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AttachmentFileType","default":"all"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentsPageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/pdf/download":{"get":{"tags":["Activity Reports"],"summary":"Download Activity Report Pdf","operationId":"download_activity_report_pdf_api_v1_activity_reports__report_id__pdf_download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/pdf":{"delete":{"tags":["Activity Reports"],"summary":"Delete Activity Report Pdf","operationId":"delete_activity_report_pdf_api_v1_activity_reports__report_id__pdf_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/commercial":{"patch":{"tags":["Activity Reports"],"summary":"Update Commercial Section","operationId":"update_commercial_section_api_v1_activity_reports__report_id__commercial_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportUpdateCommercial"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/technical":{"patch":{"tags":["Activity Reports"],"summary":"Update Technical Section","operationId":"update_technical_section_api_v1_activity_reports__report_id__technical_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportUpdateTechnical"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/terrain":{"patch":{"tags":["Activity Reports"],"summary":"Update Terrain Section","operationId":"update_terrain_section_api_v1_activity_reports__report_id__terrain_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportUpdateTerrain"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/bilan":{"patch":{"tags":["Activity Reports"],"summary":"Update Bilan Section","operationId":"update_bilan_section_api_v1_activity_reports__report_id__bilan_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportUpdateBilan"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/validate":{"post":{"tags":["Activity Reports"],"summary":"Validate Activity Report","operationId":"validate_activity_report_api_v1_activity_reports__report_id__validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/findings":{"post":{"tags":["Findings"],"summary":"Create Finding","operationId":"create_finding_api_v1_technical_reports__report_id__findings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Findings"],"summary":"List Findings","operationId":"list_findings_api_v1_technical_reports__report_id__findings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FindingRead"},"title":"Response List Findings Api V1 Technical Reports  Report Id  Findings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/findings/{finding_id}":{"get":{"tags":["Findings"],"summary":"Get Finding","operationId":"get_finding_api_v1_findings__finding_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Findings"],"summary":"Update Finding","operationId":"update_finding_api_v1_findings__finding_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Findings"],"summary":"Delete Finding","operationId":"delete_finding_api_v1_findings__finding_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/findings/{finding_id}/duplicate":{"post":{"tags":["Findings"],"summary":"Duplicate Finding","operationId":"duplicate_finding_api_v1_findings__finding_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/findings/{finding_id}/assist/description":{"post":{"tags":["AI Assist"],"summary":"Assist Finding Description","operationId":"assist_finding_description_api_v1_findings__finding_id__assist_description_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistTextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistTextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/assist/objet":{"post":{"tags":["AI Assist"],"summary":"Assist Technical Report Objet","operationId":"assist_technical_report_objet_api_v1_technical_reports__report_id__assist_objet_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistTextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistTextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts":{"get":{"tags":["Contacts"],"summary":"List Contacts","operationId":"list_contacts_api_v1_contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactRead"},"title":"Response List Contacts Api V1 Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Contacts"],"summary":"Create Contact","operationId":"create_contact_api_v1_contacts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}":{"patch":{"tags":["Contacts"],"summary":"Update Contact","operationId":"update_contact_api_v1_contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Contacts"],"summary":"Delete Contact","operationId":"delete_contact_api_v1_contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipment-labels":{"get":{"tags":["Equipment"],"summary":"List Equipment Labels","operationId":"list_equipment_labels_api_v1_equipment_labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EquipmentLabelRead"},"title":"Response List Equipment Labels Api V1 Equipment Labels Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Equipment"],"summary":"Create Equipment Label","operationId":"create_equipment_label_api_v1_equipment_labels_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentLabelCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentLabelRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipment-labels/{label_id}":{"patch":{"tags":["Equipment"],"summary":"Update Equipment Label","operationId":"update_equipment_label_api_v1_equipment_labels__label_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentLabelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentLabelRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Equipment"],"summary":"Delete Equipment Label","operationId":"delete_equipment_label_api_v1_equipment_labels__label_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/findings/{finding_id}/photos":{"post":{"tags":["Photos"],"summary":"Upload Finding Photo","operationId":"upload_finding_photo_api_v1_findings__finding_id__photos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_finding_photo_api_v1_findings__finding_id__photos_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Photos"],"summary":"List Finding Photos","operationId":"list_finding_photos_api_v1_findings__finding_id__photos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PhotoRead"},"title":"Response List Finding Photos Api V1 Findings  Finding Id  Photos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/photos":{"post":{"tags":["Photos"],"summary":"Upload Activity Report Photo","operationId":"upload_activity_report_photo_api_v1_activity_reports__report_id__photos_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_activity_report_photo_api_v1_activity_reports__report_id__photos_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Photos"],"summary":"List Activity Report Photos","operationId":"list_activity_report_photos_api_v1_activity_reports__report_id__photos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PhotoRead"},"title":"Response List Activity Report Photos Api V1 Activity Reports  Report Id  Photos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}":{"get":{"tags":["Photos"],"summary":"Get Photo","operationId":"get_photo_api_v1_photos__photo_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Photos"],"summary":"Update Photo Caption","operationId":"update_photo_caption_api_v1_photos__photo_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoUpdateCaption"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhotoRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Photos"],"summary":"Delete Photo","operationId":"delete_photo_api_v1_photos__photo_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/photos/{photo_id}/download":{"get":{"tags":["Photos"],"summary":"Download Photo","operationId":"download_photo_api_v1_photos__photo_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"photo_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports":{"post":{"tags":["Technical Reports"],"summary":"Create Technical Report","operationId":"create_technical_report_api_v1_technical_reports_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Technical Reports"],"summary":"List Technical Reports","operationId":"list_technical_reports_api_v1_technical_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"site","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"}},{"name":"client","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client"}},{"name":"technicien","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technicien"}},{"name":"equipement","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Equipement"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentStatus"},{"type":"null"}],"title":"Status"}},{"name":"type_intervention","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Intervention"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportListPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}":{"get":{"tags":["Technical Reports"],"summary":"Get Technical Report","operationId":"get_technical_report_api_v1_technical_reports__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Technical Reports"],"summary":"Update Technical Report","operationId":"update_technical_report_api_v1_technical_reports__report_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Technical Reports"],"summary":"Delete Technical Report","operationId":"delete_technical_report_api_v1_technical_reports__report_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/attachments":{"get":{"tags":["Technical Reports"],"summary":"Get Technical Report Attachments","operationId":"get_technical_report_attachments_api_v1_technical_reports__report_id__attachments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"file_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AttachmentFileType","default":"all"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentsPageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/pdf/download":{"get":{"tags":["Technical Reports"],"summary":"Download Technical Report Pdf","operationId":"download_technical_report_pdf_api_v1_technical_reports__report_id__pdf_download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/pdf":{"delete":{"tags":["Technical Reports"],"summary":"Delete Technical Report Pdf","operationId":"delete_technical_report_pdf_api_v1_technical_reports__report_id__pdf_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/progress":{"get":{"tags":["Technical Reports"],"summary":"Get Technical Report Progress","operationId":"get_technical_report_progress_api_v1_technical_reports__report_id__progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportProgressRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/validate":{"post":{"tags":["Technical Reports"],"summary":"Validate Technical Report","operationId":"validate_technical_report_api_v1_technical_reports__report_id__validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportValidate","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/signatures":{"get":{"tags":["Signatures"],"summary":"List Signatures","operationId":"list_signatures_api_v1_activity_reports__report_id__signatures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignatureRead"},"title":"Response List Signatures Api V1 Activity Reports  Report Id  Signatures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Signatures"],"summary":"Create Signature","operationId":"create_signature_api_v1_activity_reports__report_id__signatures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatureCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignatureRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/signatures/{kind}":{"delete":{"tags":["Signatures"],"summary":"Delete Signature","operationId":"delete_signature_api_v1_activity_reports__report_id__signatures__kind__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SignatureKind"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{document_type}/{document_id}/email":{"post":{"tags":["Email"],"summary":"Send Document Email","operationId":"send_document_email_api_v1_documents__document_type___document_id__email_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/EmailDocumentType"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSendRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailMessageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email-messages":{"get":{"tags":["Email"],"summary":"List Email Messages","operationId":"list_email_messages_api_v1_email_messages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EmailMessageRead"},"type":"array","title":"Response List Email Messages Api V1 Email Messages Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications":{"get":{"tags":["Notifications"],"summary":"List Notifications","operationId":"list_notifications_api_v1_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"include_hidden","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Hidden"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRead"},"title":"Response List Notifications Api V1 Notifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/unread-count":{"get":{"tags":["Notifications"],"summary":"Notifications Unread Count","operationId":"notifications_unread_count_api_v1_notifications_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadCountResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/{notification_id}/read":{"patch":{"tags":["Notifications"],"summary":"Mark Notification Read","operationId":"mark_notification_read_api_v1_notifications__notification_id__read_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/read-all":{"patch":{"tags":["Notifications"],"summary":"Mark All Notifications Read","operationId":"mark_all_notifications_read_api_v1_notifications_read_all_patch","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/read":{"delete":{"tags":["Notifications"],"summary":"Hide All Read Notifications","operationId":"hide_all_read_notifications_api_v1_notifications_read_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/{notification_id}":{"delete":{"tags":["Notifications"],"summary":"Hide Notification","operationId":"hide_notification_api_v1_notifications__notification_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/storage/upload":{"post":{"tags":["Internal Storage"],"summary":"[INTERNE - TEST] Upload d'un fichier vers MinIO","description":"Endpoint interne de test : envoie un fichier vers MinIO et retourne la référence (object_key, bucket) ainsi qu'une URL présignée. À ne pas exposer en production.","operationId":"upload_test_internal_storage_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"expires_in","in":"query","required":false,"schema":{"type":"integer","maximum":86400,"minimum":60,"description":"Durée de validité de l'URL présignée (secondes)","default":3600,"title":"Expires In"},"description":"Durée de validité de l'URL présignée (secondes)"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_test_internal_storage_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{doc_type}/{report_id}/pdf":{"post":{"tags":["Documents"],"summary":"Generate Pdf","operationId":"generate_pdf_api_v1_documents__doc_type___report_id__pdf_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"doc_type","in":"path","required":true,"schema":{"type":"string","title":"Doc Type"}},{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPdfResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customers":{"post":{"tags":["Customers"],"summary":"Create Customer","operationId":"create_customer_api_v1_customers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Customers"],"summary":"List Customers","operationId":"list_customers_api_v1_customers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomerRead"},"title":"Response List Customers Api V1 Customers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customers/{customer_id}":{"get":{"tags":["Customers"],"summary":"Get Customer","operationId":"get_customer_api_v1_customers__customer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Customers"],"summary":"Update Customer","operationId":"update_customer_api_v1_customers__customer_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Customers"],"summary":"Delete Customer","operationId":"delete_customer_api_v1_customers__customer_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Customer Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client-dossiers":{"post":{"tags":["Client Dossiers"],"summary":"Create Client Dossier","operationId":"create_client_dossier_api_v1_client_dossiers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDossierCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDossierRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Client Dossiers"],"summary":"List Client Dossiers","operationId":"list_client_dossiers_api_v1_client_dossiers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"}},{"name":"validated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Validated"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientDossierRead"},"title":"Response List Client Dossiers Api V1 Client Dossiers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client-dossiers/{dossier_id}":{"get":{"tags":["Client Dossiers"],"summary":"Get Client Dossier","operationId":"get_client_dossier_api_v1_client_dossiers__dossier_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dossier_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dossier Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDossierRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Client Dossiers"],"summary":"Update Client Dossier","operationId":"update_client_dossier_api_v1_client_dossiers__dossier_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dossier_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dossier Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDossierUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientDossierRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Client Dossiers"],"summary":"Delete Client Dossier","operationId":"delete_client_dossier_api_v1_client_dossiers__dossier_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dossier_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Dossier Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/geocode":{"get":{"tags":["Geocoding"],"summary":"Search Addresses","operationId":"search_addresses_api_v1_geocode_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":200,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddressSuggestion"},"title":"Response Search Addresses Api V1 Geocode Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customers/login":{"post":{"tags":["Customer Portal"],"summary":"Login","operationId":"login_api_v1_customers_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customer/me":{"get":{"tags":["Customer Portal"],"summary":"Get Me","operationId":"get_me_api_v1_customer_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRead"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/customer/me/technical-reports":{"get":{"tags":["Customer Portal"],"summary":"List My Technical Reports","operationId":"list_my_technical_reports_api_v1_customer_me_technical_reports_get","security":[{"HTTPBearer":[]}],"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":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportListPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customer/me/technical-reports/{report_id}":{"get":{"tags":["Customer Portal"],"summary":"Get My Technical Report","operationId":"get_my_technical_report_api_v1_customer_me_technical_reports__report_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicalReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customer/me/technical-reports/{report_id}/findings/{finding_id}/photos":{"get":{"tags":["Customer Portal"],"summary":"List My Finding Photos","operationId":"list_my_finding_photos_api_v1_customer_me_technical_reports__report_id__findings__finding_id__photos_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"finding_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Finding Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PhotoRead"},"title":"Response List My Finding Photos Api V1 Customer Me Technical Reports  Report Id  Findings  Finding Id  Photos Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/customer/me/technical-reports/{report_id}/pdf":{"get":{"tags":["Customer Portal"],"summary":"Get My Technical Report Pdf","operationId":"get_my_technical_report_pdf_api_v1_customer_me_technical_reports__report_id__pdf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPdfResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/dashboard":{"get":{"tags":["Dashboard"],"summary":"Get Dashboard","operationId":"get_dashboard_api_v1_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardRead"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"ActivityReportCreateFromImport":{"properties":{"source_report_id":{"type":"string","format":"uuid","title":"Source Report Id"},"target_report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Target Report Id"}},"type":"object","required":["source_report_id"],"title":"ActivityReportCreateFromImport"},"ActivityReportListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"numero":{"type":"string","title":"Numero"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"source_report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Report Id"},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"},"client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client"},"type_intervention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Intervention"},"statut_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionStatus"},{"type":"null"}]},"progress_percent":{"type":"number","title":"Progress Percent"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","numero","status","source_report_id","statut_intervention","progress_percent","updated_at"],"title":"ActivityReportListItem"},"ActivityReportRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"numero":{"type":"string","title":"Numero"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"source_report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Report Id"},"terrain_snapshot":{"$ref":"#/components/schemas/TerrainSnapshot"},"imported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Imported At"},"preco_com":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preco Com"},"preco_tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preco Tech"},"statut_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionStatus"},{"type":"null"}]},"commentaire_tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commentaire Tech"},"date_tech":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Tech"},"decision":{"anyOf":[{"$ref":"#/components/schemas/ClientDecision"},{"type":"null"}]},"date_reception":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Reception"},"observation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observation"},"progress_percent":{"type":"number","title":"Progress Percent"},"validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Validated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"extra_fields":{"additionalProperties":true,"type":"object","title":"Extra Fields"}},"type":"object","required":["id","numero","status","source_report_id","terrain_snapshot","imported_at","preco_com","preco_tech","statut_intervention","commentaire_tech","date_tech","decision","date_reception","observation","progress_percent","validated_at","created_at","updated_at","extra_fields"],"title":"ActivityReportRead"},"ActivityReportUpdateBilan":{"properties":{"decision":{"anyOf":[{"$ref":"#/components/schemas/ClientDecision"},{"type":"null"}]},"date_reception":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Reception"},"observation":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Observation"}},"type":"object","title":"ActivityReportUpdateBilan"},"ActivityReportUpdateCommercial":{"properties":{"preco_com":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preco Com"}},"type":"object","title":"ActivityReportUpdateCommercial"},"ActivityReportUpdateTechnical":{"properties":{"preco_tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preco Tech"},"statut_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionStatus"},{"type":"null"}]},"commentaire_tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commentaire Tech"},"date_tech":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Tech"}},"type":"object","title":"ActivityReportUpdateTechnical"},"ActivityReportUpdateTerrain":{"properties":{"terrain_snapshot":{"$ref":"#/components/schemas/TerrainSnapshot"}},"type":"object","required":["terrain_snapshot"],"title":"ActivityReportUpdateTerrain"},"AddressSuggestion":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"}},"type":"object","required":["label","postal_code","city","latitude","longitude"],"title":"AddressSuggestion"},"AssistTextRequest":{"properties":{"draft":{"type":"string","maxLength":4000,"minLength":1,"title":"Draft"},"prompt":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Prompt"}},"type":"object","required":["draft"],"title":"AssistTextRequest"},"AssistTextResponse":{"properties":{"field":{"type":"string","enum":["description","objet"],"title":"Field"},"original":{"type":"string","title":"Original"},"suggested":{"type":"string","title":"Suggested"},"prompt_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Used"}},"type":"object","required":["field","original","suggested","prompt_used"],"title":"AssistTextResponse"},"AttachmentFileType":{"type":"string","enum":["all","image","pdf"],"title":"AttachmentFileType"},"AttachmentItemRead":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id","description":"Identifiant photo ; null pour PDF ou snapshot terrain"},"kind":{"$ref":"#/components/schemas/AttachmentKind"},"finding_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Finding Id"},"owner_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner Id"},"object_key":{"type":"string","title":"Object Key"},"content_type":{"type":"string","title":"Content Type"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"url":{"type":"string","title":"Url"},"url_expires_in":{"type":"integer","title":"Url Expires In","description":"Durée de validité de l'URL présignée en secondes"},"url_expires_at":{"type":"string","format":"date-time","title":"Url Expires At","description":"Instant UTC après lequel l'URL n'est plus valide"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["kind","object_key","content_type","url","url_expires_in","url_expires_at"],"title":"AttachmentItemRead"},"AttachmentKind":{"type":"string","enum":["finding_photo","terrain_photo","intervention_photo","pdf"],"title":"AttachmentKind"},"AttachmentsPageRead":{"properties":{"report_id":{"type":"string","format":"uuid","title":"Report Id"},"numero":{"type":"string","title":"Numero"},"items":{"items":{"$ref":"#/components/schemas/AttachmentItemRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"file_type":{"$ref":"#/components/schemas/AttachmentFileType"}},"type":"object","required":["report_id","numero","items","total","page","page_size","file_type"],"title":"AttachmentsPageRead"},"Body_upload_activity_report_photo_api_v1_activity_reports__report_id__photos_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}},"type":"object","required":["file"],"title":"Body_upload_activity_report_photo_api_v1_activity_reports__report_id__photos_post"},"Body_upload_finding_photo_api_v1_findings__finding_id__photos_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}},"type":"object","required":["file"],"title":"Body_upload_finding_photo_api_v1_findings__finding_id__photos_post"},"Body_upload_test_internal_storage_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_test_internal_storage_upload_post"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","minLength":12,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ChecklistItem":{"properties":{"todo":{"type":"boolean","title":"Todo"},"hint":{"type":"string","title":"Hint"},"text":{"type":"string","title":"Text"},"field_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Key"}},"type":"object","required":["todo","hint","text","field_key"],"title":"ChecklistItem"},"ClientDecision":{"type":"string","enum":["conforme","reserve","action"],"title":"ClientDecision"},"ClientDossierCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"}},"type":"object","required":["name","customer_id"],"title":"ClientDossierCreate"},"ClientDossierRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ref":{"type":"string","title":"Ref"},"name":{"type":"string","title":"Name"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"validated":{"type":"boolean","title":"Validated"},"activity_report_id":{"type":"string","format":"uuid","title":"Activity Report Id"},"technical_report_id":{"type":"string","format":"uuid","title":"Technical Report Id"},"customer":{"$ref":"#/components/schemas/CustomerRead"},"activity_report":{"$ref":"#/components/schemas/ClientDossierReportSummary"},"technical_report":{"$ref":"#/components/schemas/ClientDossierReportSummary"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","ref","name","customer_id","validated","activity_report_id","technical_report_id","customer","activity_report","technical_report","created_at","updated_at"],"title":"ClientDossierRead"},"ClientDossierReportSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"numero":{"type":"string","title":"Numero"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Validated At"}},"type":"object","required":["id","numero","status","validated_at"],"title":"ClientDossierReportSummary"},"ClientDossierUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"activity_report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Activity Report Id"},"technical_report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Technical Report Id"}},"type":"object","title":"ClientDossierUpdate"},"ContactCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"telephone":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Telephone"},"organization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Organization"},"reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reference"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"}},"type":"object","required":["name","email"],"title":"ContactCreate"},"ContactRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"telephone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephone"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"is_system":{"type":"boolean","title":"Is System"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","email","telephone","organization","reference","customer_id","is_system","created_at"],"title":"ContactRead"},"ContactUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"telephone":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Telephone"},"organization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Organization"},"reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reference"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"}},"type":"object","title":"ContactUpdate"},"CustomerCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":255,"format":"email"},{"type":"null"}],"title":"Email"},"password":{"anyOf":[{"type":"string","minLength":8},{"type":"null"}],"title":"Password"},"telephone":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Telephone"},"organization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Organization"},"reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reference"},"coordonnees":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Coordonnees"},"send_email":{"type":"boolean","title":"Send Email","default":false}},"type":"object","required":["name"],"title":"CustomerCreate"},"CustomerCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"telephone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephone"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"coordonnees":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coordonnees"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"generated_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated Password"}},"type":"object","required":["id","name","email","telephone","organization","reference","coordonnees","created_at","updated_at"],"title":"CustomerCreated"},"CustomerLoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"CustomerLoginRequest"},"CustomerRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"telephone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephone"},"organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"coordonnees":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coordonnees"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","email","telephone","organization","reference","coordonnees","created_at","updated_at"],"title":"CustomerRead"},"CustomerTokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"},"customer":{"$ref":"#/components/schemas/CustomerRead"}},"type":"object","required":["access_token","expires_in","customer"],"title":"CustomerTokenResponse"},"CustomerUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":255,"format":"email"},{"type":"null"}],"title":"Email"},"telephone":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Telephone"},"organization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Organization"},"reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reference"},"coordonnees":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Coordonnees"}},"type":"object","title":"CustomerUpdate"},"DashboardActivityChart":{"properties":{"months":{"items":{"type":"string"},"type":"array","title":"Months"},"rapports":{"items":{"type":"integer"},"type":"array","title":"Rapports"},"comptes_rendus":{"items":{"type":"integer"},"type":"array","title":"Comptes Rendus"}},"type":"object","required":["months","rapports","comptes_rendus"],"title":"DashboardActivityChart"},"DashboardActivityReports":{"properties":{"statut_intervention":{"$ref":"#/components/schemas/DashboardStatutInterventionBreakdown"},"decision":{"$ref":"#/components/schemas/DashboardDecisionBreakdown"}},"type":"object","required":["statut_intervention","decision"],"title":"DashboardActivityReports"},"DashboardCountPercent":{"properties":{"count":{"type":"integer","title":"Count"},"percent":{"type":"number","title":"Percent"}},"type":"object","required":["count","percent"],"title":"DashboardCountPercent"},"DashboardDecisionBreakdown":{"properties":{"total":{"type":"integer","title":"Total"},"conforme":{"$ref":"#/components/schemas/DashboardCountPercent"},"reserve":{"$ref":"#/components/schemas/DashboardCountPercent"},"action":{"$ref":"#/components/schemas/DashboardCountPercent"},"vide":{"$ref":"#/components/schemas/DashboardCountPercent"}},"type":"object","required":["total","conforme","reserve","action","vide"],"title":"DashboardDecisionBreakdown"},"DashboardIndicator":{"properties":{"count":{"type":"integer","title":"Count"},"percent_change":{"type":"number","title":"Percent Change"}},"type":"object","required":["count","percent_change"],"title":"DashboardIndicator"},"DashboardIndicators":{"properties":{"rapports":{"$ref":"#/components/schemas/DashboardIndicator"},"comptes_rendus":{"$ref":"#/components/schemas/DashboardIndicator"},"validated":{"$ref":"#/components/schemas/DashboardValidatedIndicator"}},"type":"object","required":["rapports","comptes_rendus","validated"],"title":"DashboardIndicators"},"DashboardOverview":{"properties":{"total_documents":{"type":"integer","title":"Total Documents"},"percent_change":{"type":"number","title":"Percent Change"}},"type":"object","required":["total_documents","percent_change"],"title":"DashboardOverview"},"DashboardRead":{"properties":{"overview":{"$ref":"#/components/schemas/DashboardOverview"},"indicators":{"$ref":"#/components/schemas/DashboardIndicators"},"activity_chart":{"$ref":"#/components/schemas/DashboardActivityChart"},"recent_activity":{"items":{"$ref":"#/components/schemas/DashboardRecentActivityItem"},"type":"array","title":"Recent Activity"},"summary":{"$ref":"#/components/schemas/DashboardSummary"},"activity_reports":{"$ref":"#/components/schemas/DashboardActivityReports"}},"type":"object","required":["overview","indicators","activity_chart","recent_activity","summary","activity_reports"],"title":"DashboardRead"},"DashboardRecentActivityItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"numero":{"type":"string","title":"Numero"},"status":{"type":"string","title":"Status"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","type","numero","status","occurred_at"],"title":"DashboardRecentActivityItem"},"DashboardStatutInterventionBreakdown":{"properties":{"total":{"type":"integer","title":"Total"},"effectue":{"$ref":"#/components/schemas/DashboardCountPercent"},"partiel":{"$ref":"#/components/schemas/DashboardCountPercent"},"non_effectue":{"$ref":"#/components/schemas/DashboardCountPercent"},"vide":{"$ref":"#/components/schemas/DashboardCountPercent"}},"type":"object","required":["total","effectue","partiel","non_effectue","vide"],"title":"DashboardStatutInterventionBreakdown"},"DashboardSummary":{"properties":{"critical_findings":{"type":"integer","title":"Critical Findings"},"drafts":{"type":"integer","title":"Drafts"},"drafts_comptes_rendus":{"type":"integer","title":"Drafts Comptes Rendus"},"drafts_suivis":{"type":"integer","title":"Drafts Suivis"},"in_treatment":{"type":"integer","title":"In Treatment"},"in_treatment_comptes_rendus":{"type":"integer","title":"In Treatment Comptes Rendus"},"in_treatment_suivis":{"type":"integer","title":"In Treatment Suivis"}},"type":"object","required":["critical_findings","drafts","drafts_comptes_rendus","drafts_suivis","in_treatment","in_treatment_comptes_rendus","in_treatment_suivis"],"title":"DashboardSummary"},"DashboardValidatedIndicator":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"DashboardValidatedIndicator"},"DocumentPdfResponse":{"properties":{"object_key":{"type":"string","title":"Object Key"},"bucket":{"type":"string","title":"Bucket"},"presigned_url":{"type":"string","title":"Presigned Url"}},"type":"object","required":["object_key","bucket","presigned_url"],"title":"DocumentPdfResponse"},"DocumentStatus":{"type":"string","enum":["draft","validated","sent","archived"],"title":"DocumentStatus"},"EmailDocumentType":{"type":"string","enum":["activity_report","technical_report"],"title":"EmailDocumentType"},"EmailMessageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"document_type":{"$ref":"#/components/schemas/EmailDocumentType"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"subject":{"type":"string","title":"Subject"},"recipients":{"items":{"type":"string"},"type":"array","title":"Recipients"},"status":{"$ref":"#/components/schemas/EmailMessageStatus"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","document_type","document_id","subject","recipients","status","sent_at","error_message","created_at"],"title":"EmailMessageRead"},"EmailMessageStatus":{"type":"string","enum":["queued","sent","failed"],"title":"EmailMessageStatus"},"EmailSendRequest":{"properties":{"recipients":{"items":{"type":"string","format":"email"},"type":"array","minItems":1,"title":"Recipients"},"subject":{"type":"string","maxLength":500,"minLength":1,"title":"Subject"},"body":{"type":"string","minLength":1,"title":"Body"},"attach_pdf":{"type":"boolean","title":"Attach Pdf","default":true}},"type":"object","required":["recipients","subject","body"],"title":"EmailSendRequest"},"EquipmentLabelCreate":{"properties":{"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label"}},"type":"object","required":["label"],"title":"EquipmentLabelCreate"},"EquipmentLabelRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","label","is_active","created_at"],"title":"EquipmentLabelRead"},"EquipmentLabelUpdate":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Label"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"EquipmentLabelUpdate"},"FindingCreate":{"properties":{"sort_order":{"type":"integer","title":"Sort Order","default":0},"titre":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Titre"},"equipement":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Equipement"},"gravite":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preconisation":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Preconisation"},"extra_fields":{"additionalProperties":true,"type":"object","title":"Extra Fields"}},"type":"object","title":"FindingCreate"},"FindingRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"report_id":{"type":"string","format":"uuid","title":"Report Id"},"sort_order":{"type":"integer","title":"Sort Order"},"titre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Titre"},"equipement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Equipement"},"gravite":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preconisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preconisation"}},"type":"object","required":["id","report_id","sort_order","titre","equipement","gravite","description","preconisation"],"title":"FindingRead"},"FindingUpdate":{"properties":{"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"titre":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Titre"},"equipement":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Equipement"},"gravite":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preconisation":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Preconisation"},"extra_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Fields"}},"type":"object","title":"FindingUpdate"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"FormDefinitionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"$ref":"#/components/schemas/FormKind"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"active_version":{"anyOf":[{"$ref":"#/components/schemas/FormVersionRead"},{"type":"null"}]}},"type":"object","required":["id","kind","name","description","active_version"],"title":"FormDefinitionRead"},"FormFieldSchema-Input":{"properties":{"key":{"type":"string","title":"Key"},"type":{"$ref":"#/components/schemas/FormFieldType"},"label":{"type":"string","title":"Label"},"required":{"type":"boolean","title":"Required","default":false},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"},"help_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Text"},"max_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Length"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/FormOption"},"type":"array"},{"type":"null"}],"title":"Options"},"visible_if":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visible If"},"repeatable":{"anyOf":[{"$ref":"#/components/schemas/FormRepeatableSpec-Input"},{"type":"null"}]}},"type":"object","required":["key","type","label"],"title":"FormFieldSchema"},"FormFieldSchema-Output":{"properties":{"key":{"type":"string","title":"Key"},"type":{"$ref":"#/components/schemas/FormFieldType"},"label":{"type":"string","title":"Label"},"required":{"type":"boolean","title":"Required","default":false},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"},"help_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Text"},"max_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Length"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/FormOption"},"type":"array"},{"type":"null"}],"title":"Options"},"visible_if":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Visible If"},"repeatable":{"anyOf":[{"$ref":"#/components/schemas/FormRepeatableSpec-Output"},{"type":"null"}]}},"type":"object","required":["key","type","label"],"title":"FormFieldSchema"},"FormFieldType":{"type":"string","enum":["text","textarea","email","tel","datetime","date","select","radio","photos","signature","repeatable_group","readonly_block"],"title":"FormFieldType"},"FormKind":{"type":"string","enum":["activity_report","technical_report"],"title":"FormKind"},"FormOption":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"FormOption"},"FormRepeatableSpec-Input":{"properties":{"item_label":{"type":"string","title":"Item Label"},"min_items":{"type":"integer","title":"Min Items","default":0},"max_items":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Items"},"fields":{"items":{"$ref":"#/components/schemas/FormFieldSchema-Input"},"type":"array","title":"Fields"}},"type":"object","required":["item_label","fields"],"title":"FormRepeatableSpec"},"FormRepeatableSpec-Output":{"properties":{"item_label":{"type":"string","title":"Item Label"},"min_items":{"type":"integer","title":"Min Items","default":0},"max_items":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Items"},"fields":{"items":{"$ref":"#/components/schemas/FormFieldSchema-Output"},"type":"array","title":"Fields"}},"type":"object","required":["item_label","fields"],"title":"FormRepeatableSpec"},"FormSchema-Input":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/FormStep-Input"},"type":"array","title":"Steps"}},"type":"object","required":["steps"],"title":"FormSchema"},"FormSchema-Output":{"properties":{"steps":{"items":{"$ref":"#/components/schemas/FormStep-Output"},"type":"array","title":"Steps"}},"type":"object","required":["steps"],"title":"FormSchema"},"FormStep-Input":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"fields":{"items":{"$ref":"#/components/schemas/FormFieldSchema-Input"},"type":"array","title":"Fields"}},"type":"object","required":["key","title","fields"],"title":"FormStep"},"FormStep-Output":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"fields":{"items":{"$ref":"#/components/schemas/FormFieldSchema-Output"},"type":"array","title":"Fields"}},"type":"object","required":["key","title","fields"],"title":"FormStep"},"FormVersionCreate":{"properties":{"schema_json":{"$ref":"#/components/schemas/FormSchema-Input"}},"type":"object","required":["schema_json"],"title":"FormVersionCreate"},"FormVersionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"status":{"$ref":"#/components/schemas/FormVersionStatus"},"schema_json":{"$ref":"#/components/schemas/FormSchema-Output"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["id","version","status","schema_json","published_at"],"title":"FormVersionRead"},"FormVersionStatus":{"type":"string","enum":["draft","published","archived"],"title":"FormVersionStatus"},"FormVersionUpdate":{"properties":{"schema_json":{"$ref":"#/components/schemas/FormSchema-Input"}},"type":"object","required":["schema_json"],"title":"FormVersionUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"version":{"type":"string","title":"Version"},"app":{"type":"string","title":"App"}},"type":"object","required":["status","version","app"],"title":"HealthResponse"},"InterventionStatus":{"type":"string","enum":["non_effectue","partiel","effectue"],"title":"InterventionStatus"},"InterventionType":{"type":"string","enum":["visite_controle_initiale","visite_curative","visite_diagnostic_initiale","visite_diagnostic"],"title":"InterventionType"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"role":{"$ref":"#/components/schemas/UserRole"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"has_password":{"type":"boolean","title":"Has Password","default":false}},"type":"object","required":["id","email","full_name","role","is_active","created_at","updated_at"],"title":"MeRead"},"MissingField":{"properties":{"step":{"type":"integer","title":"Step"},"field_key":{"type":"string","title":"Field Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["step","field_key","label"],"title":"MissingField"},"NotificationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"message":{"type":"string","title":"Message"},"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"hidden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hidden At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","type","title","message","entity_type","entity_id","actor_id","read_at","created_at"],"title":"NotificationRead"},"PasswordActionResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"PasswordActionResponse"},"PhotoOwnerType":{"type":"string","enum":["finding","activity_report"],"title":"PhotoOwnerType"},"PhotoRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"owner_type":{"$ref":"#/components/schemas/PhotoOwnerType"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"sort_order":{"type":"integer","title":"Sort Order"},"content_type":{"type":"string","title":"Content Type"},"url":{"type":"string","title":"Url"},"url_expires_in":{"type":"integer","title":"Url Expires In","description":"Durée de validité de l'URL présignée en secondes"},"url_expires_at":{"type":"string","format":"date-time","title":"Url Expires At","description":"Instant UTC après lequel l'URL n'est plus valide ; re-fetch pour renouveler"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"size_bytes":{"type":"integer","title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","owner_type","owner_id","caption","sort_order","content_type","url","url_expires_in","url_expires_at","width","height","size_bytes","created_at"],"title":"PhotoRead"},"PhotoUpdateCaption":{"properties":{"caption":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Caption"}},"type":"object","title":"PhotoUpdateCaption"},"ProgressAudit":{"properties":{"progress_percent":{"type":"number","title":"Progress Percent"},"missing_fields":{"items":{"$ref":"#/components/schemas/MissingField"},"type":"array","title":"Missing Fields"},"blocking_count":{"type":"integer","title":"Blocking Count"},"severity_max":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"photos_count":{"type":"integer","title":"Photos Count"},"constats_count":{"type":"integer","title":"Constats Count"}},"type":"object","required":["progress_percent","missing_fields","blocking_count","severity_max","photos_count","constats_count"],"title":"ProgressAudit"},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","minLength":10,"title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","minLength":20,"title":"Token"},"password":{"type":"string","minLength":12,"title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"SetPasswordRequest":{"properties":{"password":{"type":"string","minLength":12,"title":"Password"}},"type":"object","required":["password"],"title":"SetPasswordRequest"},"Severity":{"type":"string","enum":["faible","moyenne","critique"],"title":"Severity"},"SignatureCreate":{"properties":{"kind":{"$ref":"#/components/schemas/SignatureKind"},"image_base64":{"type":"string","minLength":10,"title":"Image Base64"},"signed_by_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Signed By Name"}},"type":"object","required":["kind","image_base64"],"title":"SignatureCreate"},"SignatureKind":{"type":"string","enum":["technician","client"],"title":"SignatureKind"},"SignatureRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"$ref":"#/components/schemas/SignatureKind"},"url":{"type":"string","title":"Url"},"url_expires_in":{"type":"integer","title":"Url Expires In","description":"Durée de validité de l'URL présignée en secondes"},"url_expires_at":{"type":"string","format":"date-time","title":"Url Expires At","description":"Instant UTC après lequel l'URL n'est plus valide ; re-fetch pour renouveler"},"signed_at":{"type":"string","format":"date-time","title":"Signed At"},"signed_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed By Name"}},"type":"object","required":["id","kind","url","url_expires_in","url_expires_at","signed_at","signed_by_name"],"title":"SignatureRead"},"SsoRequest":{"properties":{"ticket":{"type":"string","minLength":10,"title":"Ticket"}},"type":"object","required":["ticket"],"title":"SsoRequest"},"StorageUploadResponse":{"properties":{"object_key":{"type":"string","title":"Object Key"},"bucket":{"type":"string","title":"Bucket"},"presigned_url":{"type":"string","title":"Presigned Url"}},"type":"object","required":["object_key","bucket","presigned_url"],"title":"StorageUploadResponse"},"TechnicalReportCreate":{"properties":{"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"site":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Site"},"adresse":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Adresse"},"date_intervention":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Intervention"},"type_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionType"},{"type":"null"}]},"client":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client"},"nom_entreprise":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Nom Entreprise"},"reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reference"},"contact_nom":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Nom"},"contact_tel":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Contact Tel"},"contact_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Email"},"contact_adresse":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Contact Adresse"},"entreprise":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Entreprise"},"technicien":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Technicien"},"objet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objet"},"extra_fields":{"additionalProperties":true,"type":"object","title":"Extra Fields"}},"type":"object","required":["customer_id"],"title":"TechnicalReportCreate"},"TechnicalReportListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"numero":{"type":"string","title":"Numero"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"},"date_intervention":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Intervention"},"technicien":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technicien"},"client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client"},"type_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionType"},{"type":"null"}]},"progress_percent":{"type":"number","title":"Progress Percent"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","numero","status","customer_id","site","date_intervention","technicien","client","type_intervention","progress_percent","updated_at"],"title":"TechnicalReportListItem"},"TechnicalReportListPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TechnicalReportListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"}},"type":"object","required":["items","total","page","page_size"],"title":"TechnicalReportListPage"},"TechnicalReportProgressRead":{"properties":{"audit":{"$ref":"#/components/schemas/ProgressAudit"},"checklist":{"items":{"$ref":"#/components/schemas/ChecklistItem"},"type":"array","title":"Checklist"}},"type":"object","required":["audit","checklist"],"title":"TechnicalReportProgressRead"},"TechnicalReportRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"numero":{"type":"string","title":"Numero"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"},"adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adresse"},"date_intervention":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Intervention"},"type_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionType"},{"type":"null"}]},"client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client"},"nom_entreprise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nom Entreprise"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"contact_nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Nom"},"contact_tel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Tel"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Adresse"},"entreprise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entreprise"},"technicien":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technicien"},"objet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objet"},"extra_fields":{"additionalProperties":true,"type":"object","title":"Extra Fields"},"progress_percent":{"type":"number","title":"Progress Percent"},"findings":{"items":{"$ref":"#/components/schemas/FindingRead"},"type":"array","title":"Findings"},"validated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Validated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","numero","status","customer_id","site","adresse","date_intervention","type_intervention","client","nom_entreprise","reference","contact_nom","contact_tel","contact_email","contact_adresse","entreprise","technicien","objet","extra_fields","progress_percent","findings","validated_at","created_at","updated_at"],"title":"TechnicalReportRead"},"TechnicalReportUpdate":{"properties":{"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"site":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Site"},"adresse":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Adresse"},"date_intervention":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Intervention"},"type_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionType"},{"type":"null"}]},"client":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client"},"nom_entreprise":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Nom Entreprise"},"reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reference"},"contact_nom":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Nom"},"contact_tel":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Contact Tel"},"contact_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Contact Email"},"contact_adresse":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Contact Adresse"},"entreprise":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Entreprise"},"technicien":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Technicien"},"objet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objet"},"extra_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extra Fields"}},"type":"object","title":"TechnicalReportUpdate"},"TechnicalReportValidate":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"TechnicalReportValidate"},"TechnicalSummaryDonut":{"properties":{"total":{"type":"integer","title":"Total"},"effectue":{"type":"integer","title":"Effectue"},"partiel":{"type":"integer","title":"Partiel"},"non_effectue":{"type":"integer","title":"Non Effectue"},"vide":{"type":"integer","title":"Vide"},"percent_effectue":{"type":"number","title":"Percent Effectue"}},"type":"object","required":["total","effectue","partiel","non_effectue","vide","percent_effectue"],"title":"TechnicalSummaryDonut"},"TerrainContactSnapshot":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"telephone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"TerrainContactSnapshot"},"TerrainFindingSnapshot":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"titre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Titre"},"equipement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Equipement"},"gravite":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preconisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preconisation"},"preco_tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preco Tech"},"statut_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionStatus"},{"type":"null"}]},"commentaire_tech":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commentaire Tech"},"chantier_photo_ids":{"items":{"type":"string"},"type":"array","title":"Chantier Photo Ids"},"photos":{"items":{"$ref":"#/components/schemas/TerrainPhotoSnapshot"},"type":"array","title":"Photos"}},"type":"object","title":"TerrainFindingSnapshot"},"TerrainPhotoSnapshot":{"properties":{"storage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Key"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"url_expires_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Url Expires In"},"url_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Url Expires At"}},"type":"object","title":"TerrainPhotoSnapshot"},"TerrainSnapshot":{"properties":{"numero":{"type":"string","title":"Numero"},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"},"adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adresse"},"date_intervention":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Intervention"},"type_intervention":{"anyOf":[{"$ref":"#/components/schemas/InterventionType"},{"type":"null"}]},"type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Label"},"entreprise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entreprise"},"technicien":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technicien"},"client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client"},"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"nom_entreprise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nom Entreprise"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"coordonnees":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coordonnees"},"contact_nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Nom"},"contact_tel":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Contact Tel"},"contact_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Contact Email"},"contact_adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Adresse"},"objet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objet"},"contacts":{"items":{"$ref":"#/components/schemas/TerrainContactSnapshot"},"type":"array","title":"Contacts"},"constats":{"items":{"$ref":"#/components/schemas/TerrainFindingSnapshot"},"type":"array","title":"Constats"}},"type":"object","required":["numero"],"title":"TerrainSnapshot"},"TokenPairWithRefresh":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"},"user":{"$ref":"#/components/schemas/UserSsoRead"},"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["access_token","expires_in","user","refresh_token"],"title":"TokenPairWithRefresh"},"UnreadCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"UnreadCountResponse"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":12,"title":"Password"},"full_name":{"type":"string","maxLength":200,"minLength":1,"title":"Full Name"},"role":{"$ref":"#/components/schemas/UserRole"},"phone":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone"}},"type":"object","required":["email","password","full_name","role"],"title":"UserCreate"},"UserRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"role":{"$ref":"#/components/schemas/UserRole"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","email","full_name","role","is_active","created_at","updated_at"],"title":"UserRead"},"UserRole":{"type":"string","enum":["admin","technicien","commercial"],"title":"UserRole"},"UserSsoRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"full_name":{"type":"string","title":"Full Name"},"role":{"$ref":"#/components/schemas/UserRole"},"has_password":{"type":"boolean","title":"Has Password","default":false}},"type":"object","required":["id","email","full_name","role"],"title":"UserSsoRead"},"UserUpdate":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Full Name"},"phone":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Phone"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"password":{"anyOf":[{"type":"string","minLength":12},{"type":"null"}],"title":"Password"}},"type":"object","title":"UserUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}