{"openapi":"3.1.0","info":{"title":"Time & Dollar API","description":"Time tracking and payroll backend for Time & Dollar","version":"0.1.0"},"paths":{"/auth/signup":{"post":{"tags":["auth"],"summary":"Signup","description":"Create a new company and manager account (multi-tenant onboarding).","operationId":"signup_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Login with company_id + identifier (name or email) + password.\nIdentifier is the employee's name (case-insensitive) or email.","operationId":"login_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/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh Token","description":"Exchange a refresh token for a new access + refresh token pair.","operationId":"refresh_token_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/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/change-password":{"post":{"tags":["auth"],"summary":"Change Password","description":"Authenticated user changes their own password.","operationId":"change_password_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/session":{"get":{"tags":["auth"],"summary":"Session","operationId":"session_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/forgot-company-id":{"post":{"tags":["auth"],"summary":"Forgot Company Id","description":"Look up a company by name + owner/manager email, and email the company ID.","operationId":"forgot_company_id_auth_forgot_company_id_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotCompanyIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Reset a user's password to a temporary one and email it.","operationId":"forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/employees":{"get":{"tags":["employees"],"summary":"List Employees","operationId":"list_employees_employees_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EmployeeOut"},"type":"array","title":"Response List Employees Employees Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["employees"],"summary":"Create Employee","operationId":"create_employee_employees_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/employees/{employee_id}":{"get":{"tags":["employees"],"summary":"Get Employee","operationId":"get_employee_employees__employee_id__get","security":[{"HTTPBearer":[]}],"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/EmployeeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["employees"],"summary":"Update Employee","operationId":"update_employee_employees__employee_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"string","title":"Employee Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/employees/{employee_id}/reset-password":{"post":{"tags":["employees"],"summary":"Reset Employee Password","operationId":"reset_employee_password_employees__employee_id__reset_password_post","security":[{"HTTPBearer":[]}],"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/ResetPasswordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/employees/me/fcm-token":{"put":{"tags":["employees"],"summary":"Update Fcm Token","description":"Called on every app launch to keep the FCM token current.","operationId":"update_fcm_token_employees_me_fcm_token_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFCMTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/employees/{employee_id}/reset-pin":{"post":{"tags":["employees"],"summary":"Reset Employee Pin","description":"Regenerate the 6-digit kiosk PIN for an employee.","operationId":"reset_employee_pin_employees__employee_id__reset_pin_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"employee_id","in":"path","required":true,"schema":{"type":"string","title":"Employee Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs":{"get":{"summary":"List Jobs","operationId":"list_jobs_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/JobOut"},"type":"array","title":"Response List Jobs Jobs Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Job","operationId":"create_job_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/jobs/my":{"get":{"summary":"My Assigned Jobs","description":"Employee: returns all active company jobs for clock-in project selection.","operationId":"my_assigned_jobs_jobs_my_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/JobOut"},"type":"array","title":"Response My Assigned Jobs Jobs My Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/jobs/{job_id}":{"get":{"summary":"Get Job","operationId":"get_job_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Job","operationId":"update_job_jobs__job_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/assign":{"post":{"summary":"Assign Employees","description":"Replace current assignments with the provided user_ids list.","operationId":"assign_employees_jobs__job_id__assign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobAssignmentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/assignments":{"get":{"summary":"Get Job Assignments","operationId":"get_job_assignments_jobs__job_id__assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/locations":{"get":{"summary":"List Locations","operationId":"list_locations_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LocationOut"},"type":"array","title":"Response List Locations Locations Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Location","operationId":"create_location_locations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/locations/{location_id}":{"delete":{"summary":"Delete Location","operationId":"delete_location_locations__location_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clock/kiosk-auth":{"post":{"tags":["clock"],"summary":"Kiosk Auth","description":"Authenticate an employee by company_id + 6-digit PIN for kiosk mode.","operationId":"kiosk_auth_clock_kiosk_auth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KioskAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KioskAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clock/status":{"get":{"tags":["clock"],"summary":"Get Clock Status","description":"Returns the current open time entry for this user, or null if not clocked in.","operationId":"get_clock_status_clock_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TimeEntryOut"},{"type":"null"}],"title":"Response Get Clock Status Clock Status Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/live-cost":{"get":{"tags":["clock"],"summary":"Get Live Cost","description":"Lightweight endpoint polled every 2s for live cost while clocked in.","operationId":"get_live_cost_clock_live_cost_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveCostOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/in":{"post":{"tags":["clock"],"summary":"Clock In","operationId":"clock_in_clock_in_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClockInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/out":{"post":{"tags":["clock"],"summary":"Clock Out","operationId":"clock_out_clock_out_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClockOutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/break/start":{"post":{"tags":["clock"],"summary":"Start Break","operationId":"start_break_clock_break_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/break/end":{"post":{"tags":["clock"],"summary":"End Break","operationId":"end_break_clock_break_end_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakEndRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/my-entries":{"get":{"tags":["clock"],"summary":"My Time Entries","description":"Employee: list their own time entries.","operationId":"my_time_entries_clock_my_entries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TimeEntryOut"},"type":"array","title":"Response My Time Entries Clock My Entries Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/notes/today":{"get":{"tags":["clock"],"summary":"Get Today Note","description":"Employee: get their note for today (or null if none).","operationId":"get_today_note_clock_notes_today_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NoteOut"},{"type":"null"}],"title":"Response Get Today Note Clock Notes Today Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/notes":{"post":{"tags":["clock"],"summary":"Add Note","operationId":"add_note_clock_notes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/manual":{"post":{"tags":["clock"],"summary":"Manual Entry","description":"Manager creates a manual time entry for an employee.","operationId":"manual_entry_clock_manual_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualEntryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/clock/manual-self":{"post":{"tags":["clock"],"summary":"Manual Self Entry","description":"Employee creates a manual time entry for themselves.","operationId":"manual_self_entry_clock_manual_self_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualSelfEntryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimeEntryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/approvals/pending":{"get":{"tags":["approvals"],"summary":"List Pending","description":"All time entries awaiting approval for managed employees.","operationId":"list_pending_approvals_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TimeEntryOut"},"type":"array","title":"Response List Pending Approvals Pending Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/approvals/approved":{"get":{"tags":["approvals"],"summary":"List Approved","description":"Approved time entries scoped to managed employees (same as /pending).\nsort_by options: approved_at | clock_in | user_id | job_id | cost_total\nsort_dir: asc | desc","operationId":"list_approved_approvals_approved_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"approved_at","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeEntryOut"},"title":"Response List Approved Approvals Approved Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/approvals/approve":{"post":{"tags":["approvals"],"summary":"Approve Entries","description":"Bulk-approve one or more time entries.","operationId":"approve_entries_approvals_approve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveEntryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TimeEntryOut"},"type":"array","title":"Response Approve Entries Approvals Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/schedules":{"get":{"tags":["schedules"],"summary":"List Schedules","operationId":"list_schedules_schedules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window Start"}},{"name":"window_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScheduleOut"},"title":"Response List Schedules Schedules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["schedules"],"summary":"Create Schedule","operationId":"create_schedule_schedules_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/schedules/{schedule_id}":{"patch":{"tags":["schedules"],"summary":"Update Schedule","operationId":"update_schedule_schedules__schedule_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["schedules"],"summary":"Delete Schedule","operationId":"delete_schedule_schedules__schedule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"series","title":"Scope"}},{"name":"occurrence_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Occurrence Date"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/schedules/my":{"get":{"tags":["schedules"],"summary":"My Schedules","description":"Employee: fetch their own schedule including job name.","operationId":"my_schedules_schedules_my_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window Start"}},{"name":"window_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScheduleOut"},"title":"Response My Schedules Schedules My Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports/generate":{"post":{"tags":["reports"],"summary":"Generate Report","description":"Generate a CSV or PDF payroll report for the given period.\n\nperiod_start and period_end are inclusive calendar days.  Flutter's\nDateRangePicker sends midnight of the end date, so we add 1 day to\nmake the end boundary exclusive and capture all entries on that day.","operationId":"generate_report_reports_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/company/settings":{"get":{"tags":["company"],"summary":"Get Company Settings","operationId":"get_company_settings_company_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySettingsOut"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["company"],"summary":"Update Company Settings","operationId":"update_company_settings_company_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/company/break-policy":{"get":{"tags":["company"],"summary":"Get Break Policy","operationId":"get_break_policy_company_break_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BreakPolicyOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/company/dashboard-summary":{"get":{"tags":["company"],"summary":"Get Dashboard Summary","operationId":"get_dashboard_summary_company_dashboard_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardSummaryOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/company/period-cost":{"get":{"tags":["company"],"summary":"Get Period Cost","description":"Return accumulated payroll cost and hours for the current payroll period.","operationId":"get_period_cost_company_period_cost_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeriodCostOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/company/bug-report":{"post":{"tags":["company"],"summary":"Submit Bug Report","operationId":"submit_bug_report_company_bug_report_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BugReportCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BugReportSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/company/kiosk-access":{"post":{"tags":["company"],"summary":"Kiosk Access","description":"Validate company ID + kiosk password for public kiosk entry (no auth token needed).","operationId":"kiosk_access_company_kiosk_access_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KioskAccessRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KioskAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/costs/company":{"get":{"tags":["costs"],"summary":"List Company Costs","operationId":"list_company_costs_costs_company_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CostOut"},"type":"array","title":"Response List Company Costs Costs Company Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["costs"],"summary":"Create Company Cost","operationId":"create_company_cost_costs_company_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/costs/company/{cost_id}":{"patch":{"tags":["costs"],"summary":"Update Company Cost","operationId":"update_company_cost_costs_company__cost_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_id","in":"path","required":true,"schema":{"type":"string","title":"Cost Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["costs"],"summary":"Delete Company Cost","operationId":"delete_company_cost_costs_company__cost_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_id","in":"path","required":true,"schema":{"type":"string","title":"Cost Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/costs/employee/{user_id}":{"get":{"tags":["costs"],"summary":"List Employee Costs","operationId":"list_employee_costs_costs_employee__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CostOut"},"title":"Response List Employee Costs Costs Employee  User Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["costs"],"summary":"Create Employee Cost","operationId":"create_employee_cost_costs_employee__user_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/costs/employee/{cost_id}":{"patch":{"tags":["costs"],"summary":"Update Employee Cost","operationId":"update_employee_cost_costs_employee__cost_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_id","in":"path","required":true,"schema":{"type":"string","title":"Cost Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["costs"],"summary":"Delete Employee Cost","operationId":"delete_employee_cost_costs_employee__cost_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cost_id","in":"path","required":true,"schema":{"type":"string","title":"Cost Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/costs/summary":{"get":{"tags":["costs"],"summary":"Cost Summary","description":"Return a count of active company and employee costs for the dashboard.","operationId":"cost_summary_costs_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/costs/company-for-employee/{user_id}":{"get":{"tags":["costs"],"summary":"List Company Costs For Employee","description":"List company-wide costs with an enabled_for_employee flag showing if\neach cost applies to a specific employee (i.e. is NOT excluded).","operationId":"list_company_costs_for_employee_costs_company_for_employee__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/costs/company-toggle":{"post":{"tags":["costs"],"summary":"Toggle Company Cost For Employee","description":"Enable or disable a company-wide cost for a specific employee.","operationId":"toggle_company_cost_for_employee_costs_company_toggle_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostToggleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/departments":{"get":{"tags":["departments"],"summary":"List Departments","operationId":"list_departments_departments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DepartmentOut"},"type":"array","title":"Response List Departments Departments Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["departments"],"summary":"Create Department","operationId":"create_department_departments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/departments/{department_id}":{"patch":{"tags":["departments"],"summary":"Update Department","operationId":"update_department_departments__department_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string","title":"Department Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepartmentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["departments"],"summary":"Delete Department","operationId":"delete_department_departments__department_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"department_id","in":"path","required":true,"schema":{"type":"string","title":"Department Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/alerts":{"get":{"tags":["alerts"],"summary":"List Alerts","description":"List alerts for managed employees. Default: unacknowledged only.","operationId":"list_alerts_alerts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"acknowledged","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Acknowledged"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AlertOut"},"title":"Response List Alerts Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/alerts/count":{"get":{"tags":["alerts"],"summary":"Alert Count","description":"Count unacknowledged alerts for managed employees.","operationId":"alert_count_alerts_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertCountOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/alerts/{alert_id}/acknowledge":{"post":{"tags":["alerts"],"summary":"Acknowledge Alert","description":"Mark an alert as acknowledged.","operationId":"acknowledge_alert_alerts__alert_id__acknowledge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"string","title":"Alert Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/requests":{"get":{"tags":["pto"],"summary":"List My Pto Requests","operationId":"list_my_pto_requests_pto_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PtoRequestOut"},"type":"array","title":"Response List My Pto Requests Pto Requests Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["pto"],"summary":"Create Pto Request","operationId":"create_pto_request_pto_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoRequestCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/pto/requests/{request_id}/cancel":{"post":{"tags":["pto"],"summary":"Cancel Pto Request","operationId":"cancel_pto_request_pto_requests__request_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/balance":{"get":{"tags":["pto"],"summary":"Get My Pto Balance","operationId":"get_my_pto_balance_pto_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoBalanceOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/pto/balance/{user_id}":{"get":{"tags":["pto"],"summary":"Get Employee Pto Balance","description":"Manager/owner: view an employee's PTO balance.","operationId":"get_employee_pto_balance_pto_balance__user_id__get","security":[{"HTTPBearer":[]}],"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/PtoBalanceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/balance/{user_id}/adjust":{"post":{"tags":["pto"],"summary":"Adjust Pto Balance","operationId":"adjust_pto_balance_pto_balance__user_id__adjust_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoBalanceAdjust"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoBalanceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/pending":{"get":{"tags":["pto"],"summary":"List Pending Pto","operationId":"list_pending_pto_pto_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PtoRequestOut"},"type":"array","title":"Response List Pending Pto Pto Pending Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/pto/pending/count":{"get":{"tags":["pto"],"summary":"Pending Pto Count","operationId":"pending_pto_count_pto_pending_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoPendingCountOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/pto/all":{"get":{"tags":["pto"],"summary":"List All Pto","operationId":"list_all_pto_pto_all_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PtoRequestOut"},"title":"Response List All Pto Pto All Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/admin":{"get":{"tags":["pto"],"summary":"List All Pto Admin","operationId":"list_all_pto_admin_pto_admin_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PtoRequestOut"},"title":"Response List All Pto Admin Pto Admin Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/requests/{request_id}/approve":{"post":{"tags":["pto"],"summary":"Approve Pto Request","operationId":"approve_pto_request_pto_requests__request_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/requests/{request_id}/reject":{"post":{"tags":["pto"],"summary":"Reject Pto Request","operationId":"reject_pto_request_pto_requests__request_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pto/blackouts":{"get":{"tags":["pto"],"summary":"List Blackouts","operationId":"list_blackouts_pto_blackouts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PtoBlackoutOut"},"type":"array","title":"Response List Blackouts Pto Blackouts Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["pto"],"summary":"Create Blackout","operationId":"create_blackout_pto_blackouts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoBlackoutCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PtoBlackoutOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/pto/blackouts/{blackout_id}":{"delete":{"tags":["pto"],"summary":"Delete Blackout","operationId":"delete_blackout_pto_blackouts__blackout_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"blackout_id","in":"path","required":true,"schema":{"type":"string","title":"Blackout Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/holidays":{"get":{"tags":["holidays"],"summary":"List Holidays","operationId":"list_holidays_holidays_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/HolidayOut"},"type":"array","title":"Response List Holidays Holidays Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["holidays"],"summary":"Create Holiday","operationId":"create_holiday_holidays_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HolidayCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HolidayOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/holidays/{holiday_id}":{"delete":{"tags":["holidays"],"summary":"Delete Holiday","operationId":"delete_holiday_holidays__holiday_id__delete","security":[{"HTTPBearer":[]}],"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"}}}}}}},"/ticker":{"get":{"tags":["websocket"],"summary":"Ticker Http","description":"HTTP polling alternative to the WebSocket ticker.","operationId":"ticker_http_ticker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/times":{"get":{"tags":["times"],"summary":"List Time Entries","description":"List time entries by date range. Managers see managed employees; employees see their own.","operationId":"list_time_entries_times_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TimeEntryOut"},"title":"Response List Time Entries Times Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AlertCountOut":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"AlertCountOut"},"AlertOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"user_id":{"type":"string","title":"User Id"},"alert_type":{"type":"string","title":"Alert Type"},"message":{"type":"string","title":"Message"},"time_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Entry Id"},"acknowledged":{"type":"boolean","title":"Acknowledged"},"acknowledged_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Acknowledged By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","user_id","alert_type","message","time_entry_id","acknowledged","acknowledged_by","created_at"],"title":"AlertOut"},"ApproveEntryRequest":{"properties":{"time_entry_ids":{"items":{"type":"string"},"type":"array","title":"Time Entry Ids"}},"type":"object","required":["time_entry_ids"],"title":"ApproveEntryRequest"},"BreakEndRequest":{"properties":{"time_entry_id":{"type":"string","title":"Time Entry Id"},"segment_type":{"$ref":"#/components/schemas/SegmentType"}},"type":"object","required":["time_entry_id","segment_type"],"title":"BreakEndRequest"},"BreakPolicyOut":{"properties":{"break_max_count":{"type":"integer","title":"Break Max Count","default":2},"break_duration_minutes":{"type":"integer","title":"Break Duration Minutes","default":15},"breaks_paid":{"type":"boolean","title":"Breaks Paid","default":false},"lunch_max_count":{"type":"integer","title":"Lunch Max Count","default":1},"lunch_duration_minutes":{"type":"integer","title":"Lunch Duration Minutes","default":30},"lunch_paid":{"type":"boolean","title":"Lunch Paid","default":false}},"type":"object","title":"BreakPolicyOut"},"BreakStartRequest":{"properties":{"time_entry_id":{"type":"string","title":"Time Entry Id"},"segment_type":{"$ref":"#/components/schemas/SegmentType"}},"type":"object","required":["time_entry_id","segment_type"],"title":"BreakStartRequest"},"BugReportCreate":{"properties":{"message":{"type":"string","maxLength":4000,"title":"Message"}},"type":"object","required":["message"],"title":"BugReportCreate"},"BugReportSubmitResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"detail":{"type":"string","title":"Detail","default":"Bug report submitted"}},"type":"object","title":"BugReportSubmitResponse"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ClockInRequest":{"properties":{"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},"type":"object","title":"ClockInRequest"},"ClockOutRequest":{"properties":{"time_entry_id":{"type":"string","title":"Time Entry Id"}},"type":"object","required":["time_entry_id"],"title":"ClockOutRequest"},"CompanySettingsOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"timezone":{"type":"string","title":"Timezone"},"payroll_period":{"type":"string","title":"Payroll Period"},"period_type":{"type":"string","title":"Period Type","default":"weekly"},"weekly_start_day":{"type":"integer","title":"Weekly Start Day","default":0},"biweekly_anchor_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Biweekly Anchor Date"},"semimonthly_first_day":{"type":"integer","title":"Semimonthly First Day","default":1},"semimonthly_second_day":{"type":"integer","title":"Semimonthly Second Day","default":15},"monthly_pay_day":{"type":"integer","title":"Monthly Pay Day","default":1},"fiscal_year_start_month":{"type":"integer","title":"Fiscal Year Start Month","default":1},"fiscal_year_start_day":{"type":"integer","title":"Fiscal Year Start Day","default":1},"late_grace_minutes":{"type":"integer","title":"Late Grace Minutes"},"lunch_reminder_after_hours":{"type":"number","title":"Lunch Reminder After Hours"},"break_reminder_after_hours":{"type":"number","title":"Break Reminder After Hours"},"time_rounding_minutes":{"type":"integer","title":"Time Rounding Minutes"},"ot_mode":{"type":"string","title":"Ot Mode","default":"daily"},"ot_applicable_days":{"type":"string","title":"Ot Applicable Days","default":""},"daily_ot_threshold_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Ot Threshold Hours"},"daily_ot_multiplier":{"type":"number","title":"Daily Ot Multiplier","default":1.5},"daily_dt_threshold_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Dt Threshold Hours"},"daily_dt_multiplier":{"type":"number","title":"Daily Dt Multiplier","default":2.0},"break_max_count":{"type":"integer","title":"Break Max Count","default":2},"break_duration_minutes":{"type":"integer","title":"Break Duration Minutes","default":15},"breaks_paid":{"type":"boolean","title":"Breaks Paid","default":false},"lunch_max_count":{"type":"integer","title":"Lunch Max Count","default":1},"lunch_duration_minutes":{"type":"integer","title":"Lunch Duration Minutes","default":30},"lunch_paid":{"type":"boolean","title":"Lunch Paid","default":false},"business_hours_per_day":{"type":"number","title":"Business Hours Per Day","default":8.0},"holiday_pay_multiplier":{"type":"number","title":"Holiday Pay Multiplier","default":2.0},"enable_holiday_pay":{"type":"boolean","title":"Enable Holiday Pay","default":false},"payroll_period_days":{"type":"string","title":"Payroll Period Days","default":""},"alert_late_clock_in_enabled":{"type":"boolean","title":"Alert Late Clock In Enabled","default":true},"alert_late_clock_out_enabled":{"type":"boolean","title":"Alert Late Clock Out Enabled","default":true},"alert_overtime_enabled":{"type":"boolean","title":"Alert Overtime Enabled","default":true},"alert_no_lunch_enabled":{"type":"boolean","title":"Alert No Lunch Enabled","default":true},"alert_no_breaks_enabled":{"type":"boolean","title":"Alert No Breaks Enabled","default":true},"alert_early_clock_in_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alert Early Clock In Minutes","default":30},"alert_break_max_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alert Break Max Minutes","default":30},"alert_approaching_ot_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Approaching Ot Hours","default":35.0},"weekly_ot_threshold_hours":{"type":"number","title":"Weekly Ot Threshold Hours","default":40.0},"weekly_ot_multiplier":{"type":"number","title":"Weekly Ot Multiplier","default":1.5},"max_employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Employees"},"currency":{"type":"string","title":"Currency","default":"USD"},"time_display_24h":{"type":"boolean","title":"Time Display 24H","default":false},"date_format_ddmm":{"type":"boolean","title":"Date Format Ddmm","default":false},"auto_approve_threshold_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Auto Approve Threshold Hours"},"enable_job_tracking":{"type":"boolean","title":"Enable Job Tracking","default":true},"enable_department_tracking":{"type":"boolean","title":"Enable Department Tracking","default":false},"enable_location_tracking":{"type":"boolean","title":"Enable Location Tracking","default":true},"enable_manual_timesheet":{"type":"boolean","title":"Enable Manual Timesheet","default":false},"enable_burden_costs":{"type":"boolean","title":"Enable Burden Costs","default":true},"enable_scheduling":{"type":"boolean","title":"Enable Scheduling","default":true},"enable_kiosk":{"type":"boolean","title":"Enable Kiosk","default":true},"kiosk_password_set":{"type":"boolean","title":"Kiosk Password Set","default":false},"kiosk_only_clock":{"type":"boolean","title":"Kiosk Only Clock","default":false},"enable_overtime":{"type":"boolean","title":"Enable Overtime","default":true},"enable_pto":{"type":"boolean","title":"Enable Pto","default":false},"enable_employee_edit_time":{"type":"boolean","title":"Enable Employee Edit Time","default":false},"default_pto_hours_per_year":{"type":"number","title":"Default Pto Hours Per Year","default":80.0},"default_pto_hours_per_day":{"type":"number","title":"Default Pto Hours Per Day","default":8.0},"pto_accrual_method":{"type":"string","title":"Pto Accrual Method","default":"frontloaded"},"allow_negative_pto_balance":{"type":"boolean","title":"Allow Negative Pto Balance","default":false}},"type":"object","required":["id","name","timezone","payroll_period","late_grace_minutes","lunch_reminder_after_hours","break_reminder_after_hours","time_rounding_minutes"],"title":"CompanySettingsOut"},"CompanySettingsUpdate":{"properties":{"payroll_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payroll Period"},"period_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Type"},"weekly_start_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weekly Start Day"},"biweekly_anchor_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Biweekly Anchor Date"},"semimonthly_first_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Semimonthly First Day"},"semimonthly_second_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Semimonthly Second Day"},"monthly_pay_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Pay Day"},"fiscal_year_start_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscal Year Start Month"},"fiscal_year_start_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fiscal Year Start Day"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"late_grace_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Late Grace Minutes"},"lunch_reminder_after_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lunch Reminder After Hours"},"break_reminder_after_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Break Reminder After Hours"},"time_rounding_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time Rounding Minutes"},"ot_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ot Mode"},"ot_applicable_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ot Applicable Days"},"daily_ot_threshold_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Ot Threshold Hours"},"daily_ot_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Ot Multiplier"},"daily_dt_threshold_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Dt Threshold Hours"},"daily_dt_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Dt Multiplier"},"break_max_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Break Max Count"},"break_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Break Duration Minutes"},"breaks_paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Breaks Paid"},"lunch_max_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lunch Max Count"},"lunch_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lunch Duration Minutes"},"lunch_paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Lunch Paid"},"business_hours_per_day":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Business Hours Per Day"},"holiday_pay_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Holiday Pay Multiplier"},"enable_holiday_pay":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Holiday Pay"},"payroll_period_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payroll Period Days"},"alert_late_clock_in_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alert Late Clock In Enabled"},"alert_late_clock_out_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alert Late Clock Out Enabled"},"alert_overtime_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alert Overtime Enabled"},"alert_no_lunch_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alert No Lunch Enabled"},"alert_no_breaks_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Alert No Breaks Enabled"},"alert_early_clock_in_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alert Early Clock In Minutes"},"alert_break_max_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Alert Break Max Minutes"},"alert_approaching_ot_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alert Approaching Ot Hours"},"weekly_ot_threshold_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weekly Ot Threshold Hours"},"weekly_ot_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weekly Ot Multiplier"},"max_employees":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Employees"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"time_display_24h":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Time Display 24H"},"date_format_ddmm":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Date Format Ddmm"},"auto_approve_threshold_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Auto Approve Threshold Hours"},"enable_job_tracking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Job Tracking"},"enable_department_tracking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Department Tracking"},"enable_location_tracking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Location Tracking"},"enable_manual_timesheet":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Manual Timesheet"},"enable_burden_costs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Burden Costs"},"enable_scheduling":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Scheduling"},"enable_kiosk":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Kiosk"},"kiosk_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kiosk Password"},"kiosk_only_clock":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Kiosk Only Clock"},"enable_overtime":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Overtime"},"enable_pto":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Pto"},"enable_employee_edit_time":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Employee Edit Time"},"default_pto_hours_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Default Pto Hours Per Year"},"default_pto_hours_per_day":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Default Pto Hours Per Day"},"pto_accrual_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pto Accrual Method"},"allow_negative_pto_balance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Negative Pto Balance"}},"type":"object","title":"CompanySettingsUpdate"},"CompanySignupRequest":{"properties":{"company_name":{"type":"string","title":"Company Name"},"manager_name":{"type":"string","title":"Manager Name"},"manager_email":{"type":"string","title":"Manager Email"},"manager_password":{"type":"string","title":"Manager Password"},"timezone":{"type":"string","title":"Timezone","default":"America/Los_Angeles"}},"type":"object","required":["company_name","manager_name","manager_email","manager_password"],"title":"CompanySignupRequest"},"CostCalcType":{"type":"string","enum":["flat_per_employee","flat_per_hour","percent_of_wage","annual_fixed","monthly_fixed","flat_per_shift"],"title":"CostCalcType"},"CostCreate":{"properties":{"name":{"type":"string","title":"Name"},"calc_type":{"$ref":"#/components/schemas/CostCalcType"},"amount":{"type":"number","title":"Amount"},"wage_base_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wage Base Cap"},"cap_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cap Scope"}},"type":"object","required":["name","calc_type","amount"],"title":"CostCreate"},"CostOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"scope":{"$ref":"#/components/schemas/CostScope"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"name":{"type":"string","title":"Name"},"calc_type":{"$ref":"#/components/schemas/CostCalcType"},"amount":{"type":"number","title":"Amount"},"active":{"type":"boolean","title":"Active"},"wage_base_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wage Base Cap"},"cap_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cap Scope"}},"type":"object","required":["id","company_id","scope","user_id","name","calc_type","amount","active"],"title":"CostOut"},"CostScope":{"type":"string","enum":["company","employee"],"title":"CostScope"},"CostToggleRequest":{"properties":{"cost_id":{"type":"string","title":"Cost Id"},"employee_id":{"type":"string","title":"Employee Id"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["cost_id","employee_id","enabled"],"title":"CostToggleRequest"},"CostUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"calc_type":{"anyOf":[{"$ref":"#/components/schemas/CostCalcType"},{"type":"null"}]},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"wage_base_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wage Base Cap"},"cap_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cap Scope"}},"type":"object","title":"CostUpdate"},"DashboardEmployeeRowOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"employee_name":{"type":"string","title":"Employee Name"},"department_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Name"},"status":{"type":"string","title":"Status"},"variance_status":{"type":"string","title":"Variance Status"},"job_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Name"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"clock_in_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clock In Time"},"clock_out_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clock Out Time"},"scheduled_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Start Time"},"scheduled_end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled End Time"},"hours_worked_today":{"type":"number","title":"Hours Worked Today"},"hours_scheduled_today":{"type":"number","title":"Hours Scheduled Today"},"daily_labor_cost_usd":{"type":"number","title":"Daily Labor Cost Usd"},"period_labor_cost_usd":{"type":"number","title":"Period Labor Cost Usd"},"daily_closed_labor_cost_usd":{"type":"number","title":"Daily Closed Labor Cost Usd"},"period_closed_labor_cost_usd":{"type":"number","title":"Period Closed Labor Cost Usd"},"live_labor_cost_usd":{"type":"number","title":"Live Labor Cost Usd"},"is_active":{"type":"boolean","title":"Is Active"},"on_break":{"type":"boolean","title":"On Break"},"break_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Break Type"}},"type":"object","required":["user_id","employee_name","status","variance_status","hours_worked_today","hours_scheduled_today","daily_labor_cost_usd","period_labor_cost_usd","daily_closed_labor_cost_usd","period_closed_labor_cost_usd","live_labor_cost_usd","is_active","on_break"],"title":"DashboardEmployeeRowOut"},"DashboardSummaryOut":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"day_start":{"type":"string","format":"date-time","title":"Day Start"},"day_end":{"type":"string","format":"date-time","title":"Day End"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"active_count":{"type":"integer","title":"Active Count"},"employee_count":{"type":"integer","title":"Employee Count"},"total_daily_labor_usd":{"type":"number","title":"Total Daily Labor Usd"},"total_period_labor_usd":{"type":"number","title":"Total Period Labor Usd"},"rows":{"items":{"$ref":"#/components/schemas/DashboardEmployeeRowOut"},"type":"array","title":"Rows"}},"type":"object","required":["generated_at","day_start","day_end","period_start","period_end","active_count","employee_count","total_daily_labor_usd","total_period_labor_usd","rows"],"title":"DashboardSummaryOut"},"DepartmentCreate":{"properties":{"name":{"type":"string","title":"Name"},"manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Id"}},"type":"object","required":["name"],"title":"DepartmentCreate"},"DepartmentOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"name":{"type":"string","title":"Name"},"active":{"type":"boolean","title":"Active"},"manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","name","active","created_at"],"title":"DepartmentOut"},"DepartmentUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Id"}},"type":"object","title":"DepartmentUpdate"},"EmployeeCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"password":{"type":"string","title":"Password"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}]},"pay_type":{"$ref":"#/components/schemas/PayType","default":"hourly"},"hourly_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hourly Rate"},"annual_salary":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Annual Salary"},"weekly_hours_standard":{"type":"number","title":"Weekly Hours Standard","default":40.0},"department_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Id"},"manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Id"},"salary_work_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salary Work Days"},"pto_hours_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pto Hours Per Year"}},"type":"object","required":["name","password"],"title":"EmployeeCreate"},"EmployeeOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"$ref":"#/components/schemas/UserRole"},"pay_type":{"$ref":"#/components/schemas/PayType"},"hourly_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hourly Rate"},"annual_salary":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Annual Salary"},"weekly_hours_standard":{"type":"number","title":"Weekly Hours Standard"},"active":{"type":"boolean","title":"Active"},"force_password_change":{"type":"boolean","title":"Force Password Change"},"pin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pin"},"department_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Id"},"manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Id"},"salary_work_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salary Work Days"},"pto_hours_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pto Hours Per Year"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","name","email","role","pay_type","hourly_rate","annual_salary","weekly_hours_standard","active","force_password_change","created_at"],"title":"EmployeeOut"},"EmployeeUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"pay_type":{"anyOf":[{"$ref":"#/components/schemas/PayType"},{"type":"null"}]},"hourly_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hourly Rate"},"annual_salary":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Annual Salary"},"weekly_hours_standard":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weekly Hours Standard"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}]},"department_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Id"},"manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Id"},"salary_work_days":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salary Work Days"},"pto_hours_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pto Hours Per Year"}},"type":"object","title":"EmployeeUpdate"},"ForgotCompanyIdRequest":{"properties":{"company_name":{"type":"string","title":"Company Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["company_name","email"],"title":"ForgotCompanyIdRequest"},"ForgotPasswordRequest":{"properties":{"company_id":{"type":"string","title":"Company Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["company_id","name","email"],"title":"ForgotPasswordRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HolidayCreate":{"properties":{"date":{"type":"string","title":"Date"},"name":{"type":"string","title":"Name"},"pay_multiplier":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pay Multiplier","default":2.0}},"type":"object","required":["date","name"],"title":"HolidayCreate"},"HolidayOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"date":{"type":"string","title":"Date"},"name":{"type":"string","title":"Name"},"pay_multiplier":{"type":"number","title":"Pay Multiplier"}},"type":"object","required":["id","company_id","date","name","pay_multiplier"],"title":"HolidayOut"},"JobAssignmentIn":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","title":"User Ids"}},"type":"object","required":["user_ids"],"title":"JobAssignmentIn"},"JobCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"}},"type":"object","required":["name"],"title":"JobCreate"},"JobOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","name","description","location_id","is_active","created_at"],"title":"JobOut"},"JobUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"JobUpdate"},"KioskAccessRequest":{"properties":{"company_id":{"type":"string","title":"Company Id"},"kiosk_password":{"type":"string","title":"Kiosk Password"}},"type":"object","required":["company_id","kiosk_password"],"title":"KioskAccessRequest"},"KioskAccessResponse":{"properties":{"company_id":{"type":"string","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"}},"type":"object","required":["company_id","company_name"],"title":"KioskAccessResponse"},"KioskAuthRequest":{"properties":{"company_id":{"type":"string","title":"Company Id"},"pin":{"type":"string","title":"Pin"}},"type":"object","required":["company_id","pin"],"title":"KioskAuthRequest"},"KioskAuthResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"company_id":{"type":"string","title":"Company Id"}},"type":"object","required":["access_token","user_id","name","role","company_id"],"title":"KioskAuthResponse"},"LiveCostOut":{"properties":{"cost_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Total"},"total_minutes_worked":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Minutes Worked"},"regular_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Regular Minutes"},"overtime_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overtime Minutes"},"doubletime_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Doubletime Minutes"},"cost_regular":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Regular"},"cost_overtime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Overtime"},"cost_doubletime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Doubletime"},"cost_burden":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Burden"}},"type":"object","title":"LiveCostOut"},"LocationCreate":{"properties":{"name":{"type":"string","title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name"],"title":"LocationCreate"},"LocationOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"name":{"type":"string","title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["id","company_id","name","address","notes"],"title":"LocationOut"},"LoginRequest":{"properties":{"company_id":{"type":"string","title":"Company Id"},"password":{"type":"string","title":"Password"},"identifier":{"type":"string","title":"Identifier"}},"type":"object","required":["company_id","password","identifier"],"title":"LoginRequest"},"ManualEntryRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"clock_in":{"type":"string","format":"date-time","title":"Clock In"},"clock_out":{"type":"string","format":"date-time","title":"Clock Out"}},"type":"object","required":["user_id","clock_in","clock_out"],"title":"ManualEntryRequest"},"ManualSelfEntryRequest":{"properties":{"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"clock_in":{"type":"string","format":"date-time","title":"Clock In"},"clock_out":{"type":"string","format":"date-time","title":"Clock Out"}},"type":"object","required":["clock_in","clock_out"],"title":"ManualSelfEntryRequest"},"NoteCreate":{"properties":{"body":{"type":"string","title":"Body"},"time_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Entry Id"}},"type":"object","required":["body"],"title":"NoteCreate"},"NoteOut":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"time_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Entry Id"},"date":{"type":"string","title":"Date"},"body":{"type":"string","title":"Body"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","time_entry_id","date","body","created_at"],"title":"NoteOut"},"PayType":{"type":"string","enum":["hourly","salary"],"title":"PayType"},"PeriodCostOut":{"properties":{"period":{"type":"string","title":"Period"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"total_cost_usd":{"type":"number","title":"Total Cost Usd"},"total_hours":{"type":"number","title":"Total Hours"}},"type":"object","required":["period","period_start","total_cost_usd","total_hours"],"title":"PeriodCostOut"},"PtoBalanceAdjust":{"properties":{"hours":{"type":"number","title":"Hours"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["hours"],"title":"PtoBalanceAdjust"},"PtoBalanceOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"fiscal_year_start":{"type":"string","format":"date","title":"Fiscal Year Start"},"fiscal_year_end":{"type":"string","format":"date","title":"Fiscal Year End"},"accrued_hours":{"type":"number","title":"Accrued Hours"},"used_hours":{"type":"number","title":"Used Hours"},"adjusted_hours":{"type":"number","title":"Adjusted Hours"},"available_hours":{"type":"number","title":"Available Hours"},"pto_hours_per_year":{"type":"number","title":"Pto Hours Per Year"}},"type":"object","required":["user_id","fiscal_year_start","fiscal_year_end","accrued_hours","used_hours","adjusted_hours","available_hours","pto_hours_per_year"],"title":"PtoBalanceOut"},"PtoBlackoutCreate":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"name":{"type":"string","title":"Name"}},"type":"object","required":["date","name"],"title":"PtoBlackoutCreate"},"PtoBlackoutOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"date":{"type":"string","format":"date","title":"Date"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","date","name","created_at"],"title":"PtoBlackoutOut"},"PtoPendingCountOut":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"PtoPendingCountOut"},"PtoRequestCreate":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"hours_per_day":{"type":"number","title":"Hours Per Day","default":8.0},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["start_date","end_date"],"title":"PtoRequestCreate"},"PtoRequestOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"user_id":{"type":"string","title":"User Id"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"hours_per_day":{"type":"number","title":"Hours Per Day"},"total_hours":{"type":"number","title":"Total Hours"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"$ref":"#/components/schemas/PtoRequestStatus"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"}},"type":"object","required":["id","company_id","user_id","start_date","end_date","hours_per_day","total_hours","note","status","reviewed_by","reviewed_at","rejection_reason","created_at"],"title":"PtoRequestOut"},"PtoRequestStatus":{"type":"string","enum":["pending","approved","rejected","cancelled"],"title":"PtoRequestStatus"},"PtoReviewRequest":{"properties":{"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"}},"type":"object","title":"PtoReviewRequest"},"RefreshRequest":{"properties":{"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"}},"type":"object","title":"RefreshRequest"},"ReportRequest":{"properties":{"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"employee_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Employee Ids"},"job_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Job Ids"},"department_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Department Ids"},"format":{"type":"string","title":"Format","default":"pdf"},"report_type":{"type":"string","title":"Report Type","default":"payroll"}},"type":"object","required":["period_start","period_end"],"title":"ReportRequest"},"ResetPasswordResponse":{"properties":{"temp_password":{"type":"string","title":"Temp Password"},"message":{"type":"string","title":"Message","default":"Password reset. Please share this with the employee. It will not be shown again."}},"type":"object","required":["temp_password"],"title":"ResetPasswordResponse"},"ScheduleCreate":{"properties":{"user_id":{"type":"string","title":"User Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"scheduled_start":{"type":"string","format":"date-time","title":"Scheduled Start"},"scheduled_end":{"type":"string","format":"date-time","title":"Scheduled End"},"repeat_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repeat Rule"},"dates":{"anyOf":[{"items":{"type":"string","format":"date"},"type":"array"},{"type":"null"}],"title":"Dates"},"repeat_weekdays":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Repeat Weekdays"},"repeat_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Repeat Until"},"repeat_indefinite":{"type":"boolean","title":"Repeat Indefinite","default":false}},"type":"object","required":["user_id","scheduled_start","scheduled_end"],"title":"ScheduleCreate"},"ScheduleOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"user_id":{"type":"string","title":"User Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"job_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Name"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"scheduled_start":{"type":"string","format":"date-time","title":"Scheduled Start"},"scheduled_end":{"type":"string","format":"date-time","title":"Scheduled End"},"repeat_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repeat Rule"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","user_id","job_id","location_id","scheduled_start","scheduled_end","repeat_rule","created_at"],"title":"ScheduleOut"},"ScheduleUpdate":{"properties":{"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"scheduled_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Start"},"scheduled_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled End"},"repeat_rule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repeat Rule"},"repeat_weekdays":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Repeat Weekdays"},"repeat_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Repeat Until"},"repeat_indefinite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Repeat Indefinite"},"scope":{"type":"string","enum":["single","future","series"],"title":"Scope","default":"series"},"occurrence_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Occurrence Date"}},"type":"object","title":"ScheduleUpdate"},"SegmentType":{"type":"string","enum":["break_","lunch"],"title":"SegmentType"},"SessionResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"force_password_change":{"type":"boolean","title":"Force Password Change"},"company_id":{"type":"string","title":"Company Id"}},"type":"object","required":["user_id","name","role","force_password_change","company_id"],"title":"SessionResponse"},"TimeEntryOut":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"user_id":{"type":"string","title":"User Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"clock_in":{"type":"string","format":"date-time","title":"Clock In"},"clock_out":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clock Out"},"status":{"$ref":"#/components/schemas/TimeEntryStatus"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"total_minutes_worked":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Minutes Worked"},"regular_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Regular Minutes"},"overtime_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overtime Minutes"},"doubletime_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Doubletime Minutes"},"cost_regular":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Regular"},"cost_overtime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Overtime"},"cost_doubletime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Doubletime"},"cost_burden":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Burden"},"cost_total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Total"},"segments":{"items":{"$ref":"#/components/schemas/TimeSegmentOut"},"type":"array","title":"Segments","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","user_id","job_id","clock_in","clock_out","status","approved_by","approved_at","total_minutes_worked","regular_minutes","overtime_minutes","doubletime_minutes","cost_regular","cost_overtime","cost_doubletime","cost_total","created_at"],"title":"TimeEntryOut"},"TimeEntryStatus":{"type":"string","enum":["open","pending_approval","approved"],"title":"TimeEntryStatus"},"TimeSegmentOut":{"properties":{"id":{"type":"string","title":"Id"},"segment_type":{"$ref":"#/components/schemas/SegmentType"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},"type":"object","required":["id","segment_type","start_time","end_time"],"title":"TimeSegmentOut"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"force_password_change":{"type":"boolean","title":"Force Password Change"},"company_id":{"type":"string","title":"Company Id"}},"type":"object","required":["access_token","refresh_token","user_id","name","role","force_password_change","company_id"],"title":"TokenResponse"},"UpdateFCMTokenRequest":{"properties":{"fcm_token":{"type":"string","title":"Fcm Token"}},"type":"object","required":["fcm_token"],"title":"UpdateFCMTokenRequest"},"UserRole":{"type":"string","enum":["owner","manager","employee"],"title":"UserRole"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}