{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Ghl Root Webhook Handler Route","description":"GHL app webhooks that POST to / use the same handler as /webhook/ghl.","operationId":"ghl_root_webhook_handler_route__post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/status":{"get":{"summary":"Status","operationId":"status_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth":{"get":{"summary":"Agency Auth","operationId":"agency_auth_auth_get","parameters":[{"name":"location_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"}},{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},{"name":"response_mode","in":"query","required":false,"schema":{"type":"string","default":"redirect","title":"Response Mode"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/callback":{"get":{"summary":"Agency Oauth Callback","description":"Handles GHL redirect after agency installation or tenant location Connect.\n\nTenant vs agency is dispatched by signed OAuth state. Production tenant\nConnect uses this URI because Marketplace v1.0.0 lists\nhttps://api.teamcatalist.com/callback and cannot add /user-callback.","operationId":"agency_oauth_callback_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user-auth":{"get":{"summary":"Start User Auth","description":"Initiates user OAuth flow via email link.","operationId":"start_user_auth_user_auth_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"type":"string","title":"User Id"}},{"name":"location_id","in":"query","required":false,"schema":{"type":"string","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user-callback":{"get":{"summary":"User Oauth Callback","description":"Handles Marketplace /user-callback for tenant Connect and legacy user OAuth.","operationId":"user_oauth_callback_user_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/train":{"post":{"summary":"Train Llm","description":"Legacy LLM training endpoint restricted to internal operations.","operationId":"train_llm_train_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingData"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/ghl":{"post":{"summary":"Ghl Webhook Handler Route","operationId":"ghl_webhook_handler_route_webhook_ghl_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/workable":{"post":{"summary":"Workable Webhook Handler Route","operationId":"workable_webhook_handler_route_webhook_workable_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/jotform":{"post":{"summary":"Jotform Webhook Handler Route","operationId":"jotform_webhook_handler_route_webhook_jotform_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/jotform/jobs":{"post":{"summary":"Jotform Jobs Webhook Handler Route","description":"Receive job postings from JotForm","operationId":"jotform_jobs_webhook_handler_route_webhook_jotform_jobs_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/ghl/resume-contact":{"post":{"summary":"Ghl Resume Contact Webhook Handler Route","description":"Capture direct GHL resume/contact workflow payloads for mapping discovery.","operationId":"ghl_resume_contact_webhook_handler_route_webhook_ghl_resume_contact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/zapier":{"post":{"summary":"Zapier Webhook Handler Route","description":"Receive authenticated payloads from supported Zapier integrations.","operationId":"zapier_webhook_handler_route_webhook_zapier_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/jobs/{job_id}":{"get":{"summary":"Get Job","description":"Retrieve job details by job_id.\n\nRequires X-API-Key header for authentication.\n\nArgs:\n    job_id: The unique job identifier from JotForm\n\nReturns:\n    Job data object\n\nRaises:\n    401: Invalid or missing API key\n    404: Job not found","operationId":"get_job_api_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-api-key","in":"header","required":true,"schema":{"type":"string","description":"API Key for authentication","title":"X-Api-Key"},"description":"API Key for authentication"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/duplicate-approval/{token}":{"get":{"summary":"Duplicate Approval Handler Route","description":"Handle duplicate contact approval/rejection via URL link.","operationId":"duplicate_approval_handler_route_webhook_duplicate_approval__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"action","in":"query","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/global-update/{agency_id}":{"get":{"summary":"Global Update","description":"Lists sub-accounts for agency-level actions.","operationId":"global_update_global_update__agency_id__get","parameters":[{"name":"agency_id","in":"path","required":true,"schema":{"type":"string","title":"Agency Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health Check","description":"Process liveness only; dependency failures belong to /ready.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Health Check","description":"Process liveness only; dependency failures belong to /ready.","operationId":"health_check_health_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"summary":"Readiness Check","operationId":"readiness_check_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"head":{"summary":"Readiness Check","operationId":"readiness_check_ready_head","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/deep":{"get":{"summary":"Health Deep","description":"Dependency probe. Auth middleware does not apply; the health token does.","operationId":"health_deep_health_deep_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/database":{"get":{"summary":"Check Database Health","description":"Check database connection health and get connection pool statistics.","operationId":"check_database_health_health_database_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/database/detailed":{"get":{"summary":"Get Detailed Database Health","description":"Get detailed database connection information for monitoring.","operationId":"get_detailed_database_health_health_database_detailed_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test/llm-parsing":{"get":{"summary":"Test Llm Parsing","description":"Test endpoint to verify LLM JSON parsing improvements with sample problematic JSON.","operationId":"test_llm_parsing_test_llm_parsing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/background-tasks":{"get":{"summary":"Get Background Task Status","description":"Endpoint to monitor background task service health and queue status.","operationId":"get_background_task_status_health_background_tasks_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health/redis":{"get":{"summary":"Get Redis Health","description":"Endpoint to monitor Redis cache health and performance metrics (Phase 2.1).\n\nReturns:\n    - Connection status\n    - Memory usage\n    - Cache hit/miss rates\n    - Total commands processed\n    - Uptime statistics","operationId":"get_redis_health_health_redis_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/job_counts_api":{"get":{"summary":"Job Counts Api","description":"API endpoint that returns Workable job counts as JSON data.\n\nQuery Parameters:\n- show_total: bool (default: True) - Include total job count in response\n- locations: str - Comma-separated location names to count jobs by region\n- job_types: str - Comma-separated department names to count jobs by type\n- style: str - Style preset (kept for compatibility, doesn't affect JSON output)\n\nReturns:\n- JSON object with job counts data that can be consumed by frontend applications","operationId":"job_counts_api_job_counts_api_get","parameters":[{"name":"show_total","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Show Total"}},{"name":"locations","in":"query","required":false,"schema":{"type":"string","default":"Illinois,Ohio,Massachusetts,Pennsylvania,Texas,Florida","title":"Locations"}},{"name":"job_types","in":"query","required":false,"schema":{"type":"string","default":"Sales & Marketing,Commercial Sales,Retail Sales,Account Management,Direct Marketing,Client Retention,Business Development,Customer Service","title":"Job Types"}},{"name":"style","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Style"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/job_counts_iframe":{"get":{"summary":"Job Counts Iframe","description":"Endpoint that serves responsive HTML iframe displaying Workable job counts.\n\nQuery Parameters:\n- show_total: bool (default: True) - Show total job count\n- locations: str - Comma-separated location names to count jobs by region\n- job_types: str - Comma-separated department names to count jobs by type\n- style: str - CSS style preset: 'default', 'minimal', 'compact', 'numbers-only', or 'custom'","operationId":"job_counts_iframe_job_counts_iframe_get","parameters":[{"name":"show_total","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Show Total"}},{"name":"locations","in":"query","required":false,"schema":{"type":"string","default":"Illinois,Ohio,Massachusetts,Pennsylvania,Texas,Florida","title":"Locations"}},{"name":"job_types","in":"query","required":false,"schema":{"type":"string","default":"Sales & Marketing,Commercial Sales,Retail Sales,Account Management,Direct Marketing,Client Retention,Business Development,Customer Service","title":"Job Types"}},{"name":"style","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Style"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/docs/job-counts-api":{"get":{"summary":"Job Counts Api Docs","description":"Serve comprehensive documentation for the Job Counts JSON API.","operationId":"job_counts_api_docs_docs_job_counts_api_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/workable-iframe":{"get":{"summary":"Workable Iframe Docs","description":"Serve the Workable iframe documentation as HTML.","operationId":"workable_iframe_docs_docs_workable_iframe_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/docs/workable-iframe/raw":{"get":{"summary":"Workable Iframe Docs Raw","description":"Serve the Workable iframe documentation as raw markdown.","operationId":"workable_iframe_docs_raw_docs_workable_iframe_raw_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/invalidate-cache/{location_id}":{"post":{"summary":"Invalidate Ghl Cache","description":"Invalidate GHL custom fields cache for a location.","operationId":"invalidate_ghl_cache_admin_invalidate_cache__location_id__post","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/test/emails":{"post":{"summary":"Test Email Service","description":"Test all 3 email methods in the deployed environment.\nPOST /test/emails?to_email=test@example.com","operationId":"test_email_service_test_emails_post","parameters":[{"name":"to_email","in":"query","required":false,"schema":{"type":"string","default":"santhonydo@gmail.com","title":"To Email"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/jwt/login":{"post":{"tags":["auth"],"summary":"Auth:Jwt.Login","operationId":"auth_jwt_login_auth_jwt_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_auth_jwt_login_auth_jwt_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorModel"},"examples":{"LOGIN_BAD_CREDENTIALS":{"summary":"Bad credentials or the user is inactive.","value":{"detail":"LOGIN_BAD_CREDENTIALS"}},"LOGIN_USER_NOT_VERIFIED":{"summary":"The user is not verified.","value":{"detail":"LOGIN_USER_NOT_VERIFIED"}}}}}},"204":{"description":"No Content"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/jwt/logout":{"post":{"tags":["auth"],"summary":"Auth:Jwt.Logout","operationId":"auth_jwt_logout_auth_jwt_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing token or inactive user."},"204":{"description":"No Content"}},"security":[{"APIKeyCookie":[]}]}},"/applicants/unread-count":{"get":{"tags":["applicants"],"summary":"Get Unread Count","description":"Get count of unread applicants for sidebar badge.","operationId":"get_unread_count_applicants_unread_count_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/search":{"get":{"tags":["applicants"],"summary":"Search Applicants","operationId":"search_applicants_applicants_search_get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Status"}},{"name":"ghl_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Ghl Status"}},{"name":"pipeline_stage_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Pipeline Stage Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Source"}},{"name":"source_detail","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Source Detail"}},{"name":"disposition","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Disposition"}},{"name":"unread","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unread"}},{"name":"talent_pool_opt_in","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Talent Pool Opt In"}},{"name":"ai_score_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"title":"Ai Score Min"}},{"name":"ai_score_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"title":"Ai Score Max"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created To"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Search"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Location"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":10,"title":"Per Page"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/status-counts":{"get":{"tags":["applicants"],"summary":"Get Applicant Status Counts","operationId":"get_applicant_status_counts_applicants_status_counts_get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/count":{"get":{"tags":["applicants"],"summary":"Get Applicant Count","operationId":"get_applicant_count_applicants_count_get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/mark-read":{"post":{"tags":["applicants"],"summary":"Mark Applicant Read","description":"Mark an applicant as read.","operationId":"mark_applicant_read_applicants__applicant_id__mark_read_post","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/":{"get":{"tags":["applicants"],"summary":"List Applicants","operationId":"list_applicants_applicants__get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"}},{"name":"stage_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Stage Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Applicant"},"title":"Response List Applicants Applicants  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["applicants"],"summary":"Create Applicant","operationId":"create_applicant_applicants__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applicant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/activity-feed":{"get":{"tags":["applicants"],"summary":"List Company Activity Feed","description":"Return recent applicant activity across the tenant company.","operationId":"list_company_activity_feed_applicants_activity_feed_get","parameters":[{"name":"activity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Activity Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Company Activity Feed Applicants Activity Feed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}":{"get":{"tags":["applicants"],"summary":"Get Applicant","operationId":"get_applicant_applicants__applicant_id__get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applicant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["applicants"],"summary":"Update Applicant","operationId":"update_applicant_applicants__applicant_id__patch","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applicant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["applicants"],"summary":"Delete Applicant","operationId":"delete_applicant_applicants__applicant_id__delete","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/resume-url":{"get":{"tags":["applicants"],"summary":"Get Applicant Resume Url","description":"Return an authorized resume URL for the applicant.","operationId":"get_applicant_resume_url_applicants__applicant_id__resume_url_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/resume":{"get":{"tags":["applicants"],"summary":"Get Applicant Resume","description":"Stream the applicant resume through the API so preview does not need storage egress.","operationId":"get_applicant_resume_applicants__applicant_id__resume_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/cover-letter-url":{"get":{"tags":["applicants"],"summary":"Get Applicant Cover Letter Url","description":"Return an authorized URL for the applicant's latest cover letter.","operationId":"get_applicant_cover_letter_url_applicants__applicant_id__cover_letter_url_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/cover-letter":{"get":{"tags":["applicants"],"summary":"Get Applicant Cover Letter","description":"Stream the applicant cover letter through the API for inline preview.","operationId":"get_applicant_cover_letter_applicants__applicant_id__cover_letter_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/attachments/{field_name}":{"get":{"tags":["applicants"],"summary":"Get Applicant Attachment Url","description":"Return an authorized URL for a configured additional application attachment.","operationId":"get_applicant_attachment_url_applicants__applicant_id__attachments__field_name__get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"field_name","in":"path","required":true,"schema":{"type":"string","title":"Field Name"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/evaluation":{"get":{"tags":["applicants"],"summary":"Get Applicant Evaluation","operationId":"get_applicant_evaluation_applicants__applicant_id__evaluation_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Applicant Evaluation Applicants  Applicant Id  Evaluation Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/activities":{"get":{"tags":["applicants"],"summary":"Get Applicant Activities","operationId":"get_applicant_activities_applicants__applicant_id__activities_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Applicant Activities Applicants  Applicant Id  Activities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/bulk-import":{"post":{"tags":["applicants"],"summary":"Bulk Import Applicants","operationId":"bulk_import_applicants_applicants_bulk_import_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantBulkImport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantBulkImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/bulk-action":{"post":{"tags":["applicants"],"summary":"Bulk Action Applicants","operationId":"bulk_action_applicants_applicants_bulk_action_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantBulkAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/stage":{"post":{"tags":["applicants"],"summary":"Move Applicant Stage","operationId":"move_applicant_stage_applicants__applicant_id__stage_post","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantStageMove"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applicant"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/ghl-bulk-sync":{"post":{"tags":["applicants"],"summary":"Bulk Sync Applicants Ghl","operationId":"bulk_sync_applicants_ghl_applicants_ghl_bulk_sync_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantGhlBulkSync"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/applicants/{applicant_id}/ghl-retry":{"post":{"tags":["applicants"],"summary":"Retry Applicant Ghl","operationId":"retry_applicant_ghl_applicants__applicant_id__ghl_retry_post","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApplicantGhlRetry"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/":{"get":{"tags":["jobs"],"summary":"List Jobs","description":"List tenant-scoped jobs with server-side filtering and pagination.","operationId":"list_jobs_ats_jobs__get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"agency_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agency Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Search"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"}},{"name":"job_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Job Type"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Location"}},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Department"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","pattern":"^(job_title|location|status|indeed|created_at|published_at|closed_at|organization)$","default":"created_at","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Order"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Jobs Ats Jobs  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["jobs"],"summary":"Create Job","description":"Create a new job posting","operationId":"create_job_ats_jobs__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","description":"Get a job by ID (UUID or external job_id)","operationId":"get_job_ats_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["jobs"],"summary":"Update Job","description":"Update an existing job","operationId":"update_job_ats_jobs__job_id__patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["jobs"],"summary":"Delete Job","description":"Delete a job posting.\n\nPostgREST often returns no representation for DELETE. Treat an empty\npayload as success after the row was loaded. Return a raw 204 so browsers\nare not asked to parse `Content-Type: application/json` with no body.","operationId":"delete_job_ats_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/publish-events":{"get":{"tags":["jobs"],"summary":"List Publish Events","description":"List publishing audit events for a company-owned job.","operationId":"list_publish_events_ats_jobs__job_id__publish_events_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Publish Events Ats Jobs  Job Id  Publish Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["jobs"],"summary":"Create Publish Event","description":"Create a publishing audit event for a company-owned job.","operationId":"create_publish_event_ats_jobs__job_id__publish_events_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishEventLogRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Publish Event Ats Jobs  Job Id  Publish Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/status":{"patch":{"tags":["jobs"],"summary":"Update Job Status","description":"Update job status (draft -> open -> paused -> closed)","operationId":"update_job_status_ats_jobs__job_id__status_patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/duplicate":{"post":{"tags":["jobs"],"summary":"Duplicate Job","description":"Duplicate a job as a new draft for re-posting","operationId":"duplicate_job_ats_jobs__job_id__duplicate_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/publish/google":{"post":{"tags":["jobs"],"summary":"Publish Job To Google","description":"Mark a job as Google-published and open, then request recrawl.","operationId":"publish_job_to_google_ats_jobs__job_id__publish_google_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/unpublish/google":{"post":{"tags":["jobs"],"summary":"Unpublish Job From Google","description":"Pause Google Jobs for this job and mark publishing metadata as draft.","operationId":"unpublish_job_from_google_ats_jobs__job_id__unpublish_google_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/publish/indeed":{"post":{"tags":["jobs"],"summary":"Publish Job To Indeed","description":"Validate and timestamp a job for the client-wide Indeed ATS feed.\n\nIndeed feed inclusion is governed by company eligibility plus public job\nstatus/content, not by a per-job opt-in. No external Indeed API call is made\nhere until provider publishing is fully wired.","operationId":"publish_job_to_indeed_ats_jobs__job_id__publish_indeed_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/unpublish/indeed":{"post":{"tags":["jobs"],"summary":"Unpublish Job From Indeed","description":"Clear Indeed metadata for a job that is already out of the public feed.","operationId":"unpublish_job_from_indeed_ats_jobs__job_id__unpublish_indeed_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/republish":{"post":{"tags":["jobs"],"summary":"Republish Job","description":"Refresh publish timestamps for selected platforms.","operationId":"republish_job_ats_jobs__job_id__republish_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRepublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/personas/extract-job-document":{"post":{"tags":["personas"],"summary":"Extract Job Document","description":"Extract recruiter-editable text from a legacy job description.","operationId":"extract_job_document_ats_personas_extract_job_document_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_job_document_ats_personas_extract_job_document_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/personas/":{"get":{"tags":["personas"],"summary":"List Personas","description":"List all personas for the company.","operationId":"list_personas_ats_personas__get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"industry","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["personas"],"summary":"Create Persona","description":"Create a new persona.","operationId":"create_persona_ats_personas__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/personas/{persona_id}":{"get":{"tags":["personas"],"summary":"Get Persona","description":"Get a single persona by ID.","operationId":"get_persona_ats_personas__persona_id__get","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["personas"],"summary":"Update Persona","description":"Update an existing persona.","operationId":"update_persona_ats_personas__persona_id__patch","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["personas"],"summary":"Delete Persona","description":"Delete a persona.","operationId":"delete_persona_ats_personas__persona_id__delete","parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/personas/generate":{"post":{"tags":["personas"],"summary":"Generate Personas","description":"Generate persona suggestions using AI based on a natural language prompt.","operationId":"generate_personas_ats_personas_generate_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/personas/generate-job-description":{"post":{"tags":["personas"],"summary":"Generate Job Description","description":"Generate or rewrite a job description tailored to a specific persona.","operationId":"generate_job_description_ats_personas_generate_job_description_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDescriptionGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/personas/generate-full-job":{"post":{"tags":["personas"],"summary":"Generate Full Job","description":"Generate all job fields using approved role facts and optional persona context.","operationId":"generate_full_job_ats_personas_generate_full_job_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullJobGenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FullJobGenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/personas/regenerate-section":{"post":{"tags":["personas"],"summary":"Regenerate Section","description":"Regenerate one section using job facts and optional persona context.","operationId":"regenerate_section_ats_personas_regenerate_section_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectionRegenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SectionRegenerateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/questionnaire-templates/applicants/{applicant_id}/results":{"get":{"tags":["questionnaire-templates"],"summary":"Get Questionnaire Results","operationId":"get_questionnaire_results_ats_questionnaire_templates_applicants__applicant_id__results_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/questionnaire-templates/assignments/{assignment_id}/reissue":{"post":{"tags":["questionnaire-templates"],"summary":"Reissue Questionnaire","description":"Replace an incomplete legacy assignment once and queue its private email.\n\nRetries return the existing replacement and current delivery status. They\nnever replace answers, rotate its token, or send another invitation.","operationId":"reissue_questionnaire_ats_questionnaire_templates_assignments__assignment_id__reissue_post","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Assignment Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireReissueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/questionnaire-templates/":{"get":{"tags":["questionnaire-templates"],"summary":"List Templates","operationId":"list_templates_ats_questionnaire_templates__get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QuestionnaireTemplate"},"title":"Response List Templates Ats Questionnaire Templates  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["questionnaire-templates"],"summary":"Create Template","operationId":"create_template_ats_questionnaire_templates__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/questionnaire-templates/{template_id}":{"put":{"tags":["questionnaire-templates"],"summary":"Update Template","operationId":"update_template_ats_questionnaire_templates__template_id__put","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["questionnaire-templates"],"summary":"Delete Template","operationId":"delete_template_ats_questionnaire_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipelines/":{"get":{"tags":["pipelines"],"summary":"List Pipelines","operationId":"list_pipelines_pipelines__get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pipeline"},"title":"Response List Pipelines Pipelines  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pipelines"],"summary":"Create Pipeline","operationId":"create_pipeline_pipelines__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipelines/{pipeline_id}":{"get":{"tags":["pipelines"],"summary":"Get Pipeline","operationId":"get_pipeline_pipelines__pipeline_id__get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pipelines"],"summary":"Update Pipeline","operationId":"update_pipeline_pipelines__pipeline_id__patch","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pipelines"],"summary":"Delete Pipeline","operationId":"delete_pipeline_pipelines__pipeline_id__delete","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipelines/{pipeline_id}/stages":{"post":{"tags":["pipelines"],"summary":"Add Pipeline Stage","operationId":"add_pipeline_stage_pipelines__pipeline_id__stages_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipelines/{pipeline_id}/stages/{stage_id}":{"patch":{"tags":["pipelines"],"summary":"Update Pipeline Stage","operationId":"update_pipeline_stage_pipelines__pipeline_id__stages__stage_id__patch","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pipelines"],"summary":"Delete Pipeline Stage","operationId":"delete_pipeline_stage_pipelines__pipeline_id__stages__stage_id__delete","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PipelineStageDeleteRequest"},{"type":"null"}],"title":"Delete Request"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pipelines/{pipeline_id}/stages/reorder":{"post":{"tags":["pipelines"],"summary":"Reorder Pipeline Stages","operationId":"reorder_pipeline_stages_pipelines__pipeline_id__stages_reorder_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStageReorder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PipelineStage"},"title":"Response Reorder Pipeline Stages Pipelines  Pipeline Id  Stages Reorder Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/pipelines/":{"get":{"tags":["pipelines"],"summary":"List Pipelines","operationId":"list_pipelines_ats_pipelines__get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Pipeline"},"title":"Response List Pipelines Ats Pipelines  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pipelines"],"summary":"Create Pipeline","operationId":"create_pipeline_ats_pipelines__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/pipelines/{pipeline_id}":{"get":{"tags":["pipelines"],"summary":"Get Pipeline","operationId":"get_pipeline_ats_pipelines__pipeline_id__get","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pipelines"],"summary":"Update Pipeline","operationId":"update_pipeline_ats_pipelines__pipeline_id__patch","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pipeline"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pipelines"],"summary":"Delete Pipeline","operationId":"delete_pipeline_ats_pipelines__pipeline_id__delete","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/pipelines/{pipeline_id}/stages":{"post":{"tags":["pipelines"],"summary":"Add Pipeline Stage","operationId":"add_pipeline_stage_ats_pipelines__pipeline_id__stages_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStageCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/pipelines/{pipeline_id}/stages/{stage_id}":{"patch":{"tags":["pipelines"],"summary":"Update Pipeline Stage","operationId":"update_pipeline_stage_ats_pipelines__pipeline_id__stages__stage_id__patch","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pipelines"],"summary":"Delete Pipeline Stage","operationId":"delete_pipeline_stage_ats_pipelines__pipeline_id__stages__stage_id__delete","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","title":"Stage Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PipelineStageDeleteRequest"},{"type":"null"}],"title":"Delete Request"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/pipelines/{pipeline_id}/stages/reorder":{"post":{"tags":["pipelines"],"summary":"Reorder Pipeline Stages","operationId":"reorder_pipeline_stages_ats_pipelines__pipeline_id__stages_reorder_post","parameters":[{"name":"pipeline_id","in":"path","required":true,"schema":{"type":"string","title":"Pipeline Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStageReorder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PipelineStage"},"title":"Response Reorder Pipeline Stages Ats Pipelines  Pipeline Id  Stages Reorder Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/connections":{"get":{"tags":["oauth"],"summary":"List Connections","description":"List user's OAuth connections (without tokens).","operationId":"list_connections_api_oauth_connections_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthConnectionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/providers":{"get":{"tags":["oauth"],"summary":"List Oauth Providers","description":"Return provider readiness without exposing OAuth credentials.","operationId":"list_oauth_providers_api_oauth_providers_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthProvidersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/connect/{provider}":{"get":{"tags":["oauth"],"summary":"Initiate Oauth","description":"Get OAuth authorization URL for the specified provider.","operationId":"initiate_oauth_api_oauth_connect__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"return_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/callback/{provider}":{"get":{"tags":["oauth"],"summary":"Oauth Callback","description":"Handle OAuth callback and store tokens.","operationId":"oauth_callback_api_oauth_callback__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}},{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/connections/{connection_id}":{"delete":{"tags":["oauth"],"summary":"Disconnect Oauth","description":"Disconnect OAuth account.","operationId":"disconnect_oauth_api_oauth_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/connections/provider/{provider}":{"delete":{"tags":["oauth"],"summary":"Disconnect Oauth Provider","description":"Disconnect OAuth account by provider.","operationId":"disconnect_oauth_provider_api_oauth_connections_provider__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/refresh/{connection_id}":{"post":{"tags":["oauth"],"summary":"Refresh Token","description":"Force refresh an OAuth token.","operationId":"refresh_token_api_oauth_refresh__connection_id__post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations":{"get":{"tags":["conversations"],"summary":"List Conversations","description":"List all conversations for current user.","operationId":"list_conversations_api_conversations_get","parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Channel"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["conversations"],"summary":"Create Or Get Conversation","description":"Create conversation or get existing one for applicant.","operationId":"create_or_get_conversation_api_conversations_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/unread-count":{"get":{"tags":["conversations"],"summary":"Get Unread Count","description":"Get total unread message count across all conversations.","operationId":"get_unread_count_api_conversations_unread_count_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/templates":{"get":{"tags":["conversations"],"summary":"List Email Templates","description":"List system and company-scoped communication templates.","operationId":"list_email_templates_api_conversations_templates_get","parameters":[{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Channel"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["conversations"],"summary":"Create Email Template","description":"Create a reusable company communication template.","operationId":"create_email_template_api_conversations_templates_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/templates/{template_id}":{"put":{"tags":["conversations"],"summary":"Update Email Template","description":"Update a company-owned communication template.","operationId":"update_email_template_api_conversations_templates__template_id__put","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["conversations"],"summary":"Delete Email Template","description":"Delete a company-owned communication template.","operationId":"delete_email_template_api_conversations_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/sync-all":{"post":{"tags":["conversations"],"summary":"Sync All Emails","description":"Sync emails for all conversations belonging to the current user.","operationId":"sync_all_emails_api_conversations_sync_all_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{conversation_id}":{"get":{"tags":["conversations"],"summary":"Get Conversation","description":"Get conversation with messages.","operationId":"get_conversation_api_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{conversation_id}/messages":{"post":{"tags":["conversations"],"summary":"Send Message","description":"Send message (email or SMS).","operationId":"send_message_api_conversations__conversation_id__messages_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSend"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{conversation_id}/sync":{"post":{"tags":["conversations"],"summary":"Sync Emails","description":"Manually trigger email sync for conversation.","operationId":"sync_emails_api_conversations__conversation_id__sync_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{conversation_id}/read":{"patch":{"tags":["conversations"],"summary":"Mark As Read","description":"Mark conversation as read.","operationId":"mark_as_read_api_conversations__conversation_id__read_patch","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{conversation_id}/providers":{"get":{"tags":["conversations"],"summary":"Get Available Providers","description":"Get available email providers for sending from this conversation.","operationId":"get_available_providers_api_conversations__conversation_id__providers_get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{conversation_id}/calls":{"post":{"tags":["conversations"],"summary":"Log Call","description":"Log a phone call to the conversation.","operationId":"log_call_api_conversations__conversation_id__calls_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallLogCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/twilio/sms":{"post":{"tags":["webhooks"],"summary":"Handle Inbound Sms","description":"Handle inbound SMS from Twilio Conversations webhook.","operationId":"handle_inbound_sms_api_webhooks_twilio_sms_post","parameters":[{"name":"X-Twilio-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Twilio-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/twilio/call-status":{"post":{"tags":["webhooks"],"summary":"Handle Call Status","description":"Handle Twilio Voice call status webhook. Logs completed calls.","operationId":"handle_call_status_api_webhooks_twilio_call_status_post","parameters":[{"name":"X-Twilio-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Twilio-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/twilio/voice":{"post":{"tags":["webhooks"],"summary":"Handle Inbound Voice","description":"Handle inbound voice call. Returns TwiML to go to voicemail.","operationId":"handle_inbound_voice_api_webhooks_twilio_voice_post","parameters":[{"name":"X-Twilio-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Twilio-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/twilio/voicemail":{"post":{"tags":["webhooks"],"summary":"Handle Voicemail Recording","description":"Handle voicemail recording completion callback from Twilio.","operationId":"handle_voicemail_recording_api_webhooks_twilio_voicemail_post","parameters":[{"name":"X-Twilio-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Twilio-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/twilio/health":{"get":{"tags":["webhooks"],"summary":"Twilio Webhook Health","description":"Health check endpoint for Twilio webhook configuration.","operationId":"twilio_webhook_health_api_webhooks_twilio_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/webhooks/gmail/push":{"post":{"tags":["webhooks"],"summary":"Handle Gmail Push","description":"Handle Gmail push notification via Pub/Sub.\n\nGmail watch() sends push notifications to a Cloud Pub/Sub topic,\nwhich forwards to this webhook. The payload contains the user's\nemail address and history ID for incremental sync.","operationId":"handle_gmail_push_api_webhooks_gmail_push_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/gmail/health":{"get":{"tags":["webhooks"],"summary":"Gmail Webhook Health","description":"Health check for Gmail webhook configuration.","operationId":"gmail_webhook_health_api_webhooks_gmail_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/video/zoom/meeting":{"post":{"tags":["video"],"summary":"Create Zoom Meeting","description":"Create a Zoom scheduled meeting.","operationId":"create_zoom_meeting_api_video_zoom_meeting_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMeetingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/zoom/meeting/{meeting_id}":{"get":{"tags":["video"],"summary":"Get Zoom Meeting","description":"Get Zoom meeting details.","operationId":"get_zoom_meeting_api_video_zoom_meeting__meeting_id__get","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["video"],"summary":"Update Zoom Meeting","description":"Update Zoom meeting details.","operationId":"update_zoom_meeting_api_video_zoom_meeting__meeting_id__patch","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeetingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["video"],"summary":"Delete Zoom Meeting","description":"Delete/cancel a Zoom meeting.","operationId":"delete_zoom_meeting_api_video_zoom_meeting__meeting_id__delete","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/google-meet/meeting":{"post":{"tags":["video"],"summary":"Create Google Meet","description":"Create a Google Calendar event with Google Meet link.","operationId":"create_google_meet_api_video_google_meet_meeting_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMeetingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/google-meet/meeting/{event_id}":{"get":{"tags":["video"],"summary":"Get Google Meet","description":"Get Google Calendar event details.","operationId":"get_google_meet_api_video_google_meet_meeting__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["video"],"summary":"Update Google Meet","description":"Update Google Calendar event.","operationId":"update_google_meet_api_video_google_meet_meeting__event_id__patch","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeetingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["video"],"summary":"Delete Google Meet","description":"Delete/cancel a Google Calendar event (and its Meet).","operationId":"delete_google_meet_api_video_google_meet_meeting__event_id__delete","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/video/available-providers":{"get":{"tags":["video"],"summary":"Get Available Providers","description":"Get which video providers the user has connected.","operationId":"get_available_providers_api_video_available_providers_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/organization/{slug}":{"get":{"tags":["Public Jobs"],"summary":"Get Public Job Organization","description":"Resolve a public careers-page slug to either a self-serve company or a\nlegacy agency. Company slugs take precedence because new ATS pages are\ncompany-scoped.","operationId":"get_public_job_organization_jobs_organization__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}":{"get":{"tags":["Public Jobs"],"summary":"Get Public Job","description":"Get public job details.\n\nReturns job data for frontend rendering.\nNo authentication required.","operationId":"get_public_job_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Job Id"}},{"name":"agency_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Agency id scope","title":"Agency Id"},"description":"Agency id scope"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Company id scope","title":"Company Id"},"description":"Company id scope"},{"name":"preview","in":"query","required":false,"schema":{"type":"boolean","description":"Allow unpublished job preview in non-production environments","default":false,"title":"Preview"},"description":"Allow unpublished job preview in non-production environments"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/events":{"post":{"tags":["Public Jobs"],"summary":"Record Public Posting Event","description":"Record a deduplicated, anonymous hosted-job funnel event.","operationId":"record_public_posting_event_jobs__job_id__events_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Job Id"}},{"name":"agency_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Agency id scope","title":"Agency Id"},"description":"Agency id scope"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Company id scope","title":"Company Id"},"description":"Company id scope"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPostingEventCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPostingEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/schema":{"get":{"tags":["Public Jobs"],"summary":"Get Job Schema","description":"Get JSON-LD schema for a job.\n\nReturns raw JSON-LD for embedding in page head.\nContent-Type: application/ld+json\nTenant-aware: uses tenant branding when on custom domain.","operationId":"get_job_schema_jobs__job_id__schema_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Job Id"}},{"name":"agency_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Agency id scope","title":"Agency Id"},"description":"Agency id scope"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Company id scope","title":"Company Id"},"description":"Company id scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/schema.json":{"get":{"tags":["Public Jobs"],"summary":"Get Job Schema","description":"Get JSON-LD schema for a job.\n\nReturns raw JSON-LD for embedding in page head.\nContent-Type: application/ld+json\nTenant-aware: uses tenant branding when on custom domain.","operationId":"get_job_schema_jobs__job_id__schema_json_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Job Id"}},{"name":"agency_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Agency id scope","title":"Agency Id"},"description":"Agency id scope"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Company id scope","title":"Company Id"},"description":"Company id scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/embed":{"get":{"tags":["Public Jobs"],"summary":"Get Job Embed Script","description":"Get embeddable script tag with JSON-LD.\n\nReturns HTML script tag ready for insertion.\nTenant-aware: uses tenant branding when on custom domain.","operationId":"get_job_embed_script_jobs__job_id__embed_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Job Id"}},{"name":"agency_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Agency id scope","title":"Agency Id"},"description":"Agency id scope"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Company id scope","title":"Company Id"},"description":"Company id scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/":{"get":{"tags":["Public Jobs"],"summary":"List Public Jobs","description":"List all open jobs. On custom domains, filters to tenant's jobs only.\n\nFor job listing pages and sitemap generation.","operationId":"list_public_jobs_jobs__get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max jobs to return (1-100)","default":50,"title":"Limit"},"description":"Max jobs to return (1-100)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of jobs to skip","default":0,"title":"Offset"},"description":"Number of jobs to skip"},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Filter by city or state","title":"Location"},"description":"Filter by city or state"},{"name":"agency_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Agency id scope","title":"Agency Id"},"description":"Agency id scope"},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"description":"Company id scope","title":"Company Id"},"description":"Company id scope"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/branding/{agency_id}":{"get":{"tags":["Public Jobs"],"summary":"Get Public Branding","description":"Public branding for frontend SSR. Returns safe subset of tenant branding.","operationId":"get_public_branding_jobs_branding__agency_id__get","parameters":[{"name":"agency_id","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Agency Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/applications/":{"post":{"tags":["Public Applications"],"summary":"Submit Application","description":"Submit a direct application. Public endpoint, no auth required.","operationId":"submit_application_api_public_applications__post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_application_api_public_applications__post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/applications/indeed":{"post":{"tags":["Public Applications"],"summary":"Submit Indeed Application","description":"Receive server-to-server Indeed Apply JSON application delivery.","operationId":"submit_indeed_application_api_public_applications_indeed_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationResponse"}}}}}}},"/public/questionnaires/{token}":{"get":{"tags":["public-questionnaires"],"summary":"Get Public Questionnaire","operationId":"get_public_questionnaire_public_questionnaires__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["public-questionnaires"],"summary":"Submit Public Questionnaire","operationId":"submit_public_questionnaire_public_questionnaires__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireSubmission"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sitemap.xml":{"get":{"tags":["Sitemap"],"summary":"Get Sitemap Index","description":"Main sitemap index. Tenant-aware on custom domains.\n\nPoints to individual sitemaps (jobs, pages, etc.)","operationId":"get_sitemap_index_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sitemap-jobs.xml":{"get":{"tags":["Sitemap"],"summary":"Get Jobs Sitemap","description":"Jobs sitemap with open positions. Tenant-aware on custom domains.\n\nSubmit this URL to Google Search Console.","operationId":"get_jobs_sitemap_sitemap_jobs_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"tags":["Sitemap"],"summary":"Get Robots Txt","description":"Serve robots.txt with sitemap reference.\nTenant-aware: uses custom domain base URL when applicable.","operationId":"get_robots_txt_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/google-jobs/status":{"get":{"tags":["Sitemap"],"summary":"Google Jobs Status","description":"Internal status endpoint for monitoring.\n\nCheck this for schema generation health.\nReturns counts of valid/invalid schemas and error details.","operationId":"google_jobs_status_api_google_jobs_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ats/domains/":{"get":{"tags":["domains"],"summary":"List Domains","description":"List all custom domains for the authenticated user's agency.","operationId":"list_domains_ats_domains__get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Domains Ats Domains  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["domains"],"summary":"Add Domain","description":"Add a custom domain and return verification instructions.\n\nDomain must be globally unique (enforced by DB constraint).","operationId":"add_domain_ats_domains__post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomainVerificationInstructions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/{domain_id}":{"get":{"tags":["domains"],"summary":"Get Domain","description":"Get a custom domain by ID (must belong to user's agency).","operationId":"get_domain_ats_domains__domain_id__get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDomain"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["domains"],"summary":"Remove Domain","description":"Delete a custom domain (must belong to user's agency).","operationId":"remove_domain_ats_domains__domain_id__delete","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/{domain_id}/verification-status":{"get":{"tags":["domains"],"summary":"Check Verification","description":"Check current verification and SSL status for a domain.","operationId":"check_verification_ats_domains__domain_id__verification_status_get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/{domain_id}/verify":{"post":{"tags":["domains"],"summary":"Trigger Verification","description":"Trigger DNS verification for a domain.\n\nRate-limited: 1 request per 30 seconds per domain.\nDoes an immediate DNS check, then starts background polling if not yet verified.","operationId":"trigger_verification_ats_domains__domain_id__verify_post","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/{domain_id}/ssl-status":{"get":{"tags":["domains"],"summary":"Check Ssl","description":"Check live SSL certificate status for a domain.","operationId":"check_ssl_ats_domains__domain_id__ssl_status_get","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/{domain_id}/ssl-retry":{"post":{"tags":["domains"],"summary":"Retry Ssl Provisioning","description":"Retry SSL provisioning for a domain that failed.","operationId":"retry_ssl_provisioning_ats_domains__domain_id__ssl_retry_post","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/branding/me":{"get":{"tags":["domains"],"summary":"Get Branding","description":"Get branding configuration for the authenticated user's agency.\n\nReturns default branding values if no custom branding has been set,\nallowing the user to see the setup form instead of an error.","operationId":"get_branding_ats_domains_branding_me_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantBranding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["domains"],"summary":"Update Branding","description":"Create or update branding for the authenticated user's agency (upsert).","operationId":"update_branding_ats_domains_branding_me_put","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantBrandingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantBranding"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/branding/logo":{"post":{"tags":["domains"],"summary":"Upload Logo","description":"Upload company logo to Supabase Storage (max 2 MB, PNG/JPG/SVG).","operationId":"upload_logo_ats_domains_branding_logo_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_logo_ats_domains_branding_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/domains/branding/preview":{"get":{"tags":["domains"],"summary":"Preview Branding","description":"Get branding as CSS variables for live preview.","operationId":"preview_branding_ats_domains_branding_preview_get","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/resolve-domain":{"post":{"tags":["Internal"],"summary":"Resolve Domain","description":"Resolve a custom domain to agency_id + branding.\n\nCalled by frontend middleware on every custom domain request.\nResponse is cached by frontend (short TTL).","operationId":"resolve_domain_internal_resolve_domain_post","parameters":[{"name":"X-Internal-Key","in":"header","required":true,"schema":{"type":"string","title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/automations/":{"get":{"tags":["Automations"],"summary":"List Automations","description":"List automations, optionally filtered by job_id.","operationId":"list_automations_ats_automations__get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Automations"],"summary":"Create Automation","description":"Create a new automation rule.","operationId":"create_automation_ats_automations__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/automations/{automation_id}":{"get":{"tags":["Automations"],"summary":"Get Automation","description":"Get a specific automation by ID.","operationId":"get_automation_ats_automations__automation_id__get","parameters":[{"name":"automation_id","in":"path","required":true,"schema":{"type":"string","title":"Automation Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Automations"],"summary":"Update Automation","description":"Update an automation rule.","operationId":"update_automation_ats_automations__automation_id__put","parameters":[{"name":"automation_id","in":"path","required":true,"schema":{"type":"string","title":"Automation Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Automations"],"summary":"Delete Automation","description":"Delete an automation rule.","operationId":"delete_automation_ats_automations__automation_id__delete","parameters":[{"name":"automation_id","in":"path","required":true,"schema":{"type":"string","title":"Automation Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/status":{"get":{"tags":["onboarding"],"summary":"Get Onboarding Status","description":"Check if current user has a company association.","operationId":"get_onboarding_status_onboarding_status_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/create-company":{"post":{"tags":["onboarding"],"summary":"Create Company","description":"Create a new company and set current user as owner.","operationId":"create_company_onboarding_create_company_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/bootstrap-workspace":{"post":{"tags":["onboarding"],"summary":"Bootstrap Workspace","description":"Idempotently create the free workspace every authenticated user receives.","operationId":"bootstrap_workspace_onboarding_bootstrap_workspace_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/setup-status":{"get":{"tags":["onboarding"],"summary":"Get Setup Status","description":"Get status of phone provisioning and service connections for onboarding step 2.","operationId":"get_setup_status_onboarding_setup_status_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/onboarding/provision-phone":{"post":{"tags":["onboarding"],"summary":"Provision Phone","description":"Auto-provision a Twilio phone number for the company during onboarding.","operationId":"provision_phone_onboarding_provision_phone_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/":{"get":{"tags":["company"],"summary":"Get Company","description":"Get current user's company.","operationId":"get_company_company__get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["company"],"summary":"Update Company","description":"Update company details (owner/admin only).","operationId":"update_company_company__put","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/billing/status":{"get":{"tags":["company"],"summary":"Get Billing Status","operationId":"get_billing_status_company_billing_status_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/billing/checkout":{"post":{"tags":["company"],"summary":"Create Billing Checkout","operationId":"create_billing_checkout_company_billing_checkout_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/billing/portal":{"post":{"tags":["company"],"summary":"Create Billing Portal","operationId":"create_billing_portal_company_billing_portal_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/billing/invoices":{"get":{"tags":["company"],"summary":"Get Billing Invoices","description":"Return tenant-owned Stripe invoices using Stripe's stable cursor.","operationId":"get_billing_invoices_company_billing_invoices_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Cursor"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/billing/webhooks/stripe":{"post":{"tags":["company"],"summary":"Stripe Billing Webhook","operationId":"stripe_billing_webhook_company_billing_webhooks_stripe_post","parameters":[{"name":"stripe-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/map":{"get":{"tags":["company"],"summary":"Get Company Map","description":"Return company id to name labels for UI tables.\n\nRegular company users only receive their own company label. Super admins\nreceive all labels for cross-tenant filters and audit tables.","operationId":"get_company_map_company_map_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/usage":{"get":{"tags":["company"],"summary":"Get Company Usage","description":"Return company-scoped ATS usage for plan and billing UI.","operationId":"get_company_usage_company_usage_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/eeo-report":{"get":{"tags":["company"],"summary":"Get Company Eeo Report","description":"Return aggregate voluntary EEO counts for the current company.\n\nEEO responses are intentionally kept out of recruiter-facing applicant\nrecords. This endpoint returns aggregate counts only, scoped to the\ntenant company and optionally to a single job UUID.","operationId":"get_company_eeo_report_company_eeo_report_get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyEEOReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/verification/submit":{"post":{"tags":["company"],"summary":"Submit Company Verification","description":"Submit a complete business profile for manual admin verification.","operationId":"submit_company_verification_company_verification_submit_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationSubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/plan":{"post":{"tags":["company"],"summary":"Select Company Plan","description":"Select the company's ATS plan.\n\nThis is the billing-ready MVP state change. Payment collection can later\nwrap this endpoint or replace it with webhook-driven subscription updates.","operationId":"select_company_plan_company_plan_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanSelectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/logo":{"post":{"tags":["company"],"summary":"Upload Company Logo","description":"Upload and persist the current company's public logo.","operationId":"upload_company_logo_company_logo_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_company_logo_company_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyLogoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company"],"summary":"Remove Company Logo","description":"Remove the current company's logo URL and best-effort delete the file.","operationId":"remove_company_logo_company_logo_delete","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyLogoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/header-image":{"post":{"tags":["company"],"summary":"Upload Company Header Image","description":"Upload a public careers-page header image for the current company.","operationId":"upload_company_header_image_company_header_image_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_company_header_image_company_header_image_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyHeaderImageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company"],"summary":"Remove Company Header Image","operationId":"remove_company_header_image_company_header_image_delete","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyHeaderImageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/members":{"get":{"tags":["company"],"summary":"List Members","description":"List all members of the current company with user profile info.\n\nJoins company_members with auth.users (email, email_confirmed_at) and\nprofiles (full_name) so the team UI can render real names without a\nsecond round-trip from the browser.","operationId":"list_members_company_members_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyMemberWithProfile"},"title":"Response List Members Company Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/members/invitations":{"get":{"tags":["company"],"summary":"List Pending Invitations","operationId":"list_pending_invitations_company_members_invitations_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PendingInvitationResponse"},"title":"Response List Pending Invitations Company Members Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/members/invitations/{invitation_id}":{"delete":{"tags":["company"],"summary":"Revoke Pending Invitation","operationId":"revoke_pending_invitation_company_members_invitations__invitation_id__delete","parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/members/invite":{"post":{"tags":["company"],"summary":"Invite Member","description":"Email a pending company invitation (owner/admin only).","operationId":"invite_member_company_members_invite_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberInvite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberInviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/members/{member_id}":{"patch":{"tags":["company"],"summary":"Update Member Role","description":"Update a teammate's company role (owner only).\n\nOwner role changes remain super-admin only so the company cannot remove its\nownership path from the self-service team page.","operationId":"update_member_role_company_members__member_id__patch","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberRoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyMember"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["company"],"summary":"Remove Member","description":"Remove a member from the company (owner only).","operationId":"remove_member_company_members__member_id__delete","parameters":[{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/phone/provision":{"post":{"tags":["company"],"summary":"Provision Phone Number","description":"Provision a Twilio phone number for the company (owner/admin only).","operationId":"provision_phone_number_company_phone_provision_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneProvisionRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/phone":{"get":{"tags":["company"],"summary":"Get Company Phone","description":"Get the company's active phone number.","operationId":"get_company_phone_company_phone_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/operations/background-jobs":{"get":{"tags":["admin"],"summary":"List Background Jobs","operationId":"list_background_jobs_admin_operations_background_jobs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/operations/background-jobs/{job_id}/replay":{"post":{"tags":["admin"],"summary":"Replay Background Job","operationId":"replay_background_job_admin_operations_background_jobs__job_id__replay_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/applicants/{applicant_id}/resume-summary":{"post":{"tags":["admin"],"summary":"Rerun Applicant Resume Summary","description":"Re-run AI summary for one applicant from the stored resume file.\n\nReads the resumes bucket only. A full re-run inserts a fresh evaluation\nand links it by applicant id. Direct and Adzuna notes use native enrich.\nOther notes use the Workable note writer. Note-only rewrites the CRM\nnote from the evaluation already stored. Does not create a CRM contact\nand does not download a source link.","operationId":"rerun_applicant_resume_summary_admin_applicants__applicant_id__resume_summary_post","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoredResumeSummaryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/applicants/{applicant_id}/crm-notes":{"get":{"tags":["admin"],"summary":"Get Applicant Crm Notes","description":"List notes on the applicant's existing CRM contact.\n\nRead only. Token refresh uses the location's sub-account or company\nconnection. The body is a 200-character preview. Tokens are not returned.","operationId":"get_applicant_crm_notes_admin_applicants__applicant_id__crm_notes_get","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmNotesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/operations/provider-effects":{"get":{"tags":["admin"],"summary":"List Provider Effects","operationId":"list_provider_effects_admin_operations_provider_effects_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"reconciliation_required","title":"Status"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/operations/provider-effects/{effect_id}/resolve":{"post":{"tags":["admin"],"summary":"Resolve Provider Effect","operationId":"resolve_provider_effect_admin_operations_provider_effects__effect_id__resolve_post","parameters":[{"name":"effect_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Effect Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderEffectResolution"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}":{"get":{"tags":["admin"],"summary":"Get Company By Id","description":"Get a single company by ID for super admin context switching.","operationId":"get_company_by_id_admin_companies__company_id__get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin"],"summary":"Update Company","description":"Update org metadata — name, slug, office link, industry.","operationId":"update_company_admin_companies__company_id__patch","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Company","description":"Delete an organization.\n\nRefuses by default if the company has jobs, applicants, or members to\nprevent accidental data loss. Pass `?force=true` to delete anyway; the\nforeign-key cascades handle the rest.","operationId":"delete_company_admin_companies__company_id__delete","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies":{"get":{"tags":["admin"],"summary":"List All Companies","description":"List every company in the system with aggregate counts.\n\nPulls 4 queries (companies + jobs count + applicants count + members count)\nand zips them client-side. Fine at MVP scale (~25 rows); revisit with a\nmaterialized view if the number of companies grows past ~1000.","operationId":"list_all_companies_admin_companies_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanySummary"},"title":"Response List All Companies Admin Companies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Company","description":"Create a brand-new organization (super admin only).\n\nUsed when a company doesn't already exist in `companies` — e.g. a new\nclient isn't a GHL sub-account but still needs a tenant. GHL-linked\noffices are auto-seeded by the restructure migration; this is the\nmanual escape hatch.","operationId":"create_company_admin_companies_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/members":{"get":{"tags":["admin"],"summary":"List Company Members For Admin","description":"List one company's members with auditable identity and access details.","operationId":"list_company_members_for_admin_admin_companies__company_id__members_get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminCompanyMember"},"title":"Response List Company Members For Admin Admin Companies  Company Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/invitations":{"get":{"tags":["admin"],"summary":"List Company Invitations For Admin","description":"List pending invitations that do not grant workspace access yet.","operationId":"list_company_invitations_for_admin_admin_companies__company_id__invitations_get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminCompanyInvitation"},"title":"Response List Company Invitations For Admin Admin Companies  Company Id  Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/invitations/{invitation_id}":{"delete":{"tags":["admin"],"summary":"Revoke Company Invitation For Admin","operationId":"revoke_company_invitation_for_admin_admin_companies__company_id__invitations__invitation_id__delete","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/diagnostics/workable/jobs/{job_shortcode}":{"get":{"tags":["admin"],"summary":"Get Workable Job Mapping Snapshot","description":"Return a sanitized cached Workable job snapshot for mapping review.","operationId":"get_workable_job_mapping_snapshot_admin_diagnostics_workable_jobs__job_shortcode__get","parameters":[{"name":"job_shortcode","in":"path","required":true,"schema":{"type":"string","title":"Job Shortcode"}},{"name":"workable_subdomain","in":"query","required":false,"schema":{"type":"string","default":"ues-careers","title":"Workable Subdomain"}},{"name":"fetch_live","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fetch Live"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/diagnostics/ghl/custom-fields/{location_id}":{"get":{"tags":["admin"],"summary":"Get Ghl Custom Fields Mapping Snapshot","description":"Return GHL custom-field definitions and resolved field IDs.","operationId":"get_ghl_custom_fields_mapping_snapshot_admin_diagnostics_ghl_custom_fields__location_id__get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"refresh_cache","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh Cache"}},{"name":"include_raw","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Raw"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/diagnostics/ghl/preflight/{location_id}":{"get":{"tags":["admin"],"summary":"Get Ghl Mapping Preflight","description":"Validate required GHL custom fields for a location before onboarding.","operationId":"get_ghl_mapping_preflight_admin_diagnostics_ghl_preflight__location_id__get","parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}},{"name":"refresh_cache","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh Cache"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ghl-subaccounts/activate":{"post":{"tags":["admin"],"summary":"Activate Ghl Subaccount","description":"Activate a GHL location for Workable routing and v3 account mapping.","operationId":"activate_ghl_subaccount_admin_ghl_subaccounts_activate_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlSubaccountActivationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlSubaccountActivationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/verification":{"post":{"tags":["admin"],"summary":"Review Company Verification","description":"Approve, reject, or flag a self-serve company verification request.","operationId":"review_company_verification_admin_companies__company_id__verification_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyVerificationReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/plan":{"post":{"tags":["admin"],"summary":"Update Company Plan","description":"Admin override for company plan/subscription state.","operationId":"update_company_plan_admin_companies__company_id__plan_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPlanUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/indeed-eligibility":{"post":{"tags":["admin"],"summary":"Update Company Indeed Eligibility","description":"Admin control for allowing a company into the Indeed ATS feed.\n\nPlan tier alone is not enough for Indeed readiness. Admins review the\ncompany identity and enable feed export for native Catalist jobs. Legacy\nprovider-linked jobs retain their separate transition safeguards.","operationId":"update_company_indeed_eligibility_admin_companies__company_id__indeed_eligibility_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyIndeedEligibilityUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/companies/{company_id}/invite":{"post":{"tags":["admin"],"summary":"Invite User To Company","description":"Email a pending invitation to any company.","operationId":"invite_user_to_company_admin_companies__company_id__invite_post","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Get Auth Context","description":"Return the authenticated user's profile and authorization context.\n\nThis keeps profile, agency membership, and super-admin checks behind the\nbackend service-role client instead of requiring browser-side table reads.","operationId":"get_auth_context_auth_me_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/profile":{"patch":{"tags":["auth"],"summary":"Update Auth Profile","description":"Update the authenticated user's recruiter profile.","operationId":"update_auth_profile_auth_profile_patch","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthProfileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthProfile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["auth"],"summary":"Soft Delete Auth Profile","description":"Soft-delete the authenticated user's profile display information.","operationId":"soft_delete_auth_profile_auth_profile_delete","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthProfile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agency/me":{"get":{"tags":["agency"],"summary":"Get Current Agency","description":"Return the first legacy agency associated with the authenticated user.","operationId":"get_current_agency_agency_me_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencyDetails"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agency"],"summary":"Update Current Agency","description":"Update safe display fields for the user's legacy agency.","operationId":"update_current_agency_agency_me_patch","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencyUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencyDetails"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agency/me/logo":{"post":{"tags":["agency"],"summary":"Upload Current Agency Logo","description":"Upload and persist the authenticated user's legacy agency logo.","operationId":"upload_current_agency_logo_agency_me_logo_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_current_agency_logo_agency_me_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencyLogoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["agency"],"summary":"Remove Current Agency Logo","description":"Remove the authenticated user's legacy agency logo.","operationId":"remove_current_agency_logo_agency_me_logo_delete","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencyLogoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/product-events":{"post":{"tags":["analytics"],"summary":"Record Product Event","description":"Record company-scoped workflow telemetry without candidate or user PII.\n\nDisallowed metadata is omitted. The event itself is still stored.","operationId":"record_product_event_analytics_product_events_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEventCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/dashboard":{"get":{"tags":["analytics"],"summary":"Get Dashboard Analytics","operationId":"get_dashboard_analytics_analytics_dashboard_get","parameters":[{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created To"}},{"name":"reporting_timezone","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"UTC","title":"Reporting Timezone"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/reports/custom":{"post":{"tags":["analytics"],"summary":"Build Custom Analytics Report","operationId":"build_custom_analytics_report_analytics_reports_custom_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomAnalyticsReportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomAnalyticsReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/posting-performance":{"get":{"tags":["analytics"],"summary":"Get Posting Performance","operationId":"get_posting_performance_analytics_posting_performance_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":7,"default":30,"title":"Days"}},{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostingPerformanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/reports/custom/export":{"post":{"tags":["analytics"],"summary":"Export Custom Analytics Report","operationId":"export_custom_analytics_report_analytics_reports_custom_export_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomAnalyticsExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analytics/export":{"get":{"tags":["analytics"],"summary":"Export Analytics Report","operationId":"export_analytics_report_analytics_export_get","parameters":[{"name":"report_type","in":"query","required":false,"schema":{"type":"string","pattern":"^(summary|candidates|jobs)$","default":"summary","title":"Report Type"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created To"}},{"name":"reporting_timezone","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"UTC","title":"Reporting Timezone"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/readiness":{"get":{"tags":["admin","indeed"],"summary":"Get Indeed Partner Readiness","operationId":"get_indeed_partner_readiness_admin_indeed_readiness_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndeedReadinessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/job-sync/status":{"get":{"tags":["admin","indeed"],"summary":"Get Job Sync Status","operationId":"get_job_sync_status_admin_indeed_job_sync_status_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/job-sync/dry-run":{"post":{"tags":["admin","indeed"],"summary":"Dry Run Job Sync","operationId":"dry_run_job_sync_admin_indeed_job_sync_dry_run_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSyncDryRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/job-sync/process":{"post":{"tags":["admin","indeed"],"summary":"Process Job Sync","operationId":"process_job_sync_admin_indeed_job_sync_process_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSyncProcessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/job-sync/expire":{"post":{"tags":["admin","indeed"],"summary":"Expire Job Sync Postings","operationId":"expire_job_sync_postings_admin_indeed_job_sync_expire_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSyncExpirationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/dispositions/pending":{"get":{"tags":["admin","indeed"],"summary":"Get Pending Dispositions","operationId":"get_pending_dispositions_admin_indeed_dispositions_pending_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"include_failed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Failed"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DispositionSyncEvent"},"title":"Response Get Pending Dispositions Admin Indeed Dispositions Pending Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/dispositions/health":{"get":{"tags":["admin","indeed"],"summary":"Get Disposition Sync Health","operationId":"get_disposition_sync_health_admin_indeed_dispositions_health_get","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":5000,"title":"Limit"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DispositionSyncHealth"},"title":"Response Get Disposition Sync Health Admin Indeed Dispositions Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/dispositions/process":{"post":{"tags":["admin","indeed"],"summary":"Process Pending Dispositions","operationId":"process_pending_dispositions_admin_indeed_dispositions_process_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispositionProcessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/indeed/dispositions/{applicant_id}/sync-result":{"post":{"tags":["admin","indeed"],"summary":"Record Disposition Sync Result","operationId":"record_disposition_sync_result_admin_indeed_dispositions__applicant_id__sync_result_post","parameters":[{"name":"applicant_id","in":"path","required":true,"schema":{"type":"string","title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DispositionSyncResult"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/status":{"get":{"tags":["ghl-settings"],"summary":"Get Ghl Status","description":"Get GHL connection status for the current company.","operationId":"get_ghl_status_company_ghl_status_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/connect":{"post":{"tags":["ghl-settings"],"summary":"Connect Ghl","description":"Connect GHL for the current company (owner/admin only).","operationId":"connect_ghl_company_ghl_connect_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/disconnect":{"post":{"tags":["ghl-settings"],"summary":"Disconnect Ghl","description":"Disconnect GHL for the current company (owner/admin only).","operationId":"disconnect_ghl_company_ghl_disconnect_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/retry-failed":{"post":{"tags":["ghl-settings"],"summary":"Retry Failed Syncs","description":"Re-enqueue all failed sync applicants for the current company.","operationId":"retry_failed_syncs_company_ghl_retry_failed_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/connections":{"get":{"tags":["ghl-settings"],"summary":"List Ghl Connections","description":"List native GHL subaccount connections for the job dropdown and Settings.","operationId":"list_ghl_connections_company_ghl_connections_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlConnectionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/oauth/start":{"get":{"tags":["ghl-settings"],"summary":"Start Ghl Oauth","description":"Start Marketplace OAuth for one GHL subaccount (Connect or Reconnect).","operationId":"start_ghl_oauth_company_ghl_oauth_start_get","parameters":[{"name":"connection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlOAuthStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/oauth/callback":{"get":{"tags":["ghl-settings"],"summary":"Tenant Ghl Oauth Callback","description":"Optional dedicated tenant callback; production Connect uses /callback.","operationId":"tenant_ghl_oauth_callback_company_ghl_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/oauth/pending-locations":{"get":{"tags":["ghl-settings"],"summary":"List Pending Ghl Locations","description":"List Marketplace-installed offices after Company OAuth so Catalist can pick one.","operationId":"list_pending_ghl_locations_company_ghl_oauth_pending_locations_get","parameters":[{"name":"pending_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Pending Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlPendingLocationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/oauth/attach-location":{"post":{"tags":["ghl-settings"],"summary":"Attach Pending Ghl Location","description":"Mint one location token into company_ghl_connections. Duplicate location is a no-op.","operationId":"attach_pending_ghl_location_company_ghl_oauth_attach_location_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhlAttachLocationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/ghl/connections/{connection_id}/disconnect":{"post":{"tags":["ghl-settings"],"summary":"Disconnect Ghl Connection","description":"Remove one office from Catalist. Does not uninstall the Marketplace app.","operationId":"disconnect_ghl_connection_company_ghl_connections__connection_id__disconnect_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/workable/status":{"get":{"tags":["workable-settings"],"summary":"Get Workable Status","description":"Get Workable routing status for the current company.","operationId":"get_workable_status_company_workable_status_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkableStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/workable/job-mappings":{"get":{"tags":["workable-settings"],"summary":"List Workable Job Mappings","description":"List Workable job mappings for the current company.","operationId":"list_workable_job_mappings_company_workable_job_mappings_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkableJobMapping"},"title":"Response List Workable Job Mappings Company Workable Job Mappings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workable-settings"],"summary":"Upsert Workable Job Mapping","description":"Map a Catalist job to a Workable job during migration.","operationId":"upsert_workable_job_mapping_company_workable_job_mappings_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkableJobMappingRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkableJobMapping"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/workable/unresolved-events":{"get":{"tags":["workable-settings"],"summary":"List Workable Unresolved Events","description":"List open Workable webhook events that need a job mapping.","operationId":"list_workable_unresolved_events_company_workable_unresolved_events_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkableUnresolvedEvent"},"title":"Response List Workable Unresolved Events Company Workable Unresolved Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/workable/disconnect":{"post":{"tags":["workable-settings"],"summary":"Disconnect Workable","description":"Disconnect Workable routing for the current company.","operationId":"disconnect_workable_company_workable_disconnect_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/workable/unresolved-events/{event_id}/resolve":{"post":{"tags":["workable-settings"],"summary":"Resolve Workable Unresolved Event","description":"Mark a Workable unresolved event resolved against a company-owned ATS job.","operationId":"resolve_workable_unresolved_event_company_workable_unresolved_events__event_id__resolve_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveWorkableEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkableUnresolvedEvent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/company/workable/unresolved-events/{event_id}/replay":{"post":{"tags":["workable-settings"],"summary":"Replay Workable Unresolved Event","description":"Replay an unresolved Workable event after mapping it to a company-owned ATS job.","operationId":"replay_workable_unresolved_event_company_workable_unresolved_events__event_id__replay_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveWorkableEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkableReplayResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/availability":{"get":{"tags":["interviews"],"summary":"Get Booking Slots","operationId":"get_booking_slots_interviews_availability_get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["available","booked","blocked","cancelled"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BookingSlotResponse"},"title":"Response Get Booking Slots Interviews Availability Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interviews"],"summary":"Add Booking Slot","operationId":"add_booking_slot_interviews_availability_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingSlotCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingSlotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/availability/bulk":{"post":{"tags":["interviews"],"summary":"Add Booking Slots","operationId":"add_booking_slots_interviews_availability_bulk_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BookingSlotCreateRequest"},"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BookingSlotResponse"},"title":"Response Add Booking Slots Interviews Availability Bulk Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/availability/{slot_id}":{"delete":{"tags":["interviews"],"summary":"Remove Booking Slot","operationId":"remove_booking_slot_interviews_availability__slot_id__delete","parameters":[{"name":"slot_id","in":"path","required":true,"schema":{"type":"string","title":"Slot Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/booking-links":{"get":{"tags":["interviews"],"summary":"Get Booking Links","operationId":"get_booking_links_interviews_booking_links_get","parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"}},{"name":"applicant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BookingLinkResponse"},"title":"Response Get Booking Links Interviews Booking Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interviews"],"summary":"Add Booking Link","operationId":"add_booking_link_interviews_booking_links_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingLinkCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/booking-links/{link_id}":{"patch":{"tags":["interviews"],"summary":"Disable Booking Link","operationId":"disable_booking_link_interviews_booking_links__link_id__patch","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/public-booking-links/{slug}":{"get":{"tags":["interviews"],"summary":"Get Public Booking Link Details","operationId":"get_public_booking_link_details_interviews_public_booking_links__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/public-booking-links/{link_id}/slots":{"get":{"tags":["interviews"],"summary":"Get Public Booking Link Slots","operationId":"get_public_booking_link_slots_interviews_public_booking_links__link_id__slots_get","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicBookingSlotResponse"},"title":"Response Get Public Booking Link Slots Interviews Public Booking Links  Link Id  Slots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/":{"get":{"tags":["interviews"],"summary":"Get Interviews","operationId":"get_interviews_interviews__get","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Date"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["scheduled","confirmed","cancelled","completed","no_show"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterviewResponse"},"title":"Response Get Interviews Interviews  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interviews"],"summary":"Create Interview","operationId":"create_interview_interviews__post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/{booking_id}":{"get":{"tags":["interviews"],"summary":"Get Interview Booking","operationId":"get_interview_booking_interviews__booking_id__get","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["interviews"],"summary":"Update Interview Booking","operationId":"update_interview_booking_interviews__booking_id__patch","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/interviews/public-bookings":{"post":{"tags":["interviews"],"summary":"Create Public Booking","operationId":"create_public_booking_interviews_public_bookings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","description":"Return the current recruiter's company notification feed.","operationId":"list_notifications_notifications_get","parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"notification_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Notification Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Get Notification Unread Count","description":"Return unread in-app notification count for sidebar/user chrome badges.","operationId":"get_notification_unread_count_notifications_unread_count_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/{notification_id}/read":{"patch":{"tags":["notifications"],"summary":"Mark Notification Read","description":"Mark one notification as read for the current company context.","operationId":"mark_notification_read_notifications__notification_id__read_patch","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/mark-all-read":{"post":{"tags":["notifications"],"summary":"Mark All Notifications Read","description":"Mark all unread notifications visible to this recruiter as read.","operationId":"mark_all_notifications_read_notifications_mark_all_read_post","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/audit-logs":{"get":{"tags":["audit-logs"],"summary":"List Audit Logs","description":"Return immutable account/admin audit logs visible to this tenant.","operationId":"list_audit_logs_audit_logs_get","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Action"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Entity Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/job-drafts/current":{"get":{"tags":["job-drafts"],"summary":"Get Current Draft","operationId":"get_current_draft_ats_job_drafts_current_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["job-drafts"],"summary":"Save Current Draft","operationId":"save_current_draft_ats_job_drafts_current_put","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobWizardDraftWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["job-drafts"],"summary":"Delete Current Draft","operationId":"delete_current_draft_ats_job_drafts_current_delete","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/analyze":{"post":{"tags":["job-optimizer"],"summary":"Analyze Job Ad","description":"Scrape competitor listings for the job's title + location, extract high-value\nkeywords, and return a Gemini analysis of what makes top-ranking ads succeed.","operationId":"analyze_job_ad_ats_jobs__job_id__optimizer_analyze_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/rewrite":{"post":{"tags":["job-optimizer"],"summary":"Rewrite Job Ad","description":"Rewrite the job description using keywords from the latest analysis.\n\n- `apply: true` → save optimized description back to the job record\n- `keywords` → override keyword list (default: use latest analysis)\n- Without `apply` this is a dry-run preview only","operationId":"rewrite_job_ad_ats_jobs__job_id__optimizer_rewrite_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/history":{"get":{"tags":["job-optimizer"],"summary":"Get Optimizer History","description":"Return all past optimizer runs (analyses + rewrites) newest-first.","operationId":"get_optimizer_history_ats_jobs__job_id__optimizer_history_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/versions":{"get":{"tags":["job-optimizer"],"summary":"List Versions","description":"List all saved versions for a job (draft → approved → posted).","operationId":"list_versions_ats_jobs__job_id__optimizer_versions_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["job-optimizer"],"summary":"Create Version","description":"Save a recruiter-reviewed version of the job ad.\nVersion is created in 'draft' status — call PATCH to approve or mark posted.","operationId":"create_version_ats_jobs__job_id__optimizer_versions_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveVersionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/versions/{version_id}":{"patch":{"tags":["job-optimizer"],"summary":"Update Version","description":"Update a version's status.\n- `status: \"approved\"` → marks ready to post\n- `status: \"posted\"` → marks as live (use after publishing via Workable)\n- `status: \"archived\"` → retire a version","operationId":"update_version_ats_jobs__job_id__optimizer_versions__version_id__patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVersionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/versions/{version_id}/publish":{"post":{"tags":["job-optimizer"],"summary":"Publish Version","description":"Push an approved version's optimized description to Workable for legacy customers.\n\nVersion must be in `approved` or `draft` status. On success, marks the version\nas `posted`. Companies confirmed as using Catalist as the ATS system of record\nare blocked from this legacy publish path.","operationId":"publish_version_ats_jobs__job_id__optimizer_versions__version_id__publish_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/analytics":{"get":{"tags":["job-optimizer"],"summary":"Get Job Analytics","description":"Return version summary and optimization history for a job.","operationId":"get_job_analytics_ats_jobs__job_id__optimizer_analytics_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/jobs/{job_id}/optimizer/settings":{"patch":{"tags":["job-optimizer"],"summary":"Update Job Optimizer Settings","description":"Enable or disable the optimizer for a job.\n\n- `optimizer_enabled: true` → optimizer features active for this job\n- `optimizer_enabled: false` → optimizer disabled\n- `optimizer_notify_email` → who gets notified when new versions are generated","operationId":"update_job_optimizer_settings_ats_jobs__job_id__optimizer_settings_patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizerSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/feeds/adzuna.xml":{"get":{"tags":["Job Feeds"],"summary":"Adzuna Feed","description":"Adzuna XML job feed.\n\nSubmit this URL through Adzuna's ATS integration form.\nAdzuna crawls once per day and lists your open jobs for free.","operationId":"adzuna_feed_feeds_adzuna_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/jooble.xml":{"get":{"tags":["Job Feeds"],"summary":"Jooble Feed","description":"Jooble XML job feed.\n\nRegister this URL at https://jooble.org/affiliate\nJooble crawls once per day and lists your open jobs for free.","operationId":"jooble_feed_feeds_jooble_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/talent.xml":{"get":{"tags":["Job Feeds"],"summary":"Talent Feed","description":"Talent.com ATS XML feed.","operationId":"talent_feed_feeds_talent_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/jora.xml":{"get":{"tags":["Job Feeds"],"summary":"Jora Feed","description":"Jora XML job feed.","operationId":"jora_feed_feeds_jora_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/careerjet.xml":{"get":{"tags":["Job Feeds"],"summary":"Careerjet Feed","description":"Careerjet redirect XML job feed.","operationId":"careerjet_feed_feeds_careerjet_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/ziprecruiter.xml":{"get":{"tags":["Job Feeds"],"summary":"Ziprecruiter Feed","description":"ZipRecruiter XML job feed.\n\nRegister this URL at https://www.ziprecruiter.com/employers/xml-job-feed\nZipRecruiter crawls once per day and lists your open jobs for free.","operationId":"ziprecruiter_feed_feeds_ziprecruiter_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/snagajob.xml":{"get":{"tags":["Job Feeds"],"summary":"Snagajob Feed","description":"Snag a Job XML feed. Best for hourly/shift-work roles.\n\nRegister this URL at https://www.snagajob.com/employers/\nSnag a Job crawls once per day and lists your open jobs for free.","operationId":"snagajob_feed_feeds_snagajob_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/indeed.xml":{"get":{"tags":["Job Feeds"],"summary":"Indeed Feed","description":"Indeed ATS multisource XML feed.\n\nExported jobs are limited to verified companies on active premium or\nenterprise plans, matching Indeed's paid/verified client requirements.","operationId":"indeed_feed_feeds_indeed_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/indeed-staffing.xml":{"get":{"tags":["Job Feeds"],"summary":"Indeed Staffing Feed","description":"Indeed ATS XML feed segment for staffing and recruitment clients.\n\nIndeed requires staffing/recruitment content to be segmented into separate\nXML files from standard employer career content.","operationId":"indeed_staffing_feed_feeds_indeed_staffing_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/feeds/status":{"get":{"tags":["Job Feeds"],"summary":"Feeds Status","description":"Feed health check — returns open job count and registration URLs for each board.\nScoped to tenant when accessed via custom domain.","operationId":"feeds_status_feeds_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ats/job-boards":{"get":{"tags":["job boards"],"summary":"List Company Job Boards","operationId":"list_company_job_boards_ats_job_boards_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/job-boards/jobs/{job_id}/distribution":{"get":{"tags":["job boards"],"summary":"Get Job Distribution","description":"Return source-of-truth distribution visibility for one authorized job.","operationId":"get_job_distribution_ats_job_boards_jobs__job_id__distribution_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/job-boards/jobs/{job_id}/distribution/{board_key}":{"put":{"tags":["job boards"],"summary":"Update Job Distribution Preference","description":"Pause or resume one distribution channel without closing the job.","operationId":"update_job_distribution_preference_ats_job_boards_jobs__job_id__distribution__board_key__put","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"board_key","in":"path","required":true,"schema":{"type":"string","title":"Board Key"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobBoardPreferenceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/job-boards/providers/{board_key}":{"put":{"tags":["job boards"],"summary":"Update Job Board Provider","description":"Manage the one shared provider connection for an XML feed.","operationId":"update_job_board_provider_ats_job_boards_providers__board_key__put","parameters":[{"name":"board_key","in":"path","required":true,"schema":{"type":"string","title":"Board Key"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobBoardProviderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/job-boards/{board_key}/preference":{"put":{"tags":["job boards"],"summary":"Update Company Job Board Preference","description":"Opt a company out of, or back into, an admin-activated destination.","operationId":"update_company_job_board_preference_ats_job_boards__board_key__preference_put","parameters":[{"name":"board_key","in":"path","required":true,"schema":{"type":"string","title":"Board Key"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobBoardPreferenceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ats/job-boards/{board_key}":{"put":{"tags":["job boards"],"summary":"Update Company Job Board","operationId":"update_company_job_board_ats_job_boards__board_key__put","parameters":[{"name":"board_key","in":"path","required":true,"schema":{"type":"string","title":"Board Key"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobBoardConnectionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/invitations/{token}/status":{"get":{"tags":["invitations"],"summary":"Invitation Status","description":"Recover a consumed invitation without granting or recreating access.","operationId":"invitation_status_invitations__token__status_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/invitations/{token}":{"get":{"tags":["invitations"],"summary":"Preview Invitation","operationId":"preview_invitation_invitations__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/invitations/{token}/accept":{"post":{"tags":["invitations"],"summary":"Accept Invitation","operationId":"accept_invitation_invitations__token__accept_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationAcceptance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/workable-ghl/locations":{"get":{"tags":["platform admin"],"summary":"List Workable Ghl Locations","description":"List the agency subaccounts used by legacy Workable routing.","operationId":"list_workable_ghl_locations_platform_admin_workable_ghl_locations_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/job-feeds":{"get":{"tags":["platform admin"],"summary":"List Platform Job Feeds","description":"Return masked platform publisher setup for the launch boards.","operationId":"list_platform_job_feeds_platform_admin_job_feeds_get","parameters":[{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/platform-admin/job-feeds/{board_key}":{"patch":{"tags":["platform admin"],"summary":"Update Platform Job Feed","description":"Update shared publisher lifecycle state without accepting secret values.","operationId":"update_platform_job_feed_platform_admin_job_feeds__board_key__patch","parameters":[{"name":"board_key","in":"path","required":true,"schema":{"type":"string","title":"Board Key"}},{"name":"X-Company-Context","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Company-Context"}},{"name":"authorization","in":"header","required":true,"schema":{"type":"string","description":"Bearer token from Supabase Auth","title":"Authorization"},"description":"Bearer token from Supabase Auth"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformJobFeedUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AIContentRevision":{"properties":{"instruction":{"type":"string","maxLength":1000,"title":"Instruction"},"content":{"type":"string","maxLength":50000,"title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["instruction","content","created_at"],"title":"AIContentRevision"},"AdminCompanyInvitation":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"},"expires_at":{"type":"string","title":"Expires At"},"created_at":{"type":"string","title":"Created At"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"added_by":{"anyOf":[{"$ref":"#/components/schemas/AdminMemberIdentity"},{"type":"null"}]}},"type":"object","required":["id","company_id","email","role","status","expires_at","created_at"],"title":"AdminCompanyInvitation"},"AdminCompanyMember":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","title":"Role"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"status":{"type":"string","title":"Status"},"email_confirmed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Confirmed At"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"added_by":{"anyOf":[{"$ref":"#/components/schemas/AdminMemberIdentity"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["id","company_id","user_id","role","status","permissions"],"title":"AdminCompanyMember"},"AdminMemberIdentity":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["user_id"],"title":"AdminMemberIdentity"},"AgencyDetails":{"properties":{"internal_id":{"type":"string","title":"Internal Id"},"agency_id":{"type":"string","title":"Agency Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["internal_id","agency_id"],"title":"AgencyDetails"},"AgencyLogoResponse":{"properties":{"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"}},"type":"object","title":"AgencyLogoResponse"},"AgencyUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","title":"AgencyUpdateRequest"},"AnalyticsBreakdownItem":{"properties":{"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["label","count"],"title":"AnalyticsBreakdownItem"},"Applicant":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"address1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address1"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Detail"},"source_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Medium"},"source_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Campaign"},"source_referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Referrer"},"source_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Metadata"},"external_application_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Application Id"},"indeed_apply_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indeed Apply Id"},"ghl_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Location Id"},"ghl_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Contact Id","description":"GHL contact ID where contact was successfully created"},"ghl_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Status","description":"Status of GHL contact creation","default":"pending"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Applicant status in the pipeline","default":"Applied"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"job_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Uuid"},"job_ad_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Ad Title"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"disposition_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Reason"},"disposition_changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disposition Changed At"},"disposition_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Sync Status"},"disposition_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disposition Synced At"},"disposition_sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Sync Error"},"disposition_sync_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Sync Provider"},"disposition_sync_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Sync External Id"},"routing_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Method"},"primary_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Location Id"},"primary_location_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Location Status"},"fallback_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Location Id"},"fallback_location_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Location Status"},"resume_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Uuid"},"resume_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Url"},"cover_letter_file_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Letter File Name"},"additional_attachments":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Additional Attachments"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"resume_evaluation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Evaluation Id"},"ai_overall_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ai Overall Score"},"ai_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Summary"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"screener_answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Screener Answers"},"unread":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unread","default":true},"talent_pool_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Talent Pool Opt In","default":false},"talent_pool_consented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Talent Pool Consented At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","title":"Applicant","description":"Model for applicant data stored in Supabase"},"ApplicantBulkAction":{"properties":{"applicant_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Applicant Ids"},"action":{"type":"string","enum":["move_stage","hire","reject"],"title":"Action"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"disposition_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Reason"}},"additionalProperties":false,"type":"object","required":["applicant_ids","action"],"title":"ApplicantBulkAction","description":"Model for applying one pipeline action to multiple applicants."},"ApplicantBulkImport":{"properties":{"applicants":{"items":{"$ref":"#/components/schemas/ApplicantCreate"},"type":"array","maxItems":100,"minItems":1,"title":"Applicants"},"operation_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Operation Key"},"duplicate_policy":{"type":"string","enum":["skip","new_application"],"title":"Duplicate Policy","default":"skip"},"preview":{"type":"boolean","title":"Preview","default":false}},"additionalProperties":false,"type":"object","required":["applicants"],"title":"ApplicantBulkImport","description":"Model for importing multiple applicants in one request."},"ApplicantBulkImportResponse":{"properties":{"imported":{"type":"integer","title":"Imported"},"applicants":{"items":{"$ref":"#/components/schemas/ApplicantBulkImportResult"},"type":"array","title":"Applicants"},"skipped":{"type":"integer","title":"Skipped","default":0},"errors":{"type":"integer","title":"Errors","default":0},"ready":{"type":"integer","title":"Ready","default":0},"operation_key":{"type":"string","title":"Operation Key","default":""},"replayed":{"type":"boolean","title":"Replayed","default":false},"preview":{"type":"boolean","title":"Preview","default":false}},"type":"object","required":["imported","applicants"],"title":"ApplicantBulkImportResponse"},"ApplicantBulkImportResult":{"properties":{"row":{"type":"integer","title":"Row"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"status":{"type":"string","enum":["imported","skipped","ready"],"title":"Status","default":"imported"}},"type":"object","required":["row","email"],"title":"ApplicantBulkImportResult"},"ApplicantCreate":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"address1":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Address1"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Postal Code"},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Timezone"},"source":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Source Detail"},"source_medium":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Source Medium"},"source_campaign":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Source Campaign"},"source_referrer":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Source Referrer"},"external_application_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"External Application Id"},"indeed_apply_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Indeed Apply Id"},"ghl_location_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Location Id"},"job_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"},"stage_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Stage Id"},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Status","default":"Applied"},"type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Type"},"source_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Metadata"},"talent_pool_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Talent Pool Opt In","default":false},"resume_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Uuid"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"}},"additionalProperties":false,"type":"object","required":["email"],"title":"ApplicantCreate","description":"Model for creating a new applicant"},"ApplicantGhlBulkSync":{"properties":{"applicant_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Applicant Ids"},"ghl_connection_id":{"type":"string","minLength":1,"title":"Ghl Connection Id"},"overwrite":{"type":"boolean","title":"Overwrite","default":false}},"additionalProperties":false,"type":"object","required":["applicant_ids","ghl_connection_id"],"title":"ApplicantGhlBulkSync","description":"Selected candidates to send to one office for this send only."},"ApplicantGhlRetry":{"properties":{"overwrite":{"type":"boolean","title":"Overwrite","default":false},"ghl_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Connection Id"}},"additionalProperties":false,"type":"object","title":"ApplicantGhlRetry","description":"Intentional resend. overwrite stays false until the recruiter confirms."},"ApplicantStageMove":{"properties":{"stage_id":{"type":"string","minLength":1,"title":"Stage Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"additionalProperties":false,"type":"object","required":["stage_id"],"title":"ApplicantStageMove","description":"Model for moving an applicant through the ATS pipeline."},"ApplicantUpdate":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Email"},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"address1":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Address1"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Postal Code"},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Timezone"},"source":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Source Detail"},"source_medium":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Source Medium"},"source_campaign":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Source Campaign"},"source_referrer":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Source Referrer"},"external_application_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"External Application Id"},"indeed_apply_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Indeed Apply Id"},"ghl_location_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Location Id"},"job_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"},"stage_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Stage Id"},"status":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Status","default":"Applied"},"type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Type"},"source_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Metadata"},"ghl_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Contact Id"},"ghl_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Status"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"disposition_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Reason"},"disposition_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Sync Status"},"disposition_sync_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Sync Provider"},"disposition_sync_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Sync External Id"},"resume_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Uuid"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"resume_evaluation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Evaluation Id"},"unread":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unread"},"talent_pool_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Talent Pool Opt In"},"talent_pool_consented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Talent Pool Consented At"}},"additionalProperties":false,"type":"object","title":"ApplicantUpdate","description":"Model for updating applicant data"},"ApplicationResponse":{"properties":{"status":{"type":"string","title":"Status","default":"submitted"},"applicant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Id"},"is_duplicate":{"type":"boolean","title":"Is Duplicate","default":false},"message":{"type":"string","title":"Message","default":"Application received successfully"}},"type":"object","title":"ApplicationResponse","description":"Response after application submission."},"ApprovedJobContent":{"properties":{"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"job_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Description"},"responsibilities":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsibilities"},"requirements":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements"},"benefits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benefits"},"preferred_traits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Traits"}},"additionalProperties":false,"type":"object","title":"ApprovedJobContent","description":"Recruiter-approved saved/edited content, never an unapplied AI suggestion."},"AuthAgencyMember":{"properties":{"agency_id":{"type":"string","title":"Agency Id"},"user_id":{"type":"string","title":"User Id"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["agency_id","user_id"],"title":"AuthAgencyMember"},"AuthMeResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"is_super_admin":{"type":"boolean","title":"Is Super Admin","default":false},"profile":{"anyOf":[{"$ref":"#/components/schemas/AuthProfile"},{"type":"null"}]},"agencies":{"items":{"$ref":"#/components/schemas/AuthAgencyMember"},"type":"array","title":"Agencies","default":[]},"company":{"anyOf":[{"$ref":"#/components/schemas/Company"},{"type":"null"}]}},"type":"object","required":["user_id"],"title":"AuthMeResponse"},"AuthProfile":{"properties":{"id":{"type":"string","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id"],"title":"AuthProfile"},"AuthProfileUpdateRequest":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Full Name"},"avatar_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Avatar Url"}},"additionalProperties":false,"type":"object","title":"AuthProfileUpdateRequest"},"AutomationCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"trigger_event":{"type":"string","enum":["application_submitted","questionnaire_completed","status_changed","stage_changed","interview_scheduled","job_opened","job_closed"],"title":"Trigger Event"},"trigger_conditions":{"additionalProperties":true,"type":"object","title":"Trigger Conditions"},"action_type":{"type":"string","const":"send_email","title":"Action Type","default":"send_email"},"recipient_type":{"type":"string","enum":["candidate","recruiter","candidate_and_recruiter"],"title":"Recipient Type","default":"candidate"},"template_subject":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Template Subject"},"template_body":{"type":"string","maxLength":4000,"minLength":1,"title":"Template Body"},"delay_seconds":{"type":"integer","maximum":604800.0,"minimum":0.0,"title":"Delay Seconds","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"job_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Job Id"},"agency_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Agency Id"}},"additionalProperties":false,"type":"object","required":["name","trigger_event","template_body"],"title":"AutomationCreate"},"AutomationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"trigger_event":{"anyOf":[{"type":"string","enum":["application_submitted","questionnaire_completed","status_changed","stage_changed","interview_scheduled","job_opened","job_closed"]},{"type":"null"}],"title":"Trigger Event"},"trigger_conditions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Trigger Conditions"},"action_type":{"anyOf":[{"type":"string","const":"send_email"},{"type":"null"}],"title":"Action Type"},"recipient_type":{"anyOf":[{"type":"string","enum":["candidate","recruiter","candidate_and_recruiter"]},{"type":"null"}],"title":"Recipient Type"},"template_subject":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Template Subject"},"template_body":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Template Body"},"delay_seconds":{"anyOf":[{"type":"integer","maximum":604800.0,"minimum":0.0},{"type":"null"}],"title":"Delay Seconds"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"job_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Job Id"}},"additionalProperties":false,"type":"object","title":"AutomationUpdate"},"BillingCheckoutRequest":{"properties":{"plan_tier":{"type":"string","maxLength":20,"minLength":1,"title":"Plan Tier"}},"additionalProperties":false,"type":"object","required":["plan_tier"],"title":"BillingCheckoutRequest"},"BillingSessionResponse":{"properties":{"url":{"type":"string","title":"Url"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"type":"object","required":["url"],"title":"BillingSessionResponse"},"BillingStatusResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"configured":{"type":"boolean","title":"Configured"},"webhook_configured":{"type":"boolean","title":"Webhook Configured"},"premium_checkout_available":{"type":"boolean","title":"Premium Checkout Available"},"portal_available":{"type":"boolean","title":"Portal Available"},"billing_generation":{"type":"integer","title":"Billing Generation","default":0},"reconciliation_required":{"type":"boolean","title":"Reconciliation Required","default":false}},"type":"object","required":["provider","configured","webhook_configured","premium_checkout_available","portal_available"],"title":"BillingStatusResponse"},"Body_auth_jwt_login_auth_jwt_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","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"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_auth_jwt_login_auth_jwt_login_post"},"Body_extract_job_document_ats_personas_extract_job_document_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_extract_job_document_ats_personas_extract_job_document_post"},"Body_submit_application_api_public_applications__post":{"properties":{"resume":{"type":"string","contentMediaType":"application/octet-stream","title":"Resume"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"job_id":{"type":"string","title":"Job Id"},"organization_slug":{"type":"string","title":"Organization Slug","default":""},"phone":{"type":"string","title":"Phone","default":""},"city":{"type":"string","title":"City","default":""},"state":{"type":"string","title":"State","default":""},"cover_letter":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Cover Letter"},"other_attachments":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Other Attachments","default":[]},"attachment_field_names":{"type":"string","title":"Attachment Field Names","default":""},"linkedin_url":{"type":"string","title":"Linkedin Url","default":""},"work_authorization":{"type":"string","title":"Work Authorization","default":""},"website":{"type":"string","title":"Website","default":""},"screener_answers":{"type":"string","title":"Screener Answers","default":""},"source":{"type":"string","title":"Source","default":""},"source_detail":{"type":"string","title":"Source Detail","default":""},"source_medium":{"type":"string","title":"Source Medium","default":""},"source_campaign":{"type":"string","title":"Source Campaign","default":""},"source_referrer":{"type":"string","title":"Source Referrer","default":""},"external_application_id":{"type":"string","title":"External Application Id","default":""},"indeed_apply_id":{"type":"string","title":"Indeed Apply Id","default":""},"utm_source":{"type":"string","title":"Utm Source","default":""},"utm_medium":{"type":"string","title":"Utm Medium","default":""},"utm_campaign":{"type":"string","title":"Utm Campaign","default":""},"posting_session_id":{"type":"string","title":"Posting Session Id","default":""},"eeo_gender":{"type":"string","title":"Eeo Gender","default":""},"eeo_race_ethnicity":{"type":"string","title":"Eeo Race Ethnicity","default":""},"eeo_veteran_status":{"type":"string","title":"Eeo Veteran Status","default":""},"eeo_disability_status":{"type":"string","title":"Eeo Disability Status","default":""},"talent_pool_opt_in":{"type":"string","title":"Talent Pool Opt In","default":""}},"type":"object","required":["resume","first_name","last_name","email","job_id"],"title":"Body_submit_application_api_public_applications__post"},"Body_upload_company_header_image_company_header_image_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_company_header_image_company_header_image_post"},"Body_upload_company_logo_company_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_company_logo_company_logo_post"},"Body_upload_current_agency_logo_agency_me_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_current_agency_logo_agency_me_logo_post"},"Body_upload_logo_ats_domains_branding_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_logo_ats_domains_branding_logo_post"},"BookingLinkCreateRequest":{"properties":{"job_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"},"applicant_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Applicant Id"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"duration_minutes":{"type":"integer","maximum":480.0,"exclusiveMinimum":0.0,"title":"Duration Minutes","default":30},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type","default":"phone"},"location":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Location"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"max_bookings":{"anyOf":[{"type":"integer","maximum":100.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Max Bookings"},"meeting_provider":{"anyOf":[{"type":"string","enum":["zoom","google_meet"]},{"type":"null"}],"title":"Meeting Provider"}},"additionalProperties":false,"type":"object","title":"BookingLinkCreateRequest"},"BookingLinkResponse":{"properties":{"id":{"type":"string","title":"Id"},"recruiter_id":{"type":"string","title":"Recruiter Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"applicant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"slug":{"type":"string","title":"Slug"},"is_active":{"type":"boolean","title":"Is Active"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Expires At"},"max_bookings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Bookings"},"meeting_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Provider"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","recruiter_id","title","duration_minutes","interview_type","slug","is_active"],"title":"BookingLinkResponse"},"BookingSlotCreateRequest":{"properties":{"job_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"duration_minutes":{"anyOf":[{"type":"integer","maximum":480.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Duration Minutes"},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type","default":"phone"},"location":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Location"},"capacity":{"type":"integer","maximum":100.0,"exclusiveMinimum":0.0,"title":"Capacity","default":1},"timezone":{"type":"string","maxLength":100,"minLength":1,"title":"Timezone","default":"America/New_York"}},"additionalProperties":false,"type":"object","required":["start_time","end_time"],"title":"BookingSlotCreateRequest"},"BookingSlotResponse":{"properties":{"id":{"type":"string","title":"Id"},"recruiter_id":{"type":"string","title":"Recruiter Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"End Time"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"capacity":{"type":"integer","title":"Capacity"},"booked_count":{"type":"integer","title":"Booked Count"},"status":{"type":"string","enum":["available","booked","blocked","cancelled"],"title":"Status"},"timezone":{"type":"string","title":"Timezone"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","recruiter_id","start_time","end_time","duration_minutes","interview_type","capacity","booked_count","status","timezone"],"title":"BookingSlotResponse"},"CallLogCreate":{"properties":{"direction":{"type":"string","enum":["inbound","outbound"],"title":"Direction"},"duration_seconds":{"type":"integer","maximum":86400.0,"minimum":0.0,"title":"Duration Seconds"},"recording_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Recording Url"},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","required":["direction","duration_seconds"],"title":"CallLogCreate"},"Company":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"slug":{"type":"string","title":"Slug"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"careers_header_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Careers Header Image Url"},"careers_header_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Careers Header Html"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"business_address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Address Line1"},"business_address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Address Line2"},"business_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business City"},"business_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business State"},"business_postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Postal Code"},"business_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Country"},"tax_id_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id Last4"},"corporate_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corporate Email"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"verification_status":{"type":"string","title":"Verification Status","default":"pending"},"verification_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Notes"},"verification_submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verification Submitted At"},"verification_reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verification Reviewed At"},"verification_reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Reviewed By"},"plan_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Tier"},"subscription_status":{"type":"string","title":"Subscription Status","default":"none"},"plan_selected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Plan Selected At"},"ats_system_of_record_confirmed":{"type":"boolean","title":"Ats System Of Record Confirmed","default":false},"client_exclusivity_confirmed":{"type":"boolean","title":"Client Exclusivity Confirmed","default":false},"indeed_feed_enabled":{"type":"boolean","title":"Indeed Feed Enabled","default":false},"indeed_feed_review_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indeed Feed Review Notes"},"notification_preferences":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Notification Preferences"},"pipeline_stage_labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Pipeline Stage Labels"},"job_writing_guide":{"$ref":"#/components/schemas/JobWritingGuide"},"job_offices":{"items":{"$ref":"#/components/schemas/JobOffice"},"type":"array","title":"Job Offices"},"job_departments":{"items":{"$ref":"#/components/schemas/JobTaxonomyOption"},"type":"array","title":"Job Departments"},"job_functions":{"items":{"$ref":"#/components/schemas/JobTaxonomyOption"},"type":"array","title":"Job Functions"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","slug","created_at","updated_at"],"title":"Company"},"CompanyCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"industry":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Industry"},"legal_name":{"type":"string","maxLength":200,"minLength":1,"title":"Legal Name"},"website":{"type":"string","maxLength":500,"minLength":1,"title":"Website"},"corporate_email":{"type":"string","maxLength":254,"format":"email","title":"Corporate Email"},"business_phone":{"type":"string","maxLength":50,"minLength":7,"title":"Business Phone"},"business_address_line1":{"type":"string","maxLength":200,"minLength":1,"title":"Business Address Line1"},"business_address_line2":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Business Address Line2"},"business_city":{"type":"string","maxLength":100,"minLength":1,"title":"Business City"},"business_state":{"type":"string","maxLength":100,"minLength":1,"title":"Business State"},"business_postal_code":{"type":"string","maxLength":20,"minLength":1,"title":"Business Postal Code"},"business_country":{"type":"string","maxLength":2,"minLength":2,"pattern":"^[A-Za-z]{2}$","title":"Business Country","default":"US"},"tax_id_last4":{"type":"string","pattern":"^\\d{4}$","title":"Tax Id Last4"}},"additionalProperties":false,"type":"object","required":["name","legal_name","website","corporate_email","business_phone","business_address_line1","business_city","business_state","business_postal_code","tax_id_last4"],"title":"CompanyCreate"},"CompanyCreateRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Slug"},"office_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Office Id"},"ghl_location_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Location Id"},"industry":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Industry"},"verification_status":{"type":"string","maxLength":30,"minLength":1,"title":"Verification Status","default":"pending"},"plan_tier":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Plan Tier"},"legal_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Legal Name"},"corporate_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Corporate Email"},"business_phone":{"anyOf":[{"type":"string","maxLength":50,"minLength":7},{"type":"null"}],"title":"Business Phone"},"business_address_line1":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Business Address Line1"},"business_address_line2":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Business Address Line2"},"business_city":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Business City"},"business_state":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Business State"},"business_postal_code":{"anyOf":[{"type":"string","maxLength":20,"minLength":1},{"type":"null"}],"title":"Business Postal Code"},"business_country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Business Country"},"tax_id_last4":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}],"title":"Tax Id Last4"},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website"},"verification_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Verification Notes"}},"additionalProperties":false,"type":"object","required":["name"],"title":"CompanyCreateRequest"},"CompanyEEOReportResponse":{"properties":{"company_id":{"type":"string","title":"Company Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"total_responses":{"type":"integer","title":"Total Responses"},"consented_responses":{"type":"integer","title":"Consented Responses"},"minimum_reportable_responses":{"type":"integer","title":"Minimum Reportable Responses"},"suppressed":{"type":"boolean","title":"Suppressed"},"gender":{"items":{"$ref":"#/components/schemas/EEOCount"},"type":"array","title":"Gender"},"race_ethnicity":{"items":{"$ref":"#/components/schemas/EEOCount"},"type":"array","title":"Race Ethnicity"},"veteran_status":{"items":{"$ref":"#/components/schemas/EEOCount"},"type":"array","title":"Veteran Status"},"disability_status":{"items":{"$ref":"#/components/schemas/EEOCount"},"type":"array","title":"Disability Status"}},"type":"object","required":["company_id","total_responses","consented_responses","minimum_reportable_responses","suppressed","gender","race_ethnicity","veteran_status","disability_status"],"title":"CompanyEEOReportResponse"},"CompanyHeaderImageResponse":{"properties":{"header_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Image Url"}},"type":"object","title":"CompanyHeaderImageResponse"},"CompanyIndeedEligibilityUpdateRequest":{"properties":{"ats_system_of_record_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ats System Of Record Confirmed"},"client_exclusivity_confirmed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Client Exclusivity Confirmed"},"indeed_feed_enabled":{"type":"boolean","title":"Indeed Feed Enabled","default":false},"indeed_feed_review_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Indeed Feed Review Notes"}},"additionalProperties":false,"type":"object","title":"CompanyIndeedEligibilityUpdateRequest"},"CompanyLogoResponse":{"properties":{"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"}},"type":"object","title":"CompanyLogoResponse"},"CompanyMapResponse":{"properties":{"companies":{"additionalProperties":{"type":"string"},"type":"object","title":"Companies"},"slugs":{"additionalProperties":{"type":"string"},"type":"object","title":"Slugs"},"public_slugs":{"additionalProperties":{"type":"string"},"type":"object","title":"Public Slugs"},"logos":{"additionalProperties":{"type":"string"},"type":"object","title":"Logos"}},"type":"object","required":["companies","slugs","public_slugs","logos"],"title":"CompanyMapResponse"},"CompanyMember":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","title":"Role"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","company_id","user_id","role","created_at"],"title":"CompanyMember"},"CompanyMemberWithProfile":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","title":"Role"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"pending_signup":{"type":"boolean","title":"Pending Signup","default":false}},"type":"object","required":["id","company_id","user_id","role"],"title":"CompanyMemberWithProfile"},"CompanyPlanUpdateRequest":{"properties":{"plan_tier":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Plan Tier"},"subscription_status":{"type":"string","maxLength":30,"minLength":1,"title":"Subscription Status","default":"active"}},"additionalProperties":false,"type":"object","title":"CompanyPlanUpdateRequest"},"CompanySummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"office_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Office Id"},"ghl_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Location Id"},"jobs_count":{"type":"integer","title":"Jobs Count"},"applicants_count":{"type":"integer","title":"Applicants Count"},"members_count":{"type":"integer","title":"Members Count"},"verification_status":{"type":"string","title":"Verification Status","default":"pending"},"verification_submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verification Submitted At"},"plan_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Tier"},"subscription_status":{"type":"string","title":"Subscription Status","default":"none"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"business_address_line1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Address Line1"},"business_address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Address Line2"},"business_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business City"},"business_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business State"},"business_postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Postal Code"},"business_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Country"},"tax_id_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id Last4"},"corporate_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corporate Email"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"verification_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Notes"},"ats_system_of_record_confirmed":{"type":"boolean","title":"Ats System Of Record Confirmed","default":false},"client_exclusivity_confirmed":{"type":"boolean","title":"Client Exclusivity Confirmed","default":false},"indeed_feed_enabled":{"type":"boolean","title":"Indeed Feed Enabled","default":false},"indeed_feed_review_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indeed Feed Review Notes"},"pipeline_stage_labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Pipeline Stage Labels"}},"type":"object","required":["id","name","slug","jobs_count","applicants_count","members_count"],"title":"CompanySummary"},"CompanyUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"industry":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Industry"},"website":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Website"},"legal_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Legal Name"},"corporate_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Corporate Email"},"business_phone":{"anyOf":[{"type":"string","maxLength":50,"minLength":7},{"type":"null"}],"title":"Business Phone"},"business_address_line1":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Business Address Line1"},"business_address_line2":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Business Address Line2"},"business_city":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Business City"},"business_state":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Business State"},"business_postal_code":{"anyOf":[{"type":"string","maxLength":20,"minLength":1},{"type":"null"}],"title":"Business Postal Code"},"business_country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2,"pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Business Country"},"tax_id_last4":{"anyOf":[{"type":"string","pattern":"^\\d{4}$"},{"type":"null"}],"title":"Tax Id Last4"},"notification_preferences":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Notification Preferences"},"pipeline_stage_labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Pipeline Stage Labels"},"job_writing_guide":{"anyOf":[{"$ref":"#/components/schemas/JobWritingGuide"},{"type":"null"}]},"job_offices":{"anyOf":[{"items":{"$ref":"#/components/schemas/JobOffice"},"type":"array","maxItems":50},{"type":"null"}],"title":"Job Offices"},"job_departments":{"anyOf":[{"items":{"$ref":"#/components/schemas/JobTaxonomyOption"},"type":"array","maxItems":100},{"type":"null"}],"title":"Job Departments"},"job_functions":{"anyOf":[{"items":{"$ref":"#/components/schemas/JobTaxonomyOption"},"type":"array","maxItems":100},{"type":"null"}],"title":"Job Functions"},"careers_header_html":{"anyOf":[{"type":"string","maxLength":12000},{"type":"null"}],"title":"Careers Header Html"}},"additionalProperties":false,"type":"object","title":"CompanyUpdate"},"CompanyUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Slug"},"office_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Office Id"},"ghl_location_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Ghl Location Id"},"industry":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Industry"}},"additionalProperties":false,"type":"object","title":"CompanyUpdateRequest"},"CompanyUsageResponse":{"properties":{"plan_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Tier"},"subscription_status":{"type":"string","title":"Subscription Status"},"active_jobs":{"$ref":"#/components/schemas/UsageMetric"},"candidates":{"$ref":"#/components/schemas/UsageMetric"},"team_members":{"$ref":"#/components/schemas/UsageMetric"},"plan_limits":{"additionalProperties":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"null"}]},"type":"object"},"type":"object","title":"Plan Limits"}},"type":"object","required":["subscription_status","active_jobs","candidates","team_members","plan_limits"],"title":"CompanyUsageResponse"},"CompanyVerificationReviewRequest":{"properties":{"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","required":["status"],"title":"CompanyVerificationReviewRequest"},"ConnectionStatus":{"properties":{"provider":{"type":"string","title":"Provider"},"connected":{"type":"boolean","title":"Connected"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["provider","connected"],"title":"ConnectionStatus"},"ConversationCreate":{"properties":{"applicant_id":{"type":"string","maxLength":100,"minLength":1,"title":"Applicant Id"}},"additionalProperties":false,"type":"object","required":["applicant_id"],"title":"ConversationCreate"},"ConversionMetrics":{"properties":{"candidate_to_interview_rate":{"type":"number","title":"Candidate To Interview Rate"},"candidate_to_hire_rate":{"type":"number","title":"Candidate To Hire Rate"},"average_time_to_hire_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Time To Hire Days"}},"type":"object","required":["candidate_to_interview_rate","candidate_to_hire_rate","average_time_to_hire_days"],"title":"ConversionMetrics"},"CreateMeetingRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"duration_minutes":{"type":"integer","maximum":480.0,"minimum":15.0,"title":"Duration Minutes","default":30},"attendee_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Attendee Email"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"timezone":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9_./+-]+$","title":"Timezone","default":"America/New_York"}},"additionalProperties":false,"type":"object","required":["title","start_time"],"title":"CreateMeetingRequest"},"CrmNotePreview":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"body_preview":{"type":"string","maxLength":200,"title":"Body Preview"},"is_marker_note":{"type":"boolean","title":"Is Marker Note"}},"type":"object","required":["body_preview","is_marker_note"],"title":"CrmNotePreview"},"CrmNotesResponse":{"properties":{"applicant_id":{"type":"string","title":"Applicant Id"},"ghl_contact_id":{"type":"string","title":"Ghl Contact Id"},"ghl_location_id":{"type":"string","title":"Ghl Location Id"},"token_source":{"type":"string","title":"Token Source"},"notes":{"items":{"$ref":"#/components/schemas/CrmNotePreview"},"type":"array","title":"Notes"}},"type":"object","required":["applicant_id","ghl_contact_id","ghl_location_id","token_source","notes"],"title":"CrmNotesResponse"},"CustomAnalyticsExportRequest":{"properties":{"dataset":{"type":"string","enum":["candidates","jobs"],"title":"Dataset","default":"candidates"},"group_by":{"type":"string","maxLength":40,"title":"Group By","default":"status"},"filters":{"$ref":"#/components/schemas/CustomReportFilters"},"record_limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Record Limit","default":200},"export_format":{"type":"string","enum":["summary","records"],"title":"Export Format","default":"summary"}},"additionalProperties":false,"type":"object","title":"CustomAnalyticsExportRequest"},"CustomAnalyticsReportRequest":{"properties":{"dataset":{"type":"string","enum":["candidates","jobs"],"title":"Dataset","default":"candidates"},"group_by":{"type":"string","maxLength":40,"title":"Group By","default":"status"},"filters":{"$ref":"#/components/schemas/CustomReportFilters"},"record_limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Record Limit","default":200}},"additionalProperties":false,"type":"object","title":"CustomAnalyticsReportRequest"},"CustomAnalyticsReportResponse":{"properties":{"reporting_timezone":{"type":"string","title":"Reporting Timezone","default":"UTC"},"date_basis":{"type":"string","const":"created_at","title":"Date Basis","default":"created_at"},"dataset":{"type":"string","title":"Dataset"},"group_by":{"type":"string","title":"Group By"},"total":{"type":"integer","title":"Total"},"rows":{"items":{"$ref":"#/components/schemas/CustomReportRow"},"type":"array","title":"Rows"},"records":{"items":{"$ref":"#/components/schemas/CustomReportRecord"},"type":"array","title":"Records"},"records_truncated":{"type":"boolean","title":"Records Truncated"},"record_limit":{"type":"integer","title":"Record Limit"}},"type":"object","required":["dataset","group_by","total","rows","records","records_truncated","record_limit"],"title":"CustomAnalyticsReportResponse"},"CustomDomain":{"properties":{"id":{"type":"string","title":"Id"},"agency_id":{"type":"string","title":"Agency Id","description":"Agency ID for multi-tenant isolation"},"domain":{"type":"string","title":"Domain","description":"Custom domain name"},"verification_token":{"type":"string","title":"Verification Token","description":"DNS TXT verification token"},"verification_status":{"type":"string","enum":["pending","verified","failed"],"title":"Verification Status","default":"pending"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"ssl_status":{"type":"string","enum":["pending","provisioning","active","failed"],"title":"Ssl Status","default":"pending"},"ssl_provisioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ssl Provisioned At"},"ssl_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ssl Expires At"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","agency_id","domain","verification_token","created_at","updated_at"],"title":"CustomDomain","description":"Full custom domain model with all database fields."},"CustomDomainCreate":{"properties":{"domain":{"type":"string","maxLength":255,"pattern":"^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9\\-]*[a-z0-9])?)+$","title":"Domain","description":"Custom subdomain (e.g. careers.acme.com)"}},"additionalProperties":false,"type":"object","required":["domain"],"title":"CustomDomainCreate","description":"Request model for adding a custom domain."},"CustomDomainVerificationInstructions":{"properties":{"domain":{"$ref":"#/components/schemas/CustomDomain"},"verification":{"additionalProperties":true,"type":"object","title":"Verification","description":"DNS record instructions"}},"type":"object","required":["domain","verification"],"title":"CustomDomainVerificationInstructions","description":"Verification instructions returned after domain creation."},"CustomReportFilters":{"properties":{"status":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Status"},"source":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Source"},"job_id":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Job Id"},"created_from":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"},"created_to":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"},"reporting_timezone":{"type":"string","maxLength":100,"minLength":1,"title":"Reporting Timezone","default":"UTC"}},"additionalProperties":false,"type":"object","title":"CustomReportFilters"},"CustomReportRecord":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"secondary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"applicant_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Applicant Count"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name"],"title":"CustomReportRecord"},"CustomReportRow":{"properties":{"group":{"type":"string","title":"Group"},"count":{"type":"integer","title":"Count"},"percentage":{"type":"number","title":"Percentage"}},"type":"object","required":["group","count","percentage"],"title":"CustomReportRow"},"DashboardAnalyticsResponse":{"properties":{"reporting_timezone":{"type":"string","title":"Reporting Timezone","default":"UTC"},"date_basis":{"type":"string","const":"created_at","title":"Date Basis","default":"created_at"},"total_jobs":{"type":"integer","title":"Total Jobs"},"open_jobs":{"type":"integer","title":"Open Jobs"},"total_candidates":{"type":"integer","title":"Total Candidates"},"job_status_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Job Status Counts"},"candidate_status_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Candidate Status Counts"},"source_counts":{"items":{"$ref":"#/components/schemas/AnalyticsBreakdownItem"},"type":"array","title":"Source Counts"},"conversion_metrics":{"$ref":"#/components/schemas/ConversionMetrics"}},"type":"object","required":["total_jobs","open_jobs","total_candidates","job_status_counts","candidate_status_counts","source_counts","conversion_metrics"],"title":"DashboardAnalyticsResponse"},"DispositionCandidate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"DispositionCandidate"},"DispositionProcessRequest":{"properties":{"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100},"company_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"},"include_failed":{"type":"boolean","title":"Include Failed","default":false},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","title":"DispositionProcessRequest"},"DispositionSyncEvent":{"properties":{"applicant_id":{"type":"string","title":"Applicant Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"candidate":{"$ref":"#/components/schemas/DispositionCandidate"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"source_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Detail"},"source_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Medium"},"source_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Campaign"},"source_metadata":{"additionalProperties":true,"type":"object","title":"Source Metadata"},"external_application_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Application Id"},"indeed_apply_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indeed Apply Id"},"disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition"},"disposition_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Reason"},"disposition_changed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disposition Changed At"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Error"},"sync_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Provider"},"sync_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync External Id"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["applicant_id","candidate"],"title":"DispositionSyncEvent"},"DispositionSyncHealth":{"properties":{"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"pending_count":{"type":"integer","title":"Pending Count","default":0},"failed_count":{"type":"integer","title":"Failed Count","default":0},"last_changed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Changed At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"last_error_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error At"},"last_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Provider"},"last_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last External Id"}},"type":"object","title":"DispositionSyncHealth"},"DispositionSyncResult":{"properties":{"status":{"type":"string","enum":["synced","failed"],"title":"Status"},"provider":{"type":"string","maxLength":64,"minLength":1,"title":"Provider","default":"indeed"},"provider_event_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Provider Event Id"},"error":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Error"}},"additionalProperties":false,"type":"object","required":["status"],"title":"DispositionSyncResult"},"DomainResolveRequest":{"properties":{"domain":{"type":"string","title":"Domain","description":"Hostname to resolve"}},"type":"object","required":["domain"],"title":"DomainResolveRequest"},"EEOCount":{"properties":{"value":{"type":"string","title":"Value"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["value","count"],"title":"EEOCount"},"EmailTemplate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"subject":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Subject"},"body":{"type":"string","maxLength":50000,"minLength":1,"title":"Body"},"html_body":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Html Body"},"variables_used":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Variables Used"},"category":{"type":"string","maxLength":100,"minLength":1,"title":"Category","default":"general"},"channel":{"type":"string","enum":["email","sms","both"],"title":"Channel","default":"email"},"id":{"type":"string","title":"Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"is_system":{"type":"boolean","title":"Is System","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","body","id","created_at","updated_at"],"title":"EmailTemplate","description":"Full email template model"},"EmailTemplateCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"subject":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Subject"},"body":{"type":"string","maxLength":50000,"minLength":1,"title":"Body"},"html_body":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Html Body"},"variables_used":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Variables Used"},"category":{"type":"string","maxLength":100,"minLength":1,"title":"Category","default":"general"},"channel":{"type":"string","enum":["email","sms","both"],"title":"Channel","default":"email"},"is_system":{"type":"boolean","title":"Is System","default":false}},"additionalProperties":false,"type":"object","required":["name","body"],"title":"EmailTemplateCreate","description":"Create an email template"},"EmailTemplateUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"subject":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Subject"},"body":{"anyOf":[{"type":"string","maxLength":50000,"minLength":1},{"type":"null"}],"title":"Body"},"html_body":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Html Body"},"variables_used":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Variables Used"},"category":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Category"},"channel":{"anyOf":[{"type":"string","enum":["email","sms","both"]},{"type":"null"}],"title":"Channel"}},"additionalProperties":false,"type":"object","title":"EmailTemplateUpdate","description":"Update an email template"},"EmailTemplatesResponse":{"properties":{"templates":{"items":{"$ref":"#/components/schemas/EmailTemplate"},"type":"array","title":"Templates"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["templates","count"],"title":"EmailTemplatesResponse"},"ErrorModel":{"properties":{"detail":{"anyOf":[{"type":"string"},{"additionalProperties":{"type":"string"},"type":"object"}],"title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorModel"},"FullJobGenerateRequest":{"properties":{"persona_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Id"},"job_title":{"type":"string","minLength":1,"title":"Job Title"},"role_brief":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Role Brief"},"requirements_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements Notes"},"existing_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existing Description"},"approved_current_content":{"anyOf":[{"$ref":"#/components/schemas/ApprovedJobContent"},{"type":"null"}]},"mode":{"type":"string","pattern":"^(generate|rewrite)$","title":"Mode","default":"generate"},"company_context":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Company Context"},"job_facts":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Job Facts"},"target_channel":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Target Channel"},"reference_content":{"anyOf":[{"type":"string","maxLength":12000},{"type":"null"}],"title":"Reference Content"},"ad_brief":{"anyOf":[{"$ref":"#/components/schemas/JobAdBrief"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["job_title"],"title":"FullJobGenerateRequest","description":"Request body for full AI job generation (all fields) from persona."},"FullJobGenerateResponse":{"properties":{"job_title":{"type":"string","title":"Job Title"},"job_description":{"type":"string","title":"Job Description"},"requirements":{"type":"string","title":"Requirements"},"responsibilities":{"type":"string","title":"Responsibilities"},"benefits":{"type":"string","title":"Benefits"},"preferred_traits":{"type":"string","title":"Preferred Traits"},"title_recommendations":{"items":{"type":"string"},"type":"array","title":"Title Recommendations"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"experience_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Level"},"education_requirement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education Requirement"},"position_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Type"},"persona_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Id"},"persona_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Name"},"job_advertisement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Advertisement"},"title_explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Explanation"},"optimization_notes":{"items":{"type":"string"},"type":"array","title":"Optimization Notes"},"prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version"}},"type":"object","required":["job_title","job_description","requirements","responsibilities","benefits","preferred_traits"],"title":"FullJobGenerateResponse","description":"Response from full job generation endpoint."},"GhlAttachLocationRequest":{"properties":{"pending_id":{"type":"string","maxLength":200,"minLength":1,"title":"Pending Id"},"ghl_location_id":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Ghl Location Id"}},"additionalProperties":false,"type":"object","required":["pending_id","ghl_location_id"],"title":"GhlAttachLocationRequest"},"GhlConnectRequest":{"properties":{"ghl_location_id":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Ghl Location Id"},"access_token":{"type":"string","maxLength":10000,"minLength":1,"title":"Access Token"},"refresh_token":{"type":"string","maxLength":10000,"minLength":1,"title":"Refresh Token"}},"additionalProperties":false,"type":"object","required":["ghl_location_id","access_token","refresh_token"],"title":"GhlConnectRequest"},"GhlConnectionListResponse":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/GhlConnectionPublic"},"type":"array","title":"Connections"}},"type":"object","required":["connections"],"title":"GhlConnectionListResponse"},"GhlConnectionPublic":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"ghl_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Location Id"},"ghl_company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Company Id"},"display_name":{"type":"string","title":"Display Name"},"status":{"type":"string","title":"Status"},"token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Token Expires At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","display_name","status"],"title":"GhlConnectionPublic"},"GhlOAuthStartResponse":{"properties":{"auth_url":{"type":"string","title":"Auth Url"},"redirect_uri":{"type":"string","title":"Redirect Uri"}},"type":"object","required":["auth_url","redirect_uri"],"title":"GhlOAuthStartResponse"},"GhlPendingLocation":{"properties":{"ghl_location_id":{"type":"string","title":"Ghl Location Id"},"display_name":{"type":"string","title":"Display Name"},"already_connected":{"type":"boolean","title":"Already Connected","default":false}},"type":"object","required":["ghl_location_id","display_name"],"title":"GhlPendingLocation"},"GhlPendingLocationsResponse":{"properties":{"pending_id":{"type":"string","title":"Pending Id"},"locations":{"items":{"$ref":"#/components/schemas/GhlPendingLocation"},"type":"array","title":"Locations"}},"type":"object","required":["pending_id","locations"],"title":"GhlPendingLocationsResponse"},"GhlStatus":{"properties":{"is_connected":{"type":"boolean","title":"Is Connected","default":false},"ghl_location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Location Id"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"sync_errors_count":{"type":"integer","title":"Sync Errors Count","default":0}},"type":"object","title":"GhlStatus"},"GhlSubaccountActivationRequest":{"properties":{"ghl_location_id":{"type":"string","maxLength":255,"minLength":5,"title":"Ghl Location Id"},"office_id":{"type":"string","maxLength":50,"minLength":1,"title":"Office Id"},"office":{"type":"string","maxLength":120,"minLength":1,"title":"Office"},"job_location":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Job Location"},"department":{"type":"string","maxLength":120,"minLength":1,"title":"Department","default":"ALL"},"office_time_zone":{"type":"string","maxLength":50,"minLength":1,"title":"Office Time Zone","default":"EST"},"email_forwarding":{"type":"string","maxLength":10,"minLength":1,"title":"Email Forwarding","default":"No"},"email_address":{"anyOf":[{"type":"string","maxLength":254,"format":"email"},{"type":"null"}],"title":"Email Address"},"client_admin_location_id":{"type":"string","maxLength":255,"minLength":5,"title":"Client Admin Location Id","default":"DWLhZHPhwkdlzYG2gIsG"}},"additionalProperties":false,"type":"object","required":["ghl_location_id","office_id","office"],"title":"GhlSubaccountActivationRequest"},"GhlSubaccountActivationResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"ghl_location_id":{"type":"string","title":"Ghl Location Id"},"office_id":{"type":"string","title":"Office Id"},"office":{"type":"string","title":"Office"},"job_location":{"type":"string","title":"Job Location"},"department":{"type":"string","title":"Department"},"mapping_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mapping Id"},"ghl_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Account Id"},"token_present":{"type":"boolean","title":"Token Present","default":false},"token_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Expires At"}},"type":"object","required":["success","status","message","ghl_location_id","office_id","office","job_location","department"],"title":"GhlSubaccountActivationResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IndeedReadinessClientIssue":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"missing_requirements":{"items":{"type":"string"},"type":"array","title":"Missing Requirements"}},"type":"object","title":"IndeedReadinessClientIssue"},"IndeedReadinessFeedSegments":{"properties":{"standard":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Standard"},"staffing_recruitment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staffing Recruitment"}},"type":"object","title":"IndeedReadinessFeedSegments"},"IndeedReadinessIssue":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"required":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Required"},"current":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Current"},"us_clients":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Us Clients"},"us_indeed_jobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Us Indeed Jobs"},"current_free_active_job_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Free Active Job Limit"},"current_free_open_jobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Free Open Jobs"},"clients":{"anyOf":[{"items":{"$ref":"#/components/schemas/IndeedReadinessClientIssue"},"type":"array"},{"type":"null"}],"title":"Clients"}},"type":"object","required":["code","message"],"title":"IndeedReadinessIssue"},"IndeedReadinessResponse":{"properties":{"ready_for_submission":{"type":"boolean","title":"Ready For Submission"},"status":{"type":"string","enum":["ready","not_ready"],"title":"Status"},"metrics":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"boolean"}]},"type":"object","title":"Metrics"},"feed_segments":{"$ref":"#/components/schemas/IndeedReadinessFeedSegments"},"blockers":{"items":{"$ref":"#/components/schemas/IndeedReadinessIssue"},"type":"array","title":"Blockers"},"policy_risks":{"items":{"$ref":"#/components/schemas/IndeedReadinessIssue"},"type":"array","title":"Policy Risks"}},"type":"object","required":["ready_for_submission","status","metrics","feed_segments","blockers","policy_risks"],"title":"IndeedReadinessResponse"},"InterviewCreateRequest":{"properties":{"applicant_id":{"type":"string","maxLength":255,"minLength":1,"title":"Applicant Id"},"job_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Id"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description"},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type","default":"phone"},"location":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Location"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"timezone":{"type":"string","maxLength":100,"minLength":1,"title":"Timezone","default":"America/New_York"},"status":{"type":"string","enum":["scheduled","confirmed","cancelled","completed","no_show"],"title":"Status","default":"confirmed"},"meeting_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Meeting Url"},"meeting_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Meeting Id"},"meeting_provider":{"anyOf":[{"type":"string","enum":["zoom","google_meet"]},{"type":"null"}],"title":"Meeting Provider"}},"additionalProperties":false,"type":"object","required":["applicant_id","start_time","end_time"],"title":"InterviewCreateRequest"},"InterviewResponse":{"properties":{"id":{"type":"string","title":"Id"},"applicant_id":{"type":"string","title":"Applicant Id"},"recruiter_id":{"type":"string","title":"Recruiter Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"booking_link_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Link Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"status":{"type":"string","enum":["scheduled","confirmed","cancelled","completed","no_show"],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"meeting_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Id"},"meeting_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Provider"},"applicant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Name"},"applicant_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","applicant_id","recruiter_id","title","interview_type","start_time","end_time","status"],"title":"InterviewResponse"},"InterviewUpdateRequest":{"properties":{"status":{"anyOf":[{"type":"string","enum":["scheduled","confirmed","cancelled","completed","no_show"]},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Notes"},"cancellation_reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Cancellation Reason"}},"additionalProperties":false,"type":"object","title":"InterviewUpdateRequest"},"InvitationAcceptance":{"properties":{"company_id":{"type":"string","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"role":{"type":"string","title":"Role"}},"type":"object","required":["company_id","company_name","role"],"title":"InvitationAcceptance"},"InvitationPreview":{"properties":{"company_name":{"type":"string","title":"Company Name"},"role":{"type":"string","title":"Role"},"masked_email":{"type":"string","title":"Masked Email"},"status":{"type":"string","title":"Status"},"expires_at":{"type":"string","title":"Expires At"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},"type":"object","required":["company_name","role","masked_email","status","expires_at"],"title":"InvitationPreview"},"InviteRequest":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"role":{"type":"string","maxLength":20,"title":"Role","description":"Super admin invite role: owner, admin, or member","default":"owner"}},"additionalProperties":false,"type":"object","required":["email"],"title":"InviteRequest"},"Job":{"properties":{"job_title":{"type":"string","title":"Job Title","description":"Job title/position"},"job_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Description","description":"Detailed job description"},"job_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Location","description":"Job location (City, State)"},"job_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Type","description":"Job type (Full-time, Part-time, etc.)"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Job function (Sales, Customer Service, etc.)"},"time_commitment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Commitment","description":"Time commitment level"},"responsibilities":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsibilities","description":"Job responsibilities"},"requirements":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements","description":"Job requirements"},"benefits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benefits","description":"Job benefits"},"preferred_traits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Traits","description":"Traits and working style that succeed in this role"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company name"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Department name"},"department_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Label","description":"Recruiter-facing department label"},"function_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Label","description":"Recruiter-facing job function label"},"position_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Type","description":"Position type (Full-time, Part-time, etc.)"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Office code for routing"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry (Healthcare, Technology, etc.)"},"experience_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Level","description":"Experience level (Entry Level, Mid Level, Senior, Executive)"},"education_requirement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education Requirement","description":"Education requirement (None, High School, Bachelor, etc.)"},"professional_certification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Professional Certification","description":"Specific required professional certification"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State/Province"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country","default":"US"},"street_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street Address","description":"Street address"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"ZIP/postal code"},"recruitment_radius_miles":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Recruitment Radius Miles","description":"Optional recruitment radius in miles"},"work_location_type":{"anyOf":[{"type":"string","enum":["On-site","Remote","Hybrid","Field"]},{"type":"null"}],"title":"Work Location Type","description":"Work location type (On-site, Remote, Hybrid, Field)","default":"On-site"},"salary_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Salary Min","description":"Minimum salary"},"salary_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Salary Max","description":"Maximum salary"},"pay_frequency":{"anyOf":[{"type":"string","enum":["HOUR","WEEK","MONTH","YEAR"]},{"type":"null"}],"title":"Pay Frequency","description":"Pay frequency (HOUR, WEEK, MONTH, YEAR)","default":"YEAR"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"Currency code","default":"USD"},"status":{"type":"string","enum":["draft","ready","open","active","published","paused","closed","archived"],"title":"Status","description":"Job status","default":"draft"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional metadata"},"application_form_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Application Form Config","description":"Application form configuration including screener questions"},"target_demographics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Target Demographics","description":"Audience targeting inputs for AI tone and platform recommendations"},"questionnaire_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Questionnaire Template Id","description":"Selected reusable questionnaire template ID for the job application form"},"post_application_questionnaire_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Application Questionnaire Template Id","description":"Reusable questionnaire sent to the candidate after applying"},"ai_revision_history":{"anyOf":[{"additionalProperties":{"items":{"$ref":"#/components/schemas/AIContentRevision"},"type":"array"},"propertyNames":{"enum":["job_title","job_description","responsibilities","requirements","benefits","preferred_traits"]},"type":"object"},{"type":"null"}],"title":"Ai Revision History","description":"Bounded recruiter-visible history of AI content revisions"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id","description":"Selected candidate pipeline ID for this job"},"ghl_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Connection Id","description":"Optional native GHL subaccount connection that receives applicants"},"ghl_sync_opt_out":{"type":"boolean","title":"Ghl Sync Opt Out","description":"True only when a recruiter explicitly chose not to sync applicants to GoHighLevel. False with a null connection is unresolved, not a skip.","default":false},"id":{"type":"string","title":"Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"External job identifier"},"agency_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agency Id","description":"Agency ID"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id","description":"Company ID for tenant isolation"},"distribution_origin":{"type":"string","enum":["catalist","legacy"],"title":"Distribution Origin","description":"Job provenance for distribution safeguards","default":"legacy"},"indeed_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Indeed Job Id","description":"Indeed job ID"},"indeed_status":{"anyOf":[{"type":"string","enum":["draft","pending","published","expired","error"]},{"type":"null"}],"title":"Indeed Status","description":"Indeed posting status"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At","description":"Publication timestamp"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At","description":"Closed timestamp"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At","description":"Archived timestamp"},"google_jobs_status":{"anyOf":[{"type":"string","enum":["draft","pending","published","error"]},{"type":"null"}],"title":"Google Jobs Status","description":"Google Jobs posting status"},"google_jobs_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Google Jobs Published At","description":"Google Jobs publication timestamp"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Job expiration date for Google Jobs validThrough"},"persona_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Id","description":"Target candidate persona ID"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["job_title","id","created_at","updated_at"],"title":"Job","description":"Complete job model including database fields"},"JobAdBrief":{"properties":{"career_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Career Stage"},"previous_backgrounds":{"items":{"type":"string"},"type":"array","title":"Previous Backgrounds"},"relevant_experience_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relevant Experience Level"},"career_situation":{"items":{"type":"string"},"type":"array","title":"Career Situation"},"primary_motivators":{"items":{"type":"string"},"type":"array","title":"Primary Motivators"},"audience_interests":{"items":{"type":"string"},"type":"array","title":"Audience Interests"},"candidate_concerns":{"items":{"type":"string"},"type":"array","title":"Candidate Concerns"},"other_audience_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Audience Notes"},"job_selling_points":{"items":{"type":"string"},"type":"array","title":"Job Selling Points"},"attraction_keywords":{"items":{"type":"string"},"type":"array","title":"Attraction Keywords"},"optimize_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimize For"},"brand_tone_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Tone Notes"},"additional_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Instructions"},"factual_review_confirmed":{"type":"boolean","title":"Factual Review Confirmed","default":false},"work_environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Environment"},"work_environment_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Environment Details"},"schedule_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Type"},"days_of_week":{"items":{"type":"string"},"type":"array","title":"Days Of Week"},"typical_hours":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typical Hours"},"evening_weekend":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evening Weekend"},"schedule_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Details"},"travel_required":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Travel Required"},"travel_type":{"items":{"type":"string"},"type":"array","title":"Travel Type"},"travel_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Travel Details"},"personal_vehicle_required":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Vehicle Required"},"drivers_license_required":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drivers License Required"},"compensation_structure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compensation Structure"},"commission_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commission Details"},"ote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ote"},"top_performer_earnings":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Performer Earnings"},"bonuses":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bonuses"},"residuals":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Residuals"},"sign_on_bonus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign On Bonus"},"pay_distribution_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pay Distribution Schedule"},"training_offered":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Offered"},"training_type":{"items":{"type":"string"},"type":"array","title":"Training Type"},"paid_training_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Training Status"},"training_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Details"},"growth_opportunity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Growth Opportunity"},"typical_next_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Typical Next Role"},"company_highlights":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Highlights"},"number_of_openings":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":1.0},{"type":"null"}],"title":"Number Of Openings"},"hiring_timing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hiring Timing"},"products_customers":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Products Customers"},"role_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Type"},"other_specify":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Other Specify"}},"additionalProperties":false,"type":"object","title":"JobAdBrief","description":"Per-ad strategy and job-reality inputs from Dong's form builder."},"JobBoardConnectionUpdate":{"properties":{"status":{"type":"string","enum":["not_started","action_required","submitted","under_review","active","paused","rejected"],"title":"Status"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"external_account_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"External Account Id"}},"type":"object","required":["status"],"title":"JobBoardConnectionUpdate"},"JobBoardPreferenceUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"JobBoardPreferenceUpdate"},"JobBoardProviderUpdate":{"properties":{"status":{"type":"string","enum":["not_started","action_required","submitted","under_review","active","paused","rejected"],"title":"Status"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"external_account_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"External Account Id"}},"type":"object","required":["status"],"title":"JobBoardProviderUpdate"},"JobCreate":{"properties":{"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"External job identifier (JotForm, etc.)"},"job_title":{"type":"string","title":"Job Title","description":"Job title/position"},"job_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Description","description":"Detailed job description"},"job_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Location","description":"Job location (City, State)"},"job_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Type","description":"Job type"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Job function"},"time_commitment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Commitment","description":"Time commitment"},"responsibilities":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsibilities","description":"Job responsibilities"},"requirements":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements","description":"Job requirements"},"benefits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benefits","description":"Job benefits"},"preferred_traits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Traits","description":"Traits and working style that succeed in this role"},"company":{"type":"string","title":"Company","description":"Company name"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Department"},"department_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Label","description":"Recruiter-facing department label"},"function_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Label","description":"Recruiter-facing job function label"},"position_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Type","description":"Position type"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Office code"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry"},"experience_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Level","description":"Experience level"},"education_requirement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education Requirement","description":"Education requirement"},"professional_certification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Professional Certification","description":"Specific required professional certification"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country","default":"US"},"street_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street Address","description":"Street address"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"ZIP/postal code"},"recruitment_radius_miles":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Recruitment Radius Miles","description":"Optional recruitment radius in miles"},"work_location_type":{"anyOf":[{"type":"string","enum":["On-site","Remote","Hybrid","Field"]},{"type":"null"}],"title":"Work Location Type","description":"Work location type","default":"On-site"},"salary_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Salary Min","description":"Minimum salary"},"salary_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Salary Max","description":"Maximum salary"},"pay_frequency":{"anyOf":[{"type":"string","enum":["HOUR","WEEK","MONTH","YEAR"]},{"type":"null"}],"title":"Pay Frequency","description":"Pay frequency","default":"YEAR"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"Currency code","default":"USD"},"status":{"type":"string","enum":["draft","ready","open","active","published","paused","closed","archived"],"title":"Status","description":"Job status","default":"draft"},"agency_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agency Id","description":"Agency ID for multi-tenant isolation"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional metadata"},"application_form_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Application Form Config","description":"Application form configuration including screener questions"},"target_demographics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Target Demographics","description":"Audience targeting inputs for AI tone and platform recommendations"},"questionnaire_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Questionnaire Template Id","description":"Selected reusable questionnaire template ID for the job application form"},"post_application_questionnaire_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Application Questionnaire Template Id","description":"Reusable questionnaire sent to the candidate after applying"},"ai_revision_history":{"anyOf":[{"additionalProperties":{"items":{"$ref":"#/components/schemas/AIContentRevision"},"type":"array"},"propertyNames":{"enum":["job_title","job_description","responsibilities","requirements","benefits","preferred_traits"]},"type":"object"},{"type":"null"}],"title":"Ai Revision History","description":"Bounded recruiter-visible history of AI content revisions"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Job expiration date"},"persona_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Id","description":"Target candidate persona ID"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id","description":"Selected candidate pipeline ID for this job"},"ghl_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Connection Id","description":"Optional native GHL subaccount connection that receives applicants"},"ghl_sync_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ghl Sync Opt Out","description":"Set true to acknowledge that this job should not sync to GoHighLevel. Mutually exclusive with ghl_connection_id."}},"additionalProperties":false,"type":"object","required":["job_title","company"],"title":"JobCreate","description":"Model for creating a new job - job_id is optional for manual creation"},"JobDescriptionGenerateRequest":{"properties":{"persona_id":{"type":"string","title":"Persona Id"},"job_title":{"type":"string","minLength":1,"title":"Job Title"},"requirements_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements Notes"},"existing_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existing Description"},"approved_current_content":{"anyOf":[{"$ref":"#/components/schemas/ApprovedJobContent"},{"type":"null"}]},"mode":{"type":"string","pattern":"^(generate|rewrite)$","title":"Mode","default":"generate"}},"additionalProperties":false,"type":"object","required":["persona_id","job_title"],"title":"JobDescriptionGenerateRequest","description":"Request body for AI job description generation from persona."},"JobOffice":{"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"title":"Id"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"address_line1":{"type":"string","maxLength":200,"title":"Address Line1","default":""},"address_line2":{"type":"string","maxLength":200,"title":"Address Line2","default":""},"city":{"type":"string","maxLength":100,"minLength":1,"title":"City"},"state":{"type":"string","maxLength":100,"minLength":1,"title":"State"},"postal_code":{"type":"string","maxLength":20,"minLength":1,"title":"Postal Code"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","default":"US"},"routing_code":{"type":"string","maxLength":100,"title":"Routing Code","default":""},"is_default":{"type":"boolean","title":"Is Default","default":false}},"additionalProperties":false,"type":"object","required":["id","name","city","state","postal_code"],"title":"JobOffice","description":"Recruiter-facing office location with an optional provider routing code."},"JobRepublishRequest":{"properties":{"platforms":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Platforms"}},"type":"object","required":["platforms"],"title":"JobRepublishRequest"},"JobStatusUpdate":{"properties":{"status":{"type":"string","enum":["draft","ready","open","active","published","paused","closed","archived"],"title":"Status","description":"New job status"}},"additionalProperties":false,"type":"object","required":["status"],"title":"JobStatusUpdate","description":"Model for updating job status only"},"JobSyncDryRunRequest":{"properties":{"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100},"company_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"}},"additionalProperties":false,"type":"object","title":"JobSyncDryRunRequest"},"JobSyncExpirationRequest":{"properties":{"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100},"company_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":true},"job_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500},{"type":"null"}],"title":"Job Ids"}},"additionalProperties":false,"type":"object","title":"JobSyncExpirationRequest"},"JobSyncProcessRequest":{"properties":{"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100},"company_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Company Id"},"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"additionalProperties":false,"type":"object","title":"JobSyncProcessRequest"},"JobTaxonomyOption":{"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"title":"Id"},"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"provider_value":{"type":"string","maxLength":120,"minLength":1,"title":"Provider Value"}},"additionalProperties":false,"type":"object","required":["id","label","provider_value"],"title":"JobTaxonomyOption","description":"Company-owned recruiter label mapped to a provider-compatible value."},"JobUpdate":{"properties":{"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title","description":"Job title/position"},"job_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Description","description":"Detailed job description"},"job_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Location","description":"Job location (City, State)"},"job_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Type","description":"Job type"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Job function"},"time_commitment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Commitment","description":"Time commitment"},"responsibilities":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsibilities","description":"Job responsibilities"},"requirements":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements","description":"Job requirements"},"benefits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benefits","description":"Job benefits"},"preferred_traits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Traits","description":"Traits and working style that succeed in this role"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company name"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Department"},"department_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Label","description":"Recruiter-facing department label"},"function_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Label","description":"Recruiter-facing job function label"},"position_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position Type","description":"Position type"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Office code"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry"},"experience_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Level","description":"Experience level"},"education_requirement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education Requirement","description":"Education requirement"},"professional_certification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Professional Certification","description":"Specific required professional certification"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country"},"street_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street Address","description":"Street address"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"ZIP/postal code"},"recruitment_radius_miles":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Recruitment Radius Miles","description":"Optional recruitment radius in miles"},"work_location_type":{"anyOf":[{"type":"string","enum":["On-site","Remote","Hybrid","Field"]},{"type":"null"}],"title":"Work Location Type","description":"Work location type"},"salary_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Salary Min","description":"Minimum salary"},"salary_max":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Salary Max","description":"Maximum salary"},"pay_frequency":{"anyOf":[{"type":"string","enum":["HOUR","WEEK","MONTH","YEAR"]},{"type":"null"}],"title":"Pay Frequency","description":"Pay frequency"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"Currency code"},"status":{"anyOf":[{"type":"string","enum":["draft","ready","open","active","published","paused","closed","archived"]},{"type":"null"}],"title":"Status","description":"Job status"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional metadata"},"application_form_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Application Form Config","description":"Application form configuration including screener questions"},"target_demographics":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Target Demographics","description":"Audience targeting inputs for AI tone and platform recommendations"},"questionnaire_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Questionnaire Template Id","description":"Selected reusable questionnaire template ID for the job application form"},"post_application_questionnaire_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Application Questionnaire Template Id","description":"Reusable questionnaire sent to the candidate after applying"},"ai_revision_history":{"anyOf":[{"additionalProperties":{"items":{"$ref":"#/components/schemas/AIContentRevision"},"type":"array"},"propertyNames":{"enum":["job_title","job_description","responsibilities","requirements","benefits","preferred_traits"]},"type":"object"},{"type":"null"}],"title":"Ai Revision History","description":"Bounded recruiter-visible history of AI content revisions"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At","description":"Job expiration date"},"persona_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Id","description":"Target candidate persona ID"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id","description":"Selected candidate pipeline ID for this job"},"ghl_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ghl Connection Id","description":"Optional native GHL subaccount connection that receives applicants"},"ghl_sync_opt_out":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ghl Sync Opt Out","description":"Set true to acknowledge that this job should not sync to GoHighLevel. Mutually exclusive with ghl_connection_id. Omit to leave the stored choice."}},"additionalProperties":false,"type":"object","title":"JobUpdate","description":"Model for updating an existing job - all fields optional"},"JobWizardDraftWrite":{"properties":{"current_step":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Current Step"},"form_data":{"additionalProperties":true,"type":"object","title":"Form Data"}},"additionalProperties":false,"type":"object","required":["current_step","form_data"],"title":"JobWizardDraftWrite"},"JobWritingGuide":{"properties":{"tone":{"type":"string","maxLength":500,"title":"Tone","default":"Clear, direct, and welcoming"},"reading_level":{"type":"string","maxLength":100,"title":"Reading Level","default":"8th grade"},"approved_facts":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Approved Facts"},"approved_terms":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Approved Terms"},"approved_benefits":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Approved Benefits"},"approved_requirements":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Approved Requirements"},"reusable_copy":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Reusable Copy"},"prohibited_claims":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Prohibited Claims"},"sample_copy":{"type":"string","maxLength":4000,"title":"Sample Copy","default":""},"custom_writer_instructions":{"type":"string","maxLength":4000,"title":"Custom Writer Instructions","default":""}},"additionalProperties":false,"type":"object","title":"JobWritingGuide","description":"Company-approved constraints for AI-assisted job content."},"MemberInvite":{"properties":{"email":{"type":"string","maxLength":254,"format":"email","title":"Email","description":"Email of user to invite"},"role":{"type":"string","maxLength":20,"title":"Role","description":"Role: member or admin","default":"member"}},"additionalProperties":false,"type":"object","required":["email"],"title":"MemberInvite"},"MemberInviteResponse":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"role":{"type":"string","title":"Role"},"email":{"type":"string","title":"Email"},"status":{"type":"string","title":"Status"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["id","company_id","role","email","status","expires_at"],"title":"MemberInviteResponse"},"MemberRoleUpdate":{"properties":{"role":{"type":"string","maxLength":20,"title":"Role","description":"Role: member or admin","default":"member"}},"additionalProperties":false,"type":"object","title":"MemberRoleUpdate"},"MessageSend":{"properties":{"channel":{"type":"string","enum":["email","sms"],"title":"Channel"},"subject":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Subject"},"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"},"html_body":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Html Body"}},"additionalProperties":false,"type":"object","required":["channel","body"],"title":"MessageSend"},"OAuthConnectResponse":{"properties":{"auth_url":{"type":"string","title":"Auth Url"}},"type":"object","required":["auth_url"],"title":"OAuthConnectResponse","description":"Response for initiating OAuth flow"},"OAuthConnectionPublic":{"properties":{"id":{"type":"string","title":"Id"},"provider":{"$ref":"#/components/schemas/OAuthProvider"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"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","is_active","created_at","updated_at"],"title":"OAuthConnectionPublic","description":"Public OAuth connection info (no tokens)"},"OAuthConnectionsResponse":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/OAuthConnectionPublic"},"type":"array","title":"Connections"}},"type":"object","required":["connections"],"title":"OAuthConnectionsResponse","description":"Response for listing OAuth connections"},"OAuthProvider":{"type":"string","enum":["gmail","outlook","zoom","google_meet"],"title":"OAuthProvider","description":"Supported OAuth providers"},"OAuthProviderAvailability":{"properties":{"available":{"type":"boolean","title":"Available"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["available"],"title":"OAuthProviderAvailability","description":"Public provider configuration state without exposing credentials."},"OAuthProvidersResponse":{"properties":{"providers":{"additionalProperties":{"$ref":"#/components/schemas/OAuthProviderAvailability"},"propertyNames":{"$ref":"#/components/schemas/OAuthProvider"},"type":"object","title":"Providers"}},"type":"object","required":["providers"],"title":"OAuthProvidersResponse","description":"Response describing which OAuth providers can start authorization."},"OnboardingStatus":{"properties":{"has_company":{"type":"boolean","title":"Has Company"},"company":{"anyOf":[{"$ref":"#/components/schemas/Company"},{"type":"null"}]}},"type":"object","required":["has_company"],"title":"OnboardingStatus"},"OptimizerSettingsRequest":{"properties":{"optimizer_enabled":{"type":"boolean","title":"Optimizer Enabled"},"optimizer_notify_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Optimizer Notify Email"}},"additionalProperties":false,"type":"object","required":["optimizer_enabled"],"title":"OptimizerSettingsRequest"},"PendingInvitationResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"},"expires_at":{"type":"string","title":"Expires At"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","email","role","status","expires_at","created_at"],"title":"PendingInvitationResponse"},"PersonaCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"avatar_seed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Seed"},"avatar_style":{"type":"string","title":"Avatar Style","default":"generalist"},"career_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Career Stage"},"experience_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Level"},"skills":{"items":{"type":"string"},"type":"array","title":"Skills"},"certifications":{"items":{"type":"string"},"type":"array","title":"Certifications"},"education":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education"},"motivations":{"items":{"type":"string"},"type":"array","title":"Motivations"},"values":{"items":{"type":"string"},"type":"array","title":"Values"},"work_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Style"},"deal_breakers":{"items":{"type":"string"},"type":"array","title":"Deal Breakers"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"role_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Type"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"prompt_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Used"}},"additionalProperties":false,"type":"object","required":["name"],"title":"PersonaCreate"},"PersonaGenerateRequest":{"properties":{"prompt":{"type":"string","maxLength":1000,"minLength":10,"title":"Prompt"},"count":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Count","default":1}},"additionalProperties":false,"type":"object","required":["prompt"],"title":"PersonaGenerateRequest","description":"Request body for AI persona generation."},"PersonaUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"avatar_seed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Seed"},"avatar_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Style"},"career_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Career Stage"},"experience_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experience Level"},"skills":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Skills"},"certifications":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Certifications"},"education":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Education"},"motivations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Motivations"},"values":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Values"},"work_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Style"},"deal_breakers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Deal Breakers"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"role_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Type"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"additionalProperties":false,"type":"object","title":"PersonaUpdate"},"PhoneProvisionRequest":{"properties":{"area_code":{"anyOf":[{"type":"string","pattern":"^\\d{3}$"},{"type":"null"}],"title":"Area Code"}},"additionalProperties":false,"type":"object","title":"PhoneProvisionRequest"},"PhoneStatus":{"properties":{"provisioned":{"type":"boolean","title":"Provisioned"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["provisioned"],"title":"PhoneStatus"},"Pipeline":{"properties":{"name":{"type":"string","title":"Name"},"stages":{"items":{},"type":"array","title":"Stages"},"id":{"type":"string","title":"Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","created_at","updated_at"],"title":"Pipeline"},"PipelineCreate":{"properties":{"name":{"type":"string","title":"Name"},"stages":{"items":{},"type":"array","title":"Stages"}},"additionalProperties":false,"type":"object","required":["name"],"title":"PipelineCreate"},"PipelineStage":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"order":{"type":"integer","title":"Order"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","required":["id","name","order"],"title":"PipelineStage"},"PipelineStageCreate":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"order":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":0.0},{"type":"null"}],"title":"Order"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"additionalProperties":false,"type":"object","required":["name"],"title":"PipelineStageCreate"},"PipelineStageDeleteRequest":{"properties":{"replacement_stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement Stage Id"}},"additionalProperties":false,"type":"object","title":"PipelineStageDeleteRequest"},"PipelineStageReorder":{"properties":{"stage_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Stage Ids"}},"additionalProperties":false,"type":"object","required":["stage_ids"],"title":"PipelineStageReorder"},"PipelineStageUpdate":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"order":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":0.0},{"type":"null"}],"title":"Order"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"additionalProperties":false,"type":"object","title":"PipelineStageUpdate"},"PipelineUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"stages":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Stages"}},"additionalProperties":false,"type":"object","title":"PipelineUpdate"},"PlanSelectionRequest":{"properties":{"plan_tier":{"type":"string","maxLength":20,"minLength":1,"title":"Plan Tier"}},"additionalProperties":false,"type":"object","required":["plan_tier"],"title":"PlanSelectionRequest"},"PlatformJobFeedUpdate":{"properties":{"status":{"type":"string","enum":["not_started","action_required","submitted","under_review","active","paused","rejected"],"title":"Status"}},"additionalProperties":false,"type":"object","required":["status"],"title":"PlatformJobFeedUpdate"},"PostingChannelResult":{"properties":{"views":{"type":"integer","title":"Views"},"apply_starts":{"type":"integer","title":"Apply Starts"},"applications":{"type":"integer","title":"Applications"},"tracked_finishes":{"type":"integer","title":"Tracked Finishes"},"finish_rate":{"type":"number","title":"Finish Rate"},"drop_off":{"type":"integer","title":"Drop Off"},"drop_off_rate":{"type":"number","title":"Drop Off Rate"},"average_time_to_apply_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Time To Apply Minutes"},"channel":{"type":"string","title":"Channel"},"label":{"type":"string","title":"Label"}},"type":"object","required":["views","apply_starts","applications","tracked_finishes","finish_rate","drop_off","drop_off_rate","average_time_to_apply_minutes","channel","label"],"title":"PostingChannelResult"},"PostingFunnelMetrics":{"properties":{"views":{"type":"integer","title":"Views"},"apply_starts":{"type":"integer","title":"Apply Starts"},"applications":{"type":"integer","title":"Applications"},"tracked_finishes":{"type":"integer","title":"Tracked Finishes"},"finish_rate":{"type":"number","title":"Finish Rate"},"drop_off":{"type":"integer","title":"Drop Off"},"drop_off_rate":{"type":"number","title":"Drop Off Rate"},"average_time_to_apply_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Time To Apply Minutes"}},"type":"object","required":["views","apply_starts","applications","tracked_finishes","finish_rate","drop_off","drop_off_rate","average_time_to_apply_minutes"],"title":"PostingFunnelMetrics"},"PostingJobResult":{"properties":{"views":{"type":"integer","title":"Views"},"apply_starts":{"type":"integer","title":"Apply Starts"},"applications":{"type":"integer","title":"Applications"},"tracked_finishes":{"type":"integer","title":"Tracked Finishes"},"finish_rate":{"type":"number","title":"Finish Rate"},"drop_off":{"type":"integer","title":"Drop Off"},"drop_off_rate":{"type":"number","title":"Drop Off Rate"},"average_time_to_apply_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Time To Apply Minutes"},"job_id":{"type":"string","title":"Job Id"},"job_title":{"type":"string","title":"Job Title"},"last_google_crawl_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Google Crawl At"}},"type":"object","required":["views","apply_starts","applications","tracked_finishes","finish_rate","drop_off","drop_off_rate","average_time_to_apply_minutes","job_id","job_title"],"title":"PostingJobResult"},"PostingPerformanceResponse":{"properties":{"reporting_timezone":{"type":"string","const":"UTC","title":"Reporting Timezone","default":"UTC"},"date_basis":{"type":"string","const":"occurred_at","title":"Date Basis","default":"occurred_at"},"data_available":{"type":"boolean","title":"Data Available","default":true},"range_days":{"type":"integer","title":"Range Days"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"last_google_crawl_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Google Crawl At"},"metrics":{"$ref":"#/components/schemas/PostingFunnelMetrics"},"channels":{"items":{"$ref":"#/components/schemas/PostingChannelResult"},"type":"array","title":"Channels"},"trend":{"items":{"$ref":"#/components/schemas/PostingTrendPoint"},"type":"array","title":"Trend"},"jobs":{"items":{"$ref":"#/components/schemas/PostingJobResult"},"type":"array","title":"Jobs"}},"type":"object","required":["range_days","metrics","channels","trend","jobs"],"title":"PostingPerformanceResponse"},"PostingTrendPoint":{"properties":{"date":{"type":"string","title":"Date"},"views":{"type":"integer","title":"Views"},"apply_starts":{"type":"integer","title":"Apply Starts"},"applications":{"type":"integer","title":"Applications"}},"type":"object","required":["date","views","apply_starts","applications"],"title":"PostingTrendPoint"},"PriorRevision":{"properties":{"instruction":{"type":"string","maxLength":5000,"title":"Instruction"},"content":{"type":"string","maxLength":20000,"title":"Content"}},"additionalProperties":false,"type":"object","required":["instruction","content"],"title":"PriorRevision"},"ProductEventCreate":{"properties":{"event_name":{"type":"string","maxLength":80,"minLength":1,"title":"Event Name"},"session_id":{"type":"string","maxLength":100,"minLength":8,"title":"Session Id"},"metadata":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Metadata"}},"additionalProperties":false,"type":"object","required":["event_name","session_id"],"title":"ProductEventCreate","description":"Non-PII telemetry emitted by authenticated recruiter workflows."},"ProductEventResponse":{"properties":{"accepted":{"type":"boolean","title":"Accepted"}},"type":"object","required":["accepted"],"title":"ProductEventResponse"},"ProviderEffectResolution":{"properties":{"succeeded":{"type":"boolean","title":"Succeeded"},"provider_reference":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Provider Reference"},"result":{"additionalProperties":true,"type":"object","title":"Result"}},"type":"object","required":["succeeded"],"title":"ProviderEffectResolution"},"PublicBookingCreateRequest":{"properties":{"slot_id":{"type":"string","maxLength":255,"minLength":1,"title":"Slot Id"},"booking_link_id":{"type":"string","maxLength":255,"minLength":1,"title":"Booking Link Id"},"candidate_email":{"type":"string","maxLength":255,"format":"email","title":"Candidate Email"},"candidate_name":{"type":"string","maxLength":255,"minLength":1,"title":"Candidate Name"},"candidate_phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Candidate Phone"},"candidate_timezone":{"type":"string","maxLength":100,"minLength":1,"title":"Candidate Timezone","default":"America/New_York"},"notes":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Notes"}},"additionalProperties":false,"type":"object","required":["slot_id","booking_link_id","candidate_email","candidate_name"],"title":"PublicBookingCreateRequest"},"PublicBookingLinkResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"slug":{"type":"string","title":"Slug"},"is_active":{"type":"boolean","title":"Is Active"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Expires At"},"max_bookings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Bookings"},"meeting_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Provider"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"applicant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Name"},"recruiter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recruiter Name"},"is_candidate_specific":{"type":"boolean","title":"Is Candidate Specific","default":false}},"type":"object","required":["id","title","duration_minutes","interview_type","slug","is_active"],"title":"PublicBookingLinkResponse"},"PublicBookingResponse":{"properties":{"id":{"type":"string","title":"Id"},"confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Confirmed At"},"applicant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Applicant Id"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"meeting_provider":{"anyOf":[{"type":"string","enum":["zoom","google_meet"]},{"type":"null"}],"title":"Meeting Provider"}},"type":"object","required":["id"],"title":"PublicBookingResponse"},"PublicBookingSlotResponse":{"properties":{"id":{"type":"string","title":"Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"}],"title":"End Time"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"interview_type":{"type":"string","enum":["phone","video","in_person"],"title":"Interview Type"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"capacity":{"type":"integer","title":"Capacity"},"booked_count":{"type":"integer","title":"Booked Count"},"status":{"type":"string","enum":["available","booked","blocked","cancelled"],"title":"Status"},"timezone":{"type":"string","title":"Timezone"}},"type":"object","required":["id","start_time","end_time","duration_minutes","interview_type","capacity","booked_count","status","timezone"],"title":"PublicBookingSlotResponse"},"PublicPostingEventCreate":{"properties":{"event_type":{"type":"string","enum":["view","apply_start"],"title":"Event Type"},"session_id":{"type":"string","maxLength":100,"minLength":8,"pattern":"^(?:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|posting-[0-9]{10,16}-[a-z0-9]{6,32})$","title":"Session Id"},"source":{"type":"string","maxLength":128,"title":"Source","default":""},"referrer":{"type":"string","maxLength":1000,"title":"Referrer","default":""}},"additionalProperties":false,"type":"object","required":["event_type","session_id"],"title":"PublicPostingEventCreate"},"PublicPostingEventResponse":{"properties":{"accepted":{"type":"boolean","title":"Accepted"}},"type":"object","required":["accepted"],"title":"PublicPostingEventResponse"},"PublishEventLogRequest":{"properties":{"action":{"type":"string","enum":["publish","unpublish","refresh","republish","auto_unpublish","auto_close","bulk_publish","bulk_unpublish"],"title":"Action"},"platform":{"type":"string","enum":["google","indeed","all"],"title":"Platform"},"status":{"type":"string","enum":["success","failed"],"title":"Status","default":"success"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["action","platform"],"title":"PublishEventLogRequest"},"QuestionnaireReissueRequest":{"properties":{"questionnaire_template_id":{"type":"string","format":"uuid","title":"Questionnaire Template Id"},"confirm_current_wording":{"type":"boolean","const":true,"title":"Confirm Current Wording","description":"Explicitly issue the selected template's current wording, not historical wording."},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["questionnaire_template_id","confirm_current_wording","reason"],"title":"QuestionnaireReissueRequest"},"QuestionnaireSubmission":{"properties":{"answers":{"additionalProperties":true,"type":"object","title":"Answers"}},"additionalProperties":false,"type":"object","title":"QuestionnaireSubmission"},"QuestionnaireTemplate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"questions":{"items":{"$ref":"#/components/schemas/ScreenerQuestion"},"type":"array","maxItems":100,"title":"Questions"},"id":{"type":"string","title":"Id"},"agency_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agency Id"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["name","id"],"title":"QuestionnaireTemplate"},"QuestionnaireTemplateCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"questions":{"items":{"$ref":"#/components/schemas/ScreenerQuestion"},"type":"array","maxItems":100,"title":"Questions"}},"additionalProperties":false,"type":"object","required":["name"],"title":"QuestionnaireTemplateCreate"},"QuestionnaireTemplateUpdate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"questions":{"items":{"$ref":"#/components/schemas/ScreenerQuestion"},"type":"array","maxItems":100,"title":"Questions"}},"additionalProperties":false,"type":"object","required":["name"],"title":"QuestionnaireTemplateUpdate"},"ResolveWorkableEventRequest":{"properties":{"job_id":{"type":"string","maxLength":100,"minLength":1,"title":"Job Id"}},"type":"object","required":["job_id"],"title":"ResolveWorkableEventRequest"},"RewriteRequest":{"properties":{"keywords":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":50},{"type":"null"}],"title":"Keywords"},"apply":{"type":"boolean","title":"Apply","default":false}},"additionalProperties":false,"type":"object","title":"RewriteRequest"},"SaveVersionRequest":{"properties":{"title":{"type":"string","maxLength":500,"title":"Title"},"description":{"type":"string","maxLength":50000,"title":"Description"},"optimization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optimization Id"},"keywords":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":50},{"type":"null"}],"title":"Keywords"},"recruiter_notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Recruiter Notes"}},"additionalProperties":false,"type":"object","required":["title","description"],"title":"SaveVersionRequest"},"ScreenerQuestion":{"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"title":"Id"},"question":{"type":"string","maxLength":500,"minLength":1,"title":"Question"},"type":{"type":"string","enum":["text","textarea","select","yes_no","single_select","multi_select","multiple_select"],"title":"Type"},"required":{"type":"boolean","title":"Required","default":false},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"}},"additionalProperties":false,"type":"object","required":["id","question","type"],"title":"ScreenerQuestion"},"SectionRegenerateRequest":{"properties":{"persona_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Id"},"section":{"type":"string","pattern":"^(job_title|job_description|responsibilities|requirements|benefits|preferred_traits)$","title":"Section"},"job_title":{"type":"string","minLength":1,"title":"Job Title"},"job_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Description"},"responsibilities":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsibilities"},"requirements":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requirements"},"benefits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benefits"},"preferred_traits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Traits"},"user_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Notes"},"selected_text":{"anyOf":[{"type":"string","maxLength":12000},{"type":"null"}],"title":"Selected Text"},"target_channel":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Target Channel"},"prior_revisions":{"anyOf":[{"items":{"$ref":"#/components/schemas/PriorRevision"},"type":"array","maxItems":5},{"type":"null"}],"title":"Prior Revisions"},"approved_current_content":{"anyOf":[{"$ref":"#/components/schemas/ApprovedJobContent"},{"type":"null"}]},"reference_content":{"anyOf":[{"type":"string","maxLength":12000},{"type":"null"}],"title":"Reference Content"},"company_context":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Company Context"},"job_facts":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Job Facts"},"ad_brief":{"anyOf":[{"$ref":"#/components/schemas/JobAdBrief"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["section","job_title"],"title":"SectionRegenerateRequest","description":"Regenerate a single section of the job posting."},"SectionRegenerateResponse":{"properties":{"section":{"type":"string","title":"Section"},"content":{"type":"string","title":"Content"}},"type":"object","required":["section","content"],"title":"SectionRegenerateResponse"},"SetupStatus":{"properties":{"phone":{"$ref":"#/components/schemas/PhoneStatus"},"connections":{"items":{"$ref":"#/components/schemas/ConnectionStatus"},"type":"array","title":"Connections"},"has_email":{"type":"boolean","title":"Has Email"},"has_video":{"type":"boolean","title":"Has Video"}},"type":"object","required":["phone","connections","has_email","has_video"],"title":"SetupStatus"},"StoredResumeSummaryRequest":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","description":"When true, report the plan and write nothing."},"note_only":{"type":"boolean","title":"Note Only","description":"Rewrite the CRM note from the applicant's existing evaluation. Does not re-run AI.","default":false}},"type":"object","required":["dry_run"],"title":"StoredResumeSummaryRequest"},"TenantBranding":{"properties":{"id":{"type":"string","title":"Id"},"agency_id":{"type":"string","title":"Agency Id"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon Url"},"primary_color":{"type":"string","title":"Primary Color","default":"#2563eb"},"secondary_color":{"type":"string","title":"Secondary Color","default":"#1e40af"},"background_color":{"type":"string","title":"Background Color","default":"#f9fafb"},"text_color":{"type":"string","title":"Text Color","default":"#111827"},"font_family":{"type":"string","title":"Font Family","default":"Inter"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Tagline"},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"social_links":{"additionalProperties":true,"type":"object","title":"Social Links"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","agency_id","created_at","updated_at"],"title":"TenantBranding","description":"Full tenant branding model with all database fields."},"TenantBrandingUpdate":{"properties":{"logo_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Logo Url"},"favicon_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Favicon Url"},"primary_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Primary Color"},"secondary_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Secondary Color"},"background_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Background Color"},"text_color":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}],"title":"Text Color"},"font_family":{"anyOf":[{"type":"string","maxLength":100,"pattern":"^[A-Za-z0-9 ,._'\\\"-]+$"},{"type":"null"}],"title":"Font Family"},"company_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Company Name"},"company_tagline":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Company Tagline"},"footer_text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Footer Text"},"social_links":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Social Links"}},"additionalProperties":false,"type":"object","title":"TenantBrandingUpdate","description":"Request model for updating branding. All fields optional."},"TrainingData":{"properties":{"sub_account_id":{"type":"string","title":"Sub Account Id"},"prompt":{"type":"string","title":"Prompt"},"response":{"type":"string","title":"Response"}},"type":"object","required":["sub_account_id","prompt","response"],"title":"TrainingData"},"UpdateMeetingRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"duration_minutes":{"anyOf":[{"type":"integer","maximum":480.0,"minimum":15.0},{"type":"null"}],"title":"Duration Minutes"},"timezone":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[A-Za-z0-9_./+-]+$","title":"Timezone","default":"America/New_York"}},"additionalProperties":false,"type":"object","title":"UpdateMeetingRequest"},"UpdateVersionRequest":{"properties":{"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status"},"recruiter_notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Recruiter Notes"}},"additionalProperties":false,"type":"object","required":["status"],"title":"UpdateVersionRequest"},"UsageMetric":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"billable_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billable Used"}},"type":"object","required":["used"],"title":"UsageMetric"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerificationSubmissionResponse":{"properties":{"company":{"$ref":"#/components/schemas/Company"},"submitted":{"type":"boolean","title":"Submitted"}},"type":"object","required":["company","submitted"],"title":"VerificationSubmissionResponse"},"WorkableJobMapping":{"properties":{"id":{"type":"string","title":"Id"},"job_id":{"type":"string","title":"Job Id"},"external_account_key":{"type":"string","title":"External Account Key"},"external_job_shortcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Job Shortcode"},"external_job_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Job Url"},"external_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Status"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"last_lifecycle_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Lifecycle Action"},"last_lifecycle_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Lifecycle Error"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","job_id","external_account_key"],"title":"WorkableJobMapping"},"WorkableJobMappingRequest":{"properties":{"job_id":{"type":"string","maxLength":100,"minLength":1,"title":"Job Id"},"external_job_shortcode":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"External Job Shortcode"},"external_job_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"External Job Url"}},"additionalProperties":false,"type":"object","required":["job_id"],"title":"WorkableJobMappingRequest"},"WorkableReplayResult":{"properties":{"task_id":{"type":"string","title":"Task Id"},"event":{"$ref":"#/components/schemas/WorkableUnresolvedEvent"}},"type":"object","required":["task_id","event"],"title":"WorkableReplayResult"},"WorkableStatus":{"properties":{"is_configured":{"type":"boolean","title":"Is Configured","default":false},"is_enabled":{"type":"boolean","title":"Is Enabled","default":false},"workable_subdomain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workable Subdomain"},"health_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Status"},"last_publish_ok_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Publish Ok At"},"last_healthcheck_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Healthcheck At"},"last_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Code"},"last_error_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Summary"},"mapped_jobs_count":{"type":"integer","title":"Mapped Jobs Count","default":0},"unresolved_events_count":{"type":"integer","title":"Unresolved Events Count","default":0}},"type":"object","title":"WorkableStatus"},"WorkableUnresolvedEvent":{"properties":{"id":{"type":"string","title":"Id"},"job_shortcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Shortcode"},"reason_code":{"type":"string","title":"Reason Code"},"status":{"type":"string","title":"Status"},"candidate_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Name"},"candidate_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Job Id"}},"type":"object","required":["id","reason_code","status"],"title":"WorkableUnresolvedEvent"}},"securitySchemes":{"APIKeyCookie":{"type":"apiKey","in":"cookie","name":"fastapiusersauth"}}}}