{"openapi":"3.1.0","info":{"title":"Baustellenplaner API","version":"2.0.0"},"paths":{"/api/health":{"get":{"tags":["System"],"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/api/health/detailed":{"get":{"tags":["System"],"summary":"Detailed Health","operationId":"detailed_health_api_health_detailed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetailedHealthResponse"}}}}}}},"/api/auth/signup":{"post":{"tags":["Authentication"],"summary":"Signup","operationId":"signup_api_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthRegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"tags":["Authentication"],"summary":"Login","operationId":"login_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/logout":{"post":{"tags":["Authentication"],"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/api/auth/clear-cookies":{"post":{"tags":["Authentication"],"summary":"Clear Cookies","operationId":"clear_cookies_api_auth_clear_cookies_post","responses":{"204":{"description":"Successful Response"}}}},"/api/auth/me":{"get":{"tags":["Authentication"],"summary":"Me","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}}}},"/api/auth/users":{"get":{"tags":["Authentication"],"summary":"Users","operationId":"users_api_auth_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAccessOverviewResponse"}}}}}},"post":{"tags":["Authentication"],"summary":"Create User","operationId":"create_user_api_auth_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAdminCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAccessSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{user_id}":{"put":{"tags":["Authentication"],"summary":"Update User","operationId":"update_user_api_auth_users__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAdminUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAccessSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Authentication"],"summary":"Delete User","operationId":"delete_user_api_auth_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/users/{user_id}/avatar":{"post":{"tags":["Authentication"],"summary":"Update User Avatar","operationId":"update_user_avatar_api_auth_users__user_id__avatar_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAccessSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/roles/{role_key}":{"put":{"tags":["Authentication"],"summary":"Update Role Permissions","operationId":"update_role_permissions_api_auth_roles__role_key__put","parameters":[{"name":"role_key","in":"path","required":true,"schema":{"type":"string","title":"Role Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolePermissionsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRoleDefinition"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me/password":{"post":{"tags":["Authentication"],"summary":"Change My Password","operationId":"change_my_password_api_auth_me_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me/settings":{"get":{"tags":["Authentication"],"summary":"Me Settings","operationId":"me_settings_api_auth_me_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettingsReadResponse"}}}}}},"put":{"tags":["Authentication"],"summary":"Update Me Settings","operationId":"update_me_settings_api_auth_me_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettingsUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettingsReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/refresh":{"post":{"tags":["Authentication"],"summary":"Refresh","operationId":"refresh_api_auth_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshResponse"}}}}}}},"/api/audit":{"get":{"tags":["Audit"],"summary":"List Audit Log","operationId":"list_audit_log_api_audit_get","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/license":{"get":{"tags":["License"],"summary":"Get License","operationId":"get_license_api_license_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseOverviewResponse"}}}}}},"put":{"tags":["License"],"summary":"Update License","operationId":"update_license_api_license_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseOverviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/license/unlock":{"post":{"tags":["License"],"summary":"Unlock License Limits","operationId":"unlock_license_limits_api_license_unlock_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseUnlockRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseUnlockResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites":{"get":{"tags":["Sites"],"summary":"List Sites","operationId":"list_sites_api_sites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Site"},"type":"array","title":"Response List Sites Api Sites Get"}}}}}},"post":{"tags":["Sites"],"summary":"Create Site","operationId":"create_site_api_sites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}":{"put":{"tags":["Sites"],"summary":"Update Site","operationId":"update_site_api_sites__site_id__put","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Sites"],"summary":"Delete Site","operationId":"delete_site_api_sites__site_id__delete","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sites/{site_id}/work-instructions":{"patch":{"tags":["Sites"],"summary":"Update Site Work Instructions","operationId":"update_site_work_instructions_api_sites__site_id__work_instructions_patch","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteWorkInstructionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/employees":{"get":{"tags":["Employees"],"summary":"List Employees","operationId":"list_employees_api_employees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Employee"},"type":"array","title":"Response List Employees Api Employees Get"}}}}}},"post":{"tags":["Employees"],"summary":"Create Employee","operationId":"create_employee_api_employees_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/employees/default-times":{"get":{"tags":["Employees"],"summary":"Get Default Employee Times","operationId":"get_default_employee_times_api_employees_default_times_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeDefaultTimesSettings"}}}}}},"put":{"tags":["Employees"],"summary":"Update Default Employee Times","operationId":"update_default_employee_times_api_employees_default_times_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeDefaultTimesSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeDefaultTimesSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/employees/{employee_id}":{"put":{"tags":["Employees"],"summary":"Update Employee","operationId":"update_employee_api_employees__employee_id__put","parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"string","title":"Employee Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Employees"],"summary":"Delete Employee","operationId":"delete_employee_api_employees__employee_id__delete","parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"string","title":"Employee Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/employees/{foreman_id}/assigned-workers":{"put":{"tags":["Employees"],"summary":"Update Employee Foreman Assignments","operationId":"update_employee_foreman_assignments_api_employees__foreman_id__assigned_workers_put","parameters":[{"name":"foreman_id","in":"path","required":true,"schema":{"type":"string","title":"Foreman Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeForemanAssignment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/employees/{employee_id}/avatar":{"post":{"tags":["Employees"],"summary":"Update Employee Avatar","operationId":"update_employee_avatar_api_employees__employee_id__avatar_post","parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"string","title":"Employee Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Employee"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partien":{"get":{"tags":["Partien"],"summary":"List Partien","operationId":"list_partien_api_partien_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Partie"},"type":"array","title":"Response List Partien Api Partien Get"}}}}}},"post":{"tags":["Partien"],"summary":"Create Partie","operationId":"create_partie_api_partien_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Partie"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Partie"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/partien/{partie_id}":{"put":{"tags":["Partien"],"summary":"Update Partie","operationId":"update_partie_api_partien__partie_id__put","parameters":[{"name":"partie_id","in":"path","required":true,"schema":{"type":"string","title":"Partie Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Partie"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Partie"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Partien"],"summary":"Delete Partie","operationId":"delete_partie_api_partien__partie_id__delete","parameters":[{"name":"partie_id","in":"path","required":true,"schema":{"type":"string","title":"Partie Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/absences":{"get":{"tags":["Absences"],"summary":"List Absences","operationId":"list_absences_api_absences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Absence"},"type":"array","title":"Response List Absences Api Absences Get"}}}}}},"post":{"tags":["Absences"],"summary":"Create Absence","operationId":"create_absence_api_absences_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Absence"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Absence"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/absences/{absence_id}":{"delete":{"tags":["Absences"],"summary":"Delete Absence","operationId":"delete_absence_api_absences__absence_id__delete","parameters":[{"name":"absence_id","in":"path","required":true,"schema":{"type":"string","title":"Absence Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/appointments":{"get":{"tags":["Appointments"],"summary":"List Appointments","operationId":"list_appointments_api_appointments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Appointment"},"type":"array","title":"Response List Appointments Api Appointments Get"}}}}}},"post":{"tags":["Appointments"],"summary":"Create Appointment","operationId":"create_appointment_api_appointments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Appointment"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Appointment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/appointments/{appointment_id}":{"put":{"tags":["Appointments"],"summary":"Update Appointment","operationId":"update_appointment_api_appointments__appointment_id__put","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Appointment"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Appointment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Appointments"],"summary":"Delete Appointment","operationId":"delete_appointment_api_appointments__appointment_id__delete","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","title":"Appointment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule":{"get":{"tags":["Schedule"],"summary":"Get Full Schedule","operationId":"get_full_schedule_api_schedule_get","parameters":[{"name":"from_date","in":"query","required":true,"schema":{"type":"string","title":"From Date"}},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleByDayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule/range":{"get":{"tags":["Schedule"],"summary":"Get Schedule Range","operationId":"get_schedule_range_api_schedule_range_get","parameters":[{"name":"from_date","in":"query","required":true,"schema":{"type":"string","title":"From Date"}},{"name":"to_date","in":"query","required":true,"schema":{"type":"string","title":"To Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleByDayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule/{day_key}":{"get":{"tags":["Schedule"],"summary":"Get Day Schedule","operationId":"get_day_schedule_api_schedule__day_key__get","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledProject"},"title":"Response Get Day Schedule Api Schedule  Day Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Schedule"],"summary":"Add To Schedule","operationId":"add_to_schedule_api_schedule__day_key__post","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledProject"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Schedule"],"summary":"Replace Day Schedule","operationId":"replace_day_schedule_api_schedule__day_key__put","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-Match"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledProject"},"title":"Projects"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledProject"},"title":"Response Replace Day Schedule Api Schedule  Day Key  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule/order-sync":{"post":{"tags":["Schedule"],"summary":"Sync Schedule Order","operationId":"sync_schedule_order_api_schedule_order_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOrderSyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOrderSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule/{day_key}/{instance_id}":{"put":{"tags":["Schedule"],"summary":"Update Scheduled Project","operationId":"update_scheduled_project_api_schedule__day_key___instance_id__put","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}},{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledProject"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Schedule"],"summary":"Remove From Schedule","operationId":"remove_from_schedule_api_schedule__day_key___instance_id__delete","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}},{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule/{day_key}/{instance_id}/notes":{"patch":{"tags":["Schedule"],"summary":"Update Schedule Entry Notes","operationId":"update_schedule_entry_notes_api_schedule__day_key___instance_id__notes_patch","parameters":[{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}},{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEntryNotesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/schedule/{source_day}/{instance_id}/move/{target_day}":{"post":{"tags":["Schedule"],"summary":"Move Scheduled Project","operationId":"move_scheduled_project_api_schedule__source_day___instance_id__move__target_day__post","parameters":[{"name":"source_day","in":"path","required":true,"schema":{"type":"string","title":"Source Day"}},{"name":"instance_id","in":"path","required":true,"schema":{"type":"string","title":"Instance Id"}},{"name":"target_day","in":"path","required":true,"schema":{"type":"string","title":"Target Day"}},{"name":"target_instance_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Instance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/user-settings/me":{"get":{"tags":["User Settings"],"summary":"Get My Settings","operationId":"get_my_settings_api_user_settings_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettingsReadResponse"}}}}}},"put":{"tags":["User Settings"],"summary":"Update My Settings","operationId":"update_my_settings_api_user_settings_me_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettingsUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSettingsReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/global-settings":{"get":{"tags":["Global settings"],"summary":"Get Global Settings","operationId":"get_global_settings_api_global_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalSettingsResponse"}}}}}},"patch":{"tags":["Global settings"],"summary":"Patch Global Settings","operationId":"patch_global_settings_api_global_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GlobalSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workday-overrides":{"get":{"tags":["WorkdayOverrides"],"summary":"List Overrides","operationId":"list_overrides_api_workday_overrides_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkdayOverride"},"type":"array","title":"Response List Overrides Api Workday Overrides Get"}}}}}}},"/api/workday-overrides/{employee_id}/{day_key}":{"put":{"tags":["WorkdayOverrides"],"summary":"Upsert Override","operationId":"upsert_override_api_workday_overrides__employee_id___day_key__put","parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"string","title":"Employee Id"}},{"name":"day_key","in":"path","required":true,"schema":{"type":"string","title":"Day Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkdayOverride"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkdayOverride"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workday-overrides/{override_id}":{"delete":{"tags":["WorkdayOverrides"],"summary":"Delete Override","operationId":"delete_override_api_workday_overrides__override_id__delete","parameters":[{"name":"override_id","in":"path","required":true,"schema":{"type":"string","title":"Override Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public-holidays":{"get":{"tags":["PublicHolidays"],"summary":"List Holidays","operationId":"list_holidays_api_public_holidays_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PublicHoliday"},"type":"array","title":"Response List Holidays Api Public Holidays Get"}}}}}},"post":{"tags":["PublicHolidays"],"summary":"Create Holiday","operationId":"create_holiday_api_public_holidays_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicHoliday"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicHoliday"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public-holidays/{holiday_id}":{"delete":{"tags":["PublicHolidays"],"summary":"Delete Holiday","operationId":"delete_holiday_api_public_holidays__holiday_id__delete","parameters":[{"name":"holiday_id","in":"path","required":true,"schema":{"type":"string","title":"Holiday Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events":{"get":{"tags":["Events"],"summary":"Server-Sent Events stream","description":"Clients connect here to receive real-time schedule change notifications.\nEach event is a JSON-encoded object: {\"type\": \"schedule.changed\",\n\"dayKeys\": [...], \"clientId\": \"<sender-client-id>\"}.","operationId":"stream_events_api_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/ical/subscriptions":{"get":{"tags":["iCal"],"summary":"List Subscriptions","operationId":"list_subscriptions_api_ical_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/IcalSubscriptionReadResponse"},"type":"array","title":"Response List Subscriptions Api Ical Subscriptions Get"}}}}}},"post":{"tags":["iCal"],"summary":"Create Subscription","operationId":"create_subscription_api_ical_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcalSubscriptionMutationRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcalSubscriptionSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ical/subscriptions/{subscription_id}":{"put":{"tags":["iCal"],"summary":"Update Subscription","operationId":"update_subscription_api_ical_subscriptions__subscription_id__put","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcalSubscriptionMutationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcalSubscriptionReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["iCal"],"summary":"Delete Subscription","operationId":"delete_subscription_api_ical_subscriptions__subscription_id__delete","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcalDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ical/subscriptions/{subscription_id}/rotate-token":{"post":{"tags":["iCal"],"summary":"Rotate Subscription Token","operationId":"rotate_subscription_token_api_ical_subscriptions__subscription_id__rotate_token_post","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IcalSubscriptionSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Absence":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"employeeId":{"type":"string","title":"Employeeid"},"type":{"type":"string","enum":["holiday","sick","training","other"],"title":"Type","default":"holiday"},"dateStart":{"type":"string","title":"Datestart"},"dateEnd":{"type":"string","title":"Dateend"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","default":""}},"type":"object","required":["employeeId","dateStart","dateEnd"],"title":"Absence"},"AccessPermissionDefinition":{"properties":{"key":{"type":"string","title":"Key"},"group":{"type":"string","title":"Group"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"}},"type":"object","required":["key","group","label","description"],"title":"AccessPermissionDefinition"},"AccessRoleDefinition":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"default_permissions":{"items":{"type":"string"},"type":"array","title":"Default Permissions"}},"type":"object","required":["key","label","description"],"title":"AccessRoleDefinition"},"ActionMessageResponse":{"properties":{"message":{"type":"string","minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"ActionMessageResponse"},"Appointment":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"employeeId":{"type":"string","title":"Employeeid"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Type","default":"custom"},"dateStart":{"type":"string","title":"Datestart"},"dateEnd":{"type":"string","title":"Dateend"},"allDay":{"type":"boolean","title":"Allday","default":false},"timeStart":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestart"},"timeEnd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeend"},"color":{"type":"string","title":"Color","default":"#0f6cbd"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","default":""}},"type":"object","required":["employeeId","title","dateStart","dateEnd"],"title":"Appointment"},"AssignedPartie":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"vorarbeiterId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vorarbeiterid"},"members":{"items":{"$ref":"#/components/schemas/PartieMember"},"type":"array","title":"Members"},"vorarbeiterName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vorarbeitername"},"vorarbeiterRemoved":{"type":"boolean","title":"Vorarbeiterremoved","default":false}},"type":"object","required":["id","name"],"title":"AssignedPartie"},"AssignedWorker":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"partieId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partieid"}},"type":"object","required":["id","name"],"title":"AssignedWorker"},"AuditLogItem":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"username":{"type":"string","title":"Username"},"action":{"type":"string","title":"Action"},"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"type":"string","title":"Entity Id"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["id","user_id","username","action","entity_type","entity_id","timestamp"],"title":"AuditLogItem"},"AuditLogResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditLogItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"AuditLogResponse"},"AuthLoginRequest":{"properties":{"username":{"type":"string","maxLength":40,"minLength":3,"title":"Username"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"type":"object","required":["username","password"],"title":"AuthLoginRequest"},"AuthRegisterRequest":{"properties":{"username":{"type":"string","maxLength":40,"minLength":3,"title":"Username"},"password":{"type":"string","title":"Password"},"masterKey":{"type":"string","maxLength":256,"minLength":1,"title":"Masterkey"}},"type":"object","required":["username","password","masterKey"],"title":"AuthRegisterRequest"},"AuthResponse":{"properties":{"user":{"$ref":"#/components/schemas/UserPublic"},"session_expires_at":{"type":"string","title":"Session Expires At"}},"type":"object","required":["user","session_expires_at"],"title":"AuthResponse"},"DetailedHealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"db":{"type":"string","title":"Db"},"response_time_ms":{"type":"integer","title":"Response Time Ms"},"db_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Db Error"}},"type":"object","required":["status","db","response_time_ms"],"title":"DetailedHealthResponse"},"Employee":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"role":{"type":"string","enum":["worker","foreman"],"title":"Role","default":"worker"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"isActive":{"type":"boolean","title":"Isactive","default":true},"defaultTimes":{"additionalProperties":true,"type":"object","title":"Defaulttimes"},"useDefaultTimes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usedefaulttimes"},"customDefaultTimes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Customdefaulttimes"},"foremanId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Foremanid"},"foremanName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Foremanname"},"assignedWorkerIds":{"items":{"type":"string"},"type":"array","title":"Assignedworkerids"}},"type":"object","required":["name"],"title":"Employee"},"EmployeeDefaultTimesSettings":{"properties":{"defaultTimes":{"additionalProperties":true,"type":"object","title":"Defaulttimes"}},"type":"object","title":"EmployeeDefaultTimesSettings"},"EmployeeForemanAssignment":{"properties":{"workerIds":{"items":{"type":"string"},"type":"array","title":"Workerids"}},"type":"object","title":"EmployeeForemanAssignment"},"GlobalSettingsPatch":{"properties":{"worker_visible_sections":{"anyOf":[{"$ref":"#/components/schemas/SectionVisibility"},{"type":"null"}]},"vorarbeiter_visible_sections":{"anyOf":[{"$ref":"#/components/schemas/SectionVisibility"},{"type":"null"}]},"worker_categories":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkerCategoryDefinition"},"type":"array"},{"type":"null"}],"title":"Worker Categories"}},"type":"object","title":"GlobalSettingsPatch"},"GlobalSettingsResponse":{"properties":{"worker_visible_sections":{"$ref":"#/components/schemas/SectionVisibility"},"vorarbeiter_visible_sections":{"$ref":"#/components/schemas/SectionVisibility"},"worker_categories":{"items":{"$ref":"#/components/schemas/WorkerCategoryDefinition"},"type":"array","title":"Worker Categories"}},"type":"object","required":["worker_visible_sections","vorarbeiter_visible_sections"],"title":"GlobalSettingsResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"HealthResponse"},"IcalDeleteResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"IcalDeleteResponse"},"IcalSubscriptionMutationRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"scope":{"type":"string","enum":["all_workers","selected_workers"],"title":"Scope"},"workerIds":{"items":{"type":"string"},"type":"array","title":"Workerids"},"options":{"$ref":"#/components/schemas/IcalSubscriptionOptions"}},"type":"object","required":["name","scope"],"title":"IcalSubscriptionMutationRequest"},"IcalSubscriptionOptions":{"properties":{"containLocation":{"type":"boolean","title":"Containlocation","default":true},"containMitarbeiter":{"type":"boolean","title":"Containmitarbeiter","default":true},"containDescription":{"type":"boolean","title":"Containdescription","default":true},"containArbeitsanweisung":{"type":"boolean","title":"Containarbeitsanweisung","default":true},"containTagesnotiz":{"type":"boolean","title":"Containtagesnotiz","default":true},"containCategory":{"type":"boolean","title":"Containcategory","default":true},"containAppointments":{"type":"boolean","title":"Containappointments","default":false}},"type":"object","title":"IcalSubscriptionOptions"},"IcalSubscriptionReadResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","enum":["all_workers","selected_workers"],"title":"Scope"},"workerIds":{"items":{"type":"string"},"type":"array","title":"Workerids"},"isActive":{"type":"boolean","title":"Isactive"},"lastAccessedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastaccessedat"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedat"},"options":{"$ref":"#/components/schemas/IcalSubscriptionOptions"}},"type":"object","required":["id","name","scope","isActive"],"title":"IcalSubscriptionReadResponse"},"IcalSubscriptionSecretResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","enum":["all_workers","selected_workers"],"title":"Scope"},"workerIds":{"items":{"type":"string"},"type":"array","title":"Workerids"},"isActive":{"type":"boolean","title":"Isactive"},"lastAccessedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastaccessedat"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedat"},"options":{"$ref":"#/components/schemas/IcalSubscriptionOptions"},"token":{"type":"string","title":"Token"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","name","scope","isActive","token","url"],"title":"IcalSubscriptionSecretResponse"},"LicenseOverviewResponse":{"properties":{"license":{"$ref":"#/components/schemas/LicenseSettings"},"usage":{"$ref":"#/components/schemas/LicenseUsage"},"remaining":{"$ref":"#/components/schemas/LicenseRemaining"}},"type":"object","required":["license","usage","remaining"],"title":"LicenseOverviewResponse"},"LicenseRemaining":{"properties":{"users":{"type":"integer","title":"Users"},"workers":{"type":"integer","title":"Workers"}},"type":"object","required":["users","workers"],"title":"LicenseRemaining"},"LicenseSettings":{"properties":{"maxActiveUsers":{"type":"integer","minimum":0.0,"title":"Maxactiveusers","default":999999},"maxActiveWorkers":{"type":"integer","minimum":0.0,"title":"Maxactiveworkers","default":999999},"licenseeName":{"type":"string","maxLength":255,"title":"Licenseename","default":""},"licenseNote":{"type":"string","maxLength":1000,"title":"Licensenote","default":""}},"type":"object","title":"LicenseSettings"},"LicenseUnlockRequest":{"properties":{"licenseKey":{"type":"string","title":"Licensekey","default":""}},"type":"object","title":"LicenseUnlockRequest"},"LicenseUnlockResponse":{"properties":{"unlocked":{"type":"boolean","title":"Unlocked"}},"type":"object","required":["unlocked"],"title":"LicenseUnlockResponse"},"LicenseUpdateRequest":{"properties":{"maxActiveUsers":{"type":"integer","minimum":0.0,"title":"Maxactiveusers","default":999999},"maxActiveWorkers":{"type":"integer","minimum":0.0,"title":"Maxactiveworkers","default":999999},"licenseeName":{"type":"string","maxLength":255,"title":"Licenseename","default":""},"licenseNote":{"type":"string","maxLength":1000,"title":"Licensenote","default":""},"licenseKey":{"type":"string","title":"Licensekey","default":""}},"type":"object","title":"LicenseUpdateRequest"},"LicenseUsage":{"properties":{"activeUsers":{"type":"integer","title":"Activeusers"},"activeWorkers":{"type":"integer","title":"Activeworkers"}},"type":"object","required":["activeUsers","activeWorkers"],"title":"LicenseUsage"},"MeResponse":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"email":{"type":"string","title":"Email"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"role":{"type":"string","title":"Role"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"permission_overrides":{"additionalProperties":{"type":"string"},"type":"object","title":"Permission Overrides"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"worker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Name"},"worker_avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Avatar"},"is_active":{"type":"boolean","title":"Is Active","default":true},"session_expires_at":{"type":"string","title":"Session Expires At"}},"type":"object","required":["id","username","display_name","email","role","session_expires_at"],"title":"MeResponse"},"MoveResponse":{"properties":{"moved":{"type":"string","title":"Moved"},"from":{"type":"string","title":"From"},"to":{"type":"string","title":"To"}},"type":"object","required":["moved","from","to"],"title":"MoveResponse"},"Partie":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"members":{"items":{"$ref":"#/components/schemas/PartieMember"},"type":"array","title":"Members"}},"type":"object","required":["name"],"title":"Partie"},"PartieMember":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"PartieMember"},"PasswordChangeRequest":{"properties":{"currentPassword":{"type":"string","title":"Currentpassword"},"password":{"type":"string","title":"Password"}},"type":"object","required":["currentPassword","password"],"title":"PasswordChangeRequest"},"PublicHoliday":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"date":{"type":"string","title":"Date"},"name":{"type":"string","title":"Name"}},"type":"object","required":["date","name"],"title":"PublicHoliday"},"RefreshResponse":{"properties":{"session_expires_at":{"type":"string","title":"Session Expires At"}},"type":"object","required":["session_expires_at"],"title":"RefreshResponse"},"RolePermissionsUpdateRequest":{"properties":{"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","title":"RolePermissionsUpdateRequest"},"ScheduleByDayResponse":{"additionalProperties":{"items":{"$ref":"#/components/schemas/ScheduledProject"},"type":"array"},"type":"object","title":"ScheduleByDayResponse"},"ScheduleEntryNotesUpdate":{"properties":{"tagesnotizen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagesnotizen"}},"type":"object","title":"ScheduleEntryNotesUpdate"},"ScheduleOrderSyncRequest":{"properties":{"days":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Days"}},"type":"object","title":"ScheduleOrderSyncRequest"},"ScheduleOrderSyncResponse":{"properties":{"dayProjects":{"additionalProperties":{"items":{"$ref":"#/components/schemas/ScheduledProject"},"type":"array"},"type":"object","title":"Dayprojects"},"etags":{"additionalProperties":{"type":"string"},"type":"object","title":"Etags"}},"type":"object","title":"ScheduleOrderSyncResponse"},"ScheduledProject":{"properties":{"instanceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instanceid"},"siteId":{"type":"string","title":"Siteid"},"title":{"type":"string","title":"Title"},"address":{"type":"string","title":"Address"},"description":{"type":"string","title":"Description"},"sortOrder":{"type":"integer","title":"Sortorder","default":0},"assignedWorkers":{"items":{"$ref":"#/components/schemas/AssignedWorker"},"type":"array","title":"Assignedworkers"},"assignedPartien":{"items":{"$ref":"#/components/schemas/AssignedPartie"},"type":"array","title":"Assignedpartien"},"tagesbaustelle":{"type":"boolean","title":"Tagesbaustelle","default":false},"timeStart":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timestart"},"timeEnd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeend"},"tagesnotizen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagesnotizen","default":""},"lockMode":{"anyOf":[{"type":"string","enum":["fixed","week"]},{"type":"null"}],"title":"Lockmode"},"lockDayKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lockdaykey"},"lockWeek":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lockweek"},"lockYear":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lockyear"}},"type":"object","required":["siteId","title","address","description"],"title":"ScheduledProject"},"SectionVisibility":{"properties":{"timePlanning":{"type":"boolean","title":"Timeplanning","default":true},"lock":{"type":"boolean","title":"Lock","default":false},"projectDuration":{"type":"boolean","title":"Projectduration","default":true},"resourceColor":{"type":"boolean","title":"Resourcecolor","default":false},"categories":{"type":"boolean","title":"Categories","default":false},"requiredWorkers":{"type":"boolean","title":"Requiredworkers","default":true},"defaultForeman":{"type":"boolean","title":"Defaultforeman","default":true},"clerk":{"type":"boolean","title":"Clerk","default":true},"fieldService":{"type":"boolean","title":"Fieldservice","default":true},"workInstructions":{"type":"boolean","title":"Workinstructions","default":true},"dayNotes":{"type":"boolean","title":"Daynotes","default":true}},"type":"object","title":"SectionVisibility"},"Site":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"arbeitsanweisung":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arbeitsanweisung","default":""},"resourceColor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resourcecolor"},"requiredWorkers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requiredworkers","default":0},"projectStart":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectstart"},"projectEnd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectend"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"defaultVorarbeiter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Defaultvorarbeiter"},"sachbearbeiter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sachbearbeiter"},"aussendienst":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aussendienst"},"kostenstelle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kostenstelle"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"dokumentenstatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dokumentenstatus"},"regie":{"type":"boolean","title":"Regie","default":false},"nachkalkulation":{"type":"boolean","title":"Nachkalkulation","default":false},"baustellenplaner":{"type":"boolean","title":"Baustellenplaner","default":true},"erledigt":{"type":"boolean","title":"Erledigt","default":false}},"type":"object","required":["name","description"],"title":"Site"},"SiteWorkInstructionsUpdate":{"properties":{"arbeitsanweisung":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arbeitsanweisung"}},"type":"object","title":"SiteWorkInstructionsUpdate"},"UserAccessOverviewResponse":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/AccessRoleDefinition"},"type":"array","title":"Roles"},"permissions":{"items":{"$ref":"#/components/schemas/AccessPermissionDefinition"},"type":"array","title":"Permissions"},"users":{"items":{"$ref":"#/components/schemas/UserAccessSummary"},"type":"array","title":"Users"}},"type":"object","title":"UserAccessOverviewResponse"},"UserAccessSummary":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"email":{"type":"string","title":"Email"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"role":{"type":"string","title":"Role"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"permission_overrides":{"additionalProperties":{"type":"string"},"type":"object","title":"Permission Overrides"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"worker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Name"},"worker_avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Avatar"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["id","username","display_name","email","role"],"title":"UserAccessSummary"},"UserAdminCreateRequest":{"properties":{"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Role"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"permissionOverrides":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Permissionoverrides"},"workerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workerid"},"isActive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isactive"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"UserAdminCreateRequest"},"UserAdminUpdateRequest":{"properties":{"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Role"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"permissionOverrides":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Permissionoverrides"},"workerId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workerid"},"isActive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isactive"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"}},"type":"object","title":"UserAdminUpdateRequest"},"UserPublic":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"display_name":{"type":"string","title":"Display Name"},"email":{"type":"string","title":"Email"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"role":{"type":"string","title":"Role"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"permission_overrides":{"additionalProperties":{"type":"string"},"type":"object","title":"Permission Overrides"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"worker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Name"},"worker_avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Avatar"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["id","username","display_name","email","role"],"title":"UserPublic"},"UserSettingsReadResponse":{"properties":{"settingsKey":{"type":"string","title":"Settingskey"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedat"}},"type":"object","required":["settingsKey"],"title":"UserSettingsReadResponse"},"UserSettingsUpdateRequest":{"properties":{"settings":{"additionalProperties":true,"type":"object","title":"Settings"}},"type":"object","title":"UserSettingsUpdateRequest"},"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"},"WorkdayOverride":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"employeeId":{"type":"string","title":"Employeeid"},"dayKey":{"type":"string","title":"Daykey"},"hours":{"type":"number","title":"Hours"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","default":""}},"type":"object","required":["employeeId","dayKey","hours"],"title":"WorkdayOverride"},"WorkerCategoryDefinition":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"WorkerCategoryDefinition"}}}}