{"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/auth/google/login":{"get":{"tags":["Google Auth"],"summary":"Google Login","operationId":"google_login_api_v1_auth_google_login_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"login_hint","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Hint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google/callback":{"get":{"tags":["Google Auth"],"summary":"Google Callback","operationId":"google_callback_api_v1_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google/check-connection":{"get":{"tags":["Google Auth"],"summary":"Google Check Connection","operationId":"google_check_connection_api_v1_auth_google_check_connection_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleConnectionStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/google/disconnect":{"post":{"tags":["Google Auth"],"summary":"Google Disconnect","operationId":"google_disconnect_api_v1_auth_google_disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"default":"gmail","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events":{"get":{"tags":["Google Agenda"],"summary":"List Events","operationId":"list_events_api_agenda_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Google Agenda"],"summary":"Create Event","operationId":"create_event_api_agenda_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Event Api Agenda Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events/all":{"get":{"tags":["Google Agenda"],"summary":"List All Events","operationId":"list_all_events_api_agenda_events_all_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Start Date"}},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"End Date"}},{"name":"view","in":"query","required":true,"schema":{"enum":["day","week","month","year"],"type":"string","title":"View"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List All Events Api Agenda Events All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events/today":{"get":{"tags":["Google Agenda"],"summary":"List Events Today","operationId":"list_events_today_api_agenda_events_today_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Events Today Api Agenda Events Today Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events/week":{"get":{"tags":["Google Agenda"],"summary":"List Events Week","operationId":"list_events_week_api_agenda_events_week_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Events Week Api Agenda Events Week Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events/month":{"get":{"tags":["Google Agenda"],"summary":"List Events Month","operationId":"list_events_month_api_agenda_events_month_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Events Month Api Agenda Events Month Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events/stats/week":{"get":{"tags":["Google Agenda"],"summary":"Get Weekly Stats","operationId":"get_weekly_stats_api_agenda_events_stats_week_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Weekly Stats Api Agenda Events Stats Week Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events/{event_id}":{"put":{"tags":["Google Agenda"],"summary":"Update Event","operationId":"update_event_api_agenda_events__event_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Event Api Agenda Events  Event Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Google Agenda"],"summary":"Delete Event","operationId":"delete_event_api_agenda_events__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Event Api Agenda Events  Event Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/events/{event_id}/send-email":{"post":{"tags":["Google Agenda"],"summary":"Send Event By Email","operationId":"send_event_by_email_api_agenda_events__event_id__send_email_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventSendEmail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Event By Email Api Agenda Events  Event Id  Send Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agenda/disconnect":{"post":{"tags":["Google Agenda"],"summary":"Disconnect Calendar","operationId":"disconnect_calendar_api_agenda_disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"const":"gmail","type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleDisconnectResponse"}}}},"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/activity-reports/{report_id}/unlock":{"post":{"tags":["Activity Reports"],"summary":"Unlock Activity Report","operationId":"unlock_activity_report_api_v1_activity_reports__report_id__unlock_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/activity-reports/{report_id}/versions":{"get":{"tags":["Activity Reports"],"summary":"List Activity Report Versions","operationId":"list_activity_report_versions_api_v1_activity_reports__report_id__versions_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/ReportVersionSummary"},"title":"Response List Activity Report Versions Api V1 Activity Reports  Report Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/versions/diff":{"get":{"tags":["Activity Reports"],"summary":"Diff Activity Report Versions","operationId":"diff_activity_report_versions_api_v1_activity_reports__report_id__versions_diff_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportVersionDiff"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/activity-reports/{report_id}/versions/{version}":{"get":{"tags":["Activity Reports"],"summary":"Get Activity Report Version","operationId":"get_activity_report_version_api_v1_activity_reports__report_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportVersionRead"}}}},"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/technical-reports/{report_id}/assist/email-body":{"post":{"tags":["AI Assist"],"summary":"Assist Technical Report Email Body","operationId":"assist_technical_report_email_body_api_v1_technical_reports__report_id__assist_email_body_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/activity-reports/{report_id}/assist/preco-com":{"post":{"tags":["AI Assist"],"summary":"Assist Activity Report Preco Com","operationId":"assist_activity_report_preco_com_api_v1_activity_reports__report_id__assist_preco_com_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/activity-reports/{report_id}/assist/preco-tech":{"post":{"tags":["AI Assist"],"summary":"Assist Activity Report Preco Tech","operationId":"assist_activity_report_preco_tech_api_v1_activity_reports__report_id__assist_preco_tech_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/AssistConstatRequest"}}}},"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/activity-reports/{report_id}/assist/commentaire-tech":{"post":{"tags":["AI Assist"],"summary":"Assist Activity Report Commentaire Tech","operationId":"assist_activity_report_commentaire_tech_api_v1_activity_reports__report_id__assist_commentaire_tech_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/AssistConstatRequest"}}}},"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/activity-reports/{report_id}/assist/email-body":{"post":{"tags":["AI Assist"],"summary":"Assist Activity Report Email Body","operationId":"assist_activity_report_email_body_api_v1_activity_reports__report_id__assist_email_body_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/equipements":{"get":{"tags":["Equipements"],"summary":"List Equipements","description":"Liste les équipements. ``disponible_intervention=true`` : RM-08, actifs uniquement.","operationId":"list_equipements_api_v1_equipements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"disponible_intervention","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Disponible Intervention"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EquipementRead"},"title":"Response List Equipements Api V1 Equipements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Equipements"],"summary":"Create Equipement","operationId":"create_equipement_api_v1_equipements_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipements/numero-serie/disponibilite":{"get":{"tags":["Equipements"],"summary":"Check Numero Serie","operationId":"check_numero_serie_api_v1_equipements_numero_serie_disponibilite_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"numero_serie","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"title":"Numero Serie"}},{"name":"exclude_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Exclude Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumeroSerieCheckRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipements/{equipement_id}":{"get":{"tags":["Equipements"],"summary":"Get Equipement","operationId":"get_equipement_api_v1_equipements__equipement_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Equipements"],"summary":"Update Equipement","operationId":"update_equipement_api_v1_equipements__equipement_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Equipements"],"summary":"Delete Equipement","operationId":"delete_equipement_api_v1_equipements__equipement_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites":{"get":{"tags":["Sites"],"summary":"List Sites","description":"Liste des sites pour affichage et sélection (RM-01 : id + code uniques).","operationId":"list_sites_api_v1_sites_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/SiteRead"},"title":"Response List Sites Api V1 Sites Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Sites"],"summary":"Create Site","description":"Création d'un site — permission ``equipment`` requise.","operationId":"create_site_api_v1_sites_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{site_id}":{"get":{"tags":["Sites"],"summary":"Get Site","description":"Consultation du détail d'un site sélectionné par son id UUID.","operationId":"get_site_api_v1_sites__site_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Sites"],"summary":"Update Site","description":"Modification d'un site : fiche ouverte (GET) → PATCH → ``SiteRead`` à jour.\n\nPermission ``equipment`` requise. Envoyer uniquement les champs modifiés.","operationId":"update_site_api_v1_sites__site_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sites"],"summary":"Delete Site","description":"Suppression — permission ``equipment`` requise ; refusé si salles rattachées.","operationId":"delete_site_api_v1_sites__site_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Site Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/salles":{"get":{"tags":["Salles"],"summary":"List Salles","operationId":"list_salles_api_v1_salles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"site_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SalleRead"},"title":"Response List Salles Api V1 Salles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Salles"],"summary":"Create Salle","operationId":"create_salle_api_v1_salles_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/salles/{salle_id}":{"get":{"tags":["Salles"],"summary":"Get Salle","operationId":"get_salle_api_v1_salles__salle_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"salle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Salle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Salles"],"summary":"Update Salle","operationId":"update_salle_api_v1_salles__salle_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"salle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Salle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalleRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Salles"],"summary":"Delete Salle","description":"Supprime la salle ; les équipements affectés n'ont plus de salle courante.","operationId":"delete_salle_api_v1_salles__salle_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"salle_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Salle Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipements/{equipement_id}/statut":{"get":{"tags":["Équipements — Statut"],"summary":"Get Statut","operationId":"get_statut_api_v1_equipements__equipement_id__statut_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementStatutRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Équipements — Statut"],"summary":"Update Statut","description":"Met à jour le statut (US-21 : non destructif).\n\nAprès passage à ``hors_service``, la traçabilité reste accessible via\n``GET /equipements/{id}``, ``/historique``, ``/interventions`` et\n``/parcours`` (RM-09 / RM-10 / RM-11).","operationId":"update_statut_api_v1_equipements__equipement_id__statut_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementStatutUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementStatutRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipements/{equipement_id}/historique":{"get":{"tags":["Équipements — Historique"],"summary":"Get Historique","description":"Historique des changements de statut et d'affectation (RM-10).\n\nPour les interventions passées liées à l'équipement, utiliser\n``GET /equipements/{equipement_id}/interventions`` (RM-11).","operationId":"get_historique_api_v1_equipements__equipement_id__historique_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementHistoriqueRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipements/{equipement_id}/interventions":{"get":{"tags":["Équipements — Interventions"],"summary":"List Interventions","description":"Interventions passées (constats CR) liées à l'équipement inventaire (RM-11).\n\nSeuls les comptes rendus accessibles à l'utilisateur courant sont retournés.","operationId":"list_interventions_api_v1_equipements__equipement_id__interventions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementInterventionsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/equipements/{equipement_id}/parcours":{"get":{"tags":["Équipements — Parcours"],"summary":"Get Parcours","description":"Parcours complet (US-21 — endpoint recommandé post mise hors service).\n\nRegroupe en un appel : fiche, périodes d'occupation, timeline statut /\naffectation / interventions passées. Consultable même si ``statut`` est\n``hors_service`` (RM-09 / RM-10 / RM-11).","operationId":"get_parcours_api_v1_equipements__equipement_id__parcours_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"equipement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Equipement Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipementParcoursRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intervention-types":{"get":{"tags":["Intervention Types"],"summary":"List Intervention Types","operationId":"list_intervention_types_api_v1_intervention_types_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/InterventionTypeRead"},"title":"Response List Intervention Types Api V1 Intervention Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Intervention Types"],"summary":"Create Intervention Type","operationId":"create_intervention_type_api_v1_intervention_types_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterventionTypeCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterventionTypeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intervention-types/{type_id}":{"patch":{"tags":["Intervention Types"],"summary":"Update Intervention Type","operationId":"update_intervention_type_api_v1_intervention_types__type_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Type Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterventionTypeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterventionTypeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Intervention Types"],"summary":"Delete Intervention Type","operationId":"delete_intervention_type_api_v1_intervention_types__type_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Type 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/technical-reports/{report_id}/finding-photos":{"get":{"tags":["Photos"],"summary":"List Report Finding Photos","description":"Photos de tous les constats du CR, groupées par constat, en une requête.","operationId":"list_report_finding_photos_api_v1_technical_reports__report_id__finding_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":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/PhotoRead"}},"propertyNames":{"format":"uuid"},"title":"Response List Report Finding Photos Api V1 Technical Reports  Report Id  Finding 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":"intervention_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Intervention Type 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"}}],"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/technical-reports/{report_id}/unlock":{"post":{"tags":["Technical Reports"],"summary":"Unlock Technical Report","operationId":"unlock_technical_report_api_v1_technical_reports__report_id__unlock_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/TechnicalReportRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/versions":{"get":{"tags":["Technical Reports"],"summary":"List Technical Report Versions","operationId":"list_technical_report_versions_api_v1_technical_reports__report_id__versions_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/ReportVersionSummary"},"title":"Response List Technical Report Versions Api V1 Technical Reports  Report Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/versions/diff":{"get":{"tags":["Technical Reports"],"summary":"Diff Technical Report Versions","operationId":"diff_technical_report_versions_api_v1_technical_reports__report_id__versions_diff_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"from","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"From"}},{"name":"to","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportVersionDiff"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/technical-reports/{report_id}/versions/{version}":{"get":{"tags":["Technical Reports"],"summary":"Get Technical Report Version","operationId":"get_technical_report_version_api_v1_technical_reports__report_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportVersionRead"}}}},"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"}}}}}}},"/api/v1/settings/notifications":{"get":{"tags":["Notification Settings"],"summary":"Get Notification Settings","operationId":"get_notification_settings_api_v1_settings_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettingsRead"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["Notification Settings"],"summary":"Update Notification Settings","operationId":"update_notification_settings_api_v1_settings_notifications_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettingsRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/permissions/me":{"get":{"tags":["Permissions"],"summary":"Get My Permissions","operationId":"get_my_permissions_api_v1_permissions_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyPermissionsRead"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/permissions/technicians":{"get":{"tags":["Permissions"],"summary":"List Technicians","operationId":"list_technicians_api_v1_permissions_technicians_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TechnicianPermissionsRead"},"type":"array","title":"Response List Technicians Api V1 Permissions Technicians Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/permissions/technicians/{user_id}":{"patch":{"tags":["Permissions"],"summary":"Update Technician","operationId":"update_technician_api_v1_permissions_technicians__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/TechnicianPermissionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TechnicianPermissionsRead"}}}},"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"}},{"name":"is_delete","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Is Delete"}}],"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/by-technical-report/{report_id}":{"get":{"tags":["Client Dossiers"],"summary":"Get Client Dossier By Technical Report","operationId":"get_client_dossier_by_technical_report_api_v1_client_dossiers_by_technical_report__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/ClientDossierRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/client-dossiers/by-activity-report/{report_id}":{"get":{"tags":["Client Dossiers"],"summary":"Get Client Dossier By Activity Report","operationId":"get_client_dossier_by_activity_report_api_v1_client_dossiers_by_activity_report__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/ClientDossierRead"}}}},"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/client-dossiers/{dossier_id}/restore":{"post":{"tags":["Client Dossiers"],"summary":"Restore Client Dossier","operationId":"restore_client_dossier_api_v1_client_dossiers__dossier_id__restore_post","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"}}}}}}},"/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}/finding-photos":{"get":{"tags":["Customer Portal"],"summary":"List My Report Finding Photos","description":"Photos de tous les constats du CR, groupées par constat, en une requête.","operationId":"list_my_report_finding_photos_api_v1_customer_me_technical_reports__report_id__finding_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":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/PhotoRead"}},"propertyNames":{"format":"uuid"},"title":"Response List My Report Finding Photos Api V1 Customer Me Technical Reports  Report Id  Finding 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"},"source_report_numero":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Report Numero"},"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"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"},"date_tech":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Tech"},"heure_debut":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Heure Debut"},"heure_fin":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Heure Fin"},"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"},"needs_client_resend":{"type":"boolean","title":"Needs Client Resend","default":false},"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"},"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","heure_debut","heure_fin","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"},"informations_complementaires":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Informations Complementaires"},"date_tech":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date Tech"},"heure_debut":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Heure Debut"},"heure_fin":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Heure Fin"},"tech_hours":{"anyOf":[{"items":{"$ref":"#/components/schemas/TechHourSnapshot"},"type":"array"},{"type":"null"}],"title":"Tech Hours"}},"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"},"AffectationCouranteRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"salle_id":{"type":"string","format":"uuid","title":"Salle Id"},"salle_nom":{"type":"string","title":"Salle Nom"},"site_id":{"type":"string","format":"uuid","title":"Site Id"},"site_nom":{"type":"string","title":"Site Nom"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"customer_organization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Organization"},"date_debut":{"type":"string","format":"date-time","title":"Date Debut"}},"type":"object","required":["id","salle_id","salle_nom","site_id","site_nom","customer_id","customer_organization","date_debut"],"title":"AffectationCouranteRead"},"AssistConstatRequest":{"properties":{"draft":{"type":"string","maxLength":4000,"minLength":1,"title":"Draft"},"prompt":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Prompt"},"constat_id":{"type":"string","format":"uuid","title":"Constat Id"}},"type":"object","required":["draft","constat_id"],"title":"AssistConstatRequest"},"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","preco_com","preco_tech","commentaire_tech","email_body"],"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"},"created_by_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By Id"},"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"},"Attendee":{"properties":{"email":{"type":"string","title":"Email"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"responseStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsestatus","default":"needsAction"},"organizer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Organizer","default":false},"optional":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Optional","default":false}},"type":"object","required":["email"],"title":"Attendee"},"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"},"CalendarEventCreate":{"properties":{"summary":{"type":"string","title":"Summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime"},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime"},"timezone":{"type":"string","title":"Timezone","default":"Europe/Paris"},"calendar_id":{"type":"string","title":"Calendar Id","default":"primary"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"colorId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colorid"},"transparency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transparency","default":"opaque"},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility","default":"default"},"create_google_meet":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Create Google Meet","default":false},"attendees":{"anyOf":[{"items":{"$ref":"#/components/schemas/Attendee"},"type":"array"},{"type":"null"}],"title":"Attendees"},"reminders":{"anyOf":[{"items":{"$ref":"#/components/schemas/Reminder"},"type":"array"},{"type":"null"}],"title":"Reminders"},"useDefaultReminders":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usedefaultreminders","default":true},"guestsCanInviteOthers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Guestscaninviteothers","default":true},"guestsCanModify":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Guestscanmodify","default":false},"guestsCanSeeOtherGuests":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Guestscanseeotherguests","default":true},"anyoneCanAddSelf":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Anyonecanaddself","default":false},"recurrence":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recurrence"}},"type":"object","required":["summary","start_datetime","end_datetime"],"title":"CalendarEventCreate"},"CalendarEventListResponse":{"properties":{"events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Events"}},"type":"object","title":"CalendarEventListResponse"},"CalendarEventSendEmail":{"properties":{"recipient_email":{"type":"string","title":"Recipient Email"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["recipient_email"],"title":"CalendarEventSendEmail"},"CalendarEventUpdate":{"properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"start_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Datetime"},"end_datetime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Datetime"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","default":"Europe/Paris"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"colorId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Colorid"},"transparency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transparency"},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility"},"create_google_meet":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Create Google Meet"},"attendees":{"anyOf":[{"items":{"$ref":"#/components/schemas/Attendee"},"type":"array"},{"type":"null"}],"title":"Attendees"},"reminders":{"anyOf":[{"items":{"$ref":"#/components/schemas/Reminder"},"type":"array"},{"type":"null"}],"title":"Reminders"},"useDefaultReminders":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usedefaultreminders"},"guestsCanInviteOthers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Guestscaninviteothers"},"guestsCanModify":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Guestscanmodify"},"guestsCanSeeOtherGuests":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Guestscanseeotherguests"},"anyoneCanAddSelf":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Anyonecanaddself"},"recurrence":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recurrence"}},"type":"object","title":"CalendarEventUpdate"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","minLength":8,"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"},"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"},"intervention_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Intervention Type Id"},"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":{"items":{"type":"string"},"type":"array","title":"Contact Tel"},"contact_email":{"items":{"type":"string"},"type":"array","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"},"technicien_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Technicien User Id"},"objet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objet"},"extra_fields":{"additionalProperties":true,"type":"object","title":"Extra Fields"}},"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"},"is_delete":{"type":"boolean","title":"Is Delete"},"is_date_delete":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Is Date Delete"},"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","is_delete","is_date_delete","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"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"}},"type":"object","required":["id","numero","status","validated_at","created_by_id"],"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":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"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":{"type":"string","maxLength":200,"minLength":1,"title":"Organization"},"reference":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Reference"},"code_client":{"anyOf":[{"type":"string","maxLength":15,"minLength":7},{"type":"null"}],"title":"Code Client"},"coordonnees":{"type":"string","maxLength":500,"minLength":1,"title":"Coordonnees"},"send_email":{"type":"boolean","title":"Send Email","default":false}},"type":"object","required":["organization","coordonnees"],"title":"CustomerCreate"},"CustomerCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"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"},"code_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Client"},"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","code_client","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":{"anyOf":[{"type":"string"},{"type":"null"}],"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"},"code_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Client"},"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","code_client","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"},"code_client":{"anyOf":[{"type":"string","maxLength":15,"minLength":7},{"type":"null"}],"title":"Code Client"},"coordonnees":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Coordonnees"}},"type":"object","title":"CustomerUpdate"},"DashboardActivityChart":{"properties":{"months":{"items":{"type":"string"},"type":"array","title":"Months"},"dossier_client_validated":{"items":{"type":"integer"},"type":"array","title":"Dossier Client Validated"},"dossier_client_not_validated":{"items":{"type":"integer"},"type":"array","title":"Dossier Client Not Validated"}},"type":"object","required":["months","dossier_client_validated","dossier_client_not_validated"],"title":"DashboardActivityChart"},"DashboardActivityReports":{"properties":{"statut_intervention":{"$ref":"#/components/schemas/DashboardStatutInterventionBreakdown"},"decision":{"$ref":"#/components/schemas/DashboardDecisionBreakdown"}},"type":"object","required":["statut_intervention","decision"],"title":"DashboardActivityReports"},"DashboardClientDossiersSummary":{"properties":{"validated":{"type":"integer","title":"Validated"},"not_validated":{"type":"integer","title":"Not Validated"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["validated","not_validated","total"],"title":"DashboardClientDossiersSummary"},"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_customer":{"type":"integer","title":"Total Customer"},"percent_change":{"type":"number","title":"Percent Change"}},"type":"object","required":["total_customer","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"},"client_dossiers":{"$ref":"#/components/schemas/DashboardClientDossiersSummary"}},"type":"object","required":["critical_findings","drafts","drafts_comptes_rendus","drafts_suivis","in_treatment","in_treatment_comptes_rendus","in_treatment_suivis","client_dossiers"],"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"},"EquipementAffectationPeriodeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"salle":{"$ref":"#/components/schemas/SalleSiteRef"},"date_debut":{"type":"string","format":"date-time","title":"Date Debut"},"date_fin":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Fin"}},"type":"object","required":["id","salle","date_debut","date_fin"],"title":"EquipementAffectationPeriodeRead"},"EquipementCreate":{"properties":{"nom":{"type":"string","maxLength":200,"minLength":1,"title":"Nom"},"numero_serie":{"type":"string","maxLength":100,"minLength":1,"title":"Numero Serie"},"statut":{"$ref":"#/components/schemas/EquipmentStatus","default":"actif"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"},"salle_id":{"type":"string","format":"uuid","title":"Salle Id"}},"additionalProperties":false,"type":"object","required":["nom","numero_serie","salle_id"],"title":"EquipementCreate","description":"Création équipement (US-22 / RM-06) : seul ``salle_id`` est accepté.\n\nRM-06 : affectation initiale à une salle. US-22 : le site est dérivé de la\nsalle ; ``site_id`` est interdit (``extra=forbid``). RM-12 : la réponse\ninclut immédiatement ``affectation_courante`` à jour."},"EquipementHistoriqueEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","enum":["statut","affectation"],"title":"Type"},"date_changement":{"type":"string","format":"date-time","title":"Date Changement"},"ancien_statut":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ancien Statut"},"nouveau_statut":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nouveau Statut"},"ancienne_salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ancienne Salle Id"},"ancienne_salle_nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ancienne Salle Nom"},"nouvelle_salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Nouvelle Salle Id"},"nouvelle_salle_nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nouvelle Salle Nom"},"ancienne_salle_site":{"anyOf":[{"$ref":"#/components/schemas/SalleSiteRef"},{"type":"null"}]},"nouvelle_salle_site":{"anyOf":[{"$ref":"#/components/schemas/SalleSiteRef"},{"type":"null"}]}},"type":"object","required":["id","type","date_changement"],"title":"EquipementHistoriqueEntry"},"EquipementHistoriqueRead":{"properties":{"equipement_id":{"type":"string","format":"uuid","title":"Equipement Id"},"entries":{"items":{"$ref":"#/components/schemas/EquipementHistoriqueEntry"},"type":"array","title":"Entries"}},"type":"object","required":["equipement_id","entries"],"title":"EquipementHistoriqueRead"},"EquipementInterventionEntry":{"properties":{"finding_id":{"type":"string","format":"uuid","title":"Finding Id"},"report_id":{"type":"string","format":"uuid","title":"Report Id"},"report_numero":{"type":"string","title":"Report Numero"},"date_intervention":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Intervention"},"report_status":{"$ref":"#/components/schemas/DocumentStatus"},"titre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Titre"},"gravite":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"intervention_types":{"items":{"$ref":"#/components/schemas/InterventionTypeRef"},"type":"array","title":"Intervention Types"},"equipement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Equipement"},"report_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Site"},"technicien":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technicien"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preconisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preconisation"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["finding_id","report_id","report_numero","date_intervention","report_status","titre","gravite","equipement","created_at"],"title":"EquipementInterventionEntry"},"EquipementInterventionsRead":{"properties":{"equipement_id":{"type":"string","format":"uuid","title":"Equipement Id"},"interventions":{"items":{"$ref":"#/components/schemas/EquipementInterventionEntry"},"type":"array","title":"Interventions"}},"type":"object","required":["equipement_id","interventions"],"title":"EquipementInterventionsRead"},"EquipementParcoursEvent":{"properties":{"type":{"type":"string","enum":["statut","affectation","intervention"],"title":"Type"},"date":{"type":"string","format":"date-time","title":"Date"},"ancien_statut":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ancien Statut"},"nouveau_statut":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nouveau Statut"},"ancienne_salle_site":{"anyOf":[{"$ref":"#/components/schemas/SalleSiteRef"},{"type":"null"}]},"nouvelle_salle_site":{"anyOf":[{"$ref":"#/components/schemas/SalleSiteRef"},{"type":"null"}]},"finding_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Finding Id"},"report_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Report Id"},"report_numero":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Numero"},"report_status":{"anyOf":[{"$ref":"#/components/schemas/DocumentStatus"},{"type":"null"}]},"report_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Site"},"technicien":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technicien"},"titre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Titre"},"gravite":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"intervention_types":{"items":{"$ref":"#/components/schemas/InterventionTypeRef"},"type":"array","title":"Intervention Types"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preconisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preconisation"}},"type":"object","required":["type","date"],"title":"EquipementParcoursEvent"},"EquipementParcoursRead":{"properties":{"equipement_id":{"type":"string","format":"uuid","title":"Equipement Id"},"nom":{"type":"string","title":"Nom"},"numero_serie":{"type":"string","title":"Numero Serie"},"statut":{"$ref":"#/components/schemas/EquipmentStatus"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"},"affectation_courante":{"anyOf":[{"$ref":"#/components/schemas/AffectationCouranteRead"},{"type":"null"}]},"periodes_affectation":{"items":{"$ref":"#/components/schemas/EquipementAffectationPeriodeRead"},"type":"array","title":"Periodes Affectation"},"timeline":{"items":{"$ref":"#/components/schemas/EquipementParcoursEvent"},"type":"array","title":"Timeline"},"interventions_count":{"type":"integer","title":"Interventions Count","default":0}},"type":"object","required":["equipement_id","nom","numero_serie","statut","informations_complementaires"],"title":"EquipementParcoursRead"},"EquipementRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"nom":{"type":"string","title":"Nom"},"numero_serie":{"type":"string","title":"Numero Serie"},"statut":{"$ref":"#/components/schemas/EquipmentStatus"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"affectation_courante":{"anyOf":[{"$ref":"#/components/schemas/AffectationCouranteRead"},{"type":"null"}]},"historique_statuts":{"items":{"$ref":"#/components/schemas/HistoriqueStatutRead"},"type":"array","title":"Historique Statuts"},"historique_affectations":{"items":{"$ref":"#/components/schemas/HistoriqueAffectationRead"},"type":"array","title":"Historique Affectations"}},"type":"object","required":["id","nom","numero_serie","statut","informations_complementaires","created_at","updated_at"],"title":"EquipementRead"},"EquipementStatutRead":{"properties":{"equipement_id":{"type":"string","format":"uuid","title":"Equipement Id"},"statut":{"$ref":"#/components/schemas/EquipmentStatus"},"date_changement":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date Changement"}},"type":"object","required":["equipement_id","statut","date_changement"],"title":"EquipementStatutRead"},"EquipementStatutUpdate":{"properties":{"statut":{"$ref":"#/components/schemas/EquipmentStatus"}},"type":"object","required":["statut"],"title":"EquipementStatutUpdate"},"EquipementUpdate":{"properties":{"nom":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Nom"},"numero_serie":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Numero Serie"},"statut":{"anyOf":[{"$ref":"#/components/schemas/EquipmentStatus"},{"type":"null"}]},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"},"salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Salle Id"}},"additionalProperties":false,"type":"object","title":"EquipementUpdate","description":"Mise à jour équipement (RM-06 / RM-12 / US-22).\n\nRM-12 : changement de ``salle_id`` pris en compte immédiatement en réponse.\nUS-22 : pas de ``site_id`` en entrée (``extra=forbid``)."},"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"},"EquipmentStatus":{"type":"string","enum":["actif","hors_service"],"title":"EquipmentStatus"},"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"},"equipement_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Equipement Id"},"salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Salle Id"},"intervention_type_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Intervention Type Ids"},"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"},"equipement_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Equipement Id"},"salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Salle Id"},"intervention_type_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Intervention Type Ids"},"intervention_types":{"items":{"$ref":"#/components/schemas/InterventionTypeRef"},"type":"array","title":"Intervention Types"},"gravite":{"anyOf":[{"$ref":"#/components/schemas/Severity"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preconisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preconisation"},"extra_fields":{"additionalProperties":true,"type":"object","title":"Extra Fields"}},"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"},"equipement_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Equipement Id"},"salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Salle Id"},"intervention_type_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Intervention Type Ids"},"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","multiselect","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"},"GoogleAccountInfo":{"properties":{"email":{"type":"string","title":"Email"},"account_id":{"type":"integer","title":"Account Id"},"provider":{"type":"string","const":"gmail","title":"Provider","default":"gmail"},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_connected":{"type":"boolean","title":"Is Connected","default":false},"needs_reauth":{"type":"boolean","title":"Needs Reauth","default":false}},"type":"object","required":["email","account_id"],"title":"GoogleAccountInfo"},"GoogleAuthUrlResponse":{"properties":{"auth_url":{"type":"string","title":"Auth Url"},"redirect_uri":{"type":"string","title":"Redirect Uri"}},"type":"object","required":["auth_url","redirect_uri"],"title":"GoogleAuthUrlResponse"},"GoogleConnectionStatusResponse":{"properties":{"is_connected":{"type":"boolean","title":"Is Connected"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"needs_reauth":{"type":"boolean","title":"Needs Reauth"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"user_emails":{"items":{"$ref":"#/components/schemas/GoogleAccountInfo"},"type":"array","title":"User Emails"}},"type":"object","required":["is_connected","status","message","needs_reauth"],"title":"GoogleConnectionStatusResponse"},"GoogleDisconnectResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"message":{"type":"string","title":"Message"},"provider":{"type":"string","const":"gmail","title":"Provider","default":"gmail"},"account_id":{"type":"integer","title":"Account Id"},"email":{"type":"string","title":"Email"},"calendar_disconnected":{"type":"boolean","title":"Calendar Disconnected","default":true}},"type":"object","required":["message","account_id","email"],"title":"GoogleDisconnectResponse"},"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"},"HistoriqueAffectationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ancienne_salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ancienne Salle Id"},"ancienne_salle_nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ancienne Salle Nom"},"nouvelle_salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Nouvelle Salle Id"},"nouvelle_salle_nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nouvelle Salle Nom"},"ancienne_salle_site":{"anyOf":[{"$ref":"#/components/schemas/SalleSiteRef"},{"type":"null"}]},"nouvelle_salle_site":{"anyOf":[{"$ref":"#/components/schemas/SalleSiteRef"},{"type":"null"}]},"date_changement":{"type":"string","format":"date-time","title":"Date Changement"}},"type":"object","required":["id","ancienne_salle_id","ancienne_salle_nom","nouvelle_salle_id","nouvelle_salle_nom","date_changement"],"title":"HistoriqueAffectationRead"},"HistoriqueStatutRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ancien_statut":{"type":"string","title":"Ancien Statut"},"nouveau_statut":{"type":"string","title":"Nouveau Statut"},"date_changement":{"type":"string","format":"date-time","title":"Date Changement"}},"type":"object","required":["id","ancien_statut","nouveau_statut","date_changement"],"title":"HistoriqueStatutRead"},"InterventionStatus":{"type":"string","enum":["non_effectue","partiel","effectue"],"title":"InterventionStatus"},"InterventionTypeCreate":{"properties":{"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"}},"type":"object","required":["label"],"title":"InterventionTypeCreate"},"InterventionTypeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","label","description","is_active","created_at"],"title":"InterventionTypeRead"},"InterventionTypeRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"}},"type":"object","required":["id","label"],"title":"InterventionTypeRef"},"InterventionTypeUpdate":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"InterventionTypeUpdate"},"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"},"MyPermissionsRead":{"properties":{"permissions":{"items":{"$ref":"#/components/schemas/PermissionFlag"},"type":"array","title":"Permissions"}},"type":"object","required":["permissions"],"title":"MyPermissionsRead"},"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"},"NotificationSettingsRead":{"properties":{"reminder_lead_minutes":{"type":"integer","title":"Reminder Lead Minutes"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["reminder_lead_minutes","updated_at"],"title":"NotificationSettingsRead"},"NotificationSettingsUpdate":{"properties":{"reminder_lead_minutes":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"Reminder Lead Minutes"}},"type":"object","required":["reminder_lead_minutes"],"title":"NotificationSettingsUpdate"},"NumeroSerieCheckRead":{"properties":{"available":{"type":"boolean","title":"Available"},"numero_serie":{"type":"string","title":"Numero Serie"}},"type":"object","required":["available","numero_serie"],"title":"NumeroSerieCheckRead"},"PasswordActionResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"PasswordActionResponse"},"PermissionFlag":{"properties":{"permission_key":{"type":"string","title":"Permission Key"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["permission_key","enabled"],"title":"PermissionFlag"},"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"},"Reminder":{"properties":{"method":{"type":"string","title":"Method","default":"email"},"minutes":{"type":"integer","title":"Minutes","default":15}},"type":"object","title":"Reminder"},"ReportVersionDiff":{"properties":{"from_version":{"type":"integer","title":"From Version"},"to_version":{"type":"integer","title":"To Version"},"changes":{"items":{"$ref":"#/components/schemas/ReportVersionDiffItem"},"type":"array","title":"Changes"}},"type":"object","required":["from_version","to_version","changes"],"title":"ReportVersionDiff"},"ReportVersionDiffItem":{"properties":{"path":{"type":"string","title":"Path"},"before":{"title":"Before"},"after":{"title":"After"}},"type":"object","required":["path"],"title":"ReportVersionDiffItem"},"ReportVersionRead":{"properties":{"version":{"type":"integer","title":"Version"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"}},"type":"object","required":["version","snapshot","created_at","created_by_id"],"title":"ReportVersionRead"},"ReportVersionSummary":{"properties":{"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"}},"type":"object","required":["version","created_at","created_by_id"],"title":"ReportVersionSummary"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","minLength":20,"title":"Token"},"password":{"type":"string","minLength":8,"title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"SalleCreate":{"properties":{"site_id":{"type":"string","format":"uuid","title":"Site Id"},"nom":{"type":"string","maxLength":200,"minLength":1,"title":"Nom"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"}},"type":"object","required":["site_id","nom"],"title":"SalleCreate"},"SalleRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"site_id":{"type":"string","format":"uuid","title":"Site Id"},"nom":{"type":"string","title":"Nom"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","site_id","nom","informations_complementaires","created_at","updated_at"],"title":"SalleRead"},"SalleSiteRef":{"properties":{"salle_id":{"type":"string","format":"uuid","title":"Salle Id"},"salle_nom":{"type":"string","title":"Salle Nom"},"site_id":{"type":"string","format":"uuid","title":"Site Id"},"site_code":{"type":"string","title":"Site Code"},"site_nom":{"type":"string","title":"Site Nom"}},"type":"object","required":["salle_id","salle_nom","site_id","site_code","site_nom"],"title":"SalleSiteRef","description":"Référence salle + site dérivée (US-22 / RM-07, code site RM-01)."},"SalleUpdate":{"properties":{"site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Site Id"},"nom":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Nom"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"}},"type":"object","title":"SalleUpdate"},"SetPasswordRequest":{"properties":{"password":{"type":"string","minLength":8,"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"},"SiteCreate":{"properties":{"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"code":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Code"},"nom":{"type":"string","maxLength":200,"minLength":1,"title":"Nom"},"adresse":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Adresse"},"informations_complementaires":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Informations Complementaires"}},"type":"object","required":["customer_id","nom"],"title":"SiteCreate","description":"Payload de création d'un site d'intervention.\n\n``code`` est optionnel : s'il est omis, l'API alloue le prochain ``SITE-NNN``."},"SiteRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"code":{"type":"string","title":"Code"},"nom":{"type":"string","title":"Nom"},"adresse":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adresse"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","customer_id","code","nom","adresse","informations_complementaires","created_at","updated_at"],"title":"SiteRead","description":"Réponse consultation d'un site (liste ou détail).\n\nRM-01 : ``id`` est la clé technique de sélection ; ``code`` est l'identifiant\nmétier unique global affiché à l'utilisateur."},"SiteUpdate":{"properties":{"customer_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customer Id"},"code":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Code"},"nom":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Nom"},"adresse":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Adresse"},"informations_complementaires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Informations Complementaires"}},"type":"object","title":"SiteUpdate","description":"Payload PATCH partiel — envoyer uniquement les champs modifiés.\n\nChamps autorisés : ``code``, ``nom``, ``adresse``, ``informations_complementaires``,\n``customer_id``. L'``id`` est fixé par l'URL et ne peut pas être modifié ici."},"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"},"TechHourSnapshot":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"heure_debut":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heure Debut"},"heure_fin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heure Fin"}},"type":"object","title":"TechHourSnapshot","description":"Une date d'intervention technique (date + plage horaire)."},"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"},"intervention_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Intervention Type Id"},"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":{"items":{"type":"string"},"type":"array","title":"Contact Tel"},"contact_email":{"items":{"type":"string"},"type":"array","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"},"technicien_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Technicien User Id"},"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"},"intervention_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Intervention Type Id"},"intervention_type":{"anyOf":[{"$ref":"#/components/schemas/InterventionTypeRead"},{"type":"null"}]},"progress_percent":{"type":"number","title":"Progress Percent"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","numero","status","customer_id","site","date_intervention","technicien","client","intervention_type_id","intervention_type","progress_percent","created_by_id","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"},"intervention_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Intervention Type Id"},"intervention_type":{"anyOf":[{"$ref":"#/components/schemas/InterventionTypeRead"},{"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":{"items":{"type":"string"},"type":"array","title":"Contact Tel"},"contact_email":{"items":{"type":"string"},"type":"array","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"},"technicien_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Technicien User Id"},"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"},"current_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Version"},"created_by_id":{"type":"string","format":"uuid","title":"Created By Id"},"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","intervention_type_id","intervention_type","client","nom_entreprise","reference","contact_nom","contact_adresse","entreprise","technicien","objet","extra_fields","progress_percent","findings","validated_at","created_by_id","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"},"intervention_type_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Intervention Type Id"},"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":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Contact Tel"},"contact_email":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"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"},"technicien_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Technicien User Id"},"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"},"TechnicianPermissionsRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"permissions":{"items":{"$ref":"#/components/schemas/PermissionFlag"},"type":"array","title":"Permissions"}},"type":"object","required":["user_id","full_name","email","permissions"],"title":"TechnicianPermissionsRead"},"TechnicianPermissionsUpdate":{"properties":{"permissions":{"items":{"$ref":"#/components/schemas/PermissionFlag"},"type":"array","minItems":1,"title":"Permissions"}},"type":"object","required":["permissions"],"title":"TechnicianPermissionsUpdate"},"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"},"equipement_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Equipement Id"},"salle_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Salle Id"},"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_intervention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Intervention"},"intervention_type_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Intervention Type Ids"},"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"},"extra_fields":{"additionalProperties":true,"type":"object","title":"Extra Fields"}},"type":"object","title":"TerrainFindingSnapshot"},"TerrainHourSnapshot":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time"},"selected":{"type":"boolean","title":"Selected","default":true}},"type":"object","title":"TerrainHourSnapshot"},"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":[{"type":"string"},{"type":"null"}],"title":"Type Intervention"},"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"},"dossier_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dossier Name"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"code_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Client"},"coordonnees":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coordonnees"},"contact_nom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Nom"},"contact_tel":{"items":{"type":"string"},"type":"array","title":"Contact Tel"},"contact_email":{"items":{"type":"string"},"type":"array","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"},"intervention_hours":{"items":{"$ref":"#/components/schemas/TerrainHourSnapshot"},"type":"array","title":"Intervention Hours"},"constats":{"items":{"$ref":"#/components/schemas/TerrainFindingSnapshot"},"type":"array","title":"Constats"},"equipment_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Equipment Source"},"site_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Site Id"}},"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":8,"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":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"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":8},{"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"}}}}