{"openapi":"3.1.0","info":{"title":"Connek Public API","description":"API HMAC-signed para que partners externos consuman recursos de un business Connek (clients, leads, services, bookings, quotes, invoices, payment URLs, availability).","version":"1.0.0"},"paths":{"/v1/clients":{"get":{"tags":["Public API v1"],"summary":"List Clients","operationId":"list_clients_v1_clients_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Public API v1"],"summary":"Create Client","operationId":"create_client_v1_clients_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateClientPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clients/{client_id}":{"get":{"tags":["Public API v1"],"summary":"Get Client","operationId":"get_client_v1_clients__client_id__get","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"integer","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Public API v1"],"summary":"Update Client","operationId":"update_client_v1_clients__client_id__patch","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"integer","title":"Client Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateClientPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Public API v1"],"summary":"Delete Client","operationId":"delete_client_v1_clients__client_id__delete","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"integer","title":"Client Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/leads":{"get":{"tags":["Public API v1"],"summary":"List Leads","operationId":"list_leads_v1_leads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Public API v1"],"summary":"Create Lead","operationId":"create_lead_v1_leads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateLeadPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/leads/{lead_id}":{"get":{"tags":["Public API v1"],"summary":"Get Lead","operationId":"get_lead_v1_leads__lead_id__get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Public API v1"],"summary":"Update Lead","operationId":"update_lead_v1_leads__lead_id__patch","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateLeadPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Public API v1"],"summary":"Delete Lead","operationId":"delete_lead_v1_leads__lead_id__delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"integer","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/services":{"get":{"tags":["Public API v1"],"summary":"List Services","operationId":"list_services_v1_services_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Public API v1"],"summary":"Create Service","operationId":"create_service_v1_services_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateServicePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/services/{service_id}":{"get":{"tags":["Public API v1"],"summary":"Get Service","operationId":"get_service_v1_services__service_id__get","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Public API v1"],"summary":"Update Service","operationId":"update_service_v1_services__service_id__patch","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateServicePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Public API v1"],"summary":"Delete Service","operationId":"delete_service_v1_services__service_id__delete","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"integer","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings":{"get":{"tags":["Public API v1"],"summary":"List Bookings","operationId":"list_bookings_v1_bookings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Public API v1"],"summary":"Create Booking","operationId":"create_booking_v1_bookings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateBookingPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings/{booking_id}":{"get":{"tags":["Public API v1"],"summary":"Get Booking","operationId":"get_booking_v1_bookings__booking_id__get","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"integer","title":"Booking Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Public API v1"],"summary":"Update Booking","operationId":"update_booking_v1_bookings__booking_id__patch","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"integer","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateBookingPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Public API v1"],"summary":"Delete Booking","operationId":"delete_booking_v1_bookings__booking_id__delete","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"integer","title":"Booking Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/quotes":{"post":{"tags":["Public API v1"],"summary":"Create Quote","operationId":"create_quote_v1_quotes_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateQuotePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Public API v1"],"summary":"List Quotes","operationId":"list_quotes_v1_quotes_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/quotes/{quote_id}":{"get":{"tags":["Public API v1"],"summary":"Get Quote","operationId":"get_quote_v1_quotes__quote_id__get","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"integer","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Public API v1"],"summary":"Update Quote","operationId":"update_quote_v1_quotes__quote_id__patch","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"integer","title":"Quote Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateQuotePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Public API v1"],"summary":"Delete Quote","operationId":"delete_quote_v1_quotes__quote_id__delete","parameters":[{"name":"quote_id","in":"path","required":true,"schema":{"type":"integer","title":"Quote Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invoices":{"post":{"tags":["Public API v1"],"summary":"Create Invoice","operationId":"create_invoice_v1_invoices_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCreateInvoicePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Public API v1"],"summary":"List Invoices","operationId":"list_invoices_v1_invoices_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Client Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invoices/{invoice_id}":{"get":{"tags":["Public API v1"],"summary":"Get Invoice","operationId":"get_invoice_v1_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Public API v1"],"summary":"Update Invoice","operationId":"update_invoice_v1_invoices__invoice_id__patch","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUpdateInvoicePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Public API v1"],"summary":"Delete Invoice","operationId":"delete_invoice_v1_invoices__invoice_id__delete","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"integer","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/availability":{"get":{"tags":["Public API v1"],"summary":"Availability","operationId":"availability_v1_availability_get","parameters":[{"name":"from_date","in":"query","required":true,"schema":{"type":"string","description":"YYYY-MM-DD (inclusive)","title":"From Date"},"description":"YYYY-MM-DD (inclusive)"},{"name":"to_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"YYYY-MM-DD (inclusive); defaults to from_date","title":"To Date"},"description":"YYYY-MM-DD (inclusive); defaults to from_date"},{"name":"service_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"}},{"name":"staff_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Staff Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/greg/chat":{"post":{"tags":["Public API v1"],"summary":"Greg Chat","operationId":"greg_chat_v1_greg_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicGregChatPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/greg/sessions/{session_id}":{"get":{"tags":["Public API v1"],"summary":"Greg Session Messages","description":"Historial de mensajes de una sesión. Tenant guard:\nsession → greg → business_id == ctx.business_id.","operationId":"greg_session_messages_v1_greg_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/landing-interest":{"post":{"tags":["Landing registration"],"summary":"Receive a Connek landing registration","operationId":"create_landing_interest_landing_interest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LandingInterestPayload"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LandingInterestPayload":{"properties":{"intent":{"type":"string","enum":["client","professional"],"title":"Intent"},"first_name":{"type":"string","maxLength":80,"minLength":2,"title":"First Name"},"last_name":{"type":"string","maxLength":80,"minLength":2,"title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"locale":{"type":"string","enum":["en","fr","es"],"title":"Locale"},"consent":{"type":"boolean","const":true,"title":"Consent"},"city":{"anyOf":[{"type":"string","maxLength":100,"minLength":2},{"type":"null"}],"title":"City"},"company_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":2},{"type":"null"}],"title":"Company Name"},"interest":{"type":"string","enum":["home_services","construction_repairs","beauty_wellness","cleaning","business_services","technology","other"],"title":"Interest"},"note":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Note"},"website":{"type":"string","maxLength":120,"title":"Website","default":""}},"additionalProperties":false,"type":"object","required":["intent","first_name","last_name","email","locale","consent","interest"],"title":"LandingInterestPayload"},"LineItem":{"properties":{"description":{"type":"string","title":"Description"},"quantity":{"type":"number","title":"Quantity","default":1},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"unit_price_cents":{"type":"integer","title":"Unit Price Cents"},"amount_cents":{"type":"integer","title":"Amount Cents"}},"type":"object","required":["description","unit_price_cents","amount_cents"],"title":"LineItem"},"PublicCreateBookingPayload":{"properties":{"client_id":{"type":"integer","title":"Client Id"},"start_time_utc":{"type":"string","format":"date-time","title":"Start Time Utc"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"end_time_utc":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time Utc"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"assigned_staff_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assigned Staff Id"},"address_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Address Id"}},"type":"object","required":["client_id","start_time_utc","duration_minutes"],"title":"PublicCreateBookingPayload"},"PublicCreateClientPayload":{"properties":{"first_name":{"type":"string","maxLength":80,"minLength":1,"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["first_name"],"title":"PublicCreateClientPayload"},"PublicCreateInvoicePayload":{"properties":{"client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Client Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"from_quote_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Quote Id"},"document_type":{"type":"string","title":"Document Type","default":"factura"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms"},"amount_cents":{"type":"integer","minimum":0.0,"title":"Amount Cents","default":0},"currency":{"type":"string","title":"Currency","default":"CAD"},"line_items":{"items":{"$ref":"#/components/schemas/LineItem"},"type":"array","title":"Line Items"},"taxes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Taxes"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"}},"type":"object","title":"PublicCreateInvoicePayload"},"PublicCreateLeadPayload":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title","default":"Solicitud desde sitio web"},"description":{"type":"string","maxLength":1000,"minLength":10,"title":"Description"},"client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Client Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"budget_min_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Min Cents"},"budget_max_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Budget Max Cents"},"urgency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urgency"}},"type":"object","required":["description"],"title":"PublicCreateLeadPayload"},"PublicCreateQuotePayload":{"properties":{"client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Client Id"},"lead_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lead Id"},"request_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Request Id"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"obo_business_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Obo Business Id"},"amount_cents":{"type":"integer","minimum":0.0,"title":"Amount Cents","default":0},"currency":{"type":"string","title":"Currency","default":"CAD"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"document_type":{"type":"string","title":"Document Type","default":"cotizacion"},"line_items":{"items":{},"type":"array","title":"Line Items"},"taxes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Taxes"},"terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"quote_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Number"}},"type":"object","title":"PublicCreateQuotePayload"},"PublicCreateServicePayload":{"properties":{"name":{"type":"string","maxLength":100,"minLength":2,"title":"Name"},"service_category":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Service Category"},"price_cents":{"type":"integer","minimum":0.0,"title":"Price Cents"},"price_low_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price Low Cents"},"price_high_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price High Cents"},"duration_minutes":{"type":"integer","minimum":0.0,"title":"Duration Minutes","default":30},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"profile_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Image"},"images":{"type":"string","title":"Images","default":"[]"},"staff_ids":{"type":"string","title":"Staff Ids","default":"[]"},"custom_form":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Custom Form"}},"type":"object","required":["name","price_cents"],"title":"PublicCreateServicePayload"},"PublicGregChatPayload":{"properties":{"message":{"type":"string","title":"Message"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"content_type":{"type":"string","title":"Content Type","default":"text"}},"type":"object","required":["message"],"title":"PublicGregChatPayload"},"PublicUpdateBookingPayload":{"properties":{"start_time_utc":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time Utc"},"end_time_utc":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time Utc"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"assigned_staff_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assigned Staff Id"},"address_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Address Id"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"client_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Notes"},"custom_form_answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Form Answers"}},"type":"object","title":"PublicUpdateBookingPayload","description":"Subset seguro de campos editables. `business_id`/`client_id` fuera a\npropósito — no se cambian."},"PublicUpdateClientPayload":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Phone"},"about_me":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About Me"},"profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Url"},"banner_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner Url"}},"type":"object","title":"PublicUpdateClientPayload"},"PublicUpdateInvoicePayload":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms"},"amount_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Amount Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"line_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/LineItem"},"type":"array"},{"type":"null"}],"title":"Line Items"},"taxes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Taxes"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"PublicUpdateInvoicePayload"},"PublicUpdateLeadPayload":{"properties":{"seen":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Seen"},"payment_made":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Payment Made"},"proposal_sent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proposal Sent"},"proposal_accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proposal Accepted"},"client_contacted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Client Contacted"},"booking_made":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Booking Made"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"service_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Id"},"proposed_booking_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposed Booking Date"}},"type":"object","title":"PublicUpdateLeadPayload"},"PublicUpdateQuotePayload":{"properties":{"amount_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Amount Cents"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"line_items":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Line Items"},"taxes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Taxes"},"terms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"quote_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Number"}},"type":"object","title":"PublicUpdateQuotePayload"},"PublicUpdateServicePayload":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":2},{"type":"null"}],"title":"Name"},"service_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Category"},"price_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price Cents"},"price_low_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price Low Cents"},"price_high_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Price High Cents"},"duration_minutes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Duration Minutes"},"description":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Description"},"profile_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Image"},"images":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Images"},"staff_ids":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staff Ids"},"custom_form":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Custom Form"}},"type":"object","title":"PublicUpdateServicePayload"},"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"}}}}