{"openapi":"3.1.2","info":{"title":"Saply API","version":"1.0.0","description":"The Saply staff API: everything the staff app does, for scripts and AI agents.\nAuthenticate with `Authorization: Bearer <token>`, either an OAuth access token\n(connect an app at /oauth/authorize) or a personal API key from Settings → AI agents & API.\nA token belongs to one workspace, so `X-Tenant-ID` is optional with Bearer.\nMoney is in minor units (cents) and timestamps are UTC ISO-8601."},"servers":[{"url":"https://app.saply.co/api/v1","description":"Saply"}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"tags":[{"name":"Dashboard"},{"name":"Calendar"},{"name":"Guests"},{"name":"Properties"},{"name":"Services"},{"name":"Resources"},{"name":"Bookings"},{"name":"Tasks"},{"name":"Payments"},{"name":"Operations"},{"name":"Proposals"},{"name":"CRM"},{"name":"Retail"},{"name":"Reports"},{"name":"Communications"},{"name":"Staff Workspace"},{"name":"Supply Orders"},{"name":"Supply Lists"},{"name":"Inventory"},{"name":"Campaigns"}],"paths":{"/bookings/{booking}/invoices":{"parameters":[{"in":"path","name":"booking","required":true,"schema":{"type":"string"}}],"get":{"operationId":"listBookingInvoice","responses":{"200":{"description":"Persisted invoice snapshot","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BookingInvoice"}}}}}}}}},"post":{"operationId":"issueBookingInvoice","responses":{"201":{"description":"Persisted invoice snapshot","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/BookingInvoice"}}}}}}}}},"/invoices/{invoice}":{"parameters":[{"in":"path","name":"invoice","required":true,"schema":{"type":"string"}}],"get":{"operationId":"showBookingInvoice","responses":{"200":{"description":"Persisted invoice snapshot","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/BookingInvoice"}}}}}}}}},"/dashboard":{"get":{"tags":["Dashboard"],"operationId":"getDashboard","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Operational summary for the current tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/workspaces":{"post":{"tags":["Staff Workspace"],"operationId":"createWorkspace","description":"Self-serve signup. A signed-in account creates its own workspace (with a first property of the same name and the default resource types) and becomes its administrator. The address need not be confirmed yet; the workspace is the account's own. Sign-up's `rooms_band`, `heard_about` and `heard_about_ai_prompt` answers are kept for onboarding and sent in the operator's new-signup email. Available only when the deployment turns self-serve signup on; each account may create up to three. Never accepts a tenant identifier.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","locale","currency","timezone"],"additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"locale":{"type":"string","enum":["en","es","pt"]},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"ISO 4217 code."},"timezone":{"type":"string","description":"IANA time zone, such as America/Argentina/Buenos_Aires."},"rooms_band":{"type":"string","nullable":true,"enum":["1","2-5","6+",null],"description":"\"How many rooms or units do you rent?\""},"heard_about":{"type":"string","nullable":true,"enum":["search","ai","social","friend","channel","event","other",null],"description":"\"Where did you hear about us?\" (optional)."},"date_format":{"description":"How the owner's browser writes dates; Display settings starts there.","type":["string","null"],"enum":["MM/DD/YYYY","DD/MM/YYYY","YYYY-MM-DD",null]},"week_starts_on":{"description":"The owner's browser's first day of the week.","type":["string","null"],"enum":["sunday","monday",null]},"heard_about_ai_prompt":{"type":"string","nullable":true,"maxLength":500,"description":"\"What did you ask the AI?\" (optional). Kept on one line, and only with the `ai` answer."}}}}}},"responses":{"201":{"description":"The workspace was created; select it to open it.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","name","slug"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"}}}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/workspace-invitations/{invitation}/accept":{"parameters":[{"$ref":"#/components/parameters/WorkspaceInvitationId"}],"post":{"tags":["Staff Workspace"],"operationId":"acceptWorkspaceInvitation","description":"The signed-in account accepts an invitation addressed to it and joins the workspace with the invited role and property. Only the invited account may answer, and only with a verified email; anyone else's invitation, or one already answered or withdrawn, is not found. Never accepts a tenant identifier; select the workspace afterwards to open it.","responses":{"200":{"description":"The workspace the account now belongs to.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/WorkspaceAccess"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/workspace-invitations/{invitation}/decline":{"parameters":[{"$ref":"#/components/parameters/WorkspaceInvitationId"}],"post":{"tags":["Staff Workspace"],"operationId":"declineWorkspaceInvitation","description":"The signed-in account declines an invitation addressed to it; it does not join, and the administrator may invite it again. Same rules as accepting.","responses":{"204":{"description":"Declined."},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/staff-capabilities":{"get":{"tags":["Staff Workspace"],"operationId":"getStaffCapabilities","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Current tenant, membership scope, and role capabilities.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCapabilitiesEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-settings/preferences/{section}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"section","in":"path","required":true,"schema":{"type":"string","enum":["audit-reasons","guest-quick-entry","guest-payments","invoice","review-sites","voip","terminology","branding","display"]}}],"get":{"tags":["Staff Workspace"],"operationId":"getStaffPreferences","responses":{"200":{"description":"Current values for the selected settings section.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPreferencesEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}},"patch":{"tags":["Staff Workspace"],"operationId":"updateStaffPreferences","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPreferenceUpdate"}}}},"responses":{"200":{"description":"Saved values for the selected settings section.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPreferencesEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/bookings":{"get":{"tags":["Bookings"],"operationId":"listBookings","responses":{"200":{"description":"Paginated bookings visible in the active workspace.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BookingResource"}},"meta":{"type":"object","additionalProperties":false,"required":["current_page","last_page","per_page","total"],"properties":{"current_page":{"type":"integer","minimum":1},"last_page":{"type":"integer","minimum":1},"per_page":{"type":"integer","minimum":1},"total":{"type":"integer","minimum":0},"summary":{"$ref":"#/components/schemas/BookingDirectorySummary"}}}}}},"text/csv":{"schema":{"type":"string"}}}}}},"post":{"tags":["Booking"],"operationId":"createBooking","summary":"Create a booking from a saved quote (quote_id) for a new or existing guest","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quote_id":{"type":"string","format":"uuid"},"reason":{"type":["string","null"],"maxLength":500},"guest_id":{"type":["string","null"],"format":"uuid"},"guest_first_name":{"type":["string","null"],"maxLength":100},"guest_last_name":{"type":["string","null"],"maxLength":100},"guest_email":{"type":["string","null"],"format":"email","maxLength":255},"guest_phone":{"type":["string","null"],"maxLength":40},"guest_language":{"type":["string","null"],"maxLength":12},"guest_country":{"type":["string","null"],"minLength":2,"maxLength":2},"guest_marketing_consent":{"type":"boolean"},"status":{"type":"string","enum":["hold","confirmed","checked_out"]},"external_reference":{"type":["string","null"],"maxLength":160},"dietary_requirements":{"type":["string","null"],"maxLength":2000},"allergies":{"type":["string","null"],"maxLength":2000},"other_restrictions":{"type":["string","null"],"maxLength":2000},"guest_requests":{"type":["string","null"],"maxLength":5000},"notes":{"type":["string","null"],"maxLength":10000}},"required":["quote_id"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/calendar":{"get":{"tags":["Calendar"],"operationId":"getCalendar","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"property_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"resource_kind","in":"query","schema":{"type":"string","enum":["place","asset","crew"]}},{"name":"booking_status","in":"query","schema":{"type":"string"}},{"name":"service_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"boundary","in":"query","schema":{"type":"string","enum":["arrival","departure"]}},{"name":"attention","in":"query","schema":{"type":"string","enum":["conflicted","unassigned"]}}],"responses":{"200":{"description":"Unified booking, service, task, and resource-block events for a date range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarProjection"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/operations":{"get":{"tags":["Operations"],"operationId":"getOperationsProjection","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"date","in":"query","schema":{"type":"string","format":"date"}},{"name":"task_id","in":"query","description":"Return this exact visible task separately as focused_task so dashboard drill-down can open it without changing the selected-day queue or KPIs.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Role-minimal daily readiness, kitchen, guide, and housekeeping projection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/operations/guide-options":{"get":{"tags":["Operations"],"operationId":"getOperationsGuideOptions","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"occurrence_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Privacy-safe active guide resources and live assignments for one scheduled activity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuideAssignmentOptionsEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/operations/guide-assignments":{"post":{"tags":["Operations"],"operationId":"mutateOperationsGuideAssignment","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action","occurrence_id","reason"],"properties":{"action":{"type":"string","enum":["assign","replace","release"]},"occurrence_id":{"type":"string","format":"uuid"},"assignment_id":{"type":["string","null"],"format":"uuid"},"resource_id":{"type":["string","null"],"format":"uuid"},"reason":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"description":"Existing guide assignment replaced or released."},"201":{"description":"Guide assignment created."},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-questionnaires":{"get":{"tags":["Guests"],"operationId":"getStaffQuestionnaires","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"start","in":"query","schema":{"type":"string","format":"date"}},{"name":"end","in":"query","schema":{"type":"string","format":"date"}},{"name":"score","in":"query","schema":{"type":"integer","minimum":1,"maximum":5}}],"responses":{"200":{"description":"Tenant and property scoped post-stay questionnaire responses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffQuestionnaireEnvelope"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-questionnaires/templates":{"post":{"tags":["Guests"],"operationId":"createQuestionnaireTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateCreateInput"}}}},"responses":{"201":{"description":"Immutable-version questionnaire draft created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-questionnaires/templates/{questionnaireTemplate}":{"patch":{"tags":["Guests"],"operationId":"updateQuestionnaireTemplateDraft","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"questionnaireTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateUpdateInput"}}}},"responses":{"200":{"description":"Draft schema revalidated and updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-questionnaires/templates/{questionnaireTemplate}/publish":{"post":{"tags":["Guests"],"operationId":"publishQuestionnaireTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"questionnaireTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Draft published and the prior active locale version retired atomically.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-questionnaires/templates/{questionnaireTemplate}/retire":{"post":{"tags":["Guests"],"operationId":"retireQuestionnaireTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"questionnaireTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Published questionnaire version retired without rewriting captured responses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionnaireTemplateEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-questionnaires/waivers":{"post":{"tags":["Guests","Documents"],"operationId":"publishWaiverTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaiverTemplateCreateInput"}}}},"responses":{"201":{"description":"New waiver version published with exact body checksum.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaiverTemplateEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-questionnaires/identity-documents/{guestIdentityDocument}/download":{"get":{"tags":["Guests","Documents"],"operationId":"downloadGuestIdentityDocument","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"guestIdentityDocument","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Clean, integrity-verified private identity document for an authorized staff role.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"503":{"description":"Private artifact storage is temporarily unavailable."}}}},"/guests":{"get":{"tags":["Guests"],"operationId":"listGuests","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/Search"},{"$ref":"#/components/parameters/Page"}],"responses":{"200":{"description":"Paginated tenant guest directory.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestCollection"}},"text/csv":{"schema":{"type":"string"}}}}}},"post":{"tags":["Guests"],"operationId":"createGuest","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestInput"}}}},"responses":{"201":{"description":"Guest created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/guests/{guest}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/GuestId"}],"get":{"tags":["Guests"],"operationId":"getGuest","responses":{"200":{"description":"Guest detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Guests"],"operationId":"updateGuest","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestUpdateInput"}}}},"responses":{"200":{"description":"Guest updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestEnvelope"}}}},"409":{"description":"The guest profile changed since expected_revision was read."},"422":{"$ref":"#/components/responses/ValidationError"}}},"put":{"tags":["Guests"],"operationId":"replaceGuest","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestUpdateInput"}}}},"responses":{"200":{"description":"Guest replaced.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestEnvelope"}}}},"409":{"description":"The guest profile changed since expected_revision was read."},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Guests"],"operationId":"archiveGuest","responses":{"204":{"description":"Guest archived or deleted according to retention policy."}}}},"/guests/{guest}/merge":{"post":{"tags":["CRM"],"operationId":"mergeGuest","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/GuestId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["target_guest_id"],"properties":{"target_guest_id":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"},"409":{"$ref":"#/components/responses/Conflict"}}}},"/guests/duplicates/search":{"get":{"tags":["Guests"],"operationId":"searchDuplicateGuests","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"email","in":"query","schema":{"type":"string","format":"email"}},{"name":"phone","in":"query","schema":{"type":"string"}},{"name":"name","in":"query","schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/guests/{guest}/history":{"get":{"tags":["Guests"],"operationId":"getGuestHistory","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/GuestId"}],"responses":{"200":{"description":"Complete primary and companion booking history plus tenant-currency lifetime totals.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestHistoryEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/onboarding":{"get":{"tags":["Staff Workspace"],"operationId":"getOnboarding","description":"New lodges' onboarding. What the owner chose on \"Bring your lodge\" (`start_choice`), how far the setup steps got, whether the first dashboard visit still asks \"How would you like to get started?\" (`tour_pending`), and the getting-started checklist in groups. Each group is worked out from the workspace's data, so doing the thing anywhere ticks it; each task's `href` opens the exact form. A group with `minimum` is done when that many of its tasks are. The team group is `optional` for lodges that rent one unit. The checklist is `visible` until every group is done or it is put away. A workspace without onboarding state (loaded straight from fixtures) counts as set up, with the checklist put away. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Setup progress, the card's state and the checklist.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Onboarding"}}}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/onboarding/setup":{"put":{"tags":["Staff Workspace"],"operationId":"saveOnboardingSetup","description":"Records the first-time setup step reached. The step never goes back, and once `completed`, setup stays completed. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["step"],"properties":{"step":{"type":"integer","minimum":0,"maximum":8},"completed":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["setup_step","setup_completed"],"properties":{"setup_step":{"type":"integer"},"setup_completed":{"type":"boolean"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/onboarding/fold":{"post":{"tags":["Staff Workspace"],"operationId":"foldOnboarding","description":"\"Hide\": folds the getting-started card down to one line, which still shows its progress. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/onboarding/close":{"post":{"tags":["Staff Workspace"],"operationId":"closeOnboarding","description":"\"I'm all set\": puts the getting-started card away until it is reopened. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/onboarding/reopen":{"post":{"tags":["Staff Workspace"],"operationId":"reopenOnboarding","description":"Brings the getting-started card back, unfolded (Help's \"Getting started\"). Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/onboarding/start":{"put":{"tags":["Staff Workspace"],"operationId":"saveOnboardingStart","description":"What the owner chose on \"Bring your lodge\" (import, sample, setup or skip). The first answer stays. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["choice"],"properties":{"choice":{"type":"string","enum":["import","sample","setup","skip"]}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["start_choice"],"properties":{"start_choice":{"type":"string"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/onboarding/tour":{"put":{"tags":["Staff Workspace"],"operationId":"saveOnboardingTour","description":"The first dashboard visit's answer to \"How would you like to get started?\" (a guided tour, or exploring alone), so it is asked once. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["choice"],"properties":{"choice":{"type":"string","enum":["tour","explore"]}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["tour_choice"],"properties":{"tour_choice":{"type":"string"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/lodge-page":{"get":{"tags":["Staff Workspace"],"operationId":"getLodgePage","description":"The lodge's public booking page as it stands, published or not, and whether \"Use AI\" can draft its description (`ai_description`). Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"$ref":"#/components/responses/LodgePage"},"403":{"$ref":"#/components/responses/Forbidden"}}},"patch":{"tags":["Staff Workspace"],"operationId":"updateLodgePage","description":"Saves whichever of the page's answers are sent; a field sent empty clears it. Setup sends one step's answers on each Next, the builder its choices. `internal_name` renames the workspace; without it, `public_name` does. `amenities_answered` records a skipped amenities step. Changing the address places it on the map when a geocoder is configured. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"public_name":{"type":"string","nullable":true,"maxLength":120},"internal_name":{"type":"string","nullable":true,"maxLength":160},"country":{"type":"string","nullable":true,"pattern":"^[A-Z]{2}$"},"address":{"type":"string","nullable":true,"maxLength":200},"city":{"type":"string","nullable":true,"maxLength":120},"postcode":{"type":"string","nullable":true,"maxLength":12},"unit_kind":{"type":"string","nullable":true,"enum":["cabins","rooms","tents","domes","glamping",null]},"bedrooms":{"type":"integer","nullable":true,"minimum":0,"maximum":50},"bathrooms":{"type":"integer","nullable":true,"minimum":0,"maximum":50},"amenities":{"type":"array","items":{"$ref":"#/components/schemas/LodgeAmenity"}},"amenities_answered":{"type":"boolean"},"description":{"type":"string","nullable":true,"maxLength":5000},"booking_mode":{"type":"string","enum":["instant","request"]},"template":{"type":"string","enum":["classic","cozy","bold"]},"accent_color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"}}}}}},"responses":{"200":{"$ref":"#/components/responses/LodgePage"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/lodge-page/photos":{"post":{"tags":["Staff Workspace"],"operationId":"storeLodgePhoto","description":"Adds one photo to the page. The body is the image itself (JPEG or PNG, up to 10 MB), checked like every upload; `name` is the file's own name. Up to 20 photos.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"responses":{"201":{"$ref":"#/components/responses/LodgePhoto"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/lodge-page/logo":{"post":{"tags":["Staff Workspace"],"operationId":"storeLodgeLogo","description":"The booking page builder's logo, as for a photo; it replaces the previous one.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"responses":{"201":{"$ref":"#/components/responses/LodgePhoto"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/lodge-page/photos/{photo}":{"get":{"tags":["Staff Workspace"],"operationId":"getLodgePhoto","description":"A photo or logo for the staff preview, published or not.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"photo","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The image.","content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}},"404":{"$ref":"#/components/responses/NotFound"}}},"delete":{"tags":["Staff Workspace"],"operationId":"deleteLodgePhoto","description":"Removes a photo or the logo.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"photo","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Removed."},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/lodge-page/publish":{"post":{"tags":["Staff Workspace"],"operationId":"publishLodgePage","description":"Publishes the page for free at its `url`. It needs a name, a photo, units and a price per night; anything missing answers 422 on `page`.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"$ref":"#/components/responses/LodgePage"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/lodge-page/unpublish":{"post":{"tags":["Staff Workspace"],"operationId":"unpublishLodgePage","description":"Takes the page down; guests get 404 until it is published again.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"$ref":"#/components/responses/LodgePage"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/lodge-page/description-draft":{"post":{"tags":["Staff Workspace"],"operationId":"draftLodgeDescription","description":"Drafts the page's description from the earlier setup answers only (Claude Haiku). Not saved. Needs ANTHROPIC_API_KEY on the API; without it this is 404 and `ai_description` is false.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["en","es","pt"]}}}}}},"responses":{"200":{"description":"The draft and the facts it was written from.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["description","facts"],"properties":{"description":{"type":"string"},"facts":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/sample-lodge":{"post":{"tags":["Staff Workspace"],"operationId":"addSampleLodge","description":"Fills the lodge with sample units, guests and a few weeks of bookings, made through the quote and booking services and recorded so one call removes exactly them. Once.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["units","bookings"],"properties":{"units":{"type":"integer"},"bookings":{"type":"integer"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"}}},"delete":{"tags":["Staff Workspace"],"operationId":"removeSampleLodge","description":"Removes the sample bookings, guests and units, and nothing the lodge made itself.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Removed.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["bookings"],"properties":{"bookings":{"type":"integer"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/properties":{"get":{"tags":["Properties"],"operationId":"listProperties","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/Page"}],"responses":{"200":{"description":"Active properties visible to the current membership.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyCollection"}}}}}}},"/resources":{"get":{"tags":["Resources"],"operationId":"listResources","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"category_slug","in":"query","schema":{"$ref":"#/components/schemas/ResourceCategorySlug"}},{"name":"kind","in":"query","schema":{"$ref":"#/components/schemas/ResourceKind"}},{"name":"category_id","in":"query","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/Page"}],"responses":{"200":{"description":"Tenant resource inventory.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"meta":{"$ref":"#/components/schemas/PageMetadata"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}}}}}}}}},"post":{"tags":["Resources"],"operationId":"createResource","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceInput"}}}},"responses":{"201":{"description":"Resource created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/resources/suggestions":{"get":{"tags":["Resources"],"operationId":"suggestResources","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"category_slug","in":"query","schema":{"$ref":"#/components/schemas/ResourceCategorySlug"}},{"name":"category_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"starts_at","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"ends_at","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"quantity","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"capabilities[]","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"languages[]","in":"query","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ranked available resources matching the requested category and constraints.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceSuggestionCollection"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/resources/options":{"get":{"tags":["Resources"],"operationId":"getResourceOptions","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Configuration-authorized resource categories, linkable guide users, and assignable amenities.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceOptionsEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/resources/{resource}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/ResourceId"}],"get":{"tags":["Resources"],"operationId":"getResource","responses":{"200":{"description":"Resource detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Resources"],"operationId":"updateResource","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceInput"}}}},"responses":{"200":{"description":"Resource updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceEnvelope"}}}}}},"put":{"tags":["Resources"],"operationId":"replaceResource","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceInput"}}}},"responses":{"200":{"description":"Resource replaced.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Resources"],"operationId":"archiveResource","responses":{"204":{"description":"Resource archived."}}}},"/resources/{resource}/housekeeping":{"patch":{"tags":["Resources","Operations"],"operationId":"updateResourceHousekeeping","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/ResourceId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/components/schemas/HousekeepingStatus"}}}}}},"responses":{"200":{"description":"Place housekeeping state updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/resource-blocks":{"get":{"tags":["Resources"],"operationId":"listResourceBlocks","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"resource_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"from","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"}},{"$ref":"#/components/parameters/Page"}],"responses":{"200":{"description":"Availability and maintenance blocks visible to the current membership.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockCollection"}}}}}},"post":{"tags":["Resources"],"operationId":"createResourceBlock","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockInput"}}}},"responses":{"201":{"description":"Resource availability block created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/resource-blocks/{resource_block}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"resource_block","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"tags":["Resources"],"operationId":"getResourceBlock","responses":{"200":{"description":"Resource block detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}},"put":{"tags":["Resources"],"operationId":"replaceResourceBlock","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockInput"}}}},"responses":{"200":{"description":"Resource block replaced.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}},"patch":{"tags":["Resources"],"operationId":"updateResourceBlock","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockPatchInput"}}}},"responses":{"200":{"description":"Resource block updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceBlockEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Resources"],"operationId":"deleteResourceBlock","responses":{"204":{"description":"Resource block deleted."}}}},"/tasks":{"get":{"tags":["Tasks"],"operationId":"listTasks","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"status","in":"query","schema":{"type":"string","enum":["todo","in_progress","blocked","done","cancelled"]}},{"name":"booking_id","in":"query","schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/Page"}],"responses":{"200":{"description":"Operational work queue.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"}}}}}}}}},"post":{"tags":["Tasks"],"operationId":"createTask","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskInput"}}}},"responses":{"201":{"description":"Task created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEnvelope"}}}}}}},"/tasks/{task}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/TaskId"}],"get":{"tags":["Tasks"],"operationId":"getTask","responses":{"200":{"description":"Task detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEnvelope"}}}}}},"patch":{"tags":["Tasks"],"operationId":"updateTask","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdateInput"}}}},"responses":{"200":{"description":"Task updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEnvelope"}}}}}},"put":{"tags":["Tasks"],"operationId":"replaceTask","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUpdateInput"}}}},"responses":{"200":{"description":"Task replaced.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Tasks"],"operationId":"cancelTask","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCancelInput"}}}},"responses":{"200":{"description":"Task cancelled through the audited revisioned lifecycle; the task and events are retained.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/payments":{"get":{"tags":["Payments"],"operationId":"listPayments","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/Page"}],"responses":{"200":{"description":"Tenant payment ledger.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Payment"}}}}}}}}}},"/payments/{payment}":{"get":{"tags":["Payments"],"operationId":"getPayment","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/PaymentId"}],"responses":{"200":{"description":"Payment detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/payments/{payment}/reverse":{"post":{"tags":["Payments"],"operationId":"reversePayment","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/PaymentId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"$ref":"#/components/requestBodies/GenericCommand"},"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"},"409":{"$ref":"#/components/responses/Conflict"}}}},"/proposals":{"get":{"tags":["Proposals"],"operationId":"listProposals","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/Page"}],"responses":{"200":{"description":"Paginated proposal collection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalCollectionEnvelope"}}}}}},"post":{"tags":["Proposals"],"operationId":"createProposal","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalCreateInput"}}}},"responses":{"201":{"description":"Versioned proposal created from an authoritative server-priced booking quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/proposals/{proposal}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"proposal","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"tags":["Proposals"],"operationId":"getProposal","responses":{"200":{"description":"Proposal detail, including its current conversion eligibility.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Proposals"],"operationId":"updateProposal","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalUpdateInput"}}}},"responses":{"200":{"description":"Draft proposal metadata updated without altering authoritative quote or price facts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalEnvelope"}}}},"409":{"$ref":"#/components/responses/Conflict"}}},"put":{"tags":["Proposals"],"operationId":"replaceProposal","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalUpdateInput"}}}},"responses":{"200":{"description":"Draft proposal metadata replaced without altering authoritative quote or price facts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalEnvelope"}}}},"409":{"$ref":"#/components/responses/Conflict"}}}},"/proposals/{proposal}/send":{"post":{"tags":["Proposals"],"operationId":"sendProposal","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"proposal","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Server-priced proposal marked sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalEnvelope"}}}},"409":{"$ref":"#/components/responses/Conflict"}}}},"/proposals/{proposal}/revise":{"post":{"tags":["Proposals"],"operationId":"reviseProposal","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"proposal","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"201":{"description":"New proposal version created from the same immutable server quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalEnvelope"}}}},"409":{"$ref":"#/components/responses/Conflict"}}}},"/proposals/{proposal}/convert":{"post":{"tags":["Proposals"],"operationId":"convertProposal","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"proposal","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Idempotent replay returned the existing booking committed from this quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingEnvelope"}}}},"201":{"description":"Quote committed exactly once to a booking and its resource assignments.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingEnvelope"}}}},"409":{"$ref":"#/components/responses/Conflict"}}}},"/retail-sales":{"post":{"tags":["Retail"],"operationId":"postRetailSale","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"$ref":"#/components/requestBodies/GenericCommand"},"responses":{"200":{"description":"Idempotent replay of a posted retail sale.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetailSaleEnvelope"}}}},"201":{"description":"Retail sale posted to inventory and the guest folio.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetailSaleEnvelope"}}}},"409":{"$ref":"#/components/responses/Conflict"}}}},"/costs":{"post":{"tags":["Finance"],"operationId":"recordCost","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"$ref":"#/components/requestBodies/GenericCommand"},"responses":{"201":{"$ref":"#/components/responses/GenericSuccess"},"403":{"$ref":"#/components/responses/Forbidden"}}},"get":{"tags":["CostRecord"],"operationId":"listCosts","summary":"List costs","parameters":[{"name":"booking_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}},{"name":"property_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/organizations":{"get":{"tags":["CRM"],"operationId":"listOrganizations","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"}}},"post":{"tags":["CRM"],"operationId":"createOrganization","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"$ref":"#/components/requestBodies/GenericCommand"},"responses":{"201":{"$ref":"#/components/responses/GenericSuccess"}}}},"/opportunities":{"get":{"tags":["CRM"],"operationId":"listOpportunities","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"}}},"post":{"tags":["CRM"],"operationId":"createOpportunity","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"$ref":"#/components/requestBodies/GenericCommand"},"responses":{"201":{"$ref":"#/components/responses/GenericSuccess"}}}},"/opportunities/{opportunity}/transition":{"post":{"tags":["CRM"],"operationId":"transitionOpportunity","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"opportunity","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"$ref":"#/components/requestBodies/GenericCommand"},"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"},"409":{"$ref":"#/components/responses/Conflict"}}}},"/report-exports":{"post":{"tags":["Reports"],"operationId":"requestReportExport","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportExportInput"}}}},"responses":{"201":{"description":"Report export accepted or replayed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportExportEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/report-exports/{reportExport}":{"get":{"tags":["Reports"],"operationId":"getReportExport","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"reportExport","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Safe report export state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportExportEnvelope"}}}}}}},"/report-exports/{reportExport}/retry":{"post":{"tags":["Reports"],"operationId":"retryReportExport","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"reportExport","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Failed export returned to pending","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportExportEnvelope"}}}},"409":{"$ref":"#/components/responses/Conflict"}}}},"/report-exports/{reportExport}/download":{"get":{"tags":["Reports"],"operationId":"downloadReportExport","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"reportExport","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Integrity-verified CSV or XLSX artifact","content":{"text/csv":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"409":{"$ref":"#/components/responses/Conflict"},"410":{"description":"Export expired or purged."}}}},"/private-artifacts":{"get":{"tags":["Privacy"],"operationId":"listPrivateArtifacts","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"storage_state","in":"query","schema":{"type":"string","enum":["quarantined","promoting","clean","missing","corrupt","purging","purged","rejected"]}},{"name":"scan_state","in":"query","schema":{"type":"string","enum":["pending","scanning","clean","infected","failed","not_required"]}},{"name":"property_id","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Authorized tenant/property-scoped artifact queue without object keys or original filenames.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateArtifactCollection"}}}}}}},"/private-artifacts/{privateArtifact}":{"get":{"tags":["Privacy"],"operationId":"getPrivateArtifact","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"privateArtifact","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Safe private artifact metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateArtifactEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/private-artifacts/{privateArtifact}/download":{"get":{"tags":["Privacy"],"operationId":"downloadPrivateArtifact","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"privateArtifact","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Policy-authorized, exact-version, checksum-verified private bytes."},"503":{"description":"Artifact is quarantined, expired, missing, corrupt, or otherwise unavailable."}}}},"/private-artifacts/{privateArtifact}/legal-hold":{"post":{"tags":["Privacy"],"operationId":"setPrivateArtifactLegalHold","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"privateArtifact","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":8,"maxLength":1000}}}}}},"responses":{"200":{"description":"Legal hold set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateArtifactEnvelope"}}}}}}},"/private-artifacts/{privateArtifact}/legal-hold/lift":{"post":{"tags":["Privacy"],"operationId":"liftPrivateArtifactLegalHold","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"privateArtifact","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":8,"maxLength":1000}}}}}},"responses":{"200":{"description":"Legal hold lifted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivateArtifactEnvelope"}}}}}}},"/private-artifacts/{privateArtifact}/retry":{"post":{"tags":["Privacy"],"operationId":"retryPrivateArtifactProcessing","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"privateArtifact","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"202":{"description":"Scan or promotion retry queued."}}}},"/privacy-requests":{"get":{"tags":["Privacy"],"operationId":"listPrivacyRequests","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Authorized privacy request queue.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestCollection"}}}}}},"post":{"tags":["Privacy"],"operationId":"createPrivacyRequest","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestInput"}}}},"responses":{"201":{"description":"Privacy request recorded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestEnvelope"}}}}}}},"/privacy-requests/{privacyRequest}":{"get":{"tags":["Privacy"],"operationId":"getPrivacyRequest","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"privacyRequest","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Privacy request state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRequestEnvelope"}}}}}}},"/privacy-requests/{privacyRequest}/review":{"post":{"tags":["Privacy"],"operationId":"reviewPrivacyRequestAuthority","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"privacyRequest","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyAuthorityReviewInput"}}}},"responses":{"200":{"description":"Authority review recorded."}}}},"/privacy-requests/{privacyRequest}/approve":{"post":{"tags":["Privacy"],"operationId":"approvePrivacyRequest","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"privacyRequest","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyApprovalInput"}}}},"responses":{"200":{"description":"Explicit scope and artifact dispositions approved."}}}},"/privacy-requests/{privacyRequest}/reject":{"post":{"tags":["Privacy"],"operationId":"rejectPrivacyRequest","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"privacyRequest","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyRejectionInput"}}}},"responses":{"200":{"description":"Privacy request rejected with an audited reason."}}}},"/privacy-requests/{privacyRequest}/execute":{"post":{"tags":["Privacy"],"operationId":"executePrivacyRequest","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"privacyRequest","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Approved privacy workflow completed."}}}},"/tasks/{task}/transition":{"post":{"tags":["Tasks"],"operationId":"transitionOperationalTask","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/TaskId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTransitionInput"}}}},"responses":{"200":{"description":"Revisioned lifecycle transition recorded with an append-only task event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/checklist-templates":{"get":{"operationId":"listChecklistTemplates","responses":{"200":{"description":"Checklist templates with their latest immutable item version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistConfigurationCollection"}}}}}},"post":{"tags":["Operations"],"operationId":"createChecklistTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistTemplateInput"}}}},"responses":{"201":{"description":"Checklist template created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistTemplateEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/checklist-templates/{checklistTemplate}/publish":{"post":{"tags":["Operations"],"operationId":"publishChecklistTemplateVersion","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"checklistTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistPublishInput"}}}},"responses":{"201":{"description":"Immutable published checklist version and ordered items created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecklistVersionEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/checklist-templates/{checklistTemplate}/retire":{"post":{"tags":["Operations"],"operationId":"retireChecklistTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"checklistTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"$ref":"#/components/responses/GenericSuccess"}}}},"/calendar/preferences":{"put":{"tags":["Calendar"],"operationId":"updateCalendarPreferences","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarPreferences"}}}},"responses":{"200":{"description":"Membership calendar preferences saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarPreferencesEnvelope"}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-activity":{"get":{"tags":["Staff Workspace"],"operationId":"getStaffActivity","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":80}}],"responses":{"200":{"description":"Tenant-scoped merged booking, task, communication, and CRM activity feed."},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-supply-order-options":{"get":{"tags":["Staff Workspace"],"operationId":"getStaffSupplyOrderOptions","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Privacy-safe property and currency options for supply request creation.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["currency","properties"],"properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"properties":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}}}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-inventory":{"get":{"tags":["Inventory","Staff Workspace"],"operationId":"getStaffInventory","description":"Privacy-safe property-scoped stock locations, active tracked items, and current on-hand quantities. No POS, guest, payment, vendor, price, or cost data is projected.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Inventory workspace for the current membership property scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffInventoryEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-inventory/counts":{"post":{"tags":["Inventory","Staff Workspace"],"operationId":"recordStaffInventoryCount","description":"Appends the adjustment required to make on-hand stock equal the observed physical count.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffInventoryCountInput"}}}},"responses":{"200":{"description":"Existing matching inventory-count reference returned without another movement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffInventoryMovementEnvelope"}}}},"201":{"description":"Append-only physical-count adjustment recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffInventoryMovementEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-inventory/receipts":{"post":{"tags":["Inventory","Staff Workspace"],"operationId":"recordStaffInventoryReceipt","description":"Appends a received quantity without exposing or accepting unit cost.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffInventoryReceiptInput"}}}},"responses":{"200":{"description":"Existing matching stock-receipt reference returned without another movement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffInventoryMovementEnvelope"}}}},"201":{"description":"Append-only stock receipt recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffInventoryMovementEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-pos-options":{"get":{"tags":["Staff Workspace"],"operationId":"getStaffPosOptions","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Stock locations and active bookings available to the point-of-sale composer."},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-reports":{"get":{"tags":["Staff Workspace","Reports"],"operationId":"getStaffReports","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"start","in":"query","schema":{"type":"string","format":"date"}},{"name":"end","in":"query","schema":{"type":"string","format":"date"}},{"name":"display_currency","in":"query","schema":{"type":"string","pattern":"^[A-Z]{3}$"}}],"responses":{"200":{"description":"Finance projection plus occupancy, guest, and operational lenses for the selected period."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings":{"get":{"tags":["Staff Workspace"],"operationId":"getStaffSettings","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Consolidated property, resource, service, rate, and timezone settings projection."},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-settings/properties/{property}":{"patch":{"tags":["Staff Workspace"],"operationId":"updateStaffProperty","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"property","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":160},"code":{"type":"string","maxLength":40},"timezone":{"type":"string"},"address":{"type":["string","null"],"maxLength":2000},"is_active":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated property projection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPropertyEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/supply-orders":{"get":{"tags":["Supply Orders"],"operationId":"listSupplyOrders","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Property-scoped supply-order queue with booking and line projections."},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"tags":["Supply Orders"],"operationId":"createSupplyOrder","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["property_id","reference","vendor_name","currency","lines"],"properties":{"property_id":{"type":"string","format":"uuid"},"booking_id":{"type":["string","null"],"format":"uuid"},"reference":{"type":"string","maxLength":80},"vendor_name":{"type":"string","maxLength":160},"vendor_email":{"type":["string","null"],"format":"email","maxLength":254},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"needed_at":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":5000},"lines":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","required":["name","quantity","unit_amount_minor"],"properties":{"name":{"type":"string","maxLength":200},"quantity":{"type":"integer","minimum":1},"unit_amount_minor":{"type":"integer","minimum":0}}}}}}}}},"responses":{"201":{"description":"Draft supply order with server-calculated total."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/supply-orders/{supplyOrder}/transition":{"post":{"tags":["Supply Orders"],"operationId":"transitionSupplyOrder","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"supplyOrder","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status","expected_revision"],"properties":{"status":{"type":"string","enum":["sent","acknowledged","ready","completed","cancelled"]},"expected_revision":{"type":"integer","minimum":1}}}}}},"responses":{"200":{"description":"Supply order after a validated lifecycle transition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyOrderEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/supply-orders/{supplyOrder}/queue-delivery":{"post":{"tags":["Supply Orders","Communications"],"operationId":"queueSupplyOrderDelivery","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"supplyOrder","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expected_revision"],"properties":{"expected_revision":{"type":"integer","minimum":1},"subject":{"type":["string","null"],"maxLength":200},"body":{"type":["string","null"],"maxLength":100000}}}}}},"responses":{"202":{"description":"Vendor communication accepted into the durable delivery queue; this is not provider acceptance or delivery proof.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyOrderEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/supply-list-templates":{"get":{"tags":["Supply Lists"],"operationId":"listSupplyListTemplates","description":"Property-scoped reusable supply lists. Kitchen projections omit vendor email, unit costs, and totals.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"property_id","in":"query","schema":{"type":"string","format":"uuid"}},{"name":"include_inactive","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Active templates","plus inactive templates only for configuration roles.":null,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyListTemplateCollectionEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"tags":["Supply Lists"],"operationId":"createSupplyListTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyListTemplateCreateInput"}}}},"responses":{"201":{"description":"Reusable supply list created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyListTemplateEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/supply-list-templates/{supplyListTemplate}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"supplyListTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"tags":["Supply Lists"],"operationId":"getSupplyListTemplate","responses":{"200":{"description":"Reusable supply list with ordered defaults and role-safe financial projection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyListTemplateEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Supply Lists"],"operationId":"updateSupplyListTemplate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyListTemplateUpdateInput"}}}},"responses":{"200":{"description":"Revised or archived supply list; prior order snapshots remain immutable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyListTemplateEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/supply-list-templates/{supplyListTemplate}/instantiate":{"post":{"tags":["Supply Lists","Supply Orders"],"operationId":"instantiateSupplyListTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"name":"supplyListTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyListTemplateInstantiateInput"}}}},"responses":{"201":{"description":"Draft supply order created from an immutable server-owned template snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyOrderEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaign-templates":{"get":{"tags":["Campaigns"],"operationId":"listCampaignTemplates","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"language","in":"query","schema":{"type":"string","maxLength":12,"default":"en"}}],"responses":{"200":{"description":"Latest published reusable campaign content per active template."},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"tags":["Campaigns"],"operationId":"createCampaignTemplate","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTemplateInput"}}}},"responses":{"201":{"description":"Reusable campaign template with immutable published version one."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaign-templates/{messageTemplate}/versions":{"post":{"tags":["Campaigns"],"operationId":"createCampaignTemplateVersion","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"messageTemplate","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTemplateVersionInput"}}}},"responses":{"201":{"description":"New immutable published template version; prior campaign snapshots remain unchanged."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaign-audiences":{"get":{"tags":["Campaigns"],"operationId":"listCampaignAudiences","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Marketing audience definitions and consent-aware estimates."},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"tags":["Campaigns"],"operationId":"createCampaignAudience","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","definition"],"properties":{"name":{"type":"string","maxLength":160},"description":{"type":["string","null"],"maxLength":2000},"definition":{"type":"object","additionalProperties":true}}}}}},"responses":{"201":{"description":"Draft audience with a consent-aware estimate."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaign-audiences/{audience}/activate":{"post":{"tags":["Campaigns"],"operationId":"activateCampaignAudience","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"audience","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expected_revision"],"properties":{"expected_revision":{"type":"integer","minimum":1}}}}}},"responses":{"200":{"description":"Activated immutable audience definition."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaigns":{"get":{"tags":["Campaigns"],"operationId":"listCampaigns","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Campaign status and delivery-count projection."},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"tags":["Campaigns"],"operationId":"createCampaign","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["audience_id","name"],"properties":{"audience_id":{"type":"string","format":"uuid"},"property_id":{"type":["string","null"],"format":"uuid"},"name":{"type":"string","maxLength":160},"template_id":{"type":["string","null"],"format":"uuid"},"language":{"type":["string","null"],"maxLength":12},"subject":{"type":["string","null"],"maxLength":200,"description":"Required when template_id is omitted."},"body":{"type":["string","null"],"maxLength":100000,"description":"Required when template_id is omitted."}}}}}},"responses":{"201":{"description":"Draft campaign."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaigns/compose":{"post":{"tags":["Campaigns"],"operationId":"composeCampaign","description":"Atomically creates and activates a property-scoped audience, creates the immutable campaign snapshot, and optionally schedules its consent-filtered outbox delivery.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["audience_name","audience_definition","name"],"properties":{"property_id":{"type":["string","null"],"format":"uuid","description":"Defaults to the current membership property."},"audience_name":{"type":"string","maxLength":160},"audience_description":{"type":["string","null"],"maxLength":2000},"audience_definition":{"type":"object","properties":{"language":{"type":["string","null"],"maxLength":12},"category":{"type":["string","null"],"maxLength":80},"has_reservation":{"type":"boolean"},"guest_ids":{"type":"array","maxItems":10000,"items":{"type":"string","format":"uuid"}}}},"name":{"type":"string","maxLength":160},"template_id":{"type":["string","null"],"format":"uuid"},"language":{"type":["string","null"],"maxLength":12},"subject":{"type":["string","null"],"maxLength":200,"description":"Required when template_id is omitted."},"body":{"type":["string","null"],"maxLength":100000,"description":"Required when template_id is omitted."},"schedule":{"type":"boolean","default":false},"scheduled_at":{"type":["string","null"],"format":"date-time","description":"Required when schedule is true."}}}}}},"responses":{"201":{"description":"Atomic campaign composition; scheduled campaigns include the consented recipient snapshot and queued outbox facts."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaigns/{campaign}/schedule":{"post":{"tags":["Campaigns"],"operationId":"scheduleCampaign","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"campaign","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expected_revision"],"properties":{"expected_revision":{"type":"integer","minimum":1},"scheduled_at":{"type":["string","null"],"format":"date-time"}}}}}},"responses":{"200":{"description":"Campaign with a consented recipient snapshot and queued dispatch event."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/campaigns/{campaign}/cancel":{"post":{"tags":["Campaigns"],"operationId":"cancelCampaign","parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"campaign","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["expected_revision"],"properties":{"expected_revision":{"type":"integer","minimum":1}}}}}},"responses":{"200":{"description":"Cancelled draft or scheduled campaign."},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings/properties":{"post":{"operationId":"staffWorkspaceStoreProperty","responses":{"201":{"description":"Property created with the default resource categories.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffPropertyEnvelope"}}}}}}},"/staff-settings/cancellation-policies":{"get":{"operationId":"staffCatalogConfigurationCancellationPolicies","responses":{"200":{"description":"Tenant cancellation policy configurations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffCancellationPolicyCollection"}}}}}},"post":{"tags":["Catalog"],"operationId":"createSettingCancellationPolicy","summary":"Create setting cancellation policy","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/feature-categories":{"get":{"operationId":"staffInfrastructureConfigurationFeatureCategories","responses":{"200":{"description":"Amenity categories and their editable features.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffFeatureCategoryCollection"}}}}}},"post":{"tags":["StaffInfrastructureConfiguration"],"operationId":"createSettingFeatureCategory","summary":"Create setting feature category","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-providers":{"get":{"operationId":"staffCommunicationConfigurationProviders","responses":{"200":{"description":"Configured outbound communication providers.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StaffCommunicationProvider"}}}}}}}}},"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"createSettingCommunicationProvider","summary":"Create setting communication provider","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-suppressions":{"get":{"operationId":"staffCommunicationConfigurationSuppressions","responses":{"200":{"description":"Tenant communication suppression ledger.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StaffCommunicationSuppression"}}}}}}}}},"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"createSettingCommunicationSuppression","summary":"Create setting communication suppression","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communications":{"get":{"operationId":"staffCommunicationConfigurationCommunications","responses":{"200":{"description":"Recent tenant communications.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"meta":{"allOf":[{"$ref":"#/components/schemas/PageMetadata"},{"type":"object","required":["status_counts"],"properties":{"status_counts":{"description":"Message counts keyed by delivery status across every message matching the property and communication filters, not only this page. Statuses with no messages are omitted.","type":"object","additionalProperties":{"type":"integer","minimum":1}}}}]},"data":{"type":"array","items":{"$ref":"#/components/schemas/StaffCommunication"}}}}}}}}}},"/staff-settings/communication-events":{"get":{"operationId":"staffCommunicationConfigurationEvents","responses":{"200":{"description":"Recent provider delivery events.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"meta":{"$ref":"#/components/schemas/PageMetadata"},"data":{"type":"array","items":{"$ref":"#/components/schemas/StaffCommunicationDeliveryEvent"}}}}}}}}}},"/staff-settings/communication-attempts":{"get":{"operationId":"staffCommunicationConfigurationAttempts","responses":{"200":{"description":"Recent communication delivery attempts.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"meta":{"$ref":"#/components/schemas/PageMetadata"},"data":{"type":"array","items":{"$ref":"#/components/schemas/StaffCommunicationDeliveryAttempt"}}}}}}}}}},"/staff-settings/lodge-units":{"put":{"tags":["Staff Settings"],"operationId":"saveLodgeUnits","description":"Setup's \"What do guests stay in?\". The stay room type is named after `kind`, with exactly `count` active units of `guests` guests each. Units are added after any the type has, renamed when the kind changes, and turned off from the last one when there are too many; one with a stay or block still to come is never turned off (422 on `count`).","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind","count","guests"],"properties":{"kind":{"type":"string","enum":["cabins","rooms","tents","domes","glamping"]},"count":{"type":"integer","minimum":1,"maximum":100},"guests":{"type":"integer","minimum":1,"maximum":50}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["room_type_id","units"],"properties":{"room_type_id":{"type":"string"},"units":{"type":"integer"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings/my-language":{"put":{"tags":["Staff Settings"],"operationId":"saveMyLanguage","description":"The caller's own language for the staff app, or null to follow their browser's again. Anyone in the workspace may set their own.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"language":{"type":["string","null"],"enum":["en","es","pt",null]}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","properties":{"language":{"type":["string","null"]}}}}}}}},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings/lodge-price":{"put":{"tags":["Staff Settings"],"operationId":"saveLodgePrice","description":"Setup's \"What's the price per night?\". Prices the stay units per unit per night (occupancy tiers, as quick setup does), making the stay service, its requirement, a rate group and the default rate when missing. The workspace currency follows `currency` while nothing was booked or paid yet.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["nightly_price_minor","currency"],"properties":{"nightly_price_minor":{"type":"integer","minimum":1},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"}}}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["service_id","rate_id"],"properties":{"service_id":{"type":"string"},"rate_id":{"type":"string"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings/calendar-import":{"post":{"tags":["Staff Settings"],"operationId":"importListingCalendar","description":"A one-off copy of an Airbnb or Booking.com calendar from its iCal link. It makes `units` units (rooms, until setup says what they are) and blocks each booked stretch still to come on the first unit free for it. Nothing stays connected. Only https links to public addresses are fetched.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","units"],"properties":{"url":{"type":"string","maxLength":2000},"units":{"type":"integer","minimum":1,"maximum":100}}}}}},"responses":{"201":{"description":"What the copy did.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["source","calendar_name","units","blocks","blocked_nights","not_placed","events"],"properties":{"source":{"type":"string"},"calendar_name":{"type":"string","nullable":true},"units":{"type":"integer"},"blocks":{"type":"integer"},"blocked_nights":{"type":"integer"},"not_placed":{"type":"integer"},"events":{"type":"integer"}}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings/quick-setup":{"post":{"tags":["Staff Workspace"],"operationId":"staffSettingsQuickSetup","description":"Makes a property bookable in one audited transaction, from one form. It adds a location named after the property when the property has none, and `rooms.count` rooms named \"{name_prefix} 1…N\" (numbered after any rooms already called that) of the property's active stay room type, creating that type when there is none. When the property has no active accommodation service, it creates one (code STAY) that requires one room per `rooms.capacity` guests. When no active accommodation service has a priced rate, the first one gets a new default rate in an active rate group (or a new STANDARD group), priced per room per night in the workspace currency, as one `per_unit_per_night` price row. A party in two rooms pays twice `nightly_price_minor` a night. A service that already has a priced rate is left alone. Nothing is created when any check fails. `rooms.count` may be 0 only when the property already has rooms. Administrators and managers only.","parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickSetupRequest"}}}},"responses":{"201":{"description":"What it created. A record it reused or left alone is null.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/QuickSetupResult"}}}}}},"200":{"description":"Nothing was missing, so nothing was created.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/QuickSetupResult"}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings/team":{"get":{"tags":["Staff Workspace"],"operationId":"staffWorkspaceTeam","description":"The workspace's members, with their account names. Administrators only. Pending invitations of existing accounts are listed separately, under /staff-settings/team/invitations.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Members.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TeamMember"}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"tags":["Staff Workspace"],"operationId":"staffWorkspaceInviteTeamMember","description":"Invites a person by email. An address without an account gets a new account and membership at once, and an email whose link sets the password. An address that already has an account is invited instead and joins only when that account accepts; until then the administrator sees only the address they typed, never the account's name. Inviting an address that is already on the team, or that already has an invitation waiting, is a validation error. Administrators only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"201":{"description":"The new member, or the invitation waiting for an existing account.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"oneOf":[{"$ref":"#/components/schemas/TeamMember"},{"$ref":"#/components/schemas/TeamInvitation"}]}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/staff-settings/team/invitations":{"get":{"tags":["Staff Workspace"],"operationId":"listTeamInvitations","description":"Invitations of existing accounts that are still waiting for an answer, newest first. They show the address the administrator typed, never the account's name. Administrators only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Pending invitations.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TeamInvitation"}}}}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/staff-settings/team/invitations/{invitation}":{"parameters":[{"$ref":"#/components/parameters/TenantId"},{"$ref":"#/components/parameters/WorkspaceInvitationId"}],"delete":{"tags":["Staff Workspace"],"operationId":"cancelTeamInvitation","description":"Withdraws an invitation nobody has answered yet. Administrators only.","responses":{"204":{"description":"Withdrawn."},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/billing":{"get":{"tags":["Billing"],"operationId":"getBilling","description":"The workspace's plan. Rooms (and hostel beds, three to a room) set the step of the all-in price list; up to 3 rooms is free. Shows the Polar subscription, if any, and whether founding spots remain.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"The plan, its price and the subscription.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/BillingOverview"}}}}}},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/billing/checkout":{"post":{"tags":["Billing"],"operationId":"createBillingCheckout","description":"Polar's checkout for the step the workspace's rooms are on, monthly or yearly. While founding spots remain it carries the founding offer (6 months free, then 50% off). Administrators only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","enum":["month","year"]}}}}}},"responses":{"200":{"description":"Where to send the administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"The workspace already has a plan, is on the free step, or billing isn't set up."}}}},"/billing/portal":{"post":{"tags":["Billing"],"operationId":"createBillingPortal","description":"Polar's customer portal for the workspace, to change the card, see invoices or cancel. Administrators only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"Where to send the administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutEnvelope"}}}},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The workspace has never subscribed."}}}},"/billing/cancel":{"post":{"tags":["Billing"],"operationId":"cancelBilling","description":"Ends the plan at the end of the period or trial; the workspace then returns to the free step. Nothing is deleted. Administrators only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"The plan is set to end."},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"There is no running plan, or it is already set to end."}}}},"/billing/resume":{"post":{"tags":["Billing"],"operationId":"resumeBilling","description":"Undoes a cancellation before it takes effect. Administrators only.","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"200":{"description":"The plan carries on."},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"description":"The plan isn't set to end."}}}},"/activities":{"get":{"tags":["ActivityScheduling"],"operationId":"listActivities","summary":"List activities","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/booking-composer-options":{"get":{"tags":["Booking"],"operationId":"listBookingComposerOptions","summary":"What a new booking can include: properties, services, rates, rooms, products and sources","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/booking-price-preview":{"post":{"tags":["Booking"],"operationId":"createBookingPricePreview","summary":"Preview the price of a stay or services without saving anything","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferredPriceBookingRequest"}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/booking-room-availability":{"get":{"tags":["Booking"],"operationId":"listBookingRoomAvailability","summary":"Rooms and units free for a property between two dates","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"starts_on","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"ends_on","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"booking_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}":{"delete":{"tags":["BookingLifecycle"],"operationId":"deleteBooking","summary":"Archive a booking (it can be restored)","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"expected_revision","in":"query","required":true,"schema":{"type":"integer","minimum":1}},{"name":"reason","in":"query","schema":{"type":["string","null"],"maxLength":5000}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"get":{"tags":["Booking"],"operationId":"getBooking","summary":"Get one booking with its guests, lines, payments and history","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/activities":{"get":{"tags":["ActivityScheduling"],"operationId":"listBookingActivities","summary":"List booking activities","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/change-quotes":{"post":{"tags":["Booking"],"operationId":"createBookingChangeQuote","summary":"Price a change to a booking's dates, rooms or services before applying it","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":"string","format":"date"},"assignment_replacements":{"type":"array","items":{"type":"object","properties":{"assignment_id":{"type":"string","format":"uuid"},"resource_id":{"type":"string","format":"uuid"}},"required":["assignment_id","resource_id"]},"maxItems":30,"uniqueItems":true}},"required":["expected_revision","starts_on","ends_on","assignment_replacements"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/change-quotes/{changeQuote}/apply":{"post":{"tags":["Booking"],"operationId":"applyChangeQuote","summary":"Apply a priced change to a booking","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"changeQuote","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"reason":{"type":["string","null"],"maxLength":500}},"required":["expected_revision"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/charges":{"post":{"tags":["Booking"],"operationId":"createBookingCharge","summary":"Add an extra charge to a booking","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","maxLength":300},"quantity":{"type":"integer","minimum":1,"maximum":9999},"unit_amount_minor":{"type":"integer","minimum":0,"maximum":99999999},"is_taxable":{"type":"boolean"}},"required":["description","quantity","unit_amount_minor","is_taxable"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/charges/{item}":{"delete":{"tags":["Booking"],"operationId":"deleteBookingCharge","summary":"Delete booking charge","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"item","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Booking"],"operationId":"updateBookingCharge","summary":"Update booking charge","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"item","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","maxLength":300},"quantity":{"type":"integer","minimum":1,"maximum":9999},"unit_amount_minor":{"type":"integer","minimum":0,"maximum":99999999}}}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/checklist-options":{"get":{"tags":["Checklist"],"operationId":"listBookingChecklistOptions","summary":"List booking checklist options","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/checklists/generate":{"post":{"tags":["Checklist"],"operationId":"generateChecklist","summary":"Generate checklist","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"version_id":{"type":["string","null"],"format":"uuid"}}}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/communications":{"get":{"tags":["BookingCommunication"],"operationId":"listBookingCommunications","summary":"List booking communications","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/communications/preview":{"post":{"tags":["BookingCommunication"],"operationId":"previewCommunication","summary":"Preview communication","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rule_id":{"type":"string","format":"uuid"},"language":{"type":"string","enum":["es","en","pt"]},"subject":{"type":["string","null"],"maxLength":200},"body":{"type":["string","null"],"maxLength":20000}},"required":["rule_id","language"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/details":{"patch":{"tags":["BookingDetails"],"operationId":"updateBookingDetail","summary":"Update a booking's notes, guest requests, dietary needs and flight times","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"flight_in_time":{"type":["string","null"]},"flight_out_time":{"type":["string","null"]},"kitchen_notes":{"type":["string","null"],"maxLength":5000},"notes":{"type":["string","null"],"maxLength":10000},"guest_requests":{"type":["string","null"],"maxLength":5000},"dietary_requirements":{"type":["string","null"],"maxLength":5000},"allergies":{"type":["string","null"],"maxLength":5000},"other_restrictions":{"type":["string","null"],"maxLength":5000}},"required":["expected_revision"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/guests":{"post":{"tags":["BookingDetails"],"operationId":"createBookingGuest","summary":"Add a guest to a booking","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"guest_id":{"type":["string","null"],"format":"uuid"},"first_name":{"type":["string","null"],"maxLength":120},"last_name":{"type":["string","null"],"maxLength":120},"email":{"type":["string","null"],"format":"email","maxLength":254},"phone":{"type":["string","null"],"maxLength":60},"language":{"type":["string","null"],"enum":["es","en","pt",null]},"dietary_requirements":{"type":["string","null"],"maxLength":5000},"allergies":{"type":["string","null"],"maxLength":5000},"other_restrictions":{"type":["string","null"],"maxLength":5000}},"required":["expected_revision"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/guests/{guest}":{"delete":{"tags":["BookingDetails"],"operationId":"deleteBookingGuest","summary":"Delete booking guest","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"guest","in":"path","required":true,"schema":{"type":"string"}},{"name":"expected_revision","in":"query","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/occurrences/{occurrence}/cancel":{"post":{"tags":["ActivityScheduling"],"operationId":"cancelOccurrence","summary":"Cancel occurrence","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"occurrence","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"reason":{"type":"string","maxLength":500}},"required":["expected_revision","reason"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/payment-requests":{"get":{"tags":["PaymentLink"],"operationId":"listBookingPaymentRequests","summary":"List booking payment requests","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["PaymentLink"],"operationId":"createBookingPaymentRequest","summary":"Create a payment link for a booking and optionally send it to the guest","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount_minor":{"type":"integer","minimum":1,"maximum":999999999999},"payment_schedule_id":{"type":["string","null"],"format":"uuid"}},"required":["amount_minor"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/payment-requests/{paymentRequest}/recover":{"post":{"tags":["PaymentLink"],"operationId":"recoverPaymentRequest","summary":"Recover payment request","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"paymentRequest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/payment-requests/{paymentRequest}/revoke":{"post":{"tags":["PaymentLink"],"operationId":"revokePaymentRequest","summary":"Revoke payment request","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"paymentRequest","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/payments":{"post":{"tags":["Payment"],"operationId":"createBookingPayment","summary":"Record a payment or refund already received for a booking (cash, transfer, card terminal)","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":["string","null"],"enum":["payment","refund",null]},"channel":{"$ref":"#/components/schemas/InferredPaymentChannel"},"amount_minor":{"type":"integer","minimum":1,"maximum":999999999999},"payment_schedule_id":{"type":["string","null"],"format":"uuid"},"reference":{"type":["string","null"],"maxLength":160},"evidence_url":{"type":["string","null"],"format":"uri","maxLength":2000},"evidence_note":{"type":["string","null"],"maxLength":5000}},"required":["channel","amount_minor"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/restore":{"post":{"tags":["BookingLifecycle"],"operationId":"restoreBooking","summary":"Restore an archived booking","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"reason":{"type":["string","null"],"maxLength":500}},"required":["expected_revision"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/service-orders/{serviceOrder}/assignment-plan":{"put":{"tags":["Booking"],"operationId":"assignmentPlanServiceOrder","summary":"Assignment plan service order","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceOrder","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"reason":{"type":["string","null"],"maxLength":500},"segments":{"type":"array","items":{"type":"object","properties":{"starts_on":{"type":"string","format":"date"},"ends_on":{"type":"string","format":"date"},"resource_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":30}},"required":["starts_on","ends_on","resource_ids"]},"minItems":1,"maxItems":365}},"required":["expected_revision","segments"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/service-orders/{serviceOrder}/schedule":{"put":{"tags":["ActivityScheduling"],"operationId":"scheduleServiceOrder","summary":"Schedule service order","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}},{"name":"serviceOrder","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":0},"starts_at":{"type":"string","maxLength":40},"duration_minutes":{"type":["integer","null"],"minimum":1,"maximum":1440},"participant_count":{"type":"integer","minimum":1},"resource_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"uniqueItems":true},"notes":{"type":["string","null"],"maxLength":2000},"outcome":{"type":["string","null"],"enum":["scheduled","completed",null]},"reason":{"type":["string","null"],"maxLength":500}},"required":["expected_revision","starts_at","participant_count","resource_ids"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/survey-invitations":{"post":{"tags":["BookingCommunication"],"operationId":"createBookingSurveyInvitation","summary":"Create booking survey invitation","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["pre_trip","post_stay"]}}}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/bookings/{booking}/transition":{"post":{"tags":["BookingDetails"],"operationId":"transitionBooking","summary":"Confirm, check in, check out or cancel a booking","parameters":[{"name":"booking","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"status":{"type":"string","enum":["confirmed","checked_in","checked_out","cancelled"]},"reason":{"type":["string","null"],"maxLength":5000}},"required":["expected_revision","status"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/campaigns/preview":{"post":{"tags":["Campaign"],"operationId":"previewCampaign","summary":"Preview campaign","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid"},"limit":{"type":"integer","minimum":1,"maximum":100},"audience_definition":{"type":"object","properties":{"language":{"type":["string","null"],"maxLength":12},"category":{"type":["string","null"],"maxLength":80},"has_booking":{"type":"boolean"},"guest_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":10000}}}},"required":["property_id","audience_definition"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/campaigns/{campaign}":{"get":{"tags":["Campaign"],"operationId":"getCampaign","summary":"Get campaign","parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Campaign"],"operationId":"updateCampaign","summary":"Update campaign","parameters":[{"name":"campaign","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"property_id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":160},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":100000},"audience_definition":{"type":"object","properties":{"language":{"type":["string","null"],"maxLength":12},"category":{"type":["string","null"],"maxLength":80},"has_booking":{"type":"boolean"},"guest_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":10000}}},"schedule":{"type":"boolean"},"scheduled_at":{"type":["string","null"],"format":"date-time"}},"required":["expected_revision","property_id","name","subject","body","audience_definition"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/checklist-templates/{template}":{"delete":{"tags":["Checklist"],"operationId":"deleteChecklistTemplate","summary":"Delete checklist template","parameters":[{"name":"template","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/cost-contribution":{"get":{"tags":["CostContribution"],"operationId":"listCostContribution","summary":"List cost contribution","parameters":[{"name":"start","in":"query","schema":{"type":["string","null"],"format":"date"}},{"name":"end","in":"query","schema":{"type":["string","null"],"format":"date"}},{"name":"property_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}},{"name":"booking_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen":{"get":{"tags":["Kitchen"],"operationId":"listKitchen","summary":"List kitchen","parameters":[{"name":"date","in":"query","schema":{"type":["string","null"],"format":"date"}},{"name":"property_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}},{"name":"station","in":"query","schema":{"type":["string","null"],"enum":["kitchen","bar",null]}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen/configuration":{"get":{"tags":["Kitchen"],"operationId":"listKitchenConfiguration","summary":"List kitchen configuration","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"put":{"tags":["Kitchen"],"operationId":"saveKitchenConfiguration","summary":"Save kitchen configuration","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"preparation_station":{"type":["string","null"],"enum":["kitchen","bar",null]}},"required":["id"]},"maxItems":200,"uniqueItems":true},"meal_rule":{"type":"object","properties":{"service_id":{"type":"string","format":"uuid"},"meal":{"type":"string","enum":["breakfast","lunch","dinner","picnic"]},"arrival_day":{"type":"boolean"},"departure_day":{"type":"boolean"},"is_active":{"type":"boolean"}}}}}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen/meal-plans":{"post":{"tags":["Kitchen"],"operationId":"createKitchenMealPlan","summary":"Create kitchen meal plan","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"booking_id":{"type":"string","format":"uuid"},"meal_date":{"type":"string","format":"date"},"meal":{"type":"string","enum":["breakfast","lunch","dinner","picnic"]},"quantity":{"type":"integer","minimum":0,"maximum":1000},"reason":{"type":"string","maxLength":1000},"notes":{"type":["string","null"],"maxLength":1000},"revision":{"type":["integer","null"],"minimum":1}},"required":["booking_id","meal_date","meal","quantity","reason"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen/meal-plans/{mealPlanEntry}/consume":{"post":{"tags":["Kitchen"],"operationId":"consumeMealPlan","summary":"Consume meal plan","parameters":[{"name":"mealPlanEntry","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quantity":{"type":"integer","minimum":0},"revision":{"type":"integer","minimum":1},"reason":{"type":"string","maxLength":1000}},"required":["quantity","revision","reason"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen/meal-plans/{mealPlanEntry}/dispatch":{"post":{"tags":["Kitchen"],"operationId":"dispatchMealPlan","summary":"Dispatch meal plan","parameters":[{"name":"mealPlanEntry","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1}},"required":["revision"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen/tasks":{"get":{"tags":["Kitchen"],"operationId":"listKitchenTasks","summary":"List kitchen tasks","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"property_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen/tickets/{kitchenTicket}":{"patch":{"tags":["Kitchen"],"operationId":"updateKitchenTicket","summary":"Update kitchen ticket","parameters":[{"name":"kitchenTicket","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1},"reason":{"type":"string","maxLength":1000},"acknowledge_dietary":{"type":"boolean"},"line_id":{"type":["string","null"],"format":"uuid"},"notes":{"type":["string","null"],"maxLength":1000},"ready_quantity":{"type":["number","null"],"minimum":0,"maximum":999999999}},"required":["revision","reason"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/kitchen/tickets/{kitchenTicket}/transition":{"post":{"tags":["Kitchen"],"operationId":"transitionTicket","summary":"Transition ticket","parameters":[{"name":"kitchenTicket","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["preparing","ready","served","cancelled"]},"revision":{"type":"integer","minimum":1},"reason":{"type":["string","null"],"maxLength":1000}},"required":["status","revision"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/opportunities/{opportunity}":{"patch":{"tags":["Opportunity"],"operationId":"updateOpportunity","summary":"Update opportunity","parameters":[{"name":"opportunity","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1},"contact_name":{"type":["string","null"],"maxLength":200},"agency_name":{"type":["string","null"],"maxLength":200},"tentative_starts_on":{"type":["string","null"],"format":"date"},"tentative_ends_on":{"type":["string","null"],"format":"date"},"party_size":{"type":["integer","null"],"minimum":1,"maximum":10000},"last_sent_at":{"type":["string","null"],"format":"date-time"},"sent_channel":{"type":["string","null"],"enum":["email","whatsapp","phone","in_person","other",null]},"last_reply_at":{"type":["string","null"],"format":"date-time"},"next_action":{"type":["string","null"],"maxLength":500},"next_action_at":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":10000}},"required":["revision"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/opportunities/{opportunity}/proposal":{"post":{"tags":["Opportunity"],"operationId":"proposalOpportunity","summary":"Proposal opportunity","parameters":[{"name":"opportunity","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"proposal_id":{"type":"string","format":"uuid"}},"required":["proposal_id"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/organizations/{organization}":{"patch":{"tags":["Organization"],"operationId":"updateOrganization","summary":"Update organization","parameters":[{"name":"organization","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":160},"type":{"type":"string","enum":["agency","company","household"]},"email":{"type":["string","null"],"format":"email","maxLength":255},"phone":{"type":["string","null"],"maxLength":40},"commission_basis_points":{"type":"integer","minimum":0,"maximum":10000},"metadata":{"type":"array","items":{"type":"string"}},"is_active":{"type":"boolean"}}}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/payment-provider":{"get":{"tags":["PaymentLink"],"operationId":"listPaymentProvider","summary":"List payment provider","parameters":[{"name":"property_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"put":{"tags":["PaymentLink"],"operationId":"savePaymentProvider","summary":"Connect where guest payments are paid out (the account owner does this in Saply)","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid"},"is_enabled":{"type":"boolean"},"public_base_url":{"type":"string","format":"uri","maxLength":500},"access_token":{"type":"string","pattern":"^(?:APP_USR|TEST)-[A-Za-z0-9_-]{20,250}$"},"webhook_secret":{"type":"string","pattern":"^[0-9a-f]{32,128}$"}},"required":["property_id","is_enabled","public_base_url"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/payments/{payment}/evidence":{"get":{"tags":["PaymentEvidence"],"operationId":"evidencePayment","summary":"Evidence payment","parameters":[{"name":"payment","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["PaymentEvidence"],"operationId":"paymentEvidenceStore","summary":"Evidence payment","parameters":[{"name":"payment","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","contentMediaType":"application/octet-stream","description":"Maximum file size: 10240 kilobytes."}},"required":["file"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/payments/{payment}/evidence/{evidence}/download":{"get":{"tags":["PaymentEvidence"],"operationId":"downloadEvidence","summary":"Download evidence","parameters":[{"name":"payment","in":"path","required":true,"schema":{"type":"string"}},{"name":"evidence","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/proposals/{proposal}/alternatives":{"post":{"tags":["Proposal"],"operationId":"alternativesProposal","summary":"Alternatives proposal","parameters":[{"name":"proposal","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"alternative_proposal_id":{"type":"string","format":"uuid"},"label":{"type":"string","maxLength":100}},"required":["alternative_proposal_id","label"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/quotes":{"post":{"tags":["Booking"],"operationId":"createQuote","summary":"Price a stay or services and save the quote: the first step of creating a booking","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InferredPriceBookingRequest"}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/quotes/{quote}":{"get":{"tags":["Booking"],"operationId":"getQuote","summary":"Get a saved quote","parameters":[{"name":"quote","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/resource-areas":{"get":{"tags":["ResourceArea"],"operationId":"listResourceAreas","summary":"List resource areas","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["ResourceArea"],"operationId":"createResourceArea","summary":"Create resource area","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":160}},"required":["property_id","name"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/resource-areas/{resource_area}":{"patch":{"tags":["ResourceArea"],"operationId":"updateResourceArea","summary":"Update resource area","parameters":[{"name":"resource_area","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":160}},"required":["name"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-context-options":{"get":{"tags":["StaffWorkspace"],"operationId":"listStaffContextOptions","summary":"List staff context options","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-pos-preparation":{"get":{"tags":["Pos"],"operationId":"listStaffPosPreparation","summary":"List staff pos preparation","parameters":[{"name":"booking_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-pos-tab":{"get":{"tags":["Pos"],"operationId":"listStaffPosTab","summary":"List staff pos tab","parameters":[{"name":"booking_id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-questionnaires/pre-trip":{"get":{"tags":["PreTripQuestionnaire"],"operationId":"listStaffQuestionnairePreTrip","summary":"List staff questionnaire pre trip","parameters":[{"name":"start","in":"query","schema":{"type":["string","null"],"format":"date"}},{"name":"end","in":"query","schema":{"type":["string","null"],"format":"date"}},{"name":"property_id","in":"query","schema":{"type":["string","null"],"format":"uuid"}},{"name":"page","in":"query","schema":{"type":["integer","null"],"minimum":1}},{"name":"per_page","in":"query","schema":{"type":["integer","null"],"minimum":1,"maximum":100}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-questionnaires/waivers/{waiverTemplate}/retire":{"post":{"tags":["StaffWaiverTemplate"],"operationId":"retireWaiver","summary":"Retire waiver","parameters":[{"name":"waiverTemplate","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/automation-rules":{"get":{"tags":["StaffConfiguration"],"operationId":"listSettingAutomationRules","summary":"List setting automation rules","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffConfiguration"],"operationId":"createSettingAutomationRule","summary":"Create setting automation rule","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/automation-rules/{automationRule}":{"delete":{"tags":["StaffConfiguration"],"operationId":"deleteSettingAutomationRule","summary":"Delete setting automation rule","parameters":[{"name":"automationRule","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["StaffConfiguration"],"operationId":"updateSettingAutomationRule","summary":"Update setting automation rule","parameters":[{"name":"automationRule","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/booking-reminders":{"get":{"tags":["BookingCommunication"],"operationId":"listSettingBookingReminders","summary":"List setting booking reminders","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["BookingCommunication"],"operationId":"createSettingBookingReminder","summary":"Create setting booking reminder","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/booking-reminders/{automationRule}":{"patch":{"tags":["BookingCommunication"],"operationId":"updateSettingBookingReminder","summary":"Update setting booking reminder","parameters":[{"name":"automationRule","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":1},"is_active":{"type":"boolean"},"settings":{"type":"object","properties":{"offset_minutes":{"type":"integer","minimum":-525600,"maximum":525600},"catch_up_hours":{"type":"integer","minimum":1,"maximum":168},"send_hour":{"type":"integer","minimum":0,"maximum":23},"quiet_start":{"type":"integer","minimum":0,"maximum":23},"quiet_end":{"type":"integer","minimum":0,"maximum":23},"resend_on_reschedule":{"type":"boolean"},"bank_instructions":{"type":["string","null"],"maxLength":5000}},"required":["offset_minutes","catch_up_hours","send_hour","quiet_start","quiet_end","resend_on_reschedule","bank_instructions"]},"templates":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string","enum":["es","en","pt"]},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":20000},"publish":{"type":"boolean"}},"required":["language","subject","body","publish"]},"maxItems":2}},"required":["revision","is_active"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/booking-sources":{"get":{"tags":["Catalog"],"operationId":"listSettingBookingSources","summary":"List setting booking sources","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["Catalog"],"operationId":"createSettingBookingSource","summary":"Create setting booking source","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/booking-sources/{booking_source}":{"delete":{"tags":["Catalog"],"operationId":"deleteSettingBookingSource","summary":"Delete setting booking source","parameters":[{"name":"booking_source","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Catalog"],"operationId":"updateSettingBookingSource","summary":"Update setting booking source","parameters":[{"name":"booking_source","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/business":{"patch":{"tags":["StaffWorkspace"],"operationId":"updateSettingBusiness","summary":"Update the business name, currency, time zone and language","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":160},"currency":{"type":"string","minLength":3,"maxLength":3},"timezone":{"type":"string","enum":["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Ciudad_Juarez","America/Costa_Rica","America/Coyhaique","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New_York","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis","UTC"]},"locale":{"type":"string","maxLength":12}}}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/calendar-feeds":{"get":{"tags":["StaffInfrastructureConfiguration"],"operationId":"listSettingCalendarFeeds","summary":"List setting calendar feeds","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffInfrastructureConfiguration"],"operationId":"createSettingCalendarFeed","summary":"Create setting calendar feed","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/calendar-feeds/{calendarFeed}":{"delete":{"tags":["StaffInfrastructureConfiguration"],"operationId":"deleteSettingCalendarFeed","summary":"Delete setting calendar feed","parameters":[{"name":"calendarFeed","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["StaffInfrastructureConfiguration"],"operationId":"updateSettingCalendarFeed","summary":"Update setting calendar feed","parameters":[{"name":"calendarFeed","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":160},"resource_id":{"type":"string","format":"uuid"},"is_active":{"type":"boolean"}},"required":["name","resource_id","is_active"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/cancellation-policies/{cancellation_policy}":{"delete":{"tags":["Catalog"],"operationId":"deleteSettingCancellationPolicy","summary":"Delete setting cancellation policy","parameters":[{"name":"cancellation_policy","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Catalog"],"operationId":"updateSettingCancellationPolicy","summary":"Update setting cancellation policy","parameters":[{"name":"cancellation_policy","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/catalog":{"get":{"tags":["Catalog"],"operationId":"listSettingCatalog","summary":"The whole sales catalog: services, rates, products, taxes and policies","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-providers/{communicationProvider}":{"patch":{"tags":["StaffCommunicationConfiguration"],"operationId":"updateSettingCommunicationProvider","summary":"Update setting communication provider","parameters":[{"name":"communicationProvider","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-providers/{communicationProvider}/revoke":{"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"revokeCommunicationProvider","summary":"Revoke communication provider","parameters":[{"name":"communicationProvider","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":1000}},"required":["reason"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-providers/{communicationProvider}/rotate":{"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"rotateCommunicationProvider","summary":"Rotate communication provider","parameters":[{"name":"communicationProvider","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":1000},"overlap_minutes":{"type":"integer","minimum":0,"maximum":60}},"required":["reason","overlap_minutes"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-providers/{communicationProvider}/verify":{"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"verifyCommunicationProvider","summary":"Verify communication provider","parameters":[{"name":"communicationProvider","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-suppressions/{communicationSuppression}":{"patch":{"tags":["StaffCommunicationConfiguration"],"operationId":"updateSettingCommunicationSuppression","summary":"Update setting communication suppression","parameters":[{"name":"communicationSuppression","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communication-suppressions/{communicationSuppression}/lift":{"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"liftCommunicationSuppression","summary":"Lift communication suppression","parameters":[{"name":"communicationSuppression","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":1000}},"required":["reason"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communications/test":{"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"testCommunication","summary":"Test communication","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid"},"recipient":{"type":"string","format":"email"},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":10000}},"required":["property_id","recipient","subject","body"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communications/{communication}/resend":{"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"resendCommunication","summary":"Resend communication","parameters":[{"name":"communication","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/communications/{communication}/retry":{"post":{"tags":["StaffCommunicationConfiguration"],"operationId":"retryCommunication","summary":"Retry communication","parameters":[{"name":"communication","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/deposit-policies":{"get":{"tags":["StaffConfiguration"],"operationId":"listSettingDepositPolicies","summary":"List setting deposit policies","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffConfiguration"],"operationId":"createSettingDepositPolicy","summary":"Create setting deposit policy","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/deposit-policies/{deposit_policy}":{"delete":{"tags":["StaffConfiguration"],"operationId":"deleteSettingDepositPolicy","summary":"Delete setting deposit policy","parameters":[{"name":"deposit_policy","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["StaffConfiguration"],"operationId":"updateSettingDepositPolicy","summary":"Update setting deposit policy","parameters":[{"name":"deposit_policy","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/exchange-rates":{"get":{"tags":["StaffInfrastructureConfiguration"],"operationId":"listSettingExchangeRates","summary":"List setting exchange rates","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffInfrastructureConfiguration"],"operationId":"createSettingExchangeRate","summary":"Create setting exchange rate","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":["string","null"],"format":"uuid"},"base_currency":{"type":"string","minLength":3,"maxLength":3},"quote_currency":{"type":"string","minLength":3,"maxLength":3},"rate":{"type":"number"},"source":{"type":"string","maxLength":80},"effective_at":{"type":"string","format":"date-time"}},"required":["base_currency","quote_currency","rate","source","effective_at"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/feature-categories/{featureCategory}":{"delete":{"tags":["StaffInfrastructureConfiguration"],"operationId":"deleteSettingFeatureCategory","summary":"Delete setting feature category","parameters":[{"name":"featureCategory","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["StaffInfrastructureConfiguration"],"operationId":"updateSettingFeatureCategory","summary":"Update setting feature category","parameters":[{"name":"featureCategory","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/pos":{"get":{"tags":["PosConfiguration"],"operationId":"listSettingPos","summary":"List setting pos","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/pos/groups":{"post":{"tags":["PosConfiguration"],"operationId":"createSettingPoGroup","summary":"Create setting po group","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pos_store_id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":120},"sort_order":{"type":"integer","minimum":0,"maximum":9999},"is_active":{"type":"boolean"},"product_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":1000,"uniqueItems":true}},"required":["pos_store_id","name","sort_order","is_active","product_ids"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/pos/groups/{pos_product_group}":{"delete":{"tags":["PosConfiguration"],"operationId":"deleteSettingPoGroup","summary":"Delete setting po group","parameters":[{"name":"pos_product_group","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["PosConfiguration"],"operationId":"updateSettingPoGroup","summary":"Update setting po group","parameters":[{"name":"pos_product_group","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pos_store_id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":120},"sort_order":{"type":"integer","minimum":0,"maximum":9999},"is_active":{"type":"boolean"},"product_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":1000,"uniqueItems":true}},"required":["pos_store_id","name","sort_order","is_active","product_ids"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/pos/stores":{"post":{"tags":["PosConfiguration"],"operationId":"createSettingPoStore","summary":"Create setting po store","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":120},"stock_location_id":{"type":["string","null"],"format":"uuid"},"sort_order":{"type":"integer","minimum":0,"maximum":9999},"is_active":{"type":"boolean"}},"required":["property_id","name","sort_order","is_active"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/pos/stores/{pos_store}":{"delete":{"tags":["PosConfiguration"],"operationId":"deleteSettingPoStore","summary":"Delete setting po store","parameters":[{"name":"pos_store","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["PosConfiguration"],"operationId":"updateSettingPoStore","summary":"Update setting po store","parameters":[{"name":"pos_store","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":120},"stock_location_id":{"type":["string","null"],"format":"uuid"},"sort_order":{"type":"integer","minimum":0,"maximum":9999},"is_active":{"type":"boolean"}},"required":["property_id","name","sort_order","is_active"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/products":{"get":{"tags":["Catalog"],"operationId":"listSettingProducts","summary":"List setting products","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["Catalog"],"operationId":"createSettingProduct","summary":"Create setting product","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/products/{product}":{"delete":{"tags":["Catalog"],"operationId":"deleteSettingProduct","summary":"Delete setting product","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Catalog"],"operationId":"updateSettingProduct","summary":"Update setting product","parameters":[{"name":"product","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/rate-groups":{"get":{"tags":["Catalog"],"operationId":"listSettingRateGroups","summary":"List setting rate groups","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["Catalog"],"operationId":"createSettingRateGroup","summary":"Create setting rate group","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/rate-groups/{rate_group}":{"delete":{"tags":["Catalog"],"operationId":"deleteSettingRateGroup","summary":"Delete setting rate group","parameters":[{"name":"rate_group","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Catalog"],"operationId":"updateSettingRateGroup","summary":"Update setting rate group","parameters":[{"name":"rate_group","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/rates":{"get":{"tags":["Catalog"],"operationId":"listSettingRates","summary":"List rates (price lists) for services","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["Catalog"],"operationId":"createSettingRate","summary":"Create a rate (a price list) for a service","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/rates/{rate}":{"delete":{"tags":["Catalog"],"operationId":"deleteSettingRate","summary":"Delete setting rate","parameters":[{"name":"rate","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Catalog"],"operationId":"updateSettingRate","summary":"Update a rate and its prices","parameters":[{"name":"rate","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/resource-categories":{"get":{"tags":["StaffInfrastructureConfiguration"],"operationId":"listSettingResourceCategories","summary":"List room types and other resource types","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffInfrastructureConfiguration"],"operationId":"createSettingResourceCategory","summary":"Create a room type or resource type","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/resource-categories/{resourceCategory}":{"delete":{"tags":["StaffInfrastructureConfiguration"],"operationId":"deleteSettingResourceCategory","summary":"Delete setting resource category","parameters":[{"name":"resourceCategory","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["StaffInfrastructureConfiguration"],"operationId":"updateSettingResourceCategory","summary":"Update setting resource category","parameters":[{"name":"resourceCategory","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":80},"slug":{"type":["string","null"],"maxLength":40},"counts_as_stay":{"type":"boolean"},"default_capacity":{"type":"integer","minimum":1},"sort_order":{"type":"integer","minimum":0},"is_active":{"type":"boolean"}},"required":["name","counts_as_stay","default_capacity","sort_order","is_active"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/retention-policies":{"get":{"tags":["StaffInfrastructureConfiguration"],"operationId":"listSettingRetentionPolicies","summary":"List setting retention policies","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffInfrastructureConfiguration"],"operationId":"createSettingRetentionPolicy","summary":"Create setting retention policy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"property_id":{"type":["string","null"],"format":"uuid"},"artifact_class":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,47}$","maxLength":48},"jurisdiction":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{1,31}$","maxLength":32},"retain_days":{"type":["integer","null"],"minimum":1},"approval_reference":{"type":"string","minLength":4,"maxLength":1000}},"required":["artifact_class","jurisdiction","approval_reference"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/services":{"get":{"tags":["Catalog"],"operationId":"listSettingServices","summary":"List services: stays, activities, transfers and meals the lodge sells","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["Catalog"],"operationId":"createSettingService","summary":"Create a service the lodge sells","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/services/{service}":{"delete":{"tags":["Catalog"],"operationId":"deleteSettingService","summary":"Delete setting service","parameters":[{"name":"service","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["Catalog"],"operationId":"updateSettingService","summary":"Update setting service","parameters":[{"name":"service","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/stock-locations":{"get":{"tags":["StaffInfrastructureConfiguration"],"operationId":"listSettingStockLocations","summary":"List setting stock locations","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffInfrastructureConfiguration"],"operationId":"createSettingStockLocation","summary":"Create setting stock location","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/stock-locations/{stockLocation}":{"patch":{"tags":["StaffInfrastructureConfiguration"],"operationId":"updateSettingStockLocation","summary":"Update setting stock location","parameters":[{"name":"stockLocation","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":160},"code":{"type":"string","maxLength":40}},"required":["name","code"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/tax-rules":{"get":{"tags":["StaffConfiguration"],"operationId":"listSettingTaxRules","summary":"List setting tax rules","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"post":{"tags":["StaffConfiguration"],"operationId":"createSettingTaxRule","summary":"Create setting tax rule","parameters":[],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/tax-rules/{tax_rule}":{"delete":{"tags":["StaffConfiguration"],"operationId":"deleteSettingTaxRule","summary":"Delete setting tax rule","parameters":[{"name":"tax_rule","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}},"patch":{"tags":["StaffConfiguration"],"operationId":"updateSettingTaxRule","summary":"Update setting tax rule","parameters":[{"name":"tax_rule","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/tax-rules/{tax_rule}/copy":{"post":{"tags":["StaffConfiguration"],"operationId":"copyTaxRule","summary":"Copy tax rule","parameters":[{"name":"tax_rule","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/tax-rules/{tax_rule}/publish":{"post":{"tags":["StaffConfiguration"],"operationId":"publishTaxRule","summary":"Publish tax rule","parameters":[{"name":"tax_rule","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/tax-rules/{tax_rule}/retire":{"post":{"tags":["StaffConfiguration"],"operationId":"retireTaxRule","summary":"Retire tax rule","parameters":[{"name":"tax_rule","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/staff-settings/team/{membership}":{"patch":{"tags":["StaffWorkspace"],"operationId":"updateSettingTeam","summary":"Update setting team","parameters":[{"name":"membership","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"$ref":"#/components/schemas/InferredMembershipRole"},"property_id":{"type":["string","null"],"format":"uuid"},"is_active":{"type":"boolean"}},"required":["role","is_active"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/stays":{"post":{"tags":["Stays"],"operationId":"bookStay","summary":"Book a stay on the lodge's own rooms for a new or existing guest, at the lodge's price","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["starts_on","ends_on","adults"],"properties":{"starts_on":{"type":"string","format":"date","description":"Arrival (YYYY-MM-DD, lodge time zone)."},"ends_on":{"type":"string","format":"date","description":"Departure, after arrival."},"adults":{"type":"integer","minimum":1,"maximum":50},"children":{"type":"integer","minimum":0,"maximum":50},"guest_id":{"type":"string","format":"uuid","description":"An existing guest; otherwise give guest_first_name."},"guest_first_name":{"type":"string","maxLength":100},"guest_last_name":{"type":"string","maxLength":100},"guest_email":{"type":"string","format":"email"},"guest_phone":{"type":"string","maxLength":40},"guest_language":{"type":"string","enum":["es","en","pt"]},"status":{"type":"string","enum":["confirmed","hold"],"default":"confirmed"},"notes":{"type":"string","maxLength":10000},"guest_requests":{"type":"string","maxLength":5000}}}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/stays/quote":{"get":{"tags":["Stays"],"operationId":"quoteStay","summary":"Whether a stay fits the lodge's own rooms on given dates, which ones it gets, and its price","parameters":[{"name":"starts_on","in":"query","required":true,"description":"Arrival (YYYY-MM-DD, lodge time zone).","schema":{"type":"string","format":"date"}},{"name":"ends_on","in":"query","required":true,"description":"Departure, after arrival.","schema":{"type":"string","format":"date"}},{"name":"adults","in":"query","required":true,"schema":{"type":"integer","minimum":1}},{"name":"children","in":"query","required":false,"schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/supply-orders/{supplyOrder}/receive":{"post":{"tags":["SupplyOrder"],"operationId":"receiveSupplyOrder","summary":"Receive supply order","parameters":[{"name":"supplyOrder","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expected_revision":{"type":"integer","minimum":1},"lines":{"type":"array","items":{"type":"object","properties":{"line_id":{"type":"string","format":"uuid"},"product_id":{"type":"string","format":"uuid"},"stock_location_id":{"type":"string","format":"uuid"},"received_quantity_milli":{"type":"integer","minimum":1,"maximum":999999999}},"required":["line_id","product_id","stock_location_id","received_quantity_milli"]},"minItems":1,"maxItems":100,"uniqueItems":true}},"required":["expected_revision","lines"]}}}},"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}},"/tasks/{task}/eligible-assignees":{"get":{"tags":["Task"],"operationId":"listTaskEligibleAssignees","summary":"List task eligible assignees","parameters":[{"name":"task","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The result, in the shape the staff app reads."}}}}},"components":{"securitySchemes":{"cookieAuth":{"type":"apiKey","in":"cookie","name":"lodge_session","description":"HttpOnly staff session issued by the core identity service and forwarded by the first-party Next.js BFF. Unsafe requests also require the matching X-XSRF-TOKEN header."},"bearerAuth":{"type":"http","scheme":"bearer","description":"An OAuth 2.1 access token (saply_at_…) or a personal API key (saply_key_…)."}},"parameters":{"LodgeSlug":{"name":"slug","in":"path","required":true,"description":"The booking page's address, /stay/{slug}.","schema":{"type":"string"}},"TenantId":{"name":"X-Tenant-ID","in":"header","required":true,"description":"Active tenant UUID selected by an authenticated membership.","schema":{"type":"string","format":"uuid"}},"WorkspaceInvitationId":{"name":"invitation","in":"path","required":true,"description":"The invitation's id.","schema":{"type":"string","format":"uuid"}},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Tenant-scoped opaque key for safely retried commands.","schema":{"type":"string","minLength":16,"maxLength":128}},"IntegrationIdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"description":"Required tenant-scoped opaque identity for every externally retried integration command.","schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}},"IntegrationConnectionId":{"name":"connection","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"Search":{"name":"search","in":"query","schema":{"type":"string","maxLength":120}},"Page":{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},"GuestId":{"name":"guest","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"ResourceId":{"name":"resource","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"BookingId":{"name":"booking","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"RefundId":{"name":"refund","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"TaskId":{"name":"task","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},"PaymentId":{"name":"payment","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}},"requestBodies":{"GenericCommand":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"OperationalReason":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":3,"maxLength":500}}}}}}},"responses":{"LodgePage":{"description":"The booking page.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/LodgePage"}}}}}},"LodgePhoto":{"description":"The stored photo.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","purpose"],"properties":{"id":{"type":"string"},"purpose":{"type":"string","enum":["photo","logo"]}}}}}}}},"GenericSuccess":{"description":"Command completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericDataEnvelope"}}}},"Unauthenticated":{"description":"Authentication is missing, expired, invalid, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The authenticated user has no active membership or permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"The resource does not exist in the active tenant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Capacity, resource-assignment, status, idempotency, or optimistic-lock conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ValidationError":{"description":"One or more fields are invalid.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}]}}}}},"schemas":{"BillingOverview":{"type":"object","required":["configured","can_manage","rooms","beds","billed_rooms","free_rooms","step","currency","monthly_minor","yearly_minor","steps","subscription","founding"],"properties":{"configured":{"type":"boolean"},"can_manage":{"type":"boolean"},"rooms":{"type":"integer"},"beds":{"type":"integer"},"billed_rooms":{"type":"integer"},"free_rooms":{"type":"integer"},"step":{"type":"integer","minimum":0,"maximum":5},"currency":{"type":"string"},"monthly_minor":{"type":"integer"},"yearly_minor":{"type":"integer"},"steps":{"type":"array","items":{"type":"object","required":["step","max_rooms","monthly_minor","yearly_minor"],"properties":{"step":{"type":"integer"},"max_rooms":{"type":["integer","null"]},"monthly_minor":{"type":"integer"},"yearly_minor":{"type":"integer"}}}},"subscription":{"oneOf":[{"type":"null"},{"type":"object","required":["status","step","interval","founder"],"properties":{"status":{"type":"string","enum":["trialing","active","past_due","canceling"]},"step":{"type":"integer"},"interval":{"type":"string","enum":["month","year"]},"founder":{"type":"boolean"},"amount_minor":{"type":["integer","null"]},"currency":{"type":["string","null"]},"trial_ends_at":{"type":["string","null"],"format":"date-time"},"current_period_end":{"type":["string","null"],"format":"date-time"}}}]},"founding":{"type":"object","required":["available","spots_left","free_months","discount_percent"],"properties":{"available":{"type":"boolean"},"spots_left":{"type":"integer"},"free_months":{"type":"integer"},"discount_percent":{"type":"integer"}}}}},"AgentCredential":{"type":"object","required":["id","name","client_id","client_uri","logo_uri","scopes","hint","created_at","last_used_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"client_id":{"type":["string","null"]},"client_uri":{"type":["string","null"]},"logo_uri":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"hint":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":["string","null"],"format":"date-time"}}},"AgentAccess":{"type":"object","required":["mcp_url","api_url","openapi_url","docs_url","connections","keys"],"properties":{"mcp_url":{"type":"string"},"api_url":{"type":"string"},"openapi_url":{"type":"string"},"docs_url":{"type":"string"},"connections":{"type":"array","items":{"$ref":"#/components/schemas/AgentCredential"}},"keys":{"type":"array","items":{"$ref":"#/components/schemas/AgentCredential"}}}},"AgentActivity":{"type":"object","required":["id","agent","action","status","created_at"],"properties":{"id":{"type":"integer"},"agent":{"type":"string"},"action":{"type":"string"},"status":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}},"AgentApiKeyCreated":{"type":"object","required":["id","name","scopes","hint","key"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"},"key":{"type":"string"}}},"BillingCheckoutEnvelope":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["url"],"properties":{"url":{"type":"string"},"founder":{"type":"boolean"},"step":{"type":"integer"},"interval":{"type":"string"}}}}},"PublicWorkspace":{"type":"object","required":["name","logo_url","favicon_url","support_email","accent_color","welcome_title","welcome_message"],"properties":{"name":{"type":"string"},"logo_url":{"type":["string","null"]},"favicon_url":{"type":["string","null"]},"support_email":{"type":["string","null"]},"accent_color":{"type":"string"},"welcome_title":{"type":["string","null"]},"welcome_message":{"type":["string","null"]}}},"BookingInvoice":{"type":"object","required":["id","booking_id","number","snapshot"],"properties":{"id":{"type":"string"},"booking_id":{"type":"string"},"number":{"type":"string"},"snapshot":{"type":"object","required":["business_name","business_number","currency","locale","guest_name","property_name","confirmation_number","starts_on","ends_on","issued_on","due_on","lines","net_minor","tax_minor","total_minor","paid_minor","balance_minor","footer","bank_instructions","supersedes_number"],"properties":{"business_name":{"type":"string"},"currency":{"type":"string"},"locale":{"type":"string"},"guest_name":{"type":"string"},"property_name":{"type":"string"},"confirmation_number":{"type":"string"},"starts_on":{"type":"string"},"ends_on":{"type":"string"},"issued_on":{"type":"string"},"due_on":{"type":"string"},"business_number":{"type":["string","null"]},"footer":{"type":["string","null"]},"bank_instructions":{"type":["string","null"]},"supersedes_number":{"type":["string","null"]},"net_minor":{"type":"integer"},"tax_minor":{"type":"integer"},"total_minor":{"type":"integer"},"paid_minor":{"type":"integer"},"balance_minor":{"type":"integer"},"lines":{"type":"array","items":{"type":"object","required":["id","description","quantity_thousandths","unit_amount_minor","net_amount_minor","tax_amount_minor","gross_amount_minor"],"properties":{"id":{"type":"string"},"description":{"type":"string"},"quantity_thousandths":{"type":"integer"},"unit_amount_minor":{"type":"integer"},"net_amount_minor":{"type":"integer"},"tax_amount_minor":{"type":"integer"},"gross_amount_minor":{"type":"integer"}}}}}}}},"StaffCommunicationProvider":{"type":"object","additionalProperties":false,"required":["id","property_id","property","provider","account_id","secret_ref","webhook_secret_refs","has_api_key","webhook_secret_count","from_email","from_name","reply_to_email","allowed_sender_domains","is_enabled","verified_at","verification_checked_at","revoked_at","previous_endpoint_key_expires_at"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property":{"type":"string"},"provider":{"type":"string","enum":["resend"]},"account_id":{"type":"string"},"secret_ref":{"type":"string","description":"`stored:api_key` when the workspace saved its own key, otherwise an operator-managed `env:NAME` reference."},"webhook_secret_refs":{"type":"array","items":{"type":"string"}},"has_api_key":{"type":"boolean","description":"Whether an encrypted API key is saved on the connection. The key itself is never returned."},"webhook_secret_count":{"type":"integer","description":"Number of encrypted webhook signing secrets saved on the connection."},"from_email":{"type":"string","format":"email"},"from_name":{"type":"string"},"reply_to_email":{"type":["string","null"],"format":"email"},"allowed_sender_domains":{"type":"array","items":{"type":"string"}},"is_enabled":{"type":"boolean"},"verified_at":{"type":["string","null"],"format":"date-time"},"verification_checked_at":{"type":["string","null"],"format":"date-time"},"revoked_at":{"type":["string","null"],"format":"date-time"},"previous_endpoint_key_expires_at":{"type":["string","null"],"format":"date-time"}}},"StaffCommunicationSuppression":{"type":"object","additionalProperties":false,"required":["id","property_id","property","channel","recipient_hash","reason","source","expires_at","suppressed_at","lifted_at","lift_reason"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":["string","null"],"format":"uuid"},"property":{"type":["string","null"]},"channel":{"type":"string","enum":["email","sms","whatsapp"]},"recipient_hash":{"type":"string"},"reason":{"type":"string","enum":["unsubscribe","complaint","bounce","manual"]},"source":{"type":"string"},"expires_at":{"type":["string","null"],"format":"date-time"},"suppressed_at":{"type":["string","null"],"format":"date-time"},"lifted_at":{"type":["string","null"],"format":"date-time"},"lift_reason":{"type":["string","null"]}}},"StaffCommunication":{"type":"object","additionalProperties":false,"required":["id","property_id","subject","body","purpose","channel","status","content_checksum","failure_reason","recoverable","accepted_at","delivered_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":["string","null"],"format":"uuid"},"subject":{"type":["string","null"]},"body":{"type":"string"},"purpose":{"type":"string"},"channel":{"type":"string"},"status":{"type":"string"},"content_checksum":{"type":["string","null"]},"failure_reason":{"type":["string","null"]},"recoverable":{"type":"boolean"},"accepted_at":{"type":["string","null"],"format":"date-time"},"delivered_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}},"StaffCommunicationDeliveryEvent":{"type":"object","additionalProperties":false,"required":["id","property","provider","account_id","provider_event_id","provider_message_id","type","processing_state","processing_error","raw_body_checksum","normalized_payload","occurred_at","received_at","processed_at"],"properties":{"id":{"type":"string","format":"uuid"},"property":{"type":["string","null"]},"provider":{"type":"string"},"account_id":{"type":["string","null"]},"provider_event_id":{"type":"string"},"provider_message_id":{"type":["string","null"]},"type":{"type":"string"},"processing_state":{"type":"string"},"processing_error":{"type":["string","null"]},"raw_body_checksum":{"type":"string"},"normalized_payload":{"type":["object","null"],"additionalProperties":true},"occurred_at":{"type":["string","null"],"format":"date-time"},"received_at":{"type":["string","null"],"format":"date-time"},"processed_at":{"type":["string","null"],"format":"date-time"}}},"StaffCommunicationDeliveryAttempt":{"type":"object","additionalProperties":false,"required":["id","communication_id","subject","purpose","provider","account_id","kind","status","provider_message_id","idempotency_key","request_checksum","safe_error","attempt","attempted_at","reconcile_after"],"properties":{"id":{"type":"string","format":"uuid"},"communication_id":{"type":"string","format":"uuid"},"subject":{"type":["string","null"]},"purpose":{"type":["string","null"]},"provider":{"type":["string","null"]},"account_id":{"type":["string","null"]},"kind":{"type":"string"},"status":{"type":"string"},"provider_message_id":{"type":["string","null"]},"idempotency_key":{"type":"string"},"request_checksum":{"type":["string","null"]},"safe_error":{"type":["string","null"]},"attempt":{"type":"integer"},"attempted_at":{"type":["string","null"],"format":"date-time"},"reconcile_after":{"type":["string","null"],"format":"date-time"}}},"StaffProperty":{"type":"object","additionalProperties":true,"required":["id","name"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"code":{"type":["string","null"]},"timezone":{"type":["string","null"]},"is_active":{"type":"boolean"}}},"StaffPropertyEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/StaffProperty"}}},"SupplyOrder":{"type":"object","additionalProperties":true,"required":["id"],"properties":{"id":{"type":"string","format":"uuid"},"reference":{"type":"string"},"property_id":{"type":"string","format":"uuid"},"booking_id":{"type":["string","null"],"format":"uuid"},"supply_list_template_id":{"type":["string","null"],"format":"uuid"},"supply_list_template_revision":{"type":["integer","null"],"minimum":1},"party":{"type":"string"},"vendor_name":{"type":"string"},"vendor_email":{"type":["string","null"]},"status":{"type":"string"},"currency":{"type":"string"},"total_minor":{"type":["integer","null"]},"revision":{"type":"integer"},"can_advance_lifecycle":{"type":"boolean"}}},"SupplyOrderEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/SupplyOrder"}}},"SupplyListTemplateLine":{"type":"object","additionalProperties":false,"required":["id","name","default_quantity","notes","sort_order"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"default_quantity":{"type":"integer","minimum":1},"unit_amount_minor":{"type":"integer","minimum":0,"description":"Omitted from Kitchen-safe projections."},"notes":{"type":["string","null"]},"sort_order":{"type":"integer","minimum":0}}},"SupplyListTemplate":{"type":"object","additionalProperties":false,"required":["id","property_id","property_name","name","vendor_name","vendor_email","currency","notes","is_active","revision","line_count","default_total_minor","can_manage_template","lines"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property_name":{"type":"string"},"name":{"type":"string"},"vendor_name":{"type":"string"},"vendor_email":{"type":["string","null"],"format":"email","description":"Null outside the vendor-lifecycle role boundary."},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"notes":{"type":["string","null"]},"is_active":{"type":"boolean"},"revision":{"type":"integer","minimum":1},"line_count":{"type":"integer","minimum":0},"default_total_minor":{"type":["integer","null"],"description":"Null outside the financial-detail role boundary."},"can_manage_template":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/SupplyListTemplateLine"}}}},"SupplyListTemplateEnvelope":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"$ref":"#/components/schemas/SupplyListTemplate"}}},"SupplyListTemplateCollectionEnvelope":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SupplyListTemplate"}}}},"SupplyListTemplateLineInput":{"type":"object","additionalProperties":false,"required":["name","default_quantity","unit_amount_minor"],"properties":{"name":{"type":"string","maxLength":200},"default_quantity":{"type":"integer","minimum":1,"maximum":100000},"unit_amount_minor":{"type":"integer","minimum":0},"notes":{"type":["string","null"],"maxLength":1000}}},"SupplyListTemplateCreateInput":{"type":"object","additionalProperties":false,"required":["property_id","name","vendor_name","currency","lines"],"properties":{"property_id":{"type":"string","format":"uuid"},"name":{"type":"string","maxLength":160},"vendor_name":{"type":"string","maxLength":160},"vendor_email":{"type":["string","null"],"format":"email","maxLength":254},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"notes":{"type":["string","null"],"maxLength":5000},"is_active":{"type":"boolean"},"lines":{"type":"array","minItems":1,"maxItems":100,"items":{"$ref":"#/components/schemas/SupplyListTemplateLineInput"}}}},"SupplyListTemplateUpdateInput":{"type":"object","additionalProperties":false,"required":["expected_revision"],"properties":{"expected_revision":{"type":"integer","minimum":1},"name":{"type":"string","maxLength":160},"vendor_name":{"type":"string","maxLength":160},"vendor_email":{"type":["string","null"],"format":"email","maxLength":254},"currency":{"type":"string","pattern":"^[A-Za-z]{3}$"},"notes":{"type":["string","null"],"maxLength":5000},"is_active":{"type":"boolean"},"lines":{"type":"array","minItems":1,"maxItems":100,"items":{"$ref":"#/components/schemas/SupplyListTemplateLineInput"}}}},"SupplyListTemplateInstantiateInput":{"type":"object","additionalProperties":false,"required":["expected_revision","reference"],"properties":{"expected_revision":{"type":"integer","minimum":1},"reference":{"type":"string","maxLength":80},"booking_id":{"type":["string","null"],"format":"uuid"},"needed_at":{"type":["string","null"],"format":"date-time"},"notes":{"type":["string","null"],"maxLength":5000},"quantity_overrides":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["line_id","quantity"],"properties":{"line_id":{"type":"string","format":"uuid"},"quantity":{"type":"integer","minimum":1,"maximum":100000}}}}}},"StaffInventoryLocation":{"type":"object","additionalProperties":false,"required":["id","property_id","property","name","code"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property":{"type":"string"},"name":{"type":"string"},"code":{"type":"string"}}},"StaffInventoryItem":{"type":"object","additionalProperties":false,"required":["id","property_id","code","name","reorder_point_milli"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"code":{"type":"string"},"name":{"type":"string"},"reorder_point_milli":{"description":"Par level in thousandths of a unit; null when no reorder point is set.","type":["integer","null"],"minimum":0}}},"StaffInventoryBalance":{"type":"object","additionalProperties":false,"required":["stock_location_id","product_id","on_hand_quantity_milli","reorder_point_milli","last_movement_at","last_counted_at"],"properties":{"stock_location_id":{"type":"string","format":"uuid"},"product_id":{"type":"string","format":"uuid"},"on_hand_quantity_milli":{"type":"integer"},"reorder_point_milli":{"description":"The product's par level in thousandths of a unit, for comparison with on_hand_quantity_milli; null when no reorder point is set.","type":["integer","null"],"minimum":0},"last_movement_at":{"type":["string","null"],"format":"date-time"},"last_counted_at":{"type":["string","null"],"format":"date-time"}}},"StaffInventory":{"type":"object","additionalProperties":false,"required":["locations","products","balances"],"properties":{"locations":{"type":"array","items":{"$ref":"#/components/schemas/StaffInventoryLocation"}},"products":{"type":"array","items":{"$ref":"#/components/schemas/StaffInventoryItem"}},"balances":{"type":"array","items":{"$ref":"#/components/schemas/StaffInventoryBalance"}}}},"StaffInventoryEnvelope":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"$ref":"#/components/schemas/StaffInventory"}}},"StaffInventoryMovement":{"type":"object","additionalProperties":false,"required":["id","product_id","stock_location_id","type","adjustment_quantity_milli","on_hand_quantity_milli","reference","occurred_at"],"properties":{"id":{"type":"string","format":"uuid"},"product_id":{"type":"string","format":"uuid"},"stock_location_id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["inventory_count","receipt"]},"adjustment_quantity_milli":{"type":"integer"},"counted_quantity_milli":{"type":"integer"},"on_hand_quantity_milli":{"type":"integer"},"reference":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"}}},"StaffInventoryMovementEnvelope":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"$ref":"#/components/schemas/StaffInventoryMovement"}}},"StaffInventoryCountInput":{"type":"object","additionalProperties":false,"required":["product_id","stock_location_id","counted_quantity_milli","reference"],"properties":{"product_id":{"type":"string","format":"uuid"},"stock_location_id":{"type":"string","format":"uuid"},"counted_quantity_milli":{"type":"integer","minimum":0,"maximum":999999999999},"reference":{"type":"string","maxLength":160},"occurred_at":{"type":["string","null"],"format":"date-time"}}},"StaffInventoryReceiptInput":{"type":"object","additionalProperties":false,"required":["product_id","stock_location_id","received_quantity_milli","reference"],"properties":{"product_id":{"type":"string","format":"uuid"},"stock_location_id":{"type":"string","format":"uuid"},"received_quantity_milli":{"type":"integer","minimum":1,"maximum":999999999999},"reference":{"type":"string","maxLength":160},"occurred_at":{"type":["string","null"],"format":"date-time"}}},"ResourceSuggestion":{"type":"object","additionalProperties":false,"required":["id","name","capacity","category","kind","reasons","recent_assignments"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"capacity":{"type":"integer"},"category":{"type":"string"},"kind":{"type":"string","enum":["place","crew","asset"]},"reasons":{"type":"array","items":{"type":"string"}},"recent_assignments":{"type":"integer"}}},"ResourceSuggestionCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ResourceSuggestion"}}}},"ProposalCollectionEnvelope":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Proposal"}},"links":{"type":"object","additionalProperties":true},"meta":{"type":"object","additionalProperties":true}}},"RetailSale":{"type":"object","additionalProperties":true,"required":["id","reference","currency","total_minor"],"properties":{"id":{"type":"string","format":"uuid"},"reference":{"type":"string"},"currency":{"type":"string"},"total_minor":{"type":"integer"}}},"RetailSaleEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/RetailSale"}}},"StaffCancellationPolicyRow":{"type":"object","additionalProperties":true,"required":["id","property_id","property","name","summary","is_default","is_active","tiers"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property":{"type":"string"},"name":{"type":"string"},"summary":{"type":["string","null"]},"is_default":{"type":"boolean"},"is_active":{"type":"boolean"},"tiers":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"StaffCancellationPolicyCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StaffCancellationPolicyRow"}}}},"ChecklistConfigurationItem":{"type":"object","additionalProperties":true,"required":["title","priority","due_offset_minutes"],"properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"description":{"type":["string","null"]},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"due_offset_minutes":{"type":"integer"},"sort_order":{"type":"integer"}}},"ChecklistConfigurationRow":{"type":"object","additionalProperties":true,"required":["id","property_id","property","name","role","state","latest_version","items"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property":{"type":"string"},"service_id":{"type":["string","null"],"format":"uuid"},"service":{"oneOf":[{"type":"object","required":["id","code","name"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"name":{"type":"string"}}},{"type":"null"}]},"name":{"type":"string"},"role":{"type":"string"},"state":{"type":"string"},"latest_version":{"type":"integer"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ChecklistConfigurationItem"}}}},"ChecklistConfigurationCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChecklistConfigurationRow"}}}},"StaffFeature":{"type":"object","additionalProperties":true,"required":["name","sort_order","is_active"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"icon":{"type":["string","null"]},"sort_order":{"type":"integer"},"is_active":{"type":"boolean"}}},"StaffFeatureCategory":{"type":"object","additionalProperties":true,"required":["id","property_id","property","name","slug","sort_order","is_active","features"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"sort_order":{"type":"integer"},"is_active":{"type":"boolean"},"features":{"type":"array","items":{"$ref":"#/components/schemas/StaffFeature"}}}},"StaffFeatureCategoryCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/StaffFeatureCategory"}}}},"ReportExportInput":{"type":"object","required":["property_id","kind","format"],"properties":{"property_id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["arrivals","departures","occupancy","revenue","payments_deposits_refunds","costs_margin_commissions","dietary","tasks_housekeeping","supply_orders"]},"format":{"type":"string","enum":["csv","xlsx"]},"locale":{"type":"string","maxLength":12,"default":"en"},"filters":{"type":"object","additionalProperties":false,"properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"status":{"type":"string"}}}}},"ReportExport":{"type":"object","required":["id","kind","format","status","property_id","locale","filters","filter_checksum","row_count","attempts"],"properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"format":{"type":"string","enum":["csv","xlsx"]},"status":{"type":"string","enum":["pending","processing","completed","failed"]},"property_id":{"type":"string","format":"uuid"},"locale":{"type":"string"},"filters":{"type":"object","additionalProperties":true},"filter_checksum":{"type":"string","pattern":"^[a-f0-9]{64}$"},"file_name":{"type":["string","null"]},"mime_type":{"type":["string","null"]},"size_bytes":{"type":["integer","null"],"minimum":0},"checksum":{"type":["string","null"]},"row_count":{"type":"integer","minimum":0},"attempts":{"type":"integer","minimum":0},"last_error":{"type":["string","null"],"description":"Bounded redacted operational error."},"expires_at":{"type":["string","null"],"format":"date-time"},"purged_at":{"type":["string","null"],"format":"date-time"}}},"ReportExportEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ReportExport"}}},"PrivateArtifact":{"type":"object","required":["id","artifact_class","safe_name","detected_mime","size_bytes","sha256","storage_state","scan_state","legal_hold_active","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":["string","null"],"format":"uuid"},"artifact_class":{"type":"string"},"safe_name":{"type":"string"},"detected_mime":{"type":"string"},"size_bytes":{"type":"integer","format":"int64"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"storage_state":{"type":"string","enum":["quarantined","promoting","clean","missing","corrupt","purging","purged","rejected"]},"scan_state":{"type":"string","enum":["pending","scanning","clean","infected","failed","not_required"]},"scanner_version":{"type":["string","null"]},"signature_version":{"type":["string","null"]},"legal_hold_active":{"type":"boolean"},"scanned_at":{"type":["string","null"],"format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"purged_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"PrivateArtifactEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PrivateArtifact"}}},"PrivateArtifactCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PrivateArtifact"}}}},"PrivacyRequestInput":{"type":"object","required":["guest_id","request_type"],"properties":{"guest_id":{"type":"string","format":"uuid"},"property_id":{"type":["string","null"],"format":"uuid"},"request_type":{"type":"string","enum":["access_export","correction","erasure"]},"scope":{"type":"object","additionalProperties":true}}},"PrivacyAuthorityReviewInput":{"type":"object","required":["authority_reference"],"properties":{"authority_reference":{"type":"string","minLength":4,"maxLength":1000}}},"PrivacyApprovalInput":{"type":"object","required":["decision_reason"],"properties":{"decision_reason":{"type":"string","minLength":8,"maxLength":1000},"artifact_dispositions":{"type":"object","additionalProperties":{"type":"string","enum":["preserve","purge","export"]}}}},"PrivacyRejectionInput":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":8,"maxLength":1000}}},"PrivacyRequest":{"type":"object","required":["id","guest_id","request_type","status","scope","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":["string","null"],"format":"uuid"},"guest_id":{"type":"string","format":"uuid"},"request_type":{"type":"string","enum":["access_export","correction","erasure"]},"status":{"type":"string","enum":["requested","authority_review","approved","processing","completed","rejected"]},"scope":{"type":"object","additionalProperties":true},"reviewed_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"PrivacyRequestEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/PrivacyRequest"}}},"PrivacyRequestCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PrivacyRequest"}}}},"GuestResource":{"type":"object","additionalProperties":false,"required":["id","profile_revision","first_name","last_name","full_name","email","phone","document_type","document_number","language","preferences","marketing_consent","created_at","updated_at"],"properties":{"profile_revision":{"type":"integer","minimum":1},"dietary_requirements":{"type":["string","null"]},"allergies":{"type":["string","null"]},"other_restrictions":{"type":["string","null"]},"stay_preferences":{"type":["string","null"]},"id":{"type":"string","format":"uuid"},"first_name":{"type":"string"},"last_name":{"type":["string","null"]},"full_name":{"type":"string"},"display_name":{"type":"string"},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"last_stay_at":{"type":["string","null"],"format":"date-time"},"next_stay_at":{"type":["string","null"],"format":"date-time"},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"document_type":{"type":["string","null"]},"document_number":{"type":["string","null"]},"language":{"type":["string","null"]},"preferences":{"oneOf":[{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"null"}]},"marketing_consent":{"type":"boolean"},"reservation_role":{"type":"string"},"reservation_sort_order":{"type":"integer"},"reservation_preferences":{"type":"object","additionalProperties":true},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"GenericDataEnvelope":{"type":"object","required":["data"],"properties":{"data":{"description":"Endpoint-specific response data."}}},"Error":{"type":"object","required":["message"],"properties":{"message":{"type":"string"},"request_id":{"type":["string","null"]}}},"BookingStatus":{"type":"string","enum":["draft","requested","hold","confirmed","checked_in","checked_out","cancelled","no_show"]},"ChargingBasis":{"type":"string","enum":["per_night","per_unit_per_night","per_person","per_person_per_night","per_group","per_unit","fixed_package"]},"MembershipRole":{"type":"string","enum":["administrator","owner","manager","sales","operations","coordinator","guide","kitchen","housekeeping","finance","viewer"]},"ResourceKind":{"type":"string","enum":["place","asset","crew"]},"HousekeepingStatus":{"type":"string","enum":["clean","dirty","in_progress","inspected","out_of_service"]},"ResourceCategorySlug":{"type":"string","minLength":1,"maxLength":40,"description":"Property-scoped resource category slug."},"GuestInput":{"type":"object","required":["first_name"],"properties":{"first_name":{"type":"string","maxLength":255},"last_name":{"type":["string","null"],"maxLength":255},"email":{"type":["string","null"],"format":"email"},"phone":{"type":["string","null"],"maxLength":40},"language":{"type":["string","null"],"maxLength":12},"preferences":{"type":["object","null"],"additionalProperties":true},"marketing_consent":{"type":"boolean"}}},"GuestUpdateInput":{"type":"object","required":["expected_revision"],"properties":{"expected_revision":{"type":"integer","minimum":1},"first_name":{"type":"string","maxLength":255},"last_name":{"type":["string","null"],"maxLength":255},"email":{"type":["string","null"],"format":"email"},"phone":{"type":["string","null"],"maxLength":40},"language":{"type":["string","null"],"maxLength":12},"preferences":{"type":["object","null"],"additionalProperties":true},"marketing_consent":{"type":"boolean"}}},"GuestEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/GuestResource"}}},"GuestCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/GuestResource"}},"meta":{"allOf":[{"$ref":"#/components/schemas/PageMetadata"},{"type":"object","properties":{"summary":{"$ref":"#/components/schemas/GuestDirectorySummary"}}}]},"links":{"type":"object","additionalProperties":true}}},"GuestHistoryEnvelope":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["guest","bookings","stats"],"properties":{"guest":{"$ref":"#/components/schemas/GuestResource"},"bookings":{"type":"array","items":{"$ref":"#/components/schemas/BookingResource"}},"stats":{"type":"object","required":["stays","lifetime_value_minor","currency"],"properties":{"stays":{"type":"integer","minimum":0},"attributed_booking_values":{"type":"array","items":{"type":"object","required":["currency","value_minor"],"properties":{"currency":{"type":"string"},"value_minor":{"type":"integer"}}}},"lifetime_value_minor":{"type":"integer","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"last_stay_at":{"type":["string","null"],"format":"date-time"}}}}}}},"Property":{"type":"object","required":["id","name","code","timezone","is_active"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"code":{"type":"string"},"timezone":{"type":"string","description":"IANA timezone name."},"address":{"type":["object","null"],"additionalProperties":true},"is_active":{"type":"boolean"}}},"PropertyCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Property"}},"meta":{"type":"object","additionalProperties":true},"links":{"type":"object","additionalProperties":true}}},"ResourceFeatureAssignment":{"type":"object","required":["id","name","category_id","is_active"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"icon":{"type":["string","null"]},"category_id":{"type":"string","format":"uuid"},"category":{"type":["string","null"]},"is_active":{"type":"boolean"}}},"ResourceFeatureOption":{"type":"object","required":["id","name","category_id","category","property_id"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"icon":{"type":["string","null"]},"category_id":{"type":"string","format":"uuid"},"category":{"type":"string"},"property_id":{"type":"string","format":"uuid"}}},"ResourceCategoryOption":{"type":"object","required":["id","property_id","name","slug","kind","counts_as_stay"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"$ref":"#/components/schemas/ResourceCategorySlug"},"kind":{"$ref":"#/components/schemas/ResourceKind"},"counts_as_stay":{"type":"boolean"}}},"ResourceLinkedStaffOption":{"type":"object","required":["user_id","name","email","role"],"properties":{"user_id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string","format":"email"},"role":{"type":"string"},"property_id":{"type":["string","null"],"format":"uuid"}}},"Resource":{"type":"object","required":["id","property_id","area_id","category_id","category_slug","name","code","kind","category","capacity","features","is_active"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"category_id":{"type":"string","format":"uuid"},"area_id":{"type":["string","null"],"format":"uuid","description":"Area within the resource's property."},"name":{"type":"string"},"code":{"type":"string"},"kind":{"$ref":"#/components/schemas/ResourceKind"},"category_slug":{"$ref":"#/components/schemas/ResourceCategorySlug"},"category":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"$ref":"#/components/schemas/ResourceCategorySlug"},"kind":{"$ref":"#/components/schemas/ResourceKind"},"counts_as_stay":{"type":"boolean"}}},"capacity":{"type":"integer","minimum":1},"user_id":{"type":["integer","null"]},"availability":{"$ref":"#/components/schemas/ResourceAvailability"},"attributes":{"type":["object","null"],"additionalProperties":true},"features":{"type":"array","items":{"$ref":"#/components/schemas/ResourceFeatureAssignment"}},"is_active":{"type":"boolean"},"housekeeping_status":{"oneOf":[{"$ref":"#/components/schemas/HousekeepingStatus"},{"type":"null"}]},"housekeeping_updated_at":{"type":["string","null"],"format":"date-time"},"housekeeping_updated_by":{"type":["integer","null"]},"property":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"WorkingHours":{"type":["array","null"],"description":"Null is unknown. Empty is a recorded unavailable schedule. Windows use the property timezone; end must follow start and same-day windows may not overlap.","maxItems":28,"items":{"type":"object","additionalProperties":false,"required":["day","start","end"],"properties":{"day":{"type":"integer","minimum":1,"maximum":7},"start":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"},"end":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"}}}},"ResourceAvailability":{"type":["object","null"],"required":["effective_on","working_hours"],"properties":{"effective_on":{"type":"string","format":"date"},"working_hours":{"$ref":"#/components/schemas/WorkingHours"}}},"ResourceInput":{"type":"object","required":["property_id","name","code","category_id","capacity"],"properties":{"property_id":{"type":"string","format":"uuid"},"user_id":{"type":["integer","null"]},"name":{"type":"string"},"code":{"type":"string"},"category_id":{"type":"string","format":"uuid"},"capacity":{"type":"integer","minimum":1},"availability_effective_on":{"type":"string","format":"date","description":"Effective local date, today or earlier and no earlier than the latest recorded version. Omitted means today. Earlier versions are retained."},"working_hours":{"$ref":"#/components/schemas/WorkingHours"},"attributes":{"type":["object","null"],"additionalProperties":true},"resource_features":{"type":"array","maxItems":100,"uniqueItems":true,"items":{"type":"string","format":"uuid"}},"is_active":{"type":"boolean"}}},"ResourceEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Resource"}}},"ResourceOptionsEnvelope":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["property_dates","resource_categories","linked_staff_users","resource_features"],"properties":{"property_dates":{"type":"object","additionalProperties":{"type":"string","format":"date"}},"resource_categories":{"type":"array","items":{"$ref":"#/components/schemas/ResourceCategoryOption"}},"linked_staff_users":{"type":"array","items":{"$ref":"#/components/schemas/ResourceLinkedStaffOption"}},"resource_features":{"type":"array","items":{"$ref":"#/components/schemas/ResourceFeatureOption"}}}}}},"ResourceBlock":{"type":"object","required":["id","resource_id","starts_at","ends_at","reason"],"properties":{"id":{"type":"string","format":"uuid"},"resource_id":{"type":"string","format":"uuid"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"reason":{"type":"string"},"notes":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ResourceBlockInput":{"type":"object","required":["resource_id","starts_at","ends_at","reason"],"properties":{"resource_id":{"type":"string","format":"uuid"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"reason":{"type":"string","maxLength":255},"notes":{"type":["string","null"],"maxLength":10000}}},"ResourceBlockPatchInput":{"type":"object","minProperties":1,"properties":{"resource_id":{"type":"string","format":"uuid"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"reason":{"type":"string","maxLength":255},"notes":{"type":["string","null"],"maxLength":10000}}},"ResourceBlockEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ResourceBlock"}}},"ResourceBlockCollection":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ResourceBlock"}},"meta":{"type":"object","additionalProperties":true},"links":{"type":"object","additionalProperties":true}}},"CalendarEvent":{"type":"object","required":["id","type","title","start","end","status","property_id","resource_ids"],"properties":{"confirmation_number":{"type":["string","null"]},"flight_in_time":{"type":["string","null"],"pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","description":"Flight arrival time in the property timezone; null when unknown."},"flight_out_time":{"type":["string","null"],"pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","description":"Flight departure time in the property timezone; null when unknown."},"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["booking","activity","resource_block","task"]},"title":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"status":{"type":"string"},"adults":{"type":"integer","minimum":0},"children":{"type":"integer","minimum":0},"party_size":{"type":"integer","minimum":1,"description":"Server-derived booking party size used by compact operational calendar blocks."},"property_id":{"type":"string","format":"uuid"},"service_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"rate_id":{"type":["string","null"],"format":"uuid"},"rate":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"name":{"type":"string"},"display_color":{"type":["string","null"]}}},"deposit_status":{"type":"string","enum":["paid","due","waived","none"]},"payment_status":{"type":"string","enum":["unpaid","partial","paid","waived"]},"assigned_guide_names":{"type":"array","items":{"type":"string"}},"display_color":{"type":["string","null"]},"resource_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"service_badges":{"type":"array","description":"Compact server-derived service workflow facts for booking events. External vendor identity remains null unless an authoritative vendor relationship exists.","items":{"$ref":"#/components/schemas/CalendarServiceBadge"}}}},"CalendarServiceBadge":{"type":"object","additionalProperties":false,"required":["letter","fieldName","workflowState","workflowColor","multiplier","showMultiplierPrefix"],"properties":{"letter":{"type":"string","minLength":1,"maxLength":4},"code":{"type":["string","null"],"description":"Full configured service code; letter is the compact calendar label."},"color":{"type":["string","null"]},"fieldName":{"type":"string"},"workflowState":{"type":"string","enum":["tentative","needed","scheduled","completed","confirmed","cancelled"]},"workflowColor":{"type":"string","enum":["amber","blue","emerald","red"]},"multiplier":{"type":"integer","minimum":1},"showMultiplierPrefix":{"type":"boolean"},"vendorName":{"type":["string","null"],"description":"Assigned guide names when present."},"lastActionDate":{"type":["string","null"],"format":"date-time"}}},"CalendarProjection":{"type":"object","required":["data","range","resources","resource_assignments","summary"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CalendarEvent"}},"range":{"type":"object","required":["start","end","timezone"],"properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"timezone":{"type":"string"}}},"resources":{"type":"array","items":{"$ref":"#/components/schemas/CalendarResource"}},"resource_assignments":{"type":"array","items":{"$ref":"#/components/schemas/CalendarResourceAssignment"}},"summary":{"type":"object","required":["hard_conflicts","hard_conflict_booking_ids","hard_conflict_facts","unassigned_bookings","suggestions"],"properties":{"hard_conflicts":{"type":"integer","minimum":0},"hard_conflict_booking_ids":{"type":"array","uniqueItems":true,"items":{"type":"string","format":"uuid"}},"hard_conflict_facts":{"type":"array","items":{"type":"object","required":["type","booking_ids"],"properties":{"type":{"type":"string","enum":["resource_overlap","resource_block"]},"booking_ids":{"type":"array","uniqueItems":true,"items":{"type":"string","format":"uuid"}},"resource_id":{"type":["string","null"],"format":"uuid"},"resource_block_id":{"type":["string","null"],"format":"uuid"}}}},"unassigned_bookings":{"type":"integer","minimum":0},"suggestions":{"type":"integer","minimum":0}}}}},"CalendarResource":{"type":"object","required":["id","property_id","name","code","kind","category_slug","category","area_id","area","counts_as_stay","capacity","utilization_percent","available_hours","scheduled_hours","scheduled_available_hours","availability_known"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"code":{"type":"string"},"kind":{"$ref":"#/components/schemas/ResourceKind"},"category_slug":{"$ref":"#/components/schemas/ResourceCategorySlug"},"category":{"type":"string"},"area_id":{"type":["string","null"],"format":"uuid"},"area":{"type":["string","null"]},"counts_as_stay":{"type":"boolean"},"capacity":{"type":"integer","minimum":1},"user_id":{"type":["integer","null"]},"utilization_percent":{"type":["number","null"],"minimum":0,"maximum":100},"available_hours":{"type":["number","null"],"minimum":0},"scheduled_hours":{"type":"number","minimum":0},"scheduled_available_hours":{"type":"number","minimum":0},"availability_known":{"type":"boolean"},"available_nights":{"type":"integer","minimum":0},"occupied_nights":{"type":"integer","minimum":0}}},"CalendarResourceAssignment":{"type":"object","required":["id","booking_id","service_order_id","service_order_occurrence_id","resource_id","status","start","end","quantity","service_name","service_code","participant_count"],"properties":{"id":{"type":"string","format":"uuid"},"booking_id":{"type":"string","format":"uuid"},"service_order_id":{"type":"string","format":"uuid"},"service_order_occurrence_id":{"type":"string","format":"uuid"},"resource_id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["tentative","confirmed","released"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"quantity":{"type":"integer","minimum":1},"service_name":{"type":"string"},"service_code":{"type":"string"},"participant_count":{"type":"integer","nullable":true}}},"GuideAssignmentOptionsEnvelope":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["occurrence","resources","assignments"],"additionalProperties":false,"properties":{"occurrence":{"type":"object","required":["id","service","service_code","starts_at","ends_at"],"properties":{"id":{"type":"string","format":"uuid"},"service":{"type":"string"},"service_code":{"type":"string"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"}}},"resources":{"type":"array","items":{"type":"object","required":["id","name","capabilities","languages"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"languages":{"type":"array","items":{"type":"string"}}}}},"assignments":{"type":"array","items":{"type":"object","required":["id","resource_id","name","status"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"resource_id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"status":{"type":"string","enum":["tentative","confirmed"]}}}}}}}},"OperationsTask":{"type":"object","required":["id","title","status","priority","owner_initials"],"properties":{"id":{"type":"string","format":"uuid"},"booking_id":{"type":["string","null"],"format":"uuid"},"title":{"type":"string"},"status":{"type":"string","enum":["todo","in_progress","blocked","failed","done","cancelled"]},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"due_at":{"type":["string","null"],"format":"date-time"},"owner_initials":{"type":"string"},"revision":{"type":"integer","minimum":1}}},"OperationsEnvelope":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["date","timezone","role_scope","privacy","readiness","tasks","overdue_task_count","focused_task","arrivals","kitchen","guide_assignments","housekeeping"],"properties":{"date":{"type":"string","format":"date"},"timezone":{"type":"string"},"role_scope":{"type":"object","required":["role","visible_sections"],"properties":{"role":{"$ref":"#/components/schemas/MembershipRole"},"visible_sections":{"type":"array","items":{"type":"string"}}}},"privacy":{"type":"object","required":["can_view_guest_identity","can_view_dietary_details","restricted_fields"],"properties":{"can_view_guest_identity":{"type":"boolean"},"can_view_dietary_details":{"type":"boolean"},"restricted_fields":{"type":"array","items":{"type":"string"}}}},"task_counts":{"type":"object","additionalProperties":{"type":"integer"}},"overdue_task_count":{"description":"Open visible tasks due before the selected day starts, the same rule as the task_overdue filter, counted before the task queue filters are applied.","type":"integer","minimum":0},"task_pagination":{"$ref":"#/components/schemas/PageMetadata"},"readiness":{"type":"object","required":["complete","total","open"],"properties":{"complete":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"open":{"type":"integer","minimum":0}}},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/OperationsTask"}},"focused_task":{"oneOf":[{"$ref":"#/components/schemas/OperationsTask"},{"type":"null"}]},"arrivals":{"type":"array","items":{"type":"object","required":["id","confirmation_number","starts_at","ends_at","party_size","status"],"properties":{"id":{"type":"string","format":"uuid"},"confirmation_number":{"type":"string"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"party_size":{"type":"integer","minimum":0},"status":{"$ref":"#/components/schemas/BookingStatus"},"guest_name":{"type":["string","null"]},"dietary":{"type":"array","items":{"type":"string"}}}}},"kitchen":{"type":"object","required":["available","guest_count","restrictions","identity_restricted","dietary_details_restricted"],"properties":{"available":{"type":"boolean"},"guest_count":{"type":"integer","minimum":0},"restrictions":{"type":"array","items":{"type":"object","required":["label","count","serious"],"properties":{"label":{"type":"string"},"count":{"type":"integer","minimum":0},"serious":{"type":"boolean"}}}},"identity_restricted":{"type":"boolean"},"dietary_details_restricted":{"type":"boolean"}}},"guide_assignments":{"type":"array","items":{"type":"object","required":["id","service","service_code","starts_at","party_size","status"],"properties":{"id":{"type":"string","format":"uuid"},"guide_resource_id":{"type":["string","null"],"format":"uuid"},"guide":{"type":["string","null"]},"guides":{"type":"array","items":{"type":"object","required":["assignment_id","resource_id","name"],"properties":{"assignment_id":{"type":"string","format":"uuid"},"resource_id":{"type":["string","null"],"format":"uuid"},"name":{"type":["string","null"]}}}},"service":{"type":"string"},"service_code":{"type":"string"},"starts_at":{"type":"string","format":"date-time"},"party_size":{"type":"integer","minimum":0},"status":{"type":"string","enum":["confirmed","action_needed"]}}}},"housekeeping":{"type":"object","required":["available","arrivals","turnovers","stayovers"],"properties":{"available":{"type":"boolean"},"arrivals":{"type":"integer","minimum":0},"turnovers":{"type":"integer","minimum":0},"stayovers":{"type":"integer","minimum":0},"focus":{"type":["string","null"]},"needs_attention":{"type":"integer","minimum":0},"places":{"type":"array","items":{"type":"object","required":["id","name","category","status","day_marker"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"category":{"type":"string"},"status":{"oneOf":[{"$ref":"#/components/schemas/HousekeepingStatus"},{"type":"string","enum":["untracked"]}]},"updated_at":{"type":["string","null"],"format":"date-time"},"day_marker":{"description":"How the operating day moves stay guests through this place, from its confirmed, checked-in and checked-out stay assignments in the place's property timezone. turnover is one party departing and another arriving; null means no stay movement or occupancy that day.","type":["string","null"],"enum":["turnover","departure","arrival","stayover",null]}}}}}}}}}},"QuestionnaireOption":{"type":"object","additionalProperties":false,"required":["value","label"],"properties":{"value":{"type":"string","maxLength":80},"label":{"type":"string","maxLength":120}}},"QuestionnaireQuestion":{"type":"object","additionalProperties":false,"required":["key","label","type","required"],"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"label":{"type":"string","maxLength":200},"type":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","rating","boolean"]},"required":{"type":"boolean"},"help":{"type":["string","null"],"maxLength":500},"reporting_role":{"type":["string","null"],"enum":["overall_score","guide_score","comment","share_with_team",null],"description":"Overall and guide score roles require rating questions on the exact 1–5 scale; each role may appear only once."},"max_length":{"type":"integer","minimum":1,"maximum":10000},"min":{"type":"integer","minimum":0,"maximum":9},"max":{"type":"integer","minimum":1,"maximum":10},"options":{"type":"array","minItems":2,"maxItems":30,"items":{"$ref":"#/components/schemas/QuestionnaireOption"}}}},"QuestionnaireDefinition":{"type":"object","additionalProperties":false,"required":["questions"],"properties":{"intro":{"type":["string","null"],"maxLength":2000},"thank_you":{"type":["string","null"],"maxLength":1000},"questions":{"type":"array","minItems":1,"maxItems":40,"items":{"$ref":"#/components/schemas/QuestionnaireQuestion"}}}},"QuestionnaireTemplate":{"type":"object","additionalProperties":false,"required":["id","property_id","property","slug","name","kind","locale","version","status","definition","schema_hash","responses","invitations","published_at","retired_at","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property":{"type":["string","null"]},"slug":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["pre_trip","post_stay"]},"locale":{"type":"string"},"version":{"type":"integer","minimum":1},"status":{"type":"string","enum":["draft","published","retired"]},"definition":{"$ref":"#/components/schemas/QuestionnaireDefinition"},"schema_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"responses":{"type":"integer","minimum":0},"invitations":{"description":"Guest questionnaire links issued for this exact form version, so responses / invitations is the version's response rate.","type":"integer","minimum":0},"published_at":{"type":["string","null"],"format":"date-time"},"retired_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"}}},"QuestionnaireTemplateEnvelope":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"$ref":"#/components/schemas/QuestionnaireTemplate"}}},"QuestionnaireTemplateCreateInput":{"type":"object","additionalProperties":false,"required":["property_id","slug","name","definition"],"properties":{"property_id":{"type":"string","format":"uuid"},"slug":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"name":{"type":"string","maxLength":255},"kind":{"type":"string","enum":["pre_trip","post_stay"]},"locale":{"type":"string","maxLength":12},"definition":{"$ref":"#/components/schemas/QuestionnaireDefinition"}}},"QuestionnaireTemplateUpdateInput":{"type":"object","additionalProperties":false,"required":["name","definition"],"properties":{"name":{"type":"string","maxLength":255},"locale":{"type":"string","maxLength":12},"definition":{"$ref":"#/components/schemas/QuestionnaireDefinition"}}},"WaiverTemplate":{"type":"object","additionalProperties":false,"required":["id","property_id","property","slug","title","version","body","body_hash","is_active","acknowledgements","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"property":{"type":["string","null"]},"slug":{"type":"string"},"title":{"type":"string"},"version":{"type":"string"},"body":{"type":"string"},"body_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"is_active":{"type":"boolean"},"acknowledgements":{"type":"integer","minimum":0},"created_at":{"type":["string","null"],"format":"date-time"}}},"WaiverTemplateEnvelope":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"$ref":"#/components/schemas/WaiverTemplate"}}},"WaiverTemplateCreateInput":{"type":"object","additionalProperties":false,"required":["property_id","slug","title","body"],"properties":{"property_id":{"type":"string","format":"uuid"},"slug":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"title":{"type":"string","maxLength":255},"body":{"type":"string","minLength":20,"maxLength":100000}}},"StaffQuestionnaireAnswer":{"type":"object","additionalProperties":false,"required":["key","label","type","value"],"properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["short_text","long_text","single_choice","multi_choice","rating","boolean"]},"value":{}}},"StaffQuestionnaireResponse":{"type":"object","additionalProperties":false,"required":["id","booking_id","booking","property","services","guest","kind","questionnaire","questionnaire_version","schema_hash","response_hash","score","guide_rating","comment","shared_with_team","answers","responded_at"],"properties":{"id":{"type":"string","format":"uuid"},"booking_id":{"type":"string","format":"uuid"},"booking":{"type":["string","null"]},"property":{"type":["string","null"]},"services":{"type":"array","items":{"type":"string"}},"guest":{"type":["string","null"]},"kind":{"type":"string"},"questionnaire":{"type":["string","null"]},"questionnaire_version":{"type":["integer","null"],"minimum":1},"schema_hash":{"type":["string","null"]},"response_hash":{"type":["string","null"]},"score":{"type":["integer","null"],"minimum":1,"maximum":5},"guide_rating":{"type":["integer","null"],"minimum":1,"maximum":5},"comment":{"type":["string","null"]},"shared_with_team":{"type":"boolean"},"answers":{"type":"array","items":{"$ref":"#/components/schemas/StaffQuestionnaireAnswer"}},"responded_at":{"type":["string","null"],"format":"date-time"}}},"StaffWaiverSignature":{"type":"object","additionalProperties":false,"required":["id","booking_id","booking","property","guest","document","document_version","waiver_hash","evidence_hash","signature_method","signed_at"],"properties":{"id":{"type":"string","format":"uuid"},"booking_id":{"type":"string","format":"uuid"},"booking":{"type":"string"},"property":{"type":"string"},"guest":{"type":"string"},"document":{"type":"string"},"document_version":{"type":"string"},"waiver_hash":{"type":"string"},"evidence_hash":{"type":["string","null"]},"signature_method":{"type":"string"},"signed_at":{"type":"string","format":"date-time"}}},"StaffGuestIdentityDocument":{"type":"object","additionalProperties":false,"required":["id","booking_id","booking","property","guest","document_kind","file_name","detected_mime","size_bytes","sha256","security_status","storage_status","download_path","submitted_at"],"properties":{"id":{"type":"string","format":"uuid"},"booking_id":{"type":"string","format":"uuid"},"booking":{"type":"string"},"property":{"type":"string"},"guest":{"type":"string"},"document_kind":{"type":"string","enum":["passport","fishing_license"]},"file_name":{"type":"string"},"detected_mime":{"type":"string"},"size_bytes":{"type":"integer","minimum":0},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"security_status":{"type":"string"},"storage_status":{"type":"string"},"download_path":{"type":["string","null"]},"submitted_at":{"type":"string","format":"date-time"}}},"BookingDirectorySummary":{"type":"object","additionalProperties":false,"required":["directory_total","today","status_counts","range_counts","pulse"],"properties":{"directory_total":{"type":"integer","minimum":0},"today":{"type":"string","format":"date"},"status_counts":{"type":"object","required":["all","active","draft","hold","confirmed","checked_in","checked_out","cancelled","no_show","expired"],"additionalProperties":{"type":"integer","minimum":0}},"range_counts":{"type":"object","required":["current","past","all"],"additionalProperties":{"type":"integer","minimum":0}},"pulse":{"type":"object","additionalProperties":false,"required":["arrivals","inHouse","departures"],"properties":{"arrivals":{"type":"integer","minimum":0},"inHouse":{"type":"integer","minimum":0},"departures":{"type":"integer","minimum":0}}}}},"GuestDirectorySummary":{"type":"object","additionalProperties":false,"required":["directory_total","segment_counts"],"properties":{"directory_total":{"type":"integer","minimum":0},"segment_counts":{"type":"object","additionalProperties":false,"required":["all","upcoming","past","dietary"],"properties":{"all":{"type":"integer","minimum":0},"upcoming":{"type":"integer","minimum":0},"past":{"type":"integer","minimum":0},"dietary":{"type":"integer","minimum":0}}}}},"PageMetadata":{"type":"object","required":["current_page","last_page","per_page","total"],"properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"}}},"StaffQuestionnaireEnvelope":{"type":"object","additionalProperties":false,"required":["data"],"properties":{"data":{"type":"object","additionalProperties":false,"required":["pagination","can_manage_templates","properties","summary","responses","templates","waivers","waiver_signatures","identity_documents"],"properties":{"pagination":{"type":"object","required":["responses","signatures","documents"],"properties":{"responses":{"$ref":"#/components/schemas/PageMetadata"},"signatures":{"$ref":"#/components/schemas/PageMetadata"},"documents":{"$ref":"#/components/schemas/PageMetadata"}}},"can_manage_templates":{"type":"boolean"},"properties":{"type":"array","items":{"$ref":"#/components/schemas/StaffProperty"}},"summary":{"type":"object","additionalProperties":false,"required":["responses","average_score","needs_follow_up","shared_with_team","score_distribution","monthly"],"properties":{"responses":{"type":"integer","minimum":0},"average_score":{"type":["number","null"],"minimum":1,"maximum":5},"needs_follow_up":{"type":"integer","minimum":0},"shared_with_team":{"type":"integer","minimum":0},"score_distribution":{"type":"array","minItems":5,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["score","responses"],"properties":{"score":{"type":"integer","minimum":1,"maximum":5},"responses":{"type":"integer","minimum":0}}}},"monthly":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["period_start","responses","average_score"],"properties":{"period_start":{"type":"string","format":"date"},"responses":{"type":"integer","minimum":0},"average_score":{"type":["number","null"],"minimum":1,"maximum":5}}}}}},"responses":{"type":"array","items":{"$ref":"#/components/schemas/StaffQuestionnaireResponse"}},"templates":{"type":"array","items":{"$ref":"#/components/schemas/QuestionnaireTemplate"}},"waivers":{"type":"array","items":{"$ref":"#/components/schemas/WaiverTemplate"}},"waiver_signatures":{"type":"array","items":{"$ref":"#/components/schemas/StaffWaiverSignature"}},"identity_documents":{"type":"array","items":{"$ref":"#/components/schemas/StaffGuestIdentityDocument"}}}}}},"CampaignTemplateVersionInput":{"type":"object","additionalProperties":false,"required":["language","subject","body"],"properties":{"language":{"type":"string","maxLength":12},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":100000}}},"CampaignTemplateInput":{"type":"object","additionalProperties":false,"required":["name","language","subject","body"],"properties":{"name":{"type":"string","maxLength":255},"language":{"type":"string","maxLength":12},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":100000}}},"ProposalCreateInput":{"type":"object","additionalProperties":false,"required":["property_id","booking_quote_id"],"properties":{"property_id":{"type":"string","format":"uuid"},"booking_quote_id":{"type":"string","format":"uuid","description":"Authoritative unexpired server-priced quote."},"inquiry_source":{"type":["string","null"],"enum":["email","whatsapp","phone","walk_in","partner","web","other_approved",null]},"primary_guest_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"],"maxLength":255},"notes":{"type":["string","null"],"maxLength":10000},"expires_at":{"type":["string","null"],"format":"date-time"}}},"ProposalUpdateInput":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"inquiry_source":{"type":["string","null"],"enum":["email","whatsapp","phone","walk_in","partner","web","other_approved",null]},"primary_guest_id":{"type":["string","null"],"format":"uuid"},"title":{"type":["string","null"],"maxLength":255},"notes":{"type":["string","null"],"maxLength":10000},"expires_at":{"type":["string","null"],"format":"date-time"}}},"Proposal":{"type":"object","required":["id","reference","version","status","property_id","primary_guest_id","booking_id","quote_id","inquiry_source","convertible","starts_at","ends_at","adults","children","currency","total_minor","tax_minor","snapshot","expires_at","sent_at","accepted_at","converted_at","created_at"],"properties":{"alternative_group_id":{"type":["string","null"],"format":"uuid"},"alternative_label":{"type":["string","null"]},"sent_channel":{"type":["string","null"]},"id":{"type":"string","format":"uuid"},"reference":{"type":"string"},"version":{"type":"integer","minimum":1},"status":{"type":"string","enum":["draft","sent","accepted","rejected","expired"]},"property_id":{"type":"string","format":"uuid"},"primary_guest_id":{"type":["string","null"],"format":"uuid"},"booking_id":{"type":["string","null"],"format":"uuid"},"quote_id":{"type":["string","null"],"format":"uuid"},"inquiry_source":{"type":"string"},"convertible":{"type":"boolean"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"adults":{"type":"integer","minimum":0},"children":{"type":"integer","minimum":0},"infants":{"type":"integer","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"total_minor":{"type":"integer"},"tax_minor":{"type":"integer"},"snapshot":{"type":"object","additionalProperties":true,"readOnly":true},"expires_at":{"type":["string","null"],"format":"date-time"},"sent_at":{"type":["string","null"],"format":"date-time"},"accepted_at":{"type":["string","null"],"format":"date-time"},"converted_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"ProposalEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Proposal"}}},"ChecklistTemplateInput":{"type":"object","additionalProperties":false,"required":["property_id","name","role"],"properties":{"property_id":{"type":"string","format":"uuid"},"service_id":{"type":["string","null"],"format":"uuid"},"name":{"type":"string","maxLength":160},"role":{"type":"string","enum":["operations","guide","kitchen","housekeeping"]}}},"ChecklistTemplate":{"type":"object","required":["id","property_id","name","role","state","latest_version"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"service_id":{"type":["string","null"],"format":"uuid"},"name":{"type":"string"},"role":{"type":"string","enum":["operations","guide","kitchen","housekeeping"]},"state":{"type":"string","enum":["draft","published","retired"]},"latest_version":{"type":"integer","minimum":0}}},"ChecklistTemplateEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ChecklistTemplate"}}},"ChecklistItemInput":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"priority":{"type":["string","null"],"enum":["low","normal","high","urgent",null]},"due_offset_minutes":{"type":["integer","null"],"minimum":-525600,"maximum":525600}}},"ChecklistPublishInput":{"type":"object","additionalProperties":false,"required":["items"],"properties":{"items":{"type":"array","minItems":1,"maxItems":100,"items":{"$ref":"#/components/schemas/ChecklistItemInput"}}}},"ChecklistTemplateItem":{"type":"object","required":["id","checklist_template_version_id","title","priority","due_offset_minutes","sort_order"],"properties":{"id":{"type":"string","format":"uuid"},"checklist_template_version_id":{"type":"string","format":"uuid"},"title":{"type":"string"},"description":{"type":["string","null"]},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"due_offset_minutes":{"type":"integer"},"sort_order":{"type":"integer","minimum":0}}},"ChecklistTemplateVersion":{"type":"object","required":["id","checklist_template_id","version","state","items"],"properties":{"id":{"type":"string","format":"uuid"},"checklist_template_id":{"type":"string","format":"uuid"},"version":{"type":"integer","minimum":1},"state":{"type":"string","enum":["published","retired"]},"published_at":{"type":["string","null"],"format":"date-time"},"retired_at":{"type":["string","null"],"format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ChecklistTemplateItem"}}}},"ChecklistVersionEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/ChecklistTemplateVersion"}}},"CalendarPreferences":{"type":"object","additionalProperties":false,"properties":{"range_days":{"type":"integer","enum":[7,14,30,90]},"lens":{"type":"string","enum":["all","stays","activities","tasks","blocks"]},"kind":{"type":"string","enum":["all","place","asset","crew"]},"status":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":32}},"attention":{"type":"string","enum":["all","conflicted","unassigned"]}}},"CalendarPreferencesEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/CalendarPreferences"}}},"Task":{"type":"object","required":["id","property_id","title","status","priority","revision","generation","overdue"],"properties":{"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"booking_id":{"type":["string","null"],"format":"uuid"},"service_order_id":{"type":["string","null"],"format":"uuid"},"assignee_id":{"type":["integer","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string","enum":["todo","in_progress","blocked","failed","done","cancelled","superseded"]},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"due_at":{"type":["string","null"],"format":"date-time"},"completed_at":{"type":["string","null"],"format":"date-time"},"started_at":{"type":["string","null"],"format":"date-time"},"failed_at":{"type":["string","null"],"format":"date-time"},"failure_reason":{"type":["string","null"]},"reopened_at":{"type":["string","null"],"format":"date-time"},"escalated_at":{"type":["string","null"],"format":"date-time"},"escalation_reason":{"type":["string","null"]},"superseded_at":{"type":["string","null"],"format":"date-time"},"cancellation_reason":{"type":["string","null"]},"revision":{"type":"integer","minimum":1},"generation":{"type":"integer","minimum":0},"overdue":{"type":"boolean"},"metadata":{"type":["object","null"],"additionalProperties":true}}},"TaskInput":{"type":"object","additionalProperties":false,"required":["property_id","title"],"properties":{"property_id":{"type":"string","format":"uuid"},"booking_id":{"type":["string","null"],"format":"uuid"},"service_order_id":{"type":["string","null"],"format":"uuid"},"assignee_id":{"type":["integer","null"]},"title":{"type":"string","maxLength":255},"description":{"type":["string","null"]},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"due_at":{"type":["string","null"],"format":"date-time"},"metadata":{"type":["object","null"],"maxProperties":100,"additionalProperties":true}}},"TaskUpdateInput":{"type":"object","additionalProperties":false,"required":["expected_revision"],"properties":{"expected_revision":{"type":"integer","minimum":1},"title":{"type":"string","maxLength":200},"description":{"type":["string","null"],"maxLength":10000},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"due_at":{"type":["string","null"],"format":"date-time"},"metadata":{"type":["object","null"],"maxProperties":100,"additionalProperties":true}}},"TaskTransitionInput":{"type":"object","additionalProperties":false,"required":["action","expected_revision"],"properties":{"action":{"type":"string","enum":["assign","start","complete","fail","reopen","escalate","cancel"]},"expected_revision":{"type":"integer","minimum":1},"assignee_id":{"type":["integer","null"]},"reason":{"type":["string","null"],"maxLength":2000},"booking_reopen_authorized":{"type":"boolean","description":"Explicit manager authority required to reopen a task attached to a cancelled, no-show, or checked-out booking."}}},"TaskCancelInput":{"type":"object","additionalProperties":false,"required":["expected_revision","reason"],"properties":{"expected_revision":{"type":"integer","minimum":1},"reason":{"type":"string","minLength":1,"maxLength":2000}}},"TaskEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Task"}}},"Payment":{"type":"object","required":["id","folio_id","reversed","kind","status","channel","entry_mode","origin","currency","amount_minor"],"properties":{"id":{"type":"string","format":"uuid"},"folio_id":{"type":"string","format":"uuid"},"booking_id":{"type":["string","null"],"format":"uuid"},"payment_schedule_id":{"type":["string","null"],"format":"uuid"},"reverses_payment_id":{"type":["string","null"],"format":"uuid"},"reversed":{"type":"boolean"},"kind":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed","refunded","reversed"]},"channel":{"type":"string","enum":["bank_transfer","cash","external_terminal","manual_other","online_checkout","integrated_terminal","qr"]},"entry_mode":{"type":"string","enum":["staff_recorded","provider_reported"]},"origin":{"type":"string","enum":["manual","provider"],"description":"Provider-backed origin is reserved for a verified gateway adapter; this endpoint creates manual records only."},"reference":{"type":["string","null"],"description":"Receipt-safe provider or manual tender reference visible to authorized Finance users."},"evidence_url":{"type":["string","null"],"format":"uri"},"evidence_note":{"type":["string","null"]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"amount_minor":{"type":"integer"},"processed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"PaymentEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Payment"}}},"Dashboard":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["business_name","currency","date","timezone","arrivals","departures","in_house","active_resources","active_stay_places","occupied_stay_places","open_tasks","overdue_tasks","occupancy_percent","stay_category_occupancy","booking_activity","needs_attention","arrival_parties","attention_stays","readiness","tasks","action_items_count","action_items_truncated","action_items","outstanding_balances","trend"],"properties":{"business_name":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"date":{"type":"string","format":"date"},"timezone":{"type":"string","description":"IANA timezone name."},"arrivals":{"type":"integer","minimum":0},"departures":{"type":"integer","minimum":0},"in_house":{"type":"integer","minimum":0},"active_resources":{"type":"integer","minimum":0},"active_stay_places":{"type":"integer","minimum":0},"occupied_stay_places":{"type":"integer","minimum":0},"open_tasks":{"type":"integer","minimum":0},"overdue_tasks":{"type":"integer","minimum":0},"occupancy_percent":{"type":"number","minimum":0},"stay_category_occupancy":{"type":"array","items":{"$ref":"#/components/schemas/DashboardStayCategoryOccupancy"}},"booking_activity":{"$ref":"#/components/schemas/DashboardBookingActivity"},"needs_attention":{"type":"integer","minimum":0},"arrival_parties":{"type":"array","items":{"$ref":"#/components/schemas/DashboardParty"}},"attention_stays":{"type":"array","items":{"$ref":"#/components/schemas/DashboardAttentionStay"}},"readiness":{"$ref":"#/components/schemas/DashboardReadiness"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/DashboardActionItem"}},"action_items_count":{"type":"integer","minimum":0},"action_items_truncated":{"type":"boolean"},"action_items":{"type":"array","items":{"$ref":"#/components/schemas/DashboardActionItem"}},"outstanding_balances":{"type":"array","items":{"$ref":"#/components/schemas/DashboardOutstandingBalance"}},"trend":{"$ref":"#/components/schemas/DashboardTrend"},"financial_as_of":{"type":"string","format":"date-time"},"financial_by_currency":{"type":"array","items":{"$ref":"#/components/schemas/DashboardCurrencyTotals"}},"overdue_balances_minor":{"type":"integer"},"booked_revenue_minor":{"type":"integer","minimum":0},"cash_collected_minor":{"type":"integer","minimum":0},"receivables_minor":{"type":"integer","minimum":0},"overdue_deposits_minor":{"type":"integer","minimum":0},"tax_collected_minor":{"type":"integer","minimum":0},"season_bookings":{"type":"integer","minimum":0},"confirmed_bookings":{"type":"integer","minimum":0},"pending_bookings":{"type":"integer","minimum":0},"emails_sent_this_month":{"type":"integer","minimum":0},"net_revenue":{"$ref":"#/components/schemas/DashboardNetRevenue"}}}}},"DashboardCurrencyTotals":{"type":"object","required":["currency","booked_revenue_minor","cash_collected_minor","receivables_minor","overdue_deposits_minor","overdue_balances_minor","tax_collected_minor"],"properties":{"currency":{"type":"string"},"booked_revenue_minor":{"type":"integer"},"cash_collected_minor":{"type":"integer"},"receivables_minor":{"type":"integer"},"overdue_deposits_minor":{"type":"integer"},"overdue_balances_minor":{"type":"integer"},"tax_collected_minor":{"type":"integer"}}},"DashboardStayCategoryOccupancy":{"type":"object","required":["category_id","name","occupied","total","available","occupancy_percent","occupancy_change_points","comparison_days"],"properties":{"category_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"held":{"type":"integer","minimum":0},"blocked":{"type":"integer","minimum":0},"occupied":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"available":{"type":"integer","minimum":0},"occupancy_percent":{"type":"number","minimum":0,"maximum":100},"occupancy_change_points":{"type":"number"},"comparison_days":{"type":"integer","minimum":1}}},"DashboardBookingActivity":{"type":"object","required":["days","period","total","previous_total","average_per_day","change_percent","peak_day","series"],"properties":{"days":{"type":"integer","minimum":1},"period":{"type":"object","required":["start","end"],"properties":{"start":{"type":"string","format":"date"},"end":{"type":"string","format":"date"}}},"total":{"type":"integer","minimum":0},"previous_total":{"type":"integer","minimum":0},"average_per_day":{"type":"number","minimum":0},"change_percent":{"type":["number","null"]},"peak_day":{"oneOf":[{"type":"object","required":["date","label","count"],"properties":{"date":{"type":"string","format":"date"},"label":{"type":"string"},"count":{"type":"integer","minimum":0}}},{"type":"null"}]},"series":{"type":"array","items":{"type":"object","required":["date","label","count"],"properties":{"date":{"type":"string","format":"date"},"label":{"type":"string"},"count":{"type":"integer","minimum":0}}}}}},"DashboardNetRevenue":{"type":"object","required":["currency","formula","period","current_month_minor","previous_month_minor","change_percent","ytd_minor","total_minor","monthly_average_minor","peak_month","series"],"properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"formula":{"type":"string","enum":["booked_revenue_minor - commission_accruals_minor"]},"period":{"type":"object","required":["start","end"],"properties":{"start":{"type":"string","format":"date"},"end":{"type":"string","format":"date"}}},"current_month_minor":{"type":["integer","null"]},"previous_month_minor":{"type":["integer","null"]},"change_percent":{"type":["number","null"]},"ytd_minor":{"type":["integer","null"]},"total_minor":{"type":["integer","null"]},"monthly_average_minor":{"type":["integer","null"]},"peak_month":{"oneOf":[{"type":"object","required":["period_start","label","value_minor"],"properties":{"period_start":{"type":"string","format":"date"},"label":{"type":"string"},"value_minor":{"type":"integer"}}},{"type":"null"}]},"series":{"type":"array","items":{"type":"object","required":["period_start","label","booked_minor","commission_minor","net_revenue_minor","available"],"properties":{"period_start":{"type":"string","format":"date"},"label":{"type":"string"},"booked_minor":{"type":["integer","null"]},"commission_minor":{"type":["integer","null"]},"net_revenue_minor":{"type":["integer","null"]},"available":{"type":"boolean"}}}}}},"DashboardActionItem":{"type":"object","required":["id","source","completable","title","status","priority","revision","booking_id","navigate_to","due_at","due_group","assignee"],"properties":{"id":{"type":"string"},"source":{"type":"string","enum":["operational_task","overdue_balance"]},"completable":{"type":"boolean"},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string"},"priority":{"type":"string"},"revision":{"type":["integer","null"],"minimum":1},"booking_id":{"type":["string","null"],"format":"uuid"},"navigate_to":{"type":"string"},"due_at":{"type":["string","null"],"format":"date-time"},"due_group":{"type":"string","enum":["overdue","this_week","upcoming"]},"assignee":{"oneOf":[{"type":"object","required":["id","name"],"properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"}}},{"type":"null"}]}}},"DashboardParty":{"type":"object","required":["id","confirmation_number","starts_at","ends_at","party_size","nights","readiness","stay_place_names"],"properties":{"id":{"type":"string","format":"uuid"},"confirmation_number":{"type":"string"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"party_size":{"type":"integer","minimum":0},"nights":{"type":"integer","minimum":1},"readiness":{"type":"string","enum":["ready","attention","blocked"]},"stay_place_names":{"type":"array","items":{"type":"string"}},"guest_name":{"type":["string","null"]}}},"DashboardAttentionStay":{"allOf":[{"$ref":"#/components/schemas/DashboardParty"},{"type":"object","required":["reasons"],"properties":{"reasons":{"type":"array","items":{"type":"string"}}}}]},"DashboardOutstandingBalance":{"type":"object","required":["id","confirmation_number","guest_name","status","starts_at","ends_at","currency","balance_minor","timing"],"properties":{"id":{"type":"string","format":"uuid"},"confirmation_number":{"type":"string"},"guest_name":{"type":"string"},"status":{"type":"string","enum":["confirmed","checked_in","checked_out"]},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"balance_minor":{"type":"integer","minimum":1},"timing":{"type":"string","enum":["upcoming","in_house"]}}},"DashboardReadiness":{"type":"object","required":["complete","total","percent","items"],"properties":{"complete":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"percent":{"type":["integer","null"],"minimum":0,"maximum":100},"items":{"type":"array","items":{"type":"object","required":["key","label","complete","total"],"properties":{"key":{"type":"string"},"label":{"type":"string"},"complete":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0}}}}}},"DashboardTrend":{"type":"object","required":["labels","arrivals","departures","occupancy_percent","attention","work_due"],"properties":{"labels":{"type":"array","items":{"type":"string"}},"arrivals":{"type":"array","items":{"type":"integer","minimum":0}},"departures":{"type":"array","items":{"type":"integer","minimum":0}},"occupancy_percent":{"type":"array","items":{"type":"number","minimum":0}},"attention":{"type":"array","items":{"type":"integer","minimum":0}},"work_due":{"type":"array","items":{"type":"integer","minimum":0}}}},"StaffSessionEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/StaffSession"}}},"StaffSession":{"type":"object","required":["user","workspaces","invitations"],"additionalProperties":false,"properties":{"user":{"type":"object","required":["id","name","email","email_verified","two_factor_enabled"],"additionalProperties":false,"properties":{"id":{"type":"integer","minimum":1},"name":{"type":"string"},"email":{"type":"string","format":"email"},"email_verified":{"type":"boolean"},"two_factor_enabled":{"type":"boolean"}}},"workspaces":{"type":"array","items":{"type":"object","required":["id","name","slug","role","property_id"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"property_id":{"type":["string","null"],"format":"uuid"}}}},"invitations":{"type":"array","description":"Invitations to active workspaces waiting for this account's answer, oldest first. Empty until the account's email is verified.","items":{"$ref":"#/components/schemas/PendingInvitation"}}}},"PendingInvitation":{"type":"object","required":["id","workspace","role","invited_by","invited_at"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"workspace":{"type":"string","description":"The inviting workspace's name."},"role":{"$ref":"#/components/schemas/MembershipRole"},"invited_by":{"type":["string","null"],"description":"The inviting administrator's name."},"invited_at":{"type":"string","format":"date-time"}}},"WorkspaceAccess":{"type":"object","required":["id","name","slug","role","property_id"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"type":"string"},"property_id":{"type":["string","null"],"format":"uuid"}}},"QuickSetupRequest":{"type":"object","required":["property_id","rooms","nightly_price_minor"],"properties":{"property_id":{"type":"string","format":"uuid"},"rooms":{"type":"object","required":["count","name_prefix","capacity"],"properties":{"count":{"type":"integer","minimum":0,"maximum":100,"description":"Rooms to add. 0 only when the property already has rooms."},"name_prefix":{"type":"string","maxLength":120,"description":"Rooms are named \"{name_prefix} 1\", \"{name_prefix} 2\"…"},"capacity":{"type":"integer","minimum":1,"maximum":100,"description":"Guests per room, for the new rooms and for how many rooms a party needs."}}},"nightly_price_minor":{"type":"integer","minimum":1,"maximum":1000000000,"description":"Price per room per night, in minor units of the workspace currency."}}},"QuickSetupNamed":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"QuickSetupCoded":{"type":"object","required":["id","name","code"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"code":{"type":"string"}}},"OnboardingTask":{"type":"object","required":["key","done","href"],"properties":{"key":{"type":"string","enum":["setup","publish","bank_transfer","cash","card","invite"]},"done":{"type":"boolean"},"href":{"type":"string","description":"The staff app path of the exact form that does it."}}},"OnboardingGroup":{"type":"object","required":["key","done","minimum","optional","tasks"],"properties":{"key":{"type":"string","enum":["lodge","booking_page","payments","team"]},"done":{"type":"boolean"},"minimum":{"type":"integer","nullable":true,"description":"How many tasks finish the group, when fewer than all do (\"Complete minimum\")."},"optional":{"type":"boolean","description":"Worth doing, but a lodge runs without it; it doesn't count towards progress."},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/OnboardingTask"}}}},"Onboarding":{"type":"object","required":["setup_step","setup_completed","rooms_band","start_choice","tour_pending","sample","has_bookings","booking_page_enabled","visible","collapsed","all_done","progress","groups"],"properties":{"setup_step":{"type":"integer","minimum":0,"maximum":8},"setup_completed":{"type":"boolean"},"rooms_band":{"type":"string","nullable":true,"enum":["1","2-5","6+",null]},"start_choice":{"type":"string","nullable":true,"enum":["import","sample","setup","skip",null]},"tour_pending":{"type":"boolean","description":"The first dashboard visit still asks \"How would you like to get started?\"."},"sample":{"type":"boolean","description":"The sample lodge is in this workspace."},"has_bookings":{"type":"boolean"},"booking_page_enabled":{"type":"boolean","description":"Whether the public booking page / website builder is enabled on this server."},"visible":{"type":"boolean","description":"The checklist shows on the dashboard."},"collapsed":{"type":"boolean","description":"The checklist is folded to its header (\"Hide\")."},"all_done":{"type":"boolean","description":"Every group that isn't optional is done."},"progress":{"type":"object","required":["done","total"],"properties":{"done":{"type":"integer"},"total":{"type":"integer"}}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/OnboardingGroup"}}}},"LodgeAmenity":{"type":"string","enum":["wifi","parking","breakfast","hot_tub","pool","kitchen","fire_pit","pets","air_conditioning","heating"]},"LodgePage":{"type":"object","required":["slug","url","published","published_at","name","public_name","location","photos","logo","stay","amenities","amenities_answered","description","price","booking_mode","template","accent_color","currency","locale"],"properties":{"slug":{"type":"string"},"url":{"type":"string","description":"The page's public address."},"timezone":{"type":"string","description":"IANA timezone of the lodge's bookable property."},"today":{"type":"string","format":"date","description":"Today's civil date (YYYY-MM-DD) in the lodge's timezone."},"published":{"type":"boolean"},"published_at":{"type":"string","nullable":true,"format":"date-time"},"name":{"type":"string","description":"The public name, or the workspace's name until there is one."},"public_name":{"type":"string","nullable":true},"internal_name":{"type":"string","nullable":true,"description":"The workspace's name (staff only)."},"location":{"type":"object","required":["country","address","city","postcode","latitude","longitude"],"properties":{"country":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"postcode":{"type":"string","nullable":true},"latitude":{"type":"number","nullable":true},"longitude":{"type":"number","nullable":true}}},"photos":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}}},"logo":{"type":"object","nullable":true,"required":["id"],"properties":{"id":{"type":"string"}}},"stay":{"type":"object","required":["kind","count","guests","bedrooms","bathrooms"],"properties":{"kind":{"type":"string","nullable":true,"enum":["cabins","rooms","tents","domes","glamping",null]},"count":{"type":"integer"},"guests":{"type":"integer","nullable":true},"bedrooms":{"type":"integer","nullable":true},"bathrooms":{"type":"integer","nullable":true}}},"amenities":{"type":"array","items":{"$ref":"#/components/schemas/LodgeAmenity"}},"amenities_answered":{"type":"boolean"},"description":{"type":"string","nullable":true},"price":{"type":"object","nullable":true,"required":["nightly_minor","currency"],"properties":{"nightly_minor":{"type":"integer"},"currency":{"type":"string"}}},"booking_mode":{"type":"string","enum":["instant","request"]},"template":{"type":"string","enum":["classic","cozy","bold"]},"accent_color":{"type":"string"},"currency":{"type":"string"},"locale":{"type":"string"},"ai_description":{"type":"boolean","description":"Staff only. \"Use AI\" can draft the description."}}},"PublicStayRequest":{"type":"object","required":["starts_on","ends_on","adults"],"properties":{"starts_on":{"type":"string","format":"date"},"ends_on":{"type":"string","format":"date"},"adults":{"type":"integer","minimum":1,"maximum":50},"children":{"type":"integer","nullable":true,"minimum":0,"maximum":50}}},"QuickSetupResult":{"type":"object","required":["property_id","location","room_type","rooms","service","requirement","rate_group","rate"],"properties":{"property_id":{"type":"string","format":"uuid"},"location":{"oneOf":[{"$ref":"#/components/schemas/QuickSetupNamed"},{"type":"null"}]},"room_type":{"oneOf":[{"$ref":"#/components/schemas/QuickSetupNamed"},{"type":"null"}]},"rooms":{"type":"array","items":{"type":"object","required":["id","name","code","capacity"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"code":{"type":"string"},"capacity":{"type":"integer"}}}},"service":{"oneOf":[{"$ref":"#/components/schemas/QuickSetupCoded"},{"type":"null"}]},"requirement":{"oneOf":[{"type":"object","required":["id","service_id","resource_category_id","quantity_basis","minimum_quantity","guests_per_resource"],"properties":{"id":{"type":"string","format":"uuid"},"service_id":{"type":"string","format":"uuid"},"resource_category_id":{"type":"string","format":"uuid"},"quantity_basis":{"type":"string","enum":["ratio"]},"minimum_quantity":{"type":"integer"},"guests_per_resource":{"type":"integer"}}},{"type":"null"}]},"rate_group":{"oneOf":[{"$ref":"#/components/schemas/QuickSetupCoded"},{"type":"null"}]},"rate":{"oneOf":[{"type":"object","required":["id","service_id","name","code","is_default","prices"],"properties":{"id":{"type":"string","format":"uuid"},"service_id":{"type":"string","format":"uuid"},"name":{"type":"string"},"code":{"type":"string"},"is_default":{"type":"boolean"},"prices":{"type":"array","description":"Single per-unit-per-night price row for the room category.","items":{"type":"object","required":["id","rooms","minimum_occupancy","maximum_occupancy","charging_basis","amount_minor","currency"],"properties":{"id":{"type":"string","format":"uuid"},"rooms":{"type":"integer"},"minimum_occupancy":{"type":"integer"},"maximum_occupancy":{"type":["integer","null"]},"charging_basis":{"type":"string","enum":["per_unit_per_night"]},"amount_minor":{"type":"integer"},"currency":{"type":"string"}}}}}},{"type":"null"}]}}},"TeamMember":{"type":"object","required":["id","user_id","name","email","email_verified","role","property_id","property","is_active"],"properties":{"id":{"type":"string"},"user_id":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"email_verified":{"type":"boolean"},"role":{"type":"string"},"property_id":{"type":["string","null"]},"property":{"type":["string","null"]},"is_active":{"type":"boolean"}}},"TeamInvitation":{"type":"object","description":"An invitation of an existing account, as its administrator sees it.","required":["id","email","role","property_id","property","status","invited_at"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","description":"The address the administrator typed."},"role":{"$ref":"#/components/schemas/MembershipRole"},"property_id":{"type":["string","null"]},"property":{"type":["string","null"]},"status":{"type":"string","enum":["pending"]},"invited_at":{"type":"string","format":"date-time"}}},"StaffCapabilitiesEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/StaffCapabilities"}}},"StaffCapabilities":{"type":"object","required":["business","presentation","tenant","user","membership","permissions"],"additionalProperties":false,"properties":{"business":{"type":"object","required":["name","currency","timezone","locale"],"properties":{"name":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"timezone":{"type":"string"},"locale":{"type":"string"}}},"presentation":{"type":"object","required":["language","display_currency"],"additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","es","pt"]},"date_format":{"type":"string","enum":["MM/DD/YYYY","DD/MM/YYYY","YYYY-MM-DD"]},"week_starts_on":{"type":"string","enum":["monday","sunday"]},"density":{"type":"string","enum":["comfortable","compact"]},"display_currency":{"type":"string","pattern":"^[A-Z]{3}$"}}},"customized_preferences":{"type":"array","items":{"type":"string"}},"workspace_preferences":{"type":"object","required":["branding","terminology","guest-quick-entry","guest-payments"],"properties":{"branding":{"$ref":"#/components/schemas/BrandingPreferences"},"terminology":{"$ref":"#/components/schemas/TerminologyPreferences"},"guest-quick-entry":{"$ref":"#/components/schemas/GuestQuickEntryPreferences"},"guest-payments":{"$ref":"#/components/schemas/GuestPaymentPreferences"}}},"tenant":{"type":"object","required":["id","name","currency","timezone"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"timezone":{"type":"string"}}},"user":{"type":"object","required":["id","name","email"],"properties":{"id":{"type":["integer","null"]},"name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"language":{"description":"Their own language for the staff app, when they picked one. Null follows the browser's.","type":["string","null"],"enum":["en","es","pt",null]}}},"membership":{"type":"object","required":["role","property_id","tenant_wide"],"properties":{"role":{"type":"string"},"property_id":{"type":["string","null"],"format":"uuid"},"tenant_wide":{"type":"boolean"}}},"permissions":{"type":"object","additionalProperties":{"type":"boolean"}},"features":{"type":"object","additionalProperties":false,"properties":{"booking_page":{"type":"boolean"}}}}},"StaffPreferencesEnvelope":{"type":"object","required":["data"],"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/StaffPreferenceValues"}}},"StaffPreferenceValues":{"oneOf":[{"$ref":"#/components/schemas/AuditReasonPreferences"},{"$ref":"#/components/schemas/GuestQuickEntryPreferences"},{"$ref":"#/components/schemas/GuestPaymentPreferences"},{"$ref":"#/components/schemas/InvoicePreferences"},{"$ref":"#/components/schemas/ReviewSitePreferences"},{"$ref":"#/components/schemas/VoipPreferences"},{"$ref":"#/components/schemas/TerminologyPreferences"},{"$ref":"#/components/schemas/BrandingPreferences"},{"$ref":"#/components/schemas/DisplayPreferences"}]},"StaffPreferenceUpdate":{"oneOf":[{"$ref":"#/components/schemas/AuditReasonPreferences"},{"$ref":"#/components/schemas/GuestQuickEntryPreferences"},{"$ref":"#/components/schemas/GuestPaymentPreferences"},{"$ref":"#/components/schemas/InvoicePreferences"},{"$ref":"#/components/schemas/ReviewSitePreferences"},{"$ref":"#/components/schemas/VoipPreferences"},{"$ref":"#/components/schemas/TerminologyPreferences"},{"$ref":"#/components/schemas/BrandingPreferences"},{"$ref":"#/components/schemas/DisplayPreferencesPatch"}]},"AuditReasonPreferences":{"type":"object","additionalProperties":false,"properties":{"templates":{"type":["string","null"],"maxLength":5000}}},"GuestQuickEntryPreferences":{"type":"object","required":["marketing_consent_default"],"additionalProperties":false,"properties":{"default_country":{"type":["string","null"],"minLength":2,"maxLength":2},"default_source":{"type":["string","null"],"maxLength":60},"marketing_consent_default":{"type":"boolean"}}},"GuestPaymentPreferences":{"type":"object","required":["primary_method","cash_enabled","provider_links_enabled"],"additionalProperties":false,"properties":{"primary_method":{"type":"string","enum":["bank_transfer","cash","provider_link"]},"bank_instructions":{"type":["string","null"],"maxLength":2000},"cash_enabled":{"type":"boolean"},"provider_links_enabled":{"type":"boolean"}}},"InvoicePreferences":{"type":"object","required":["invoice_prefix","payment_terms_days"],"additionalProperties":false,"properties":{"business_number":{"type":["string","null"],"maxLength":80},"invoice_prefix":{"type":"string","maxLength":20,"pattern":"^[A-Za-z0-9_-]+$"},"payment_terms_days":{"type":"integer","minimum":0,"maximum":365},"footer":{"type":["string","null"],"maxLength":2000}}},"ReviewSitePreferences":{"type":"object","required":["post_stay_delay_days"],"additionalProperties":false,"properties":{"google_url":{"type":["string","null"],"format":"uri","maxLength":2000},"tripadvisor_url":{"type":["string","null"],"format":"uri","maxLength":2000},"post_stay_delay_days":{"type":"integer","minimum":0,"maximum":90}}},"VoipPreferences":{"type":"object","required":["enabled"],"additionalProperties":false,"properties":{"display_name":{"type":["string","null"],"maxLength":120},"caller_id":{"type":["string","null"],"maxLength":40},"enabled":{"type":"boolean"}}},"TerminologyPreferences":{"type":"object","required":["property_label","room_label","guest_label","guest_singular_label","booking_label","booking_singular_label"],"additionalProperties":false,"properties":{"property_label":{"type":["string","null"],"maxLength":40},"room_label":{"type":["string","null"],"maxLength":40},"guest_label":{"type":["string","null"],"maxLength":40},"guest_singular_label":{"type":["string","null"],"maxLength":40},"booking_label":{"type":["string","null"],"maxLength":40},"booking_singular_label":{"type":["string","null"],"maxLength":40}}},"BrandingPreferences":{"type":"object","required":["accent_color"],"additionalProperties":false,"properties":{"logo_url":{"type":["string","null"],"format":"uri","maxLength":2000},"favicon_url":{"type":["string","null"],"format":"uri","maxLength":2000},"support_email":{"type":["string","null"],"format":"email","maxLength":255},"accent_color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"}}},"DisplayPreferences":{"type":"object","required":["language","display_currency","date_format","week_starts_on","density"],"additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","es","pt"]},"display_currency":{"type":"string","pattern":"^[A-Z]{3}$"},"date_format":{"type":"string","enum":["MM/DD/YYYY","DD/MM/YYYY","YYYY-MM-DD"]},"week_starts_on":{"type":"string","enum":["sunday","monday"]},"density":{"type":"string","enum":["comfortable","compact"]}}},"DisplayPreferencesPatch":{"type":"object","minProperties":1,"additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","es","pt"]},"display_currency":{"type":"string","pattern":"^[A-Z]{3}$"},"date_format":{"type":"string","enum":["MM/DD/YYYY","DD/MM/YYYY","YYYY-MM-DD"]},"week_starts_on":{"type":"string","enum":["sunday","monday"]},"density":{"type":"string","enum":["comfortable","compact"]}}},"BookingEnvelope":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/BookingResource"}}},"BookingResource":{"type":"object","additionalProperties":false,"required":["id","property_id","primary_guest_id","booking_source_id","confirmation_number","status","starts_on","ends_on","adults","children","currency","subtotal_minor","tax_minor","total_minor","revision","external_reference","dietary_requirements","allergies","other_restrictions","kitchen_notes","guest_requests","notes","confirmed_at","property","guest","source","pending_activity_count","service_orders","folio","revisions"],"properties":{"pending_activity_count":{"type":"integer","minimum":0,"description":"Number of non-cancelled services awaiting scheduling or required resource assignment."},"flight_in_time":{"type":["string","null"],"pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","description":"Flight arrival time in the property timezone; null when unknown."},"flight_out_time":{"type":["string","null"],"pattern":"^(?:[01][0-9]|2[0-3]):[0-5][0-9]$","description":"Flight departure time in the property timezone; null when unknown."},"deleted_at":{"type":["string","null"],"format":"date-time"},"details_revision":{"type":"integer","minimum":1},"financial_summary":{"type":"object","additionalProperties":false,"required":["payment_status","deposit_status","deposit_target_minor","deposit_paid_minor","deposit_remaining_minor","balance_minor","next_due_on","overdue"],"properties":{"payment_status":{"type":"string","enum":["unpaid","partial","paid","waived"]},"deposit_status":{"type":"string","enum":["due","paid","waived","none"]},"deposit_target_minor":{"type":"integer"},"deposit_paid_minor":{"type":"integer"},"deposit_remaining_minor":{"type":"integer"},"balance_minor":{"type":"integer"},"next_due_on":{"type":["string","null"],"format":"date"},"overdue":{"type":"boolean"}}},"id":{"type":"string","format":"uuid"},"property_id":{"type":"string","format":"uuid"},"primary_guest_id":{"type":"string","format":"uuid"},"booking_source_id":{"type":["string","null"],"format":"uuid"},"confirmation_number":{"type":"string"},"status":{"type":"string"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":"string","format":"date"},"adults":{"type":"integer","minimum":1},"children":{"type":"integer","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"subtotal_minor":{"type":"integer"},"tax_minor":{"type":"integer"},"total_minor":{"type":"integer"},"revision":{"type":"integer","minimum":1},"external_reference":{"type":["string","null"]},"dietary_requirements":{"type":["string","null"]},"allergies":{"type":["string","null"]},"kitchen_notes":{"type":["string","null"]},"other_restrictions":{"type":["string","null"]},"guest_requests":{"type":["string","null"]},"notes":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"guests":{"type":"array","items":{"type":"object","required":["id","first_name","last_name","email","phone","role"],"properties":{"id":{"type":"string","format":"uuid"},"first_name":{"type":"string"},"last_name":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"role":{"type":"string"}}}},"confirmed_at":{"type":["string","null"],"format":"date-time"},"property":{"type":"object","additionalProperties":false,"required":["id","name","timezone"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"timezone":{"type":"string"}}},"guest":{"type":"object","additionalProperties":false,"required":["id","first_name","last_name","email","phone"],"properties":{"id":{"type":"string","format":"uuid"},"first_name":{"type":"string"},"last_name":{"type":["string","null"]},"email":{"type":["string","null"],"format":"email"},"phone":{"type":["string","null"]}}},"source":{"type":["object","null"],"additionalProperties":false,"required":["id","code","name"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"name":{"type":"string"}}},"service_orders":{"type":"array","items":{"$ref":"#/components/schemas/BookingServiceOrder"}},"folio":{"$ref":"#/components/schemas/BookingFolio"},"revisions":{"type":"array","items":{"$ref":"#/components/schemas/BookingRevision"}}}},"BookingServiceOrder":{"type":"object","additionalProperties":false,"required":["id","service_id","rate_id","resource_category_id","status","starts_on","ends_on","guest_count","units","gross_amount_minor","service","rate","assignments"],"properties":{"id":{"type":"string","format":"uuid"},"service_id":{"type":"string","format":"uuid"},"rate_id":{"type":"string","format":"uuid"},"resource_category_id":{"type":["string","null"],"format":"uuid"},"status":{"type":"string"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":"string","format":"date"},"guest_count":{"type":"integer","minimum":1},"units":{"type":"integer","minimum":1},"gross_amount_minor":{"type":"integer"},"service":{"type":"object","additionalProperties":false,"required":["code","name","classification"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"classification":{"type":"string"}}},"rate":{"type":"object","additionalProperties":false,"required":["code","name"],"properties":{"code":{"type":"string"},"name":{"type":"string"}}},"assignments":{"type":"array","items":{"$ref":"#/components/schemas/BookingAssignment"}}}},"BookingAssignment":{"type":"object","additionalProperties":false,"required":["id","resource_id","status","starts_at","ends_at","resource"],"properties":{"id":{"type":"string","format":"uuid"},"resource_id":{"type":"string","format":"uuid"},"status":{"type":"string"},"starts_at":{"type":"string","format":"date-time"},"ends_at":{"type":"string","format":"date-time"},"resource":{"type":"object","additionalProperties":false,"required":["id","category_id","code","name","capacity","kind","category","counts_as_stay"],"properties":{"id":{"type":"string","format":"uuid"},"category_id":{"type":"string","format":"uuid"},"code":{"type":"string"},"name":{"type":"string"},"capacity":{"type":"integer","minimum":1},"kind":{"type":"string"},"category":{"type":"string"},"counts_as_stay":{"type":"boolean"}}}}},"BookingFolio":{"type":"object","additionalProperties":false,"required":["id","currency","status","charge_total_minor","payment_total_minor","balance_minor","order_items","payment_schedule","payments"],"properties":{"id":{"type":"string","format":"uuid"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"status":{"type":"string"},"charge_total_minor":{"type":"integer"},"payment_total_minor":{"type":"integer"},"balance_minor":{"type":"integer"},"order_items":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","item_kind","code","description","quantity_thousandths","unit_amount_minor","net_amount_minor","tax_amount_minor","gross_amount_minor","posted_at"],"properties":{"id":{"type":"string","format":"uuid"},"is_current":{"type":"boolean"},"editable":{"type":"boolean"},"removable":{"type":"boolean"},"item_kind":{"type":"string"},"code":{"type":"string"},"description":{"type":"string"},"quantity_thousandths":{"type":"integer"},"unit_amount_minor":{"type":"integer"},"net_amount_minor":{"type":"integer"},"tax_amount_minor":{"type":"integer"},"gross_amount_minor":{"type":"integer"},"posted_at":{"type":"string","format":"date-time"}}}},"payment_schedule":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","booking_revision","kind","status","due_on","currency","amount_minor"],"properties":{"paid_minor":{"type":"integer"},"remaining_minor":{"type":"integer"},"id":{"type":"string","format":"uuid"},"booking_revision":{"type":"integer","minimum":1},"kind":{"type":"string"},"status":{"type":"string"},"due_on":{"type":"string","format":"date"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"amount_minor":{"type":"integer"}}}},"payments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","payment_schedule_id","reverses_payment_id","kind","status","method","channel","origin","reference","evidence_url","evidence_note","currency","amount_minor","processed_at","reversed"],"properties":{"id":{"type":"string","format":"uuid"},"payment_schedule_id":{"type":["string","null"],"format":"uuid"},"reverses_payment_id":{"type":["string","null"],"format":"uuid"},"kind":{"type":"string"},"status":{"type":"string"},"method":{"type":"string"},"channel":{"type":"string"},"origin":{"type":"string","enum":["manual","provider"]},"reference":{"type":["string","null"]},"evidence_url":{"type":["string","null"]},"evidence_note":{"type":["string","null"]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"amount_minor":{"type":"integer"},"processed_at":{"type":"string","format":"date-time"},"reversed":{"type":"boolean"}}}}}},"BookingRevision":{"type":"object","additionalProperties":false,"required":["id","revision","change_kind","previous_starts_on","starts_on","previous_ends_on","ends_on","previous_total_minor","total_minor","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"revision":{"type":"integer","minimum":1},"change_kind":{"type":"string"},"previous_starts_on":{"type":["string","null"],"format":"date"},"starts_on":{"type":"string","format":"date"},"previous_ends_on":{"type":["string","null"],"format":"date"},"ends_on":{"type":"string","format":"date"},"previous_total_minor":{"type":["integer","null"]},"total_minor":{"type":"integer"},"created_at":{"type":"string","format":"date-time"}}},"InferredPriceBookingRequest":{"type":"object","properties":{"property_id":{"type":"string","format":"uuid"},"booking_source_id":{"type":["string","null"],"format":"uuid"},"starts_on":{"type":"string","format":"date"},"ends_on":{"type":"string","format":"date"},"adults":{"type":"integer","minimum":1,"maximum":100},"children":{"type":"integer","minimum":0,"maximum":100},"services":{"type":"array","items":{"type":"object","properties":{"service_id":{"type":"string","format":"uuid"},"rate_id":{"type":"string","format":"uuid"},"resource_category_id":{"type":["string","null"],"format":"uuid"},"resource_ids":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":30,"uniqueItems":true},"units":{"type":"integer","minimum":1,"maximum":365},"participants":{"type":"integer","minimum":1,"maximum":100},"custom_amount_minor":{"type":"string"},"segments":{"type":"array","items":{"type":"object","properties":{"starts_on":{"type":"string","format":"date"},"ends_on":{"type":"string","format":"date"},"resource_ids":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":30}},"required":["starts_on","ends_on","resource_ids"]},"minItems":1,"maxItems":365}},"required":["service_id","rate_id","resource_ids"]},"minItems":1,"maxItems":30,"uniqueItems":true},"products":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","format":"uuid"},"quantity":{"type":"integer","minimum":1,"maximum":1000},"description":{"type":"string","minLength":1,"maxLength":500},"unit_amount_minor":{"type":"integer","minimum":0,"maximum":100000000},"is_taxable":{"type":"boolean"}},"required":["product_id","quantity"]},"maxItems":50,"uniqueItems":true},"charges":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":500},"quantity":{"type":"integer","minimum":1,"maximum":1000},"unit_amount_minor":{"type":"integer","minimum":0,"maximum":100000000},"is_taxable":{"type":"boolean"}},"required":["description","quantity","unit_amount_minor","is_taxable"]},"maxItems":50}},"required":["property_id","starts_on","ends_on","adults","children","services","products"],"title":"PriceBookingRequest"},"InferredPaymentChannel":{"type":"string","enum":["bank_transfer","cash","external_terminal","manual_other","online_checkout","integrated_terminal","qr"],"title":"PaymentChannel"},"InferredMembershipRole":{"type":"string","enum":["administrator","owner","manager","sales","operations","coordinator","guide","kitchen","housekeeping","finance","viewer"],"title":"MembershipRole"}}}}