{"openapi":"3.1.0","info":{"title":"StudentTrack API","description":"API for student check-in/check-out tracking","version":"1.0.0"},"paths":{"/api/v1/auth/token":{"post":{"tags":["auth"],"summary":"Login","description":"OAuth2 compatible token login, get an access token for future requests","operationId":"login_api_v1_auth_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_api_v1_auth_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JWTToken"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","description":"Register a new organization and admin user.","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/organizations":{"get":{"tags":["organizations"],"summary":"Get Organization","description":"Get the organization of the currently authenticated user.","operationId":"get_organization_api_v1_organizations_get","security":[{"OAuth2PasswordBearer":[]}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGetResponse"}}}}}},"put":{"tags":["organizations"],"summary":"Update Organization","description":"Update the organization of the currently authenticated user (admin only).","operationId":"update_organization_api_v1_organizations_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Delete Organization","description":"Delete the organization of the currently authenticated user (admin only, requires org name confirmation).","operationId":"delete_organization_api_v1_organizations_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"org_name","in":"query","required":true,"schema":{"type":"string","title":"Org Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users":{"get":{"tags":["users"],"summary":"List Users","description":"Get all users in the organization (admin only).","operationId":"list_users_api_v1_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserGetResponse"},"type":"array","title":"Response List Users Api V1 Users Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["users"],"summary":"Create User","description":"Create a new user (admin only).","operationId":"create_user_api_v1_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/users/me":{"get":{"tags":["users"],"summary":"Get Profile","description":"Get current user's profile information.","operationId":"get_profile_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/users/{id}":{"get":{"tags":["users"],"summary":"Get User","description":"Get a specific user by ID (admin only).","operationId":"get_user_api_v1_users__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["users"],"summary":"Update User","description":"Update a user (admin only).","operationId":"update_user_api_v1_users__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["users"],"summary":"Delete User","description":"Delete a user (admin only, cannot delete self).","operationId":"delete_user_api_v1_users__id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{id}/deactivate":{"put":{"tags":["users"],"summary":"Deactivate User","description":"Deactivate a user (admin only).","operationId":"deactivate_user_api_v1_users__id__deactivate_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{id}/reactivate":{"put":{"tags":["users"],"summary":"Reactivate User","description":"Reactivate a user (admin only).","operationId":"reactivate_user_api_v1_users__id__reactivate_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/student":{"post":{"tags":["people"],"summary":"Create Student","operationId":"create_student_api_v1_people_student_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["people"],"summary":"List Students","operationId":"list_students_api_v1_people_student_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-user-timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StudentStatusGetResponse"},"title":"Response List Students Api V1 People Student Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/student/{id}":{"get":{"tags":["people"],"summary":"Get Student","operationId":"get_student_api_v1_people_student__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"x-user-timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentStatusGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["people"],"summary":"Update Student","operationId":"update_student_api_v1_people_student__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/student/{id}/deactivate":{"put":{"tags":["people"],"summary":"Deactivate Student","operationId":"deactivate_student_api_v1_people_student__id__deactivate_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/student/{id}/reactivate":{"put":{"tags":["people"],"summary":"Reactivate Student","operationId":"reactivate_student_api_v1_people_student__id__reactivate_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StudentGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people":{"get":{"tags":["people"],"summary":"List People","operationId":"list_people_api_v1_people_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PersonGetResponse"},"type":"array","title":"Response List People Api V1 People Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["people"],"summary":"Create Person","description":"Create a new person.","operationId":"create_person_api_v1_people_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/people/search":{"get":{"tags":["people"],"summary":"Search People","description":"Search for people with optional student filtering.","operationId":"search_people_api_v1_people_search_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"student","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Student"}},{"name":"phone_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PersonGetResponse"},"title":"Response Search People Api V1 People Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/{id}":{"get":{"tags":["people"],"summary":"Get Person","description":"Get a specific person by ID.","operationId":"get_person_api_v1_people__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["people"],"summary":"Update Person","description":"Update a person's details.","operationId":"update_person_api_v1_people__id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/{id}/deactivate":{"put":{"tags":["people"],"summary":"Deactivate Person","operationId":"deactivate_person_api_v1_people__id__deactivate_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/people/{id}/reactivate":{"put":{"tags":["people"],"summary":"Reactivate Person","operationId":"reactivate_person_api_v1_people__id__reactivate_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/relationships/authorized-people/phone/{phone_number}":{"get":{"tags":["relationships"],"summary":"Get Authorized People By Phone","description":"Get authorized people by phone number (matches either home or cell phone).","operationId":"get_authorized_people_by_phone_api_v1_relationships_authorized_people_phone__phone_number__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"phone_number","in":"path","required":true,"schema":{"type":"string","title":"Phone Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PersonGetResponse"},"title":"Response Get Authorized People By Phone Api V1 Relationships Authorized People Phone  Phone Number  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/relationships/authorized-people/{person_id}/students":{"get":{"tags":["relationships"],"summary":"Get Students By Authorized Person","description":"Get list of students that a person is authorized to check out.","operationId":"get_students_by_authorized_person_api_v1_relationships_authorized_people__person_id__students_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Person Id"}},{"name":"x-user-timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StudentStatusGetResponse"},"title":"Response Get Students By Authorized Person Api V1 Relationships Authorized People  Person Id  Students Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/relationships/students/{id}":{"get":{"tags":["relationships"],"summary":"List Student Authorized People","description":"List authorized people for a specific student.","operationId":"list_student_authorized_people_api_v1_relationships_students__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuthorizedPersonGetResponse"},"title":"Response List Student Authorized People Api V1 Relationships Students  Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["relationships"],"summary":"Add Student Authorized Person","description":"Add an authorized person to a student.","operationId":"add_student_authorized_person_api_v1_relationships_students__id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationshipCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationshipGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/relationships/students/{student_id}/person/{person_id}":{"delete":{"tags":["relationships"],"summary":"Remove Student Authorized Person","description":"Remove an authorized person from a student.","operationId":"remove_student_authorized_person_api_v1_relationships_students__student_id__person__person_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"student_id","in":"path","required":true,"schema":{"type":"string","title":"Student Id"}},{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records":{"post":{"tags":["records"],"summary":"Create Record","operationId":"create_record_api_v1_records_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/records/recent":{"get":{"tags":["records"],"summary":"List Recent Records","description":"Get recent check-in/check-out activity.","operationId":"list_recent_records_api_v1_records_recent_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordGetResponse"},"title":"Response List Recent Records Api V1 Records Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/student/{id}":{"get":{"tags":["records"],"summary":"List Student Records","description":"List ungrouped check records for a specific student.","operationId":"list_student_records_api_v1_records_student__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"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/RecordGetResponse"},"title":"Response List Student Records Api V1 Records Student  Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}":{"put":{"tags":["records"],"summary":"Update Record","description":"Admin endpoint to modify a record's data *** keeps original information ***","operationId":"update_record_api_v1_records__record_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordGetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["records"],"summary":"Delete Record","description":"Admin endpoint to delete a record permanently.","operationId":"delete_record_api_v1_records__record_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/daily":{"get":{"tags":["reports"],"summary":"Get Daily Report","description":"Get daily check-in/check-out report with optional date filtering.","operationId":"get_daily_report_api_v1_reports_daily_get","security":[{"OAuth2PasswordBearer":[]}],"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"}},{"name":"x-user-timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Daily Report Api V1 Reports Daily Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/pairs/{id}":{"get":{"tags":["reports"],"summary":"Get Student Records Report","description":"Get check records for a specific student, grouped by check-out/check-in pairs.","operationId":"get_student_records_report_api_v1_reports_pairs__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Student Records Report Api V1 Reports Pairs  Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/stats":{"get":{"tags":["reports"],"summary":"Get Stats","description":"Get dashboard statistics.","operationId":"get_stats_api_v1_reports_stats_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-user-timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Stats Api V1 Reports Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/weekly-stats":{"get":{"tags":["reports"],"summary":"Get Weekly Stats","description":"Get check-in/out statistics for the past 7 days.","operationId":"get_weekly_stats_api_v1_reports_weekly_stats_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"x-user-timezone","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites":{"get":{"tags":["sites"],"summary":"List Sites","description":"List all sites with current site flag.","operationId":"list_sites_api_v1_sites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SiteResponse"},"type":"array","title":"Response List Sites Api V1 Sites Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["sites"],"summary":"Create Site","description":"Create a new site and return updated list.","operationId":"create_site_api_v1_sites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SiteResponse"},"type":"array","title":"Response Create Site Api V1 Sites Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/sites/switch/{site_id}":{"post":{"tags":["sites"],"summary":"Switch Site","description":"Switch current site by updating user preferences and resetting connection pools.","operationId":"switch_site_api_v1_sites_switch__site_id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{site_id}":{"put":{"tags":["sites"],"summary":"Update Site","description":"Update a site's details.","operationId":"update_site_api_v1_sites__site_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{site_id}/preferences":{"get":{"tags":["sites"],"summary":"Get Site Preferences","description":"Get preferences for a specific site.","operationId":"get_site_preferences_api_v1_sites__site_id__preferences_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Site Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePreferences"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sites/{site_id}/preferences/reasons":{"put":{"tags":["sites"],"summary":"Update Site Reasons","description":"Update the reasons list for a site.","operationId":"update_site_reasons_api_v1_sites__site_id__preferences_reasons_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Site Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"title":"Reasons"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePreferences"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/providers":{"get":{"tags":["integrations"],"summary":"List Providers","description":"List all integration providers for the organization","operationId":"list_providers_api_v1_integrations_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProviderResponse"},"type":"array","title":"Response List Providers Api V1 Integrations Providers Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["integrations"],"summary":"Create Provider","description":"Add a new integration provider","operationId":"create_provider_api_v1_integrations_providers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/integrations/providers/{provider_id}/sync":{"post":{"tags":["integrations"],"summary":"Trigger Sync","description":"Trigger a sync for a specific provider","operationId":"trigger_sync_api_v1_integrations_providers__provider_id__sync_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}},{"name":"sync_type","in":"query","required":false,"schema":{"type":"string","default":"full","title":"Sync Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/providers/{provider_id}/sync-status":{"get":{"tags":["integrations"],"summary":"Get Sync Status","description":"Get status of latest sync","operationId":"get_sync_status_api_v1_integrations_providers__provider_id__sync_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/providers/{provider_id}/sync-progress":{"get":{"tags":["integrations"],"summary":"Get Sync Progress","description":"Get progress of latest sync","operationId":"get_sync_progress_api_v1_integrations_providers__provider_id__sync_progress_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sync Progress Api V1 Integrations Providers  Provider Id  Sync Progress Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/providers/{provider_id}/sync-history":{"get":{"tags":["integrations"],"summary":"Get Sync History","description":"Get sync history for a provider","operationId":"get_sync_history_api_v1_integrations_providers__provider_id__sync_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SyncResponse"},"title":"Response Get Sync History Api V1 Integrations Providers  Provider Id  Sync History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/facts/sync/status":{"get":{"tags":["integrations"],"summary":"Get Facts Sync Status","description":"Get the status of the most recent FACTS sync. Admin only.","operationId":"get_facts_sync_status_api_v1_integrations_facts_sync_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/api/v1/integrations/providers/{provider_id}/test":{"post":{"tags":["integrations"],"summary":"Test Provider","description":"Test connection to a provider","operationId":"test_provider_api_v1_integrations_providers__provider_id__test_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/system/registration/status":{"get":{"tags":["system"],"summary":"Get Registration Status","description":"Get the current registration status","operationId":"get_registration_status_api_v1_system_registration_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Registration Status Api V1 System Registration Status Get"}}}}}}},"/api/v1/health":{"get":{"summary":"Health Check","operationId":"health_check_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AuthorizedPersonGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"cell_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell Phone"},"relation":{"type":"string","title":"Relation"}},"type":"object","required":["id","org_id","relation"],"title":"AuthorizedPersonGetResponse","description":"API response schema for authorized person data."},"Body_login_api_v1_auth_token_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_api_v1_auth_token_post"},"CheckType":{"type":"string","enum":["IN","OUT"],"title":"CheckType","description":"Type of check record for student attendance tracking.\n\nValues:\n    IN: Student checked in\n    OUT: Student checked out"},"DeleteResponse":{"properties":{"message":{"type":"string","title":"Message"},"deleted_id":{"type":"string","format":"uuid","title":"Deleted Id"}},"type":"object","required":["message","deleted_id"],"title":"DeleteResponse","description":"Response for delete operations"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JWTToken":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token"],"title":"JWTToken","description":"API response schema for authentication token."},"OrganizationGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"OrganizationGetResponse","description":"API response schema for organization data."},"PersonCreateRequest":{"properties":{"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"cell_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell Phone"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"type":"object","required":["first_name","last_name"],"title":"PersonCreateRequest","description":"API request schema for creating a person."},"PersonGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"cell_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell Phone"},"is_student":{"type":"boolean","title":"Is Student"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["id","is_student"],"title":"PersonGetResponse","description":"API response schema for person data."},"PersonUpdateRequest":{"properties":{"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"cell_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell Phone"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"type":"object","title":"PersonUpdateRequest","description":"API request schema for updating a person."},"ProviderCreate":{"properties":{"provider_type":{"type":"string","title":"Provider Type"},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["provider_type","config"],"title":"ProviderCreate","description":"Request body for creating a provider"},"ProviderResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider_type":{"type":"string","title":"Provider Type"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","provider_type","is_active","created_at","updated_at"],"title":"ProviderResponse","description":"Response for provider operations"},"RecordCreateRequest":{"properties":{"student_id":{"type":"string","format":"uuid","title":"Student Id"},"checked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Checked By"},"check_type":{"$ref":"#/components/schemas/CheckType"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["student_id","check_type"],"title":"RecordCreateRequest","description":"API request schema for creating a record."},"RecordGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"modified_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified Timestamp"},"modified_checked_by":{"anyOf":[{"$ref":"#/components/schemas/PersonGetResponse"},{"type":"null"}]},"modified_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modified Reason"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"modified_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Modified By"},"modified_by_name":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Modified By Name"},"check_type":{"$ref":"#/components/schemas/CheckType"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"student":{"$ref":"#/components/schemas/StudentGetResponse"},"checked_by":{"anyOf":[{"$ref":"#/components/schemas/PersonGetResponse"},{"type":"null"}]},"session_user":{"anyOf":[{"$ref":"#/components/schemas/UserGetResponse"},{"type":"null"}]}},"type":"object","required":["id","timestamp","check_type","student"],"title":"RecordGetResponse","description":"API response schema for record data."},"RecordUpdateRequest":{"properties":{"modified_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified Timestamp"},"modified_checked_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Modified Checked By"},"modified_reason":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Modified Reason"}},"type":"object","title":"RecordUpdateRequest","description":"API request schema for updating a record's audit information."},"RegistrationRequest":{"properties":{"first_name":{"type":"string","maxLength":50,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":50,"minLength":1,"title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"},"org_name":{"type":"string","maxLength":100,"minLength":1,"title":"Org Name"}},"type":"object","required":["first_name","last_name","email","password","org_name"],"title":"RegistrationRequest","description":"API request schema for user registration."},"RegistrationResponse":{"properties":{"user":{"$ref":"#/components/schemas/UserPublic"},"token":{"$ref":"#/components/schemas/JWTToken"}},"type":"object","required":["user","token"],"title":"RegistrationResponse","description":"API response schema for user registration."},"RelationshipCreateRequest":{"properties":{"person_id":{"type":"string","format":"uuid","title":"Person Id"},"relation":{"type":"string","maxLength":20,"title":"Relation"}},"type":"object","required":["person_id","relation"],"title":"RelationshipCreateRequest","description":"API request schema for creating a relationship."},"RelationshipGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"student_id":{"type":"string","format":"uuid","title":"Student Id"},"person_id":{"type":"string","format":"uuid","title":"Person Id"},"relation":{"type":"string","title":"Relation"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","org_id","student_id","person_id","relation","created_at"],"title":"RelationshipGetResponse","description":"API response schema for relationship data."},"SiteCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","default":true}},"type":"object","required":["name"],"title":"SiteCreateRequest","description":"Schema for creating a new site."},"SitePreferences":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"site_id":{"type":"string","format":"uuid","title":"Site Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"}},"type":"object","required":["id","site_id","org_id","reasons"],"title":"SitePreferences"},"SiteResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_active":{"type":"boolean","title":"Is Active"},"is_current":{"type":"boolean","title":"Is Current"},"is_member":{"type":"boolean","title":"Is Member"}},"type":"object","required":["id","name","is_active","is_current","is_member"],"title":"SiteResponse","description":"Generic response schema for site operations."},"SiteUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","required":["name"],"title":"SiteUpdateRequest","description":"Schema for updating an existing site."},"StudentCreateRequest":{"properties":{"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"cell_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell Phone"}},"type":"object","title":"StudentCreateRequest","description":"API request schema for creating a student."},"StudentGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"cell_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell Phone"},"is_active":{"type":"boolean","title":"Is Active"},"last_check_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Check Timestamp"}},"type":"object","required":["id","is_active"],"title":"StudentGetResponse","description":"API response schema for student data."},"StudentStatusGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"person_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"grade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grade"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"home_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Phone"},"cell_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cell Phone"},"is_active":{"type":"boolean","title":"Is Active"},"last_check_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Check Timestamp"},"status":{"anyOf":[{"$ref":"#/components/schemas/CheckType"},{"type":"null"}]}},"type":"object","required":["id","is_active"],"title":"StudentStatusGetResponse","description":"API response schema for student status."},"SyncResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"sync_type":{"type":"string","title":"Sync Type"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"stats":{"additionalProperties":true,"type":"object","title":"Stats"}},"type":"object","required":["id","status","sync_type","started_at","completed_at","stats"],"title":"SyncResponse","description":"Response for sync operations"},"TestResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"TestResponse","description":"Response for test connection operations"},"UserCreateRequest":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"is_admin":{"type":"boolean","title":"Is Admin","default":false},"site_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Site Ids"}},"type":"object","required":["first_name","last_name","email","password"],"title":"UserCreateRequest","description":"API request schema for creating a user."},"UserGetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_active":{"type":"boolean","title":"Is Active"},"site_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Site Ids"}},"type":"object","required":["id","email","first_name","last_name","is_admin","is_active"],"title":"UserGetResponse","description":"API response schema for user data."},"UserProfileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_active":{"type":"boolean","title":"Is Active"},"site_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Site Ids"},"org_name":{"type":"string","title":"Org Name"},"preferences":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preferences"}},"type":"object","required":["id","email","first_name","last_name","is_admin","is_active","org_name"],"title":"UserProfileResponse","description":"API response schema for user profile."},"UserPublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"is_admin":{"type":"boolean","title":"Is Admin","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true},"site_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Site Ids"}},"type":"object","required":["org_id","email"],"title":"UserPublic","description":"Database model for web users (Omits password).\n\nThis model represents the public view of a user, excluding sensitive information.\nUsed for API responses and internal representations where password is not needed."},"UserUpdateRequest":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"is_admin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Admin"},"site_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Site Ids"}},"type":"object","title":"UserUpdateRequest","description":"API request schema for updating a user."},"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":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/api/v1/auth/token"}}}}}}