{"openapi":"3.1.0","info":{"title":"CrewLoop API","version":"0.2.0"},"paths":{"/api/sms/send":{"post":{"tags":["sms"],"summary":"Send Sms","operationId":"send_sms_api_sms_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Send Sms Api Sms Send Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls/place":{"post":{"tags":["calls"],"summary":"Place Call","operationId":"place_call_api_calls_place_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceCallRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Place Call Api Calls Place Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/agentphone":{"post":{"tags":["webhooks"],"summary":"Agentphone Webhook","operationId":"agentphone_webhook_webhooks_agentphone_post","parameters":[{"name":"x-webhook-signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Webhook-Signature"}},{"name":"x-webhook-timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Webhook-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Agentphone Webhook Webhooks Agentphone Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/agentmail":{"post":{"tags":["webhooks"],"summary":"Agentmail Webhook","operationId":"agentmail_webhook_webhooks_agentmail_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Agentmail Webhook Webhooks Agentmail Post"}}}}}}},"/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Stripe Webhook","operationId":"stripe_webhook_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Stripe Webhook Webhooks Stripe Post"}}}}}}},"/webhooks/sponge":{"post":{"tags":["webhooks"],"summary":"Sponge Webhook","operationId":"sponge_webhook_webhooks_sponge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Sponge Webhook Webhooks Sponge Post"}}}}}}},"/api/conversations":{"get":{"tags":["conversations"],"summary":"List Conversations","operationId":"list_conversations_api_conversations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Conversations Api Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/conversations/{phone}":{"get":{"tags":["conversations"],"summary":"Get Conversation","operationId":"get_conversation_api_conversations__phone__get","parameters":[{"name":"phone","in":"path","required":true,"schema":{"type":"string","title":"Phone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Conversation Api Conversations  Phone  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls":{"get":{"tags":["conversations"],"summary":"List Calls","operationId":"list_calls_api_calls_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Calls Api Calls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/browser/import":{"post":{"tags":["browser-import"],"summary":"Browser Import","operationId":"browser_import_api_browser_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Browser Import Api Browser Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/browser/import":{"post":{"tags":["browser-import"],"summary":"Browser Import","operationId":"browser_import_browser_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Browser Import Browser Import Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/browser-sources":{"get":{"tags":["browser-import"],"summary":"List Browser Sources","operationId":"list_browser_sources_api_browser_sources_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Browser Sources Api Browser Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/browser-sources/{source_id}":{"get":{"tags":["browser-import"],"summary":"Get Browser Source","operationId":"get_browser_source_api_browser_sources__source_id__get","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Browser Source Api Browser Sources  Source Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/dispatch/{job_id}":{"get":{"tags":["dispatch"],"summary":"Get Dispatch Room","operationId":"get_dispatch_room_api_dispatch__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Dispatch Room Api Dispatch  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs":{"post":{"tags":["jobs"],"summary":"Create Job","operationId":"create_job_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Job Jobs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","operationId":"get_job_api_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Job Api Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","operationId":"get_job_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Job Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/rank-contractors":{"post":{"tags":["jobs"],"summary":"Rank Contractors Endpoint","operationId":"rank_contractors_endpoint_jobs__job_id__rank_contractors_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Rank Contractors Endpoint Jobs  Job Id  Rank Contractors Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/outreach":{"post":{"tags":["jobs"],"summary":"Outreach","operationId":"outreach_jobs__job_id__outreach_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachRequest","default":{"send_real":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Outreach Jobs  Job Id  Outreach Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/accept":{"post":{"tags":["jobs"],"summary":"Accept","operationId":"accept_jobs__job_id__accept_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptRequest","default":{"response":"yes","send_real_email":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Accept Jobs  Job Id  Accept Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/check-in":{"post":{"tags":["jobs"],"summary":"Check In","operationId":"check_in_jobs__job_id__check_in_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckInRequest","default":{"proof_type":"sms","content":"Arrived on site and checked in by SMS."}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Check In Jobs  Job Id  Check In Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/approve-release":{"post":{"tags":["jobs"],"summary":"Approve","operationId":"approve_jobs__job_id__approve_release_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveReleaseRequest","default":{"owner_approved":true,"execute_real_payment":false,"send_real_email":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Jobs  Job Id  Approve Release Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/events":{"post":{"tags":["jobs"],"summary":"Add Event","operationId":"add_event_jobs__job_id__events_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Add Event Jobs  Job Id  Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/stream":{"get":{"tags":["jobs"],"summary":"Stream Events","operationId":"stream_events_jobs__job_id__stream_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/browser-sources":{"post":{"tags":["jobs"],"summary":"Add Browser Source","operationId":"add_browser_source_jobs__job_id__browser_sources_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Add Browser Source Jobs  Job Id  Browser Sources Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/browser-sync":{"post":{"tags":["jobs"],"summary":"Browser Sync","operationId":"browser_sync_jobs__job_id__browser_sync_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Browser Sync Jobs  Job Id  Browser Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/infer-event-plan":{"post":{"tags":["jobs"],"summary":"Infer Event Plan","operationId":"infer_event_plan_jobs__job_id__infer_event_plan_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Infer Event Plan Jobs  Job Id  Infer Event Plan Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/event-plans":{"get":{"tags":["jobs"],"summary":"List Job Event Plans","operationId":"list_job_event_plans_jobs__job_id__event_plans_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Job Event Plans Jobs  Job Id  Event Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/event-plans/{plan_id}/approve":{"post":{"tags":["jobs"],"summary":"Approve Plan","operationId":"approve_plan_jobs__job_id__event_plans__plan_id__approve_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Plan Jobs  Job Id  Event Plans  Plan Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/schedule":{"post":{"tags":["jobs"],"summary":"Schedule Endpoint","operationId":"schedule_endpoint_jobs__job_id__schedule_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Schedule Endpoint Jobs  Job Id  Schedule Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["jobs"],"summary":"List Schedule Endpoint","operationId":"list_schedule_endpoint_jobs__job_id__schedule_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Schedule Endpoint Jobs  Job Id  Schedule Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/invoice":{"post":{"tags":["jobs"],"summary":"Invoice Endpoint","operationId":"invoice_endpoint_jobs__job_id__invoice_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceRequest","default":{"service_fee_rate":0.1,"deposit_rate":0.5}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Invoice Endpoint Jobs  Job Id  Invoice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/send-invoice":{"post":{"tags":["jobs"],"summary":"Send Invoice Endpoint","operationId":"send_invoice_endpoint_jobs__job_id__send_invoice_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Send Invoice Endpoint Jobs  Job Id  Send Invoice Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/invoices":{"get":{"tags":["jobs"],"summary":"List Invoices Endpoint","operationId":"list_invoices_endpoint_jobs__job_id__invoices_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Invoices Endpoint Jobs  Job Id  Invoices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/payment-holds":{"post":{"tags":["jobs"],"summary":"Payment Holds Endpoint","operationId":"payment_holds_endpoint_jobs__job_id__payment_holds_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Payment Holds Endpoint Jobs  Job Id  Payment Holds Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["jobs"],"summary":"List Payment Holds Endpoint","operationId":"list_payment_holds_endpoint_jobs__job_id__payment_holds_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Payment Holds Endpoint Jobs  Job Id  Payment Holds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/release-payments":{"post":{"tags":["jobs"],"summary":"Release Payments Endpoint","operationId":"release_payments_endpoint_jobs__job_id__release_payments_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Release Payments Endpoint Jobs  Job Id  Release Payments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/recommend-supplies":{"post":{"tags":["jobs"],"summary":"Recommend Supplies Alias","operationId":"recommend_supplies_alias_jobs__job_id__recommend_supplies_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"regenerate","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Regenerate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Recommend Supplies Alias Jobs  Job Id  Recommend Supplies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/approve-supplies":{"post":{"tags":["jobs"],"summary":"Approve Supplies Alias","operationId":"approve_supplies_alias_jobs__job_id__approve_supplies_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Supplies Alias Jobs  Job Id  Approve Supplies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/proofs":{"post":{"tags":["jobs"],"summary":"Post Proof Endpoint","operationId":"post_proof_endpoint_jobs__job_id__proofs_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProofPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Post Proof Endpoint Jobs  Job Id  Proofs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["jobs"],"summary":"List Proofs Endpoint","operationId":"list_proofs_endpoint_jobs__job_id__proofs_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Proofs Endpoint Jobs  Job Id  Proofs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contractors":{"get":{"tags":["contractors"],"summary":"List Contractors","operationId":"list_contractors_api_contractors_get","parameters":[{"name":"skill","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill"}},{"name":"min_reliability","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Min Reliability"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Contractors Api Contractors Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contractors/{contractor_id}":{"get":{"tags":["contractors"],"summary":"Get Contractor","operationId":"get_contractor_api_contractors__contractor_id__get","parameters":[{"name":"contractor_id","in":"path","required":true,"schema":{"type":"string","title":"Contractor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Contractor Api Contractors  Contractor Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads":{"get":{"tags":["chat"],"summary":"List Chat Threads","operationId":"list_chat_threads_api_chat_threads_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ChatThreadRecord"}},"title":"Response List Chat Threads Api Chat Threads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["chat"],"summary":"Create Chat Thread","operationId":"create_chat_thread_api_chat_threads_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChatThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThreadDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/threads/{thread_id}":{"get":{"tags":["chat"],"summary":"Get Chat Thread","operationId":"get_chat_thread_api_chat_threads__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatThreadDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat":{"post":{"tags":["chat"],"summary":"Chat With Loop","operationId":"chat_with_loop_api_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory":{"get":{"tags":["inventory"],"summary":"List Items","operationId":"list_items_api_inventory_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"needs_reorder","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Needs Reorder"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":250,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Items Api Inventory Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/inventory/summary":{"get":{"tags":["inventory"],"summary":"Summary","operationId":"summary_api_inventory_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Summary Api Inventory Summary Get"}}}}}}},"/api/inventory/{item_id}":{"get":{"tags":["inventory"],"summary":"Get Item","operationId":"get_item_api_inventory__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Item Api Inventory  Item Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events":{"get":{"tags":["events"],"summary":"List Events","operationId":"list_events_api_events_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Events Api Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["events"],"summary":"Create Event","operationId":"create_event_api_events_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Event Api Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_id}":{"get":{"tags":["events"],"summary":"Get Event","operationId":"get_event_api_events__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Event Api Events  Event Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_id}/supplies/recommend":{"post":{"tags":["events"],"summary":"Recommend Event Supplies","description":"Return 3-5 recommended supplies for this event. Persists them as\n'recommended' (replacing any prior recommendations) so the chat / panel\ncan show the same set on reload. Pass `regenerate=true` to force a fresh\nGemini call even when prior recommendations exist.","operationId":"recommend_event_supplies_api_events__event_id__supplies_recommend_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"regenerate","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Regenerate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Recommend Event Supplies Api Events  Event Id  Supplies Recommend Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_id}/supplies":{"get":{"tags":["events"],"summary":"List Event Supplies","operationId":"list_event_supplies_api_events__event_id__supplies_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Event Supplies Api Events  Event Id  Supplies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_id}/supplies/approve":{"post":{"tags":["events"],"summary":"Approve Event Supplies","description":"Owner approves the recommended supply list. Flips every 'recommended'\nrow to 'approved' and attaches a Browser Use-style vendor evidence\nobject (URL, ETA window, one-line note) so the UI can render proof.","operationId":"approve_event_supplies_api_events__event_id__supplies_approve_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Approve Event Supplies Api Events  Event Id  Supplies Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_id}/supplies/browse":{"post":{"tags":["events"],"summary":"Start Live Browse Endpoint","description":"Fire one Browser Use Cloud session per supply item (in parallel).\nReturns the items with `bu_session_id` and `bu_live_url` populated so the\nUI can embed each session in an iframe.","operationId":"start_live_browse_endpoint_api_events__event_id__supplies_browse_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Start Live Browse Endpoint Api Events  Event Id  Supplies Browse Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["events"],"summary":"Poll Live Browse Endpoint","description":"Poll Browser Use for the latest state of every session attached to\nthis event and return the refreshed item list.","operationId":"poll_live_browse_endpoint_api_events__event_id__supplies_browse_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Poll Live Browse Endpoint Api Events  Event Id  Supplies Browse Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/events/{event_id}/supplies/pay":{"post":{"tags":["events"],"summary":"Pay Event Supplies","description":"Settle the supply purchase via Sponge wallet (default) or Stripe MPP.\nMarks every approved item as paid and attaches a fake reference id.","operationId":"pay_event_supplies_api_events__event_id__supplies_pay_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayRequest","default":{"method":"sponge"}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Pay Event Supplies Api Events  Event Id  Supplies Pay Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-call/demo":{"post":{"tags":["voice-call"],"summary":"Trigger Demo","description":"Run a full scripted shift-offer conversation. Generates ElevenLabs\naudio for every Ayush line and stores it as static MP3s. Returns the\ncall id + transcript with audio paths the frontend can play.","operationId":"trigger_demo_api_voice_call_demo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoCallRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Trigger Demo Api Voice Call Demo Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-call/{call_id}":{"get":{"tags":["voice-call"],"summary":"Get Voice Call","operationId":"get_voice_call_api_voice_call__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Voice Call Api Voice Call  Call Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voice-call":{"get":{"tags":["voice-call"],"summary":"List Voice Calls","operationId":"list_voice_calls_api_voice_call_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response List Voice Calls Api Voice Call Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"AcceptRequest":{"properties":{"contractor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Id"},"response":{"type":"string","title":"Response","default":"yes"},"send_real_email":{"type":"boolean","title":"Send Real Email","default":false}},"type":"object","title":"AcceptRequest"},"ActionChip":{"properties":{"label":{"type":"string","title":"Label"},"say":{"type":"string","title":"Say"}},"type":"object","required":["label","say"],"title":"ActionChip"},"ApproveReleaseRequest":{"properties":{"owner_approved":{"type":"boolean","title":"Owner Approved","default":true},"execute_real_payment":{"type":"boolean","title":"Execute Real Payment","default":false},"send_real_email":{"type":"boolean","title":"Send Real Email","default":false}},"type":"object","title":"ApproveReleaseRequest"},"Attachment":{"properties":{"mime_type":{"type":"string","title":"Mime Type"},"data":{"type":"string","title":"Data"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["mime_type","data"],"title":"Attachment"},"BrowserImportRequest":{"properties":{"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"Staffing/event page URL. Defaults to the local Bay Events demo page."},"force_local":{"type":"boolean","title":"Force Local","description":"Skip Browser Use Cloud and use the local extractor. Useful for localhost demo pages.","default":false}},"type":"object","title":"BrowserImportRequest"},"BrowserSourceRequest":{"properties":{"source_url":{"type":"string","title":"Source Url"},"source_type":{"type":"string","title":"Source Type","default":"staffing_portal"},"imported_fields":{"type":"object","title":"Imported Fields"},"screenshot_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screenshot Url"},"source_html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Html Url"},"extraction_confidence":{"type":"number","title":"Extraction Confidence","default":0.85},"update_status":{"type":"string","title":"Update Status","default":"pending"},"browser_action_log":{"items":{"type":"object"},"type":"array","title":"Browser Action Log"}},"type":"object","required":["source_url","imported_fields"],"title":"BrowserSourceRequest"},"BulkOutreachCounts":{"properties":{"needed":{"type":"integer","title":"Needed"},"filled":{"type":"integer","title":"Filled"},"live_texts":{"type":"integer","title":"Live Texts"},"live_calls":{"type":"integer","title":"Live Calls"},"simulated_replies":{"type":"integer","title":"Simulated Replies"},"declined":{"type":"integer","title":"Declined"}},"type":"object","required":["needed","filled","live_texts","live_calls","simulated_replies","declined"],"title":"BulkOutreachCounts"},"BulkOutreachRow":{"properties":{"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"channel":{"type":"string","title":"Channel"},"phone_last4":{"type":"string","title":"Phone Last4","default":""},"status":{"type":"string","title":"Status"},"response":{"type":"string","title":"Response"},"live":{"type":"boolean","title":"Live","default":false},"delivery_status":{"type":"string","title":"Delivery Status","default":""}},"type":"object","required":["name","role","channel","status","response"],"title":"BulkOutreachRow"},"BulkOutreachSnapshot":{"properties":{"title":{"type":"string","title":"Title"},"tag":{"type":"string","title":"Tag"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary"},"counts":{"$ref":"#/components/schemas/BulkOutreachCounts"},"rows":{"items":{"$ref":"#/components/schemas/BulkOutreachRow"},"type":"array","title":"Rows"},"evidence":{"items":{"type":"string"},"type":"array","title":"Evidence"}},"type":"object","required":["title","tag","status","summary","counts"],"title":"BulkOutreachSnapshot"},"ChatMessageRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"thread_id":{"type":"string","format":"uuid","title":"Thread Id"},"role":{"type":"string","title":"Role"},"body":{"type":"string","title":"Body"},"payload":{"type":"object","title":"Payload"},"attachments":{"items":{"type":"object"},"type":"array","title":"Attachments"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","thread_id","role","body","created_at"],"title":"ChatMessageRecord"},"ChatRequest":{"properties":{"turns":{"items":{"$ref":"#/components/schemas/Turn"},"type":"array","minItems":1,"title":"Turns"},"attachments":{"items":{"$ref":"#/components/schemas/Attachment"},"type":"array","title":"Attachments"},"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"structured":{"type":"boolean","title":"Structured","description":"When true (default) the response carries event_draft + action_chips + shortlist.","default":true}},"type":"object","required":["turns"],"title":"ChatRequest"},"ChatResponse":{"properties":{"thread_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Thread Id"},"reply":{"type":"string","title":"Reply"},"intent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent"},"event_draft":{"anyOf":[{"$ref":"#/components/schemas/EventDraft"},{"type":"null"}]},"event_plan":{"anyOf":[{"$ref":"#/components/schemas/EventPlan"},{"type":"null"}]},"bulk_outreach":{"anyOf":[{"$ref":"#/components/schemas/BulkOutreachSnapshot"},{"type":"null"}]},"invoice_email":{"anyOf":[{"$ref":"#/components/schemas/InvoiceEmailSnapshot"},{"type":"null"}]},"action_chips":{"items":{"$ref":"#/components/schemas/ActionChip"},"type":"array","title":"Action Chips"},"shortlist":{"items":{"$ref":"#/components/schemas/ShortlistEntry"},"type":"array","title":"Shortlist"}},"type":"object","required":["reply"],"title":"ChatResponse"},"ChatThreadDetail":{"properties":{"thread":{"$ref":"#/components/schemas/ChatThreadRecord"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessageRecord"},"type":"array","title":"Messages"}},"type":"object","required":["thread"],"title":"ChatThreadDetail"},"ChatThreadRecord":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"message_count":{"type":"integer","title":"Message Count","default":0},"last_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message"},"last_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Role"}},"type":"object","required":["id","title","status","created_at","updated_at"],"title":"ChatThreadRecord"},"CheckInRequest":{"properties":{"contractor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Id"},"proof_type":{"type":"string","title":"Proof Type","default":"sms"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","default":"Arrived on site and checked in by SMS."}},"type":"object","title":"CheckInRequest"},"CreateChatThreadRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"initial_message":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Initial Message"}},"type":"object","title":"CreateChatThreadRequest"},"CreateEventRequest":{"properties":{"business_name":{"type":"string","title":"Business Name","default":"Bay Events Co."},"role":{"type":"string","title":"Role","description":"Primary role (bartender, server, event_captain, etc.)"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"type":"string","title":"Location"},"start_time":{"type":"string","title":"Start Time"},"end_time":{"type":"string","title":"End Time"},"pay_amount":{"type":"number","title":"Pay Amount"},"urgency":{"type":"string","title":"Urgency","default":"standard"},"required_skills":{"items":{"type":"string"},"type":"array","title":"Required Skills"},"status":{"type":"string","title":"Status","default":"drafting"}},"type":"object","required":["role","location","start_time","end_time","pay_amount"],"title":"CreateEventRequest"},"CreateJobRequest":{"properties":{"request_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Text","description":"Owner SMS or free-form staffing request."},"business_name":{"type":"string","title":"Business Name","default":"Bay Events Co."},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"pay_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pay Amount"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"required_skills":{"items":{"type":"string"},"type":"array","title":"Required Skills"}},"type":"object","title":"CreateJobRequest"},"DemoCallRequest":{"properties":{"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id","description":"Job/event UUID to call about."},"contractor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Id","description":"Contractor UUID to call."},"contractor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Name","description":"Override the contractor name."}},"type":"object","title":"DemoCallRequest"},"EventDraft":{"properties":{"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"guest_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Guest Count"},"pay_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pay Amount"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"},"required_roles":{"items":{"type":"string"},"type":"array","title":"Required Roles"}},"type":"object","title":"EventDraft"},"EventPlan":{"properties":{"event_name":{"type":"string","title":"Event Name"},"details":{"type":"string","title":"Details"},"event_date":{"type":"string","title":"Event Date"},"event_time":{"type":"string","title":"Event Time"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"staff_requirement":{"type":"string","title":"Staff Requirement"},"responsibilities":{"type":"string","title":"Responsibilities"},"inventory_requirement":{"type":"string","title":"Inventory Requirement"},"estimated_labor":{"type":"string","title":"Estimated Labor"},"invoice_amount":{"type":"string","title":"Invoice Amount"},"approval_question":{"type":"string","title":"Approval Question"}},"type":"object","required":["event_name","details","event_date","event_time","staff_requirement","responsibilities","inventory_requirement","estimated_labor","invoice_amount","approval_question"],"title":"EventPlan"},"EventRequest":{"properties":{"type":{"type":"string","title":"Type"},"content":{"type":"string","title":"Content"},"status":{"type":"string","title":"Status","default":"complete"},"metadata":{"type":"object","title":"Metadata"}},"type":"object","required":["type","content"],"title":"EventRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvoiceEmailReceipt":{"properties":{"label":{"type":"string","title":"Label"},"to":{"type":"string","title":"To"},"subject":{"type":"string","title":"Subject"},"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["label","to","subject","status","provider","detail"],"title":"InvoiceEmailReceipt"},"InvoiceEmailSnapshot":{"properties":{"title":{"type":"string","title":"Title"},"tag":{"type":"string","title":"Tag"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary"},"event":{"additionalProperties":{"type":"string"},"type":"object","title":"Event"},"line_items":{"items":{"$ref":"#/components/schemas/InvoiceLineItem"},"type":"array","title":"Line Items"},"inventory_items":{"items":{"$ref":"#/components/schemas/InvoiceInventoryItem"},"type":"array","title":"Inventory Items"},"total":{"type":"string","title":"Total"},"deposit":{"type":"string","title":"Deposit"},"balance_due":{"type":"string","title":"Balance Due"},"emails":{"items":{"$ref":"#/components/schemas/InvoiceEmailReceipt"},"type":"array","title":"Emails"},"wallets":{"items":{"$ref":"#/components/schemas/SpongeWalletSnapshot"},"type":"array","title":"Wallets"},"cancellation_policy":{"type":"string","title":"Cancellation Policy"},"evidence":{"items":{"type":"string"},"type":"array","title":"Evidence"}},"type":"object","required":["title","tag","status","summary","event","total","deposit","balance_due","cancellation_policy"],"title":"InvoiceEmailSnapshot"},"InvoiceInventoryItem":{"properties":{"name":{"type":"string","title":"Name"},"qty":{"type":"string","title":"Qty"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["name","qty","amount"],"title":"InvoiceInventoryItem"},"InvoiceLineItem":{"properties":{"label":{"type":"string","title":"Label"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["label","amount"],"title":"InvoiceLineItem"},"InvoiceRequest":{"properties":{"client_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Email"},"service_fee_rate":{"type":"number","title":"Service Fee Rate","default":0.1},"deposit_rate":{"type":"number","title":"Deposit Rate","default":0.5}},"type":"object","title":"InvoiceRequest"},"OutreachRequest":{"properties":{"contractor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Id"},"send_real":{"type":"boolean","title":"Send Real","default":false}},"type":"object","title":"OutreachRequest"},"PayRequest":{"properties":{"method":{"type":"string","pattern":"^(sponge|stripe_mpp)$","title":"Method","default":"sponge"}},"type":"object","title":"PayRequest"},"PlaceCallRequest":{"properties":{"to":{"type":"string","title":"To","description":"Recipient phone in E.164"},"initial_greeting":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Initial Greeting"},"system_prompt":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"System Prompt"}},"type":"object","required":["to"],"title":"PlaceCallRequest"},"ProofPostRequest":{"properties":{"type":{"type":"string","pattern":"^(sms|photo|qr|manager_approval|call|timesheet)$","title":"Type"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"contractor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Id"},"content_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Url"},"status":{"type":"string","title":"Status","default":"received"}},"type":"object","required":["type"],"title":"ProofPostRequest"},"ScheduleAssignment":{"properties":{"contractor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Id"},"contractor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contractor Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"ScheduleAssignment"},"ScheduleRequest":{"properties":{"assignments":{"items":{"$ref":"#/components/schemas/ScheduleAssignment"},"type":"array","title":"Assignments"}},"type":"object","title":"ScheduleRequest"},"SendSmsRequest":{"properties":{"to":{"type":"string","title":"To","description":"Recipient phone in E.164, e.g. +14155551234"},"body":{"type":"string","maxLength":1600,"minLength":1,"title":"Body"}},"type":"object","required":["to","body"],"title":"SendSmsRequest"},"ShortlistEntry":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"avatar_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Path"},"skills":{"items":{"type":"string"},"type":"array","title":"Skills"},"reliability_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reliability Score"},"distance_miles":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Miles"}},"type":"object","required":["name"],"title":"ShortlistEntry"},"SpongeWalletSnapshot":{"properties":{"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"arrival":{"type":"string","title":"Arrival"},"shift":{"type":"string","title":"Shift"},"pay":{"type":"string","title":"Pay"},"wallet_id":{"type":"string","title":"Wallet Id"},"status":{"type":"string","title":"Status"},"release_rules":{"items":{"type":"string"},"type":"array","title":"Release Rules"}},"type":"object","required":["name","role","arrival","shift","pay","wallet_id","status"],"title":"SpongeWalletSnapshot"},"Turn":{"properties":{"role":{"type":"string","pattern":"^(user|model|assistant)$","title":"Role"},"text":{"type":"string","title":"Text"}},"type":"object","required":["role","text"],"title":"Turn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}