{"openapi":"3.1.0","info":{"title":"Arbol API: agenda","version":"1.20261120.163816"},"servers":[{"url":"https://api.getarbol.com"}],"components":{"schemas":{"AgendaAddAgentWaitlistEntryBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaAddAgentWaitlistEntryBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaAddAgentWaitlistEntryBody":{"type":"object","required":["patient","reason","serviceId"],"properties":{"appointmentId":{"anyOf":[{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The appointment it relates to: a priority to bring forward."},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"description":"Agent conversation URL retained so the scheduling team can reopen the referring conversation.","x-arbol-runtime-input":"conversationUrl"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk note attached to the waiting-list entry; null means no note is recorded."},"patient":{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The payer the patient named, as said."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The contact phone supplied or confirmed by the person for this request. Replaces their stored contact phone; omitted or null preserves it."},"preferences":{"type":"object","required":[],"properties":{"from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"From this local date (YYYY-MM-DD).","default":null},"times":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"Martes y jueves en la mañana\".","default":null},"to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Until this local date (YYYY-MM-DD).","default":null}},"additionalProperties":false,"description":"Patient availability preferences retained with the waiting-list entry."},"resourceName":{"type":"string","description":"The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."},"reason":{"anyOf":[{"type":"string","const":"manual"},{"type":"string","const":"payer_review"},{"type":"string","const":"priority"}],"description":"manual records a consented waitlist request after no suitable availability; payer_review asks staff to coordinate a restricted payer; priority asks staff to bring an existing booking forward."},"resourceId":{"anyOf":[{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"AgendaAddAgentWaitlistEntryConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaAddAgentWaitlistEntryConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaAddAgentWaitlistEntryForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaAddAgentWaitlistEntryForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaAddAgentWaitlistEntryServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaAddAgentWaitlistEntryServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaAddAgentWaitlistEntryUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaAddAgentWaitlistEntryUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaAgeNotEligibleFailure":{"type":"object","description":"The patient's age on that day is outside this service's age rule.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["AGE_NOT_ELIGIBLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaApplicationJsonRequiredFailure":{"type":"object","description":"Send the request as application/json.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["APPLICATION_JSON_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaAppointment":{"type":"object","required":["bookingChannel","configurationVersionId","contactId","createdAt","createdBy","endsAt","id","intake","object","occupationMinutes","offeringId","origin","overbooked","patient","patientId","resourceIds","schemaVersion","startsAt","status","statusChange","timezone","title","updatedAt","version"],"properties":{"bookingChannel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Booking source recorded on the appointment; null when no channel was recorded."},"configurationVersionId":{"anyOf":[{"type":"string","description":"Stable spv-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^spv_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Immutable operating profile version captured when the appointment was booked; null when none applied."},"contactId":{"anyOf":[{"type":"string","description":"Opaque Arbol contact reference associated with this booking; Scheduling does not resolve it.","pattern":"^cnt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"External contact reference associated with this booking; null when it has no external contact."},"createdAt":{"type":"string","format":"date-time","description":"Instant when the scheduling record was first created."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of whoever booked it; compare with the session's subject.","default":null},"endsAt":{"type":"string","format":"date-time","description":"Exclusive end of the visible appointment or slot, before allocation buffers are added."},"id":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."},"intake":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentIntake"},{"type":"null"}],"default":null,"description":"Appointment-specific contact, payer, authorization and custom-field values; null when no intake was recorded."},"object":{"type":"string","const":"scheduling.appointment","description":"scheduling.appointment identifies this appointment."},"occupationMinutes":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"default":null,"description":"Study length in minutes the desk chose when booking (6, 8 or 12 hours of a sleep study); its agendas stay held that long from the start. Null: the service’s usual length."},"offeringId":{"anyOf":[{"type":"string","description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Offering recorded on the appointment; null when the appointment has no linked offering."},"origin":{"anyOf":[{"type":"string","const":"native"},{"type":"string","const":"provider"}],"description":"Whether the appointment originated in Scheduling or an imported provider record."},"overbooked":{"type":"boolean","description":"A sobrecupo: the desk added it at a full time or outside hours; it never takes capacity. A move into a free slot makes it a regular appointment.","default":false},"patient":{"anyOf":[{"$ref":"#/components/schemas/AgendaPatientIdentity"},{"type":"null"}],"default":null,"description":"Patient identity copied into the booking; null when no patient identity was supplied."},"patientId":{"anyOf":[{"type":"string","description":"Stable pat-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The patient record this booking created or updated; null without a patient.","default":null},"resourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"description":"Agendas assigned to the appointment or slot, including required professionals, rooms and equipment."},"schemaVersion":{"type":"number","const":1,"description":"Revision of the public record shape; separate from the record version used for concurrency control."},"startsAt":{"type":"string","format":"date-time","description":"Visible appointment or slot start instant, including an explicit timezone offset."},"status":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}],"description":"Current appointment lifecycle state; cancelled and completed appointments cannot regain capacity through a status change."},"statusChange":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentStatusChange"},{"type":"null"}],"description":"The latest status change: when, by whom, and the reason given.","default":null},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local dates and agenda working hours."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk-authored appointment title; null permits the service name to supply the display title."},"updatedAt":{"type":"string","format":"date-time","description":"Instant of the latest change to this scheduling record."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Current record revision; pass it unchanged as expectedVersion for a guarded mutation."}},"additionalProperties":false},"AgendaAppointmentClosedFailure":{"type":"object","description":"A cancelled appointment cannot be edited.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["APPOINTMENT_CLOSED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaAppointmentGuidance":{"type":"object","required":["arrivalOrder","attendedBy","location","patientInstructions","serviceName"],"properties":{"arrivalOrder":{"type":"boolean","description":"Whether patients are attended in arrival order rather than by the exact booked minute."},"attendedBy":{"type":"array","items":{"type":"string"},"description":"Names of the professionals currently assigned to the appointment."},"location":{"anyOf":[{"type":"object","required":["address","city","name"],"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Current site street address; null when not configured."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Current site city; null when not configured."},"name":{"type":"string","description":"Current site name to tell the patient before arrival."}},"additionalProperties":false},{"type":"null"}],"description":"Current site for the appointment, including arrival address; null when no site applies."},"patientInstructions":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Current service preparation and arrival instructions to relay to the patient; null when unset."},"serviceName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Current booked service name; null when no service projection is available."}},"additionalProperties":false},"AgendaAppointmentIntake":{"type":"object","required":["authorization","conversationUrl","email","entity","fields","notes","phone","priority"],"properties":{"authorization":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"default":null,"description":"Payer authorization reference recorded with this appointment; null when absent."},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"default":null,"description":"HTTPS link to the originating Arbol conversation on an admitted product hostname; null when absent."},"email":{"anyOf":[{"type":"string","format":"email","maxLength":254},{"type":"null"}],"default":null,"description":"Patient email address for enabled appointment notices; null when unknown."},"entity":{"anyOf":[{"type":"string","description":"Patient payer or insurer named by the clinic; unrelated to the verified organization identity.","minLength":1,"maxLength":120},{"type":"null"}],"default":null,"description":"Patient payer or insurer as named by the clinic; null when unknown. It is unrelated to the authenticated organization."},"fields":{"type":"object","patternProperties":{"^[a-z][a-z0-9_]{0,39}$":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"number"},{"type":"boolean"}]}},"additionalProperties":false,"default":{},"description":"Custom patient values keyed by the organization's configured field keys; values retain their declared string, number or boolean type."},"notes":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}],"default":null,"description":"Appointment-specific free-text notes; null when none are recorded."},"phone":{"anyOf":[{"type":"string","pattern":"^\\+?[0-9 ()-]{7,20}$"},{"type":"null"}],"default":null,"description":"Patient contact phone, preserving its entered formatting; null when unknown."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"default":"normal","description":"Appointment priority: normal by default or urgent when explicitly requested."}},"additionalProperties":false},"AgendaAppointmentIntakeInput":{"type":"object","required":[],"properties":{"authorization":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Payer authorization reference recorded with this appointment; null when absent."},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"default":null,"description":"HTTPS link to the originating Arbol conversation on an admitted product hostname; null when absent."},"email":{"anyOf":[{"type":"string","format":"email","maxLength":254},{"type":"null"}],"default":null,"description":"Patient email address for enabled appointment notices; null when unknown."},"entity":{"anyOf":[{"type":"string","description":"Patient payer or insurer named by the clinic; unrelated to the verified organization identity."},{"type":"null"}],"default":null,"description":"Patient payer or insurer as named by the clinic; null when unknown. It is unrelated to the authenticated organization."},"fields":{"type":"object","patternProperties":{"^[a-z][a-z0-9_]{0,39}$":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"additionalProperties":false,"default":{},"description":"Custom patient values keyed by the organization's configured field keys; values retain their declared string, number or boolean type."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Appointment-specific free-text notes; null when none are recorded."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Patient contact phone, preserving its entered formatting; null when unknown."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"default":"normal","description":"Appointment priority: normal by default or urgent when explicitly requested."}},"additionalProperties":false},"AgendaAppointmentNotMovableFailure":{"type":"object","description":"A closed appointment cannot be moved.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["APPOINTMENT_NOT_MOVABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaAppointmentNotRemindableFailure":{"type":"object","description":"Only an open future appointment with a patient email can receive a reminder.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["APPOINTMENT_NOT_REMINDABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaAppointmentPage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaAppointment"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaAppointmentPageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaAppointmentPage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaAppointmentResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaAppointment"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaAppointmentStatusChange":{"type":"object","required":["at","by","reason"],"properties":{"at":{"type":"string","format":"date-time","description":"Instant when the appointment change was recorded."},"by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of the person who changed the status; null when the actor was not recorded."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reason recorded for this scheduling change; null when no reason was supplied."}},"additionalProperties":false},"AgendaAppointmentVersionMismatchFailure":{"type":"object","description":"The appointment changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["APPOINTMENT_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaAppointmentWithoutPatientFailure":{"type":"object","description":"Link a patient to this appointment before performing this action.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["APPOINTMENT_WITHOUT_PATIENT"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaArbolCatalogTooLargeFailure":{"type":"object","description":"The integration catalog exceeds the supported size. Narrow the catalog before retrying.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ARBOL_CATALOG_TOO_LARGE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaArbolConfigurationRequiredFailure":{"type":"object","description":"Configure the organization integration before using it.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ARBOL_CONFIGURATION_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaArbolRefusedFailure":{"type":"object","description":"The integration service rejected this request. Review its configuration.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ARBOL_REFUSED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaArbolResponseTooLargeFailure":{"type":"object","description":"The integration response exceeds the supported size.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ARBOL_RESPONSE_TOO_LARGE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaArbolSettingsVersionMismatchFailure":{"type":"object","description":"Arbol settings changed.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ARBOL_SETTINGS_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaArbolUnavailableFailure":{"type":"object","description":"The integration service is temporarily unavailable. Retry later.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ARBOL_UNAVAILABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[true],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaBindingVersionMismatchFailure":{"type":"object","description":"Connection changed or is synchronizing; refresh and retry.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["BINDING_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaBirthDateRequiredFailure":{"type":"object","description":"This service has an age rule: the patient's date of birth is required.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["BIRTH_DATE_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaBookAgentAppointmentBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaBookAgentAppointmentBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaBookAgentAppointmentBody":{"type":"object","required":["slotToken"],"properties":{"contactId":{"anyOf":[{"type":"string","description":"Opaque Arbol contact reference associated with this booking; Scheduling does not resolve it.","pattern":"^cnt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"External contact reference associated with this booking; null when it has no external contact."},"intake":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentIntakeInput"},{"type":"null"}],"description":"Appointment-specific contact, payer, authorization and custom-field values; null when no intake was recorded."},"patient":{"anyOf":[{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},{"type":"null"}],"description":"Patient identity copied into the booking; null when no patient identity was supplied."},"patientBirthDate":{"type":"string","format":"date","description":"Patient-supplied date of birth (YYYY-MM-DD), stored on the record and checked against service age eligibility."},"slotToken":{"type":"string","description":"Opaque signed token for one exact available slot. Use the returned token unchanged after the patient confirms that time.","minLength":20},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk-authored appointment title; null permits the service name to supply the display title."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"AgendaBookAgentAppointmentConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaBookAgentAppointmentConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaBookAgentAppointmentForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaBookAgentAppointmentForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaBookAgentAppointmentServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaBookAgentAppointmentServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaBookAgentAppointmentUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaBookAgentAppointmentUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaBookableOffering":{"type":"object","required":["agendas","durationMinutes","id","locations","name","occupationMinutes","scheduleSummary","scheduleTimezones","service","serviceId","truncatedAgendas"],"properties":{"agendas":{"type":"array","items":{"type":"object","required":["id","kind","locationId","name"],"properties":{"id":{"type":"string","description":"Agenda identifier usable as resourceId when narrowing availability."},"kind":{"type":"string","description":"Agenda category, such as professional, room or equipment.","enum":["practitioner","assistant","room","chair","equipment","location","team","generic"]},"locationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Site owning this agenda; null for an agenda without a site."},"name":{"type":"string","description":"Agenda display name for a professional or other schedulable resource."}},"additionalProperties":false},"description":"Bounded agenda projection for this offering; truncatedAgendas indicates that more agendas exist."},"durationMinutes":{"type":"number","description":"Booked appointment duration in minutes for this offering."},"id":{"type":"string","description":"Bookable offering identifier used when requesting signed availability slots."},"locations":{"type":"array","items":{"type":"object","required":["address","city","id","name","timezone"],"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Site street address to tell the patient; null when unset."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Site city to tell the patient; null when unset."},"id":{"type":"string","description":"Site identifier usable as locationId when narrowing availability."},"name":{"type":"string","description":"Site display name for selecting and explaining the appointment location."},"timezone":{"type":"string","description":"Site IANA timezone for interpreting appointment and working-hour displays."}},"additionalProperties":false},"description":"Sites applicable to the offering’s agendas, including addresses for patient arrival."},"name":{"type":"string","description":"Offering display name combining the service and its bookable agenda configuration."},"occupationMinutes":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Patient occupation in minutes when it differs from the appointment duration; null means no separate duration."},"scheduleSummary":{"type":"string","description":"Human-readable service hours and closures. Availability remains authoritative."},"scheduleTimezones":{"type":"array","items":{"type":"string"},"description":"IANA timezones of the agendas in this bounded projection; hours are interpreted locally."},"service":{"type":"object","required":["arrivalOrder","bookingChecklist","description","eligibility","id","name","patientInstructions"],"properties":{"arrivalOrder":{"type":"boolean","description":"Whether this service attends patients by arrival order."},"bookingChecklist":{"type":"array","items":{"type":"string"},"description":"Staff booking requirements to compare against known patient facts before offering a slot."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Staff-facing service guidance for booking; null when not configured."},"eligibility":{"anyOf":[{"type":"object","properties":{"maxAgeYears":{"anyOf":[{"type":"integer","minimum":0,"maximum":120,"description":"Completed years of age on the appointment day; never infer age from a name or document type."},{"type":"null"}],"description":"Oldest accepted age in completed years; null or absent means no upper age bound."},"minAgeYears":{"anyOf":[{"type":"integer","minimum":0,"maximum":120,"description":"Completed years of age on the appointment day; never infer age from a name or document type."},{"type":"null"}],"description":"Youngest accepted age in completed years; null or absent means no lower age bound."}},"additionalProperties":false},{"type":"null"}],"description":"Age eligibility evaluated on the appointment date; null means no configured age restriction."},"id":{"type":"string","description":"Service identifier used for first-available searches and waitlist requests."},"name":{"type":"string","description":"Service display name to use when discussing the requested care."},"patientInstructions":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Preparation and arrival instructions intended for the patient; null when unset."}},"additionalProperties":false,"description":"Current service policy and patient instructions; this projection does not establish payer coverage."},"serviceId":{"type":"string","description":"Service identifier associated with this offering."},"truncatedAgendas":{"type":"boolean","description":"Whether the bounded agenda projection omits additional agendas for this offering."}},"additionalProperties":false},"AgendaBookableOfferingPage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaBookableOffering"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaBookableOfferingPageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaBookableOfferingPage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaBooking":{"type":"object","required":["bookingChannel","configurationVersionId","contactId","createdAt","createdBy","endsAt","id","intake","object","occupationMinutes","offeringId","origin","overbooked","patient","patientId","resourceIds","schemaVersion","startsAt","status","statusChange","timezone","title","updatedAt","version","guidance","slip"],"properties":{"bookingChannel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Booking source recorded on the appointment; null when no channel was recorded."},"configurationVersionId":{"anyOf":[{"type":"string","description":"Stable spv-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^spv_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Immutable operating profile version captured when the appointment was booked; null when none applied."},"contactId":{"anyOf":[{"type":"string","description":"Opaque Arbol contact reference associated with this booking; Scheduling does not resolve it.","pattern":"^cnt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"External contact reference associated with this booking; null when it has no external contact."},"createdAt":{"type":"string","format":"date-time","description":"Instant when the scheduling record was first created."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of whoever booked it; compare with the session's subject.","default":null},"endsAt":{"type":"string","format":"date-time","description":"Exclusive end of the visible appointment or slot, before allocation buffers are added."},"id":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."},"intake":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentIntake"},{"type":"null"}],"default":null,"description":"Appointment-specific contact, payer, authorization and custom-field values; null when no intake was recorded."},"object":{"type":"string","const":"scheduling.appointment","description":"scheduling.appointment identifies this appointment."},"occupationMinutes":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"default":null,"description":"Study length in minutes the desk chose when booking (6, 8 or 12 hours of a sleep study); its agendas stay held that long from the start. Null: the service’s usual length."},"offeringId":{"anyOf":[{"type":"string","description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Offering recorded on the appointment; null when the appointment has no linked offering."},"origin":{"anyOf":[{"type":"string","const":"native"},{"type":"string","const":"provider"}],"description":"Whether the appointment originated in Scheduling or an imported provider record."},"overbooked":{"type":"boolean","description":"A sobrecupo: the desk added it at a full time or outside hours; it never takes capacity. A move into a free slot makes it a regular appointment.","default":false},"patient":{"anyOf":[{"$ref":"#/components/schemas/AgendaPatientIdentity"},{"type":"null"}],"default":null,"description":"Patient identity copied into the booking; null when no patient identity was supplied."},"patientId":{"anyOf":[{"type":"string","description":"Stable pat-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The patient record this booking created or updated; null without a patient.","default":null},"resourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"description":"Agendas assigned to the appointment or slot, including required professionals, rooms and equipment."},"schemaVersion":{"type":"number","const":1,"description":"Revision of the public record shape; separate from the record version used for concurrency control."},"startsAt":{"type":"string","format":"date-time","description":"Visible appointment or slot start instant, including an explicit timezone offset."},"status":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}],"description":"Current appointment lifecycle state; cancelled and completed appointments cannot regain capacity through a status change."},"statusChange":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentStatusChange"},{"type":"null"}],"description":"The latest status change: when, by whom, and the reason given.","default":null},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local dates and agenda working hours."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk-authored appointment title; null permits the service name to supply the display title."},"updatedAt":{"type":"string","format":"date-time","description":"Instant of the latest change to this scheduling record."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Current record revision; pass it unchanged as expectedVersion for a guarded mutation."},"guidance":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentGuidance"},{"type":"null"}],"description":"Current nonclinical arrival instructions; null when no guidance projection is available."},"slip":{"anyOf":[{"type":"object","required":["expiresAt","url"],"properties":{"expiresAt":{"type":"string","description":"When the link stops working, ISO 8601: fetch it right after booking.","format":"date-time"},"url":{"type":"string","description":"HTTPS link to the PDF, without any credential. It grants this slip alone; never show it to the patient as text, send the file itself.","format":"uri"}},"additionalProperties":false,"description":"The appointment's printable slip (RESERVA DE CITAS, with the service's indications) as a PDF link to send the patient as a file."},{"type":"null"}],"description":"A link, valid for an hour, to the appointment's printable slip PDF to send the patient as a file; null for a cancelled appointment."}},"additionalProperties":false},"AgendaBookingResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaBooking"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCancelAgentAppointmentBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCancelAgentAppointmentBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaCancelAgentAppointmentBody":{"type":"object","additionalProperties":false,"properties":{"reason":{"type":"string","description":"Cancellation reason explicitly provided by the person; recorded in appointment history."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"required":["reason"]},"AgendaCancelAgentAppointmentConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCancelAgentAppointmentConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaCancelAgentAppointmentForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCancelAgentAppointmentForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaCancelAgentAppointmentServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCancelAgentAppointmentServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaCancelAgentAppointmentUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCancelAgentAppointmentUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaCreateAppointmentBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateAppointmentBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateAppointmentBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaCreateAppointmentBody":{"type":"object","required":["idempotencyKey"],"properties":{"bookingChannel":{"type":"string","description":"Booking source recorded on the appointment; null when no channel was recorded."},"contactId":{"anyOf":[{"type":"string","description":"Opaque Arbol contact reference associated with this booking; Scheduling does not resolve it.","pattern":"^cnt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"External contact reference associated with this booking; null when it has no external contact."},"holdId":{"type":"string","pattern":"^hld_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Existing unexpired capacity hold to convert; provide holdId or a freshly returned signed slot token."},"idempotencyKey":{"type":"string","description":"Stable key for this booking attempt, unique within the verified organization. Reusing it returns the original appointment."},"intake":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentIntakeInput"},{"type":"null"}],"description":"Appointment-specific contact, payer, authorization and custom-field values; null when no intake was recorded."},"patient":{"anyOf":[{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},{"type":"null"}],"description":"Patient identity copied into the booking; null when no patient identity was supplied."},"patientBirthDate":{"type":"string","format":"date","description":"Patient-supplied date of birth (YYYY-MM-DD), stored on the record and checked against service age eligibility."},"patientId":{"type":"string","pattern":"^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"The registered patient the desk picked. The typed document still decides who it is; this record only gains that document when it had none."},"slotToken":{"type":"string","description":"Opaque signed token for one exact available slot. Use the returned token unchanged after the patient confirms that time.","minLength":20},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk-authored appointment title; null permits the service name to supply the display title."}},"additionalProperties":false},"AgendaCreateAppointmentConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateAppointmentConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateAppointmentConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaCreateAppointmentForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateAppointmentForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateAppointmentForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaCreateAppointmentServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateAppointmentServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateAppointmentServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaCreateAppointmentUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateAppointmentUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateAppointmentUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaCreateOfferingBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateOfferingBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateOfferingBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaCreateOfferingBody":{"type":"object","required":["durationMinutes","name","serviceId"],"properties":{"bookingHorizonDays":{"type":"integer","minimum":1,"maximum":730,"default":90,"description":"Farthest number of days ahead that this offering can be booked."},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":1440,"default":0,"description":"Resource occupation added after the visible appointment, in minutes."},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":1440,"default":0,"description":"Resource occupation added before the visible appointment, in minutes."},"capacity":{"type":"integer","minimum":1,"maximum":10000,"default":1,"description":"Legacy concurrent-session limit above 1; details.maxConcurrent takes precedence. The historical default 1 delegates to resource capacity."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"default":{},"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"durationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Visible appointment duration for this offering, in minutes; resource buffers apply separately."},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":525600,"default":0,"description":"Minimum advance notice in minutes before this offering can be booked."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"slotIntervalMinutes":{"type":"integer","minimum":5,"maximum":240,"default":15,"description":"Minute spacing between candidate appointment start times."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"default":"active","description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"resourceRequirements":{"type":"array","items":{"type":"object","required":["kind"],"properties":{"alternatives":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":100,"default":[],"description":"Explicit resource alternatives for this requirement; an empty list allows any resource of the required kind."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Declared domain kind of this record or configuration element."},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1,"description":"Number of resources of this kind required by one booking."},"required":{"type":"boolean","default":true,"description":"Whether this resource requirement must be satisfied for the booking to proceed."}},"additionalProperties":false},"maxItems":30,"default":[],"description":"Resource kinds, quantities and explicit alternatives needed by this offering."},"serviceId":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"additionalProperties":false},"AgendaCreateOfferingConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateOfferingConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateOfferingConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaCreateOfferingForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateOfferingForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateOfferingForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaCreateOfferingServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateOfferingServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateOfferingServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaCreateOfferingUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateOfferingUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateOfferingUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaCreateResourceBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateResourceBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateResourceBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaCreateResourceBody":{"type":"object","required":["kind","name","timezone"],"properties":{"capacity":{"type":"integer","exclusiveMinimum":0,"maximum":10000,"default":1,"description":"Maximum simultaneous capacity units available on this resource; each booking consumes its declared share."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"default":{},"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Resource category used to match booking requirements, such as practitioner, room or equipment."},"locationId":{"anyOf":[{"type":"string","description":"Stable loc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"default":null,"description":"Clinic site associated with this record; null means it is not tied to a site."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"default":"active","description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."}},"additionalProperties":false},"AgendaCreateResourceConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateResourceConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateResourceConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaCreateResourceForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateResourceForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateResourceForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaCreateResourceServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateResourceServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateResourceServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaCreateResourceUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateResourceUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateResourceUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaCreateScheduleRuleBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateScheduleRuleBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaCreateScheduleRuleBody":{"type":"object","required":["kind","resourceId","timezone"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Last local date on which this weekly band applies; null means no upper date bound."},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Scheduling resource addressed by this request or associated with this record."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"default":[],"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."}},"additionalProperties":false},"AgendaCreateScheduleRuleConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateScheduleRuleConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaCreateScheduleRuleForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateScheduleRuleForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaCreateScheduleRuleResult":{"type":"object","required":["date","effectiveFrom","effectiveTo","endTime","from","id","kind","object","resourceId","schemaVersion","startTime","timezone","to","updatedAt","version","weekdays"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last local date on which this weekly band applies; null means no upper date bound."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"id":{"type":"string","description":"Stable sch-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"object":{"type":"string","const":"scheduling.schedule_rule","description":"Stable resource discriminator identifying the response object kind."},"resourceId":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"schemaVersion":{"type":"number","const":1,"description":"Format version of this resource contract, distinct from its persisted record version."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local working hours, appointment dates and age eligibility."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."}},"additionalProperties":false},"AgendaCreateScheduleRuleResultResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleResult"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateScheduleRuleServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateScheduleRuleServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaCreateScheduleRuleUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateScheduleRuleUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaCreateServiceBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateServiceBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateServiceBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaCreateServiceBody":{"type":"object","required":["defaultDurationMinutes","name"],"properties":{"defaultDurationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Default appointment duration for this service, in minutes. Each offering can specify its own duration."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"default":{},"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"default":"active","description":"Lifecycle state controlling whether this record remains available to its domain consumers."}},"additionalProperties":false},"AgendaCreateServiceConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateServiceConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateServiceConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaCreateServiceForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateServiceForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateServiceForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaCreateServiceServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateServiceServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateServiceServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaCreateServiceUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateServiceUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateServiceUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaCreateWaitlistEntryBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateWaitlistEntryBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaCreateWaitlistEntryBody":{"type":"object","required":["patient","serviceId"],"properties":{"appointmentId":{"anyOf":[{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The appointment it relates to: a priority to bring forward.","default":null},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"default":null,"description":"Agent conversation URL retained so the scheduling team can reopen the referring conversation."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Desk note attached to the waiting-list entry; null means no note is recorded."},"patient":{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},"patientId":{"type":"string","pattern":"^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Registered patient selected by the desk; document resolution remains authoritative for patient identity."},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The payer the patient named, as said.","default":null},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Patient contact telephone number; null when no number was recorded."},"preferences":{"type":"object","required":[],"properties":{"from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"From this local date (YYYY-MM-DD).","default":null},"times":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"Martes y jueves en la mañana\".","default":null},"to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Until this local date (YYYY-MM-DD).","default":null}},"additionalProperties":false,"default":{"from":null,"times":null,"to":null},"description":"Patient availability preferences retained with the waiting-list entry."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"default":"normal","description":"Whether the waiting-list entry requests normal handling or an urgent appointment."},"reason":{"anyOf":[{"type":"string","const":"manual"},{"type":"string","const":"payer_review"},{"type":"string","const":"priority"}],"description":"Why: by hand, a payer only the team books, or a priority to bring forward.","default":"manual"},"resourceId":{"anyOf":[{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note.","default":null},"resourceName":{"type":"string","description":"The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."}},"additionalProperties":false},"AgendaCreateWaitlistEntryConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateWaitlistEntryConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaCreateWaitlistEntryForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateWaitlistEntryForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaCreateWaitlistEntryServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateWaitlistEntryServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaCreateWaitlistEntryUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaCreateWaitlistEntryUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaDailyReportTooLargeFailure":{"type":"object","description":"Daily report exceeds the supported size; no partial report was generated.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["DAILY_REPORT_TOO_LARGE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaDurationChangeOffFailure":{"type":"object","description":"This service does not allow changing appointment duration.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["DURATION_CHANGE_OFF"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaDurationNotAllowedFailure":{"type":"object","description":"Select a duration allowed by this service.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["DURATION_NOT_ALLOWED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaFileContentMismatchFailure":{"type":"object","description":"The uploaded content does not match its declared file type.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["FILE_CONTENT_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaFindBookableSlotsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindBookableSlotsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindBookableSlotsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaFindBookableSlotsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindBookableSlotsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindBookableSlotsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaFindBookableSlotsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindBookableSlotsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindBookableSlotsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaFindBookableSlotsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindBookableSlotsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindBookableSlotsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaFindBookableSlotsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindBookableSlotsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindBookableSlotsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaFindNearestBookableSlotsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindNearestBookableSlotsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaFindNearestBookableSlotsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindNearestBookableSlotsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaFindNearestBookableSlotsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindNearestBookableSlotsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaFindNearestBookableSlotsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindNearestBookableSlotsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaFindNearestBookableSlotsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFindNearestBookableSlotsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaFirstAvailability":{"type":"object","required":["data","object","generatedAt","nextFrom","searchedUntil","truncatedOfferings"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaSlot"},"description":"Earliest signed slots in global time order or grouped by offering, according to the requested grouping."},"object":{"type":"string","const":"list","description":"Stable discriminator identifying the shape of this scheduling response."},"generatedAt":{"type":"string","description":"Instant when this response was assembled; not a validity guarantee for returned capacity."},"nextFrom":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Continue first-availability search from this instant; null when the returned search has no continuation."},"searchedUntil":{"type":"string","description":"End instant of the availability window actually examined by this request."},"truncatedOfferings":{"type":"boolean","description":"True when the bounded search left eligible offerings or agendas unexamined."}},"additionalProperties":false},"AgendaFirstAvailabilityResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaFirstAvailability"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaFollowupConsentRequiredFailure":{"type":"object","description":"The patient has not consented to this follow-up email for their current address.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["FOLLOWUP_CONSENT_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaFollowupDisabledFailure":{"type":"object","description":"Turn this follow-up email on in the notification settings first.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["FOLLOWUP_DISABLED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaFollowupSettingsVersionMismatchFailure":{"type":"object","description":"Follow-up email settings changed; reload before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["FOLLOWUP_SETTINGS_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaGetAgentAppointmentBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentAppointmentBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaGetAgentAppointmentConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentAppointmentConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaGetAgentAppointmentForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentAppointmentForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaGetAgentAppointmentServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentAppointmentServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaGetAgentAppointmentUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentAppointmentUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaGetAgentBookingRequirementsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentBookingRequirementsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaGetAgentBookingRequirementsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentBookingRequirementsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaGetAgentBookingRequirementsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentBookingRequirementsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaGetAgentBookingRequirementsResult":{"type":"object","required":["bookingDuration","customFields","documentTypes","fields","labels","payerLabel","object","updatedAt","version","payers"],"properties":{"bookingDuration":{"type":"object","required":["enabled","maxMinutes","minMinutes","stepMinutes"],"properties":{"enabled":{"type":"boolean","description":"Whether clinic staff may override one appointment’s duration without changing the service’s standard duration.","default":false},"maxMinutes":{"type":"integer","minimum":1,"maximum":1440,"default":1440,"description":"Longest appointment duration staff may select when overrides are enabled."},"minMinutes":{"type":"integer","minimum":1,"maximum":1440,"default":1,"description":"Shortest appointment duration staff may select when overrides are enabled."},"stepMinutes":{"anyOf":[{"type":"number","const":1},{"type":"number","const":5},{"type":"number","const":10},{"type":"number","const":15},{"type":"number","const":20},{"type":"number","const":30},{"type":"number","const":60}],"default":1,"description":"Permitted appointment duration increment; the selected duration must be divisible by this value."}},"additionalProperties":false,"default":{"enabled":false,"maxMinutes":1440,"minMinutes":1,"stepMinutes":1},"description":"Staff duration override policy; it changes one appointment without changing the service’s standard duration."},"customFields":{"type":"array","items":{"type":"object","required":["help","key","label","options","required","status","type"],"properties":{"help":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"One line under the input, e.g. \"Como aparece en la orden\".","default":null},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$","description":"Stable custom-field key used in recorded intake values. Renaming a display label does not change this key."},"label":{"type":"string","minLength":1,"maxLength":80,"description":"Display label shown to staff when entering this field."},"options":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"description":"Choices of a `select`; empty for every other type.","maxItems":50,"default":[]},"required":{"type":"boolean","default":false,"description":"Whether this active custom field requires a nonempty value during intake."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"archived"}],"description":"Archived fields stop being asked but keep the values already recorded.","default":"active"},"type":{"anyOf":[{"type":"string","const":"text"},{"type":"string","const":"number"},{"type":"string","const":"date"},{"type":"string","const":"select"},{"type":"string","const":"checkbox"}],"description":"Value type accepted by this custom configuration field."}},"additionalProperties":false},"maxItems":30,"default":[],"description":"Organization-defined intake fields with stable keys retained in recorded values."},"documentTypes":{"type":"array","items":{"type":"object","required":["code","description","name","status"],"properties":{"code":{"type":"string","pattern":"^[A-Z][A-Z0-9]{0,9}$","description":"Stable document-type code retained in patient records."},"description":{"type":"string","description":"What the select's tooltip says, e.g. \"Colombianos de 18 años o más\".","maxLength":200,"default":""},"name":{"type":"string","minLength":1,"maxLength":80,"description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Inactive types stop being offered; records that use one stay valid.","default":"active"}},"additionalProperties":false},"minItems":1,"maxItems":40,"default":[{"code":"CC","description":"Colombianos de 18 años o más.","name":"Cédula de ciudadanía","status":"active"},{"code":"TI","description":"Colombianos de 7 a 17 años.","name":"Tarjeta de identidad","status":"active"},{"code":"RC","description":"Colombianos menores de 7 años.","name":"Registro civil","status":"active"},{"code":"CE","description":"Extranjeros residentes en Colombia.","name":"Cédula de extranjería","status":"active"},{"code":"PA","description":"Extranjeros sin documento colombiano.","name":"Pasaporte","status":"active"},{"code":"PEP","description":"Migrantes con PEP vigente.","name":"Permiso especial de permanencia","status":"active"},{"code":"PPT","description":"Migrantes venezolanos con PPT.","name":"Permiso por protección temporal","status":"active"},{"code":"NUIP","description":"El número del registro civil o la tarjeta de identidad.","name":"Número único de identificación personal","status":"active"},{"code":"CD","description":"Personal diplomático acreditado.","name":"Carné diplomático","status":"active"},{"code":"SC","description":"Extranjeros con trámite de refugio.","name":"Salvoconducto de permanencia","status":"active"},{"code":"NIT","description":"Empresas y personas jurídicas.","name":"Número de identificación tributaria","status":"active"},{"code":"DE","description":"El documento del país de origen.","name":"Documento de identidad extranjero","status":"active"},{"code":"CN","description":"Recién nacidos sin registro civil.","name":"Certificado de nacido vivo","status":"active"},{"code":"MS","description":"Menores sin ningún documento.","name":"Menor sin identificación","status":"active"},{"code":"AS","description":"Adultos sin ningún documento.","name":"Adulto sin identificación","status":"active"}],"description":"Configured document types; inactive types remain valid on existing records."},"fields":{"type":"object","required":["authorization","conversationUrl","document","email","notes","payer","phone","priority"],"properties":{"authorization":{"anyOf":[{"type":"string","const":"off"},{"type":"string","const":"optional"},{"type":"string","const":"required"}],"default":"optional","description":"Organization-defined authorization field configuration."},"conversationUrl":{"anyOf":[{"type":"string","const":"off"},{"type":"string","const":"optional"}],"default":"optional","description":"Configuration for displaying an optional conversation link during intake."},"document":{"anyOf":[{"type":"string","const":"optional"},{"type":"string","const":"required"}],"default":"optional","description":"Organization-defined patient document field configuration."},"email":{"anyOf":[{"type":"string","const":"off"},{"type":"string","const":"optional"},{"type":"string","const":"required"}],"default":"optional","description":"Organization-defined email field configuration."},"notes":{"anyOf":[{"type":"string","const":"off"},{"type":"string","const":"optional"},{"type":"string","const":"required"}],"default":"optional","description":"Organization-defined appointment notes field configuration."},"payer":{"anyOf":[{"type":"string","const":"off"},{"type":"string","const":"optional"},{"type":"string","const":"required"}],"default":"optional","description":"Organization-defined payer field configuration."},"phone":{"anyOf":[{"type":"string","const":"off"},{"type":"string","const":"optional"},{"type":"string","const":"required"}],"default":"optional","description":"Organization-defined telephone field configuration."},"priority":{"anyOf":[{"type":"string","const":"off"},{"type":"string","const":"on"}],"default":"on","description":"Whether the appointment priority control is displayed during intake."}},"additionalProperties":false,"default":{"authorization":"optional","conversationUrl":"optional","document":"optional","email":"optional","notes":"optional","payer":"optional","phone":"optional","priority":"on"},"description":"Modes controlling which built-in intake fields are displayed or required."},"labels":{"type":"object","required":["authorization","document","email","name","notes","phone"],"properties":{"authorization":{"type":"object","required":["label","placeholder"],"properties":{"label":{"type":"string","minLength":1,"maxLength":60,"description":"Display label shown to staff when entering this field."},"placeholder":{"type":"string","maxLength":120,"description":"Example or hint displayed inside the input before staff enter a value."}},"additionalProperties":false,"default":{"label":"N.º de autorización","placeholder":""},"description":"Organization-defined authorization field configuration."},"document":{"type":"object","required":["label","placeholder"],"properties":{"label":{"type":"string","minLength":1,"maxLength":60,"description":"Display label shown to staff when entering this field."},"placeholder":{"type":"string","maxLength":120,"description":"Example or hint displayed inside the input before staff enter a value."}},"additionalProperties":false,"default":{"label":"Documento","placeholder":"Número"},"description":"Organization-defined patient document field configuration."},"email":{"type":"object","required":["label","placeholder"],"properties":{"label":{"type":"string","minLength":1,"maxLength":60,"description":"Display label shown to staff when entering this field."},"placeholder":{"type":"string","maxLength":120,"description":"Example or hint displayed inside the input before staff enter a value."}},"additionalProperties":false,"default":{"label":"Correo","placeholder":"paciente@correo.com"},"description":"Organization-defined email field configuration."},"name":{"type":"object","required":["label","placeholder"],"properties":{"label":{"type":"string","minLength":1,"maxLength":60,"description":"Display label shown to staff when entering this field."},"placeholder":{"type":"string","maxLength":120,"description":"Example or hint displayed inside the input before staff enter a value."}},"additionalProperties":false,"default":{"label":"Nombre del paciente","placeholder":"Nombres y apellidos"},"description":"Display name of this catalog or configuration record."},"notes":{"type":"object","required":["label","placeholder"],"properties":{"label":{"type":"string","minLength":1,"maxLength":60,"description":"Display label shown to staff when entering this field."},"placeholder":{"type":"string","maxLength":120,"description":"Example or hint displayed inside the input before staff enter a value."}},"additionalProperties":false,"default":{"label":"Observaciones","placeholder":"Ej. Debe traer la autorización. No cancela copago."},"description":"Organization-defined appointment notes field configuration."},"phone":{"type":"object","required":["label","placeholder"],"properties":{"label":{"type":"string","minLength":1,"maxLength":60,"description":"Display label shown to staff when entering this field."},"placeholder":{"type":"string","maxLength":120,"description":"Example or hint displayed inside the input before staff enter a value."}},"additionalProperties":false,"default":{"label":"Teléfono","placeholder":"+57 300 000 0000"},"description":"Organization-defined telephone field configuration."}},"additionalProperties":false,"default":{"authorization":{"label":"N.º de autorización","placeholder":""},"document":{"label":"Documento","placeholder":"Número"},"email":{"label":"Correo","placeholder":"paciente@correo.com"},"name":{"label":"Nombre del paciente","placeholder":"Nombres y apellidos"},"notes":{"label":"Observaciones","placeholder":"Ej. Debe traer la autorización. No cancela copago."},"phone":{"label":"Teléfono","placeholder":"+57 300 000 0000"}},"description":"Organization-defined labels and examples for built-in intake fields."},"payerLabel":{"type":"string","minLength":1,"maxLength":40,"default":"Entidad / EPS","description":"Organization-specific display name for the payer selector."},"object":{"type":"string","const":"scheduling.intake_settings","description":"Stable resource discriminator identifying the response object kind."},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 instant of the latest persisted change; null when this configuration has never been saved."},"version":{"type":"number","description":"Persisted revision used to detect concurrent edits."},"payers":{"type":"array","items":{"type":"object","required":["bookingPolicy","name","sites","sitesNote"],"properties":{"bookingPolicy":{"anyOf":[{"type":"string","const":"open"},{"type":"string","const":"staff_only"}],"description":"Profile-declared rules for admitting and coordinating a booking."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"sites":{"type":"array","items":{"type":"string"},"description":"The sites (IPS, sedes) the clinic serves for this payer, as the clinic writes them. Empty: no restriction. With entries, a patient whose site is not one of them is not served under this payer."},"sitesNote":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One line about the sites, e.g. \"Solo IPS en Barranquilla\"."}},"additionalProperties":false},"description":"Active payer booking policies and attended sites admitted by the organization’s current intake modules."}},"additionalProperties":false},"AgendaGetAgentBookingRequirementsResultResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsResult"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentBookingRequirementsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentBookingRequirementsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaGetAgentBookingRequirementsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAgentBookingRequirementsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaGetAppointmentBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAppointmentBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAppointmentBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaGetAppointmentConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAppointmentConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAppointmentConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaGetAppointmentForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAppointmentForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAppointmentForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaGetAppointmentServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAppointmentServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAppointmentServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaGetAppointmentUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAppointmentUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAppointmentUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaGetAvailabilityBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAvailabilityBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAvailabilityBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaGetAvailabilityConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAvailabilityConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAvailabilityConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaGetAvailabilityForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAvailabilityForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAvailabilityForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaGetAvailabilityServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAvailabilityServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAvailabilityServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaGetAvailabilityUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetAvailabilityUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetAvailabilityUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaGetFirstAvailableBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetFirstAvailableBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetFirstAvailableBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaGetFirstAvailableConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetFirstAvailableConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetFirstAvailableConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaGetFirstAvailableForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetFirstAvailableForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetFirstAvailableForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaGetFirstAvailableServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetFirstAvailableServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetFirstAvailableServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaGetFirstAvailableUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaGetFirstAvailableUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaGetFirstAvailableUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaHoldNotActiveFailure":{"type":"object","description":"The hold is no longer active.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["HOLD_NOT_ACTIVE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaIdTokenMismatchFailure":{"type":"object","description":"The identity token does not match the authenticated user.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ID_TOKEN_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaIntakeSettingsVersionMismatchFailure":{"type":"object","description":"Intake settings changed; reload before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INTAKE_SETTINGS_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidAppointmentIntakeFailure":{"type":"object","description":"Correct the indicated patient or intake fields before booking.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_APPOINTMENT_INTAKE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailureData"}}},"AgendaInvalidAppointmentIntakeFailureData":{"type":"object","required":["issues"],"properties":{"issues":{"type":"array","items":{"type":"object","required":["code","path"],"properties":{"code":{"anyOf":[{"type":"string","const":"REQUIRED_FIELD"},{"type":"string","const":"UNKNOWN_DOCUMENT_TYPE"},{"type":"string","const":"UNKNOWN_CUSTOM_FIELD"},{"type":"string","const":"INVALID_CUSTOM_FIELD"}],"description":"Finite organization-policy refusal. Resolve the named field and retry; submitted values are never included."},"path":{"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"integer","minimum":0,"maximum":10000}]},"maxItems":8,"description":"Path to the rejected input field, with at most eight segments. Unknown custom keys are represented by their parent fields path."}},"additionalProperties":false},"maxItems":100,"description":"Up to 100 field refusals evaluated against the organization's current policy. No free-form message or submitted value is emitted."}},"additionalProperties":false},"AgendaInvalidAvailabilityWindowFailure":{"type":"object","description":"Availability windows must be positive and at most 31 days.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_AVAILABILITY_WINDOW"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidBodyFailure":{"type":"object","description":"The request body could not be read. Send valid uncompressed JSON.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_BODY"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidFileKindFailure":{"type":"object","description":"Select a supported attachment kind.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_FILE_KIND"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidFileNameFailure":{"type":"object","description":"Provide a valid attachment filename.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_FILE_NAME"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidHoldPayloadFailure":{"type":"object","description":"The held slot is malformed.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_HOLD_PAYLOAD"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidIdTokenFailure":{"type":"object","description":"Provide a valid identity token.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_ID_TOKEN"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidJsonFailure":{"type":"object","description":"Send a valid JSON document.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_JSON"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidPatientFieldsFailure":{"type":"object","description":"Correct the indicated patient fields before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_PATIENT_FIELDS"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailureData"}}},"AgendaInvalidPatientFieldsFailureData":{"type":"object","required":["issues"],"properties":{"issues":{"type":"array","items":{"type":"object","required":["code","path"],"properties":{"code":{"anyOf":[{"type":"string","const":"REQUIRED_FIELD"},{"type":"string","const":"UNKNOWN_DOCUMENT_TYPE"},{"type":"string","const":"UNKNOWN_CUSTOM_FIELD"},{"type":"string","const":"INVALID_CUSTOM_FIELD"}],"description":"Finite organization-policy refusal. Resolve the named field and retry; submitted values are never included."},"path":{"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"integer","minimum":0,"maximum":10000}]},"maxItems":8,"description":"Path to the rejected input field, with at most eight segments. Unknown custom keys are represented by their parent fields path."}},"additionalProperties":false},"maxItems":100,"description":"Up to 100 field refusals evaluated against the organization's current policy. No free-form message or submitted value is emitted."}},"additionalProperties":false},"AgendaInvalidSlotTokenFailure":{"type":"object","description":"Request a fresh available slot before booking.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_SLOT_TOKEN"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaInvalidWindowFailure":{"type":"object","description":"Provide a positive time window within the supported range.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_WINDOW"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaListAgentLocationsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentLocationsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentLocationsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListAgentLocationsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentLocationsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentLocationsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListAgentLocationsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentLocationsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentLocationsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListAgentLocationsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentLocationsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentLocationsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListAgentLocationsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentLocationsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentLocationsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListAgentPatientAppointmentsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentPatientAppointmentsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListAgentPatientAppointmentsBody":{"type":"object","properties":{"documentNumber":{"type":"string","description":"Exact patient document number; normalized for matching, with documentType needed when multiple types share the number."},"documentType":{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"},"document":{"type":"string","deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},"AgendaListAgentPatientAppointmentsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentPatientAppointmentsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListAgentPatientAppointmentsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentPatientAppointmentsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListAgentPatientAppointmentsResult":{"type":"object","required":["appointments","found"],"properties":{"appointments":{"type":"array","items":{"type":"object","required":["endsAt","guidance","id","offeringId","resourceIds","startsAt","status","version"],"properties":{"endsAt":{"type":"string","description":"Appointment end as an ISO instant."},"guidance":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentGuidance"},{"type":"null"}],"description":"Current arrival guidance for upcoming appointments; null for past appointments or absent projection."},"id":{"type":"string","description":"Appointment identifier used to read, cancel or reschedule the selected booking."},"offeringId":{"anyOf":[{"type":"string","description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Offering recorded on the appointment; null when the appointment has no linked offering."},"resourceIds":{"type":"array","items":{"type":"string"},"description":"Agenda identifiers allocated to this appointment."},"startsAt":{"type":"string","description":"Appointment start as an ISO instant."},"status":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}],"description":"Current appointment lifecycle state; cancelled and completed appointments cannot regain capacity through a status change."},"version":{"type":"number","description":"Current appointment version used by guarded cancellation and rescheduling."}},"additionalProperties":false},"description":"Appointments for the uniquely identified patient, newest first; empty when the document is absent or ambiguous."},"found":{"type":"boolean","description":"Whether an exact document match exists; a true value may still require document-type disambiguation."},"patient":{"type":"object","required":["addressLine","alert","archivedAt","birthDate","city","createdAt","document","documentNumber","documentType","email","entity","fields","gender","id","name","object","phone","updatedAt","version","cancelled","lastAt","nextAt","noShow","total"],"properties":{"addressLine":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient street address as recorded by staff; null when unknown."},"alert":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Staff-visible patient care warning; null when none is recorded."},"archivedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO instant when the record was archived; null while active. Archived records remain readable by id."},"birthDate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient date of birth as YYYY-MM-DD; null when unknown."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient municipality as written by staff, not a geographic code; null when unknown."},"createdAt":{"type":"string","description":"ISO instant when the patient record was created."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."},"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Normalized patient document number; null when no document is recorded. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient email address for enabled appointment notices; null when unknown."},"entity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient payer or insurer as named by the clinic; null when unknown. It is unrelated to the authenticated organization."},"fields":{"type":"object","patternProperties":{"^.*$":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"description":"Custom patient values keyed by the organization's configured field keys; values retain their declared string, number or boolean type."},"gender":{"anyOf":[{"anyOf":[{"type":"string","const":"male"},{"type":"string","const":"female"},{"type":"string","const":"other"},{"type":"string","const":"unknown"}]},{"type":"null"}],"description":"FHIR administrative gender recorded for registration; null when unknown."},"id":{"type":"string","description":"Identifier of this patient record within the verified organization."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"object":{"type":"string","const":"scheduling.patient","description":"Discriminator identifying the scheduling.patient response shape."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient contact phone, preserving its entered formatting; null when unknown."},"updatedAt":{"type":"string","description":"ISO instant of the latest patient record change."},"version":{"type":"number","description":"Current patient record version; send it as expectedVersion for a compare-and-set edit."},"cancelled":{"type":"number","description":"Number of this patient's nondeleted appointments currently cancelled."},"lastAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Latest past appointment start as an ISO instant, excluding cancelled appointments; null when none exists."},"nextAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Earliest upcoming open appointment start as an ISO instant; null when none exists."},"noShow":{"type":"number","description":"Number of this patient's nondeleted appointments currently marked as no-show."},"total":{"type":"number","description":"Number of this patient's nondeleted appointments across all statuses."}},"additionalProperties":false,"description":"Current patient record and appointment summary within the verified organization."},"patients":{"type":"array","items":{"type":"object","required":["document","documentNumber","documentType","id","name"],"properties":{"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."},"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Matched patient’s normalized document number; null when absent from the record."},"documentType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Matched patient’s organization document-type code; use it to resolve a shared document number."},"id":{"type":"string","description":"Patient record identifier belonging to the verified organization."},"name":{"type":"string","description":"Patient display name for asking which matching document type applies."}},"additionalProperties":false},"description":"Candidate patients when an exact document number matches multiple document types; omitted after unique identification."}},"additionalProperties":false},"AgendaListAgentPatientAppointmentsResultResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsResult"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentPatientAppointmentsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentPatientAppointmentsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListAgentPatientAppointmentsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAgentPatientAppointmentsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListAppointmentsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAppointmentsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAppointmentsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListAppointmentsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAppointmentsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAppointmentsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListAppointmentsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAppointmentsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAppointmentsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListAppointmentsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAppointmentsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAppointmentsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListAppointmentsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListAppointmentsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListAppointmentsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListLocationsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListLocationsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListLocationsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListLocationsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListLocationsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListLocationsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListLocationsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListLocationsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListLocationsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListLocationsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListLocationsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListLocationsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListLocationsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListLocationsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListLocationsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListOfferingsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListOfferingsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListOfferingsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListOfferingsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListOfferingsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListOfferingsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListOfferingsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListOfferingsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListOfferingsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListOfferingsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListOfferingsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListOfferingsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListOfferingsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListOfferingsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListOfferingsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListResourcesBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListResourcesBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListResourcesBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListResourcesConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListResourcesConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListResourcesConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListResourcesForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListResourcesForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListResourcesForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListResourcesServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListResourcesServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListResourcesServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListResourcesUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListResourcesUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListResourcesUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListScheduleRulesBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListScheduleRulesBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListScheduleRulesBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListScheduleRulesConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListScheduleRulesConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListScheduleRulesConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListScheduleRulesForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListScheduleRulesForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListScheduleRulesForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListScheduleRulesServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListScheduleRulesServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListScheduleRulesServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListScheduleRulesUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListScheduleRulesUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListScheduleRulesUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListServicesBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListServicesBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListServicesBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListServicesConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListServicesConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListServicesConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListServicesForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListServicesForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListServicesForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListServicesServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListServicesServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListServicesServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListServicesUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListServicesUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListServicesUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaListWaitlistBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListWaitlistBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListWaitlistBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaListWaitlistConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListWaitlistConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListWaitlistConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaListWaitlistForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListWaitlistForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListWaitlistForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaListWaitlistServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListWaitlistServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListWaitlistServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaListWaitlistUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaListWaitlistUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaListWaitlistUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaLocation":{"type":"object","required":["address","city","details","id","name","object","status","timezone","updatedAt","version"],"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Street address displayed with this clinic site; null when not configured."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City displayed with this clinic site; null when not configured."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"id":{"type":"string","description":"Stable loc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"object":{"type":"string","const":"scheduling.location","description":"Stable resource discriminator identifying the response object kind."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local working hours, appointment dates and age eligibility."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."}},"additionalProperties":false},"AgendaLocationPage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaLocation"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaLocationPageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaLocationPage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaLocationVersionMismatchFailure":{"type":"object","description":"The site changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["LOCATION_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaNearestSlotPage":{"type":"object","required":["data","object","generatedAt","nextFrom","searchedUntil","truncatedOfferings","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaSlot"},"description":"Earliest signed slots in global time order or grouped by offering, according to the requested grouping."},"object":{"type":"string","const":"list","description":"Stable discriminator identifying the shape of this scheduling response."},"generatedAt":{"type":"string","description":"Instant when this response was assembled; not a validity guarantee for returned capacity."},"nextFrom":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Continue first-availability search from this instant; null when the returned search has no continuation."},"searchedUntil":{"type":"string","description":"End instant of the availability window actually examined by this request."},"truncatedOfferings":{"type":"boolean","description":"True when the bounded search left eligible offerings or agendas unexamined."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Cursors at this page's first and last slot: nextCursor reads the slots after it, previousCursor (with direction backward) the ones before it. group offering answers one page."}},"additionalProperties":false},"AgendaNearestSlotPageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaNearestSlotPage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaNotFileUploaderFailure":{"type":"object","description":"Only the uploader may delete this attachment.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["NOT_FILE_UPLOADER"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaNotNoteAuthorFailure":{"type":"object","description":"Only the author may edit or delete this note.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["NOT_NOTE_AUTHOR"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaNotificationSettingsVersionMismatchFailure":{"type":"object","description":"Notification settings changed; reload before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["NOTIFICATION_SETTINGS_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaNotificationsNotSetUpFailure":{"type":"object","description":"Patient emails need the notifications module turned on.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["NOTIFICATIONS_NOT_SET_UP"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaOffering":{"type":"object","required":["bookingHorizonDays","bufferAfterMinutes","bufferBeforeMinutes","capacity","details","durationMinutes","id","minNoticeMinutes","name","object","resourceRequirements","schemaVersion","serviceId","slotIntervalMinutes","status","updatedAt","version"],"properties":{"bookingHorizonDays":{"type":"integer","minimum":1,"maximum":730,"description":"Farthest number of days ahead that this offering can be booked."},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":1440,"description":"Resource occupation added after the visible appointment, in minutes."},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":1440,"description":"Resource occupation added before the visible appointment, in minutes."},"capacity":{"type":"integer","minimum":1,"maximum":10000,"description":"Legacy offering concurrency limit when above one and details.maxConcurrent is absent; one defers to resource capacity."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"durationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Visible appointment duration for this offering, in minutes; resource buffers apply separately."},"id":{"type":"string","description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":525600,"description":"Minimum advance notice in minutes before this offering can be booked."},"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name of this catalog or configuration record."},"object":{"type":"string","const":"scheduling.offering","description":"Stable resource discriminator identifying the response object kind."},"resourceRequirements":{"type":"array","items":{"type":"object","required":["alternatives","kind","quantity","required"],"properties":{"alternatives":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":100,"default":[],"description":"Explicit resource alternatives for this requirement; an empty list allows any resource of the required kind."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Declared domain kind of this record or configuration element."},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1,"description":"Number of resources of this kind required by one booking."},"required":{"type":"boolean","default":true,"description":"Whether this resource requirement must be satisfied for the booking to proceed."}},"additionalProperties":false},"maxItems":30,"description":"Resource kinds, quantities and explicit alternatives needed by this offering."},"schemaVersion":{"type":"number","const":1,"description":"Format version of this resource contract, distinct from its persisted record version."},"serviceId":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"slotIntervalMinutes":{"type":"integer","minimum":5,"maximum":240,"description":"Minute spacing between candidate appointment start times."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."}},"additionalProperties":false},"AgendaOfferingPage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaOffering"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaOfferingPageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaOfferingPage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaOfferingResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaOffering"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaOfferingVersionMismatchFailure":{"type":"object","description":"The offering changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["OFFERING_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaOrganizationVersionMismatchFailure":{"type":"object","description":"The organization changed; reload before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ORGANIZATION_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaOriginNotAllowedFailure":{"type":"object","description":"This request origin is not allowed.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["ORIGIN_NOT_ALLOWED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaOverbookOutOfRangeFailure":{"type":"object","description":"An overbooked appointment must start between yesterday and the booking horizon.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["OVERBOOK_OUT_OF_RANGE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaOverbookUnavailableFailure":{"type":"object","description":"No active agenda can take this appointment.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["OVERBOOK_UNAVAILABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaPatientArchivedFailure":{"type":"object","description":"Restore the patient before this action.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PATIENT_ARCHIVED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaPatientDocumentTakenFailure":{"type":"object","description":"Another patient has that document.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PATIENT_DOCUMENT_TAKEN"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaPatientEmailRequiredFailure":{"type":"object","description":"Record the patient's email before this action.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PATIENT_EMAIL_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaPatientIdentity":{"type":"object","required":["document","documentNumber","documentType","name"],"properties":{"document":{"anyOf":[{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Z0-9]+$"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."},"documentNumber":{"anyOf":[{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Z0-9]+$"},{"type":"null"}],"description":"Normalized patient document number; null when no document is recorded. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","pattern":"^[A-Z][A-Z0-9]{0,9}$","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Patient display name with surrounding whitespace removed."}},"additionalProperties":false},"AgendaPatientVersionMismatchFailure":{"type":"object","description":"The patient changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PATIENT_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaPayerNameTakenFailure":{"type":"object","description":"Another payer already has that name.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PAYER_NAME_TAKEN"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaPayerStaffOnlyFailure":{"type":"object","description":"This payer requires booking by the organization team. Add the patient to the waitlist for review.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PAYER_STAFF_ONLY"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaPayerVersionMismatchFailure":{"type":"object","description":"The payer changed; reload before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PAYER_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaProfileVersionMismatchFailure":{"type":"object","description":"The profile changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PROFILE_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaProviderDisabledFailure":{"type":"object","description":"Enable the provider integration before using it.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["PROVIDER_DISABLED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRecallAlreadyActiveFailure":{"type":"object","description":"The patient already has an active recall for this service.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RECALL_ALREADY_ACTIVE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRecallMonthPassedFailure":{"type":"object","description":"The recall's month has already passed.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RECALL_MONTH_PASSED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRecallVersionMismatchFailure":{"type":"object","description":"The recall changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RECALL_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRecallVisitInFutureFailure":{"type":"object","description":"The last visit must be a past date.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RECALL_VISIT_IN_FUTURE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRecallVisitRequiredFailure":{"type":"object","description":"Enter the last visit: there is no attended appointment of this service for the patient.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RECALL_VISIT_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRecordNotFoundError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRecordNotFoundFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRecordNotFoundFailure":{"type":"object","description":"The requested record does not exist.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RECORD_NOT_FOUND"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRemovalJobConflictFailure":{"type":"object","description":"A removal is already active, or this idempotency key belongs to another decision.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["REMOVAL_JOB_CONFLICT"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRemovalWorkflowUnavailableFailure":{"type":"object","description":"Durable removal is unavailable here; use the bounded manual removal operations.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["REMOVAL_WORKFLOW_UNAVAILABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaReplaceScheduleRulesBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaReplaceScheduleRulesBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaReplaceScheduleRulesBody":{"type":"object","required":["expectedRules","rules"],"properties":{"expectedRules":{"type":"array","items":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string","description":"Stable sch-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"version":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails when another writer has changed this record."}},"additionalProperties":false},"maxItems":400,"description":"Identifiers and versions of the complete schedule loaded by the editor; concurrent changes reject the replacement."},"rules":{"type":"array","items":{"type":"object","required":["kind"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Last local date on which this weekly band applies; null means no upper date bound."},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"default":[],"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."}},"additionalProperties":false},"maxItems":400,"description":"Schedule bands or profile policy rules owned by this configuration."}},"additionalProperties":false},"AgendaReplaceScheduleRulesConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaReplaceScheduleRulesConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaReplaceScheduleRulesForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaReplaceScheduleRulesForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaReplaceScheduleRulesResult":{"type":"object","required":["data","object"],"properties":{"data":{"type":"array","items":{"type":"object","required":["date","effectiveFrom","effectiveTo","endTime","from","id","kind","object","resourceId","schemaVersion","startTime","timezone","to","updatedAt","version","weekdays"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last local date on which this weekly band applies; null means no upper date bound."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"id":{"type":"string","description":"Stable sch-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"object":{"type":"string","const":"scheduling.schedule_rule","description":"Stable resource discriminator identifying the response object kind."},"resourceId":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"schemaVersion":{"type":"number","const":1,"description":"Format version of this resource contract, distinct from its persisted record version."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local working hours, appointment dates and age eligibility."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."}},"additionalProperties":false},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a complete resource list response."}},"additionalProperties":false},"AgendaReplaceScheduleRulesResultResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesResult"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaReplaceScheduleRulesServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaReplaceScheduleRulesServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaReplaceScheduleRulesUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaReplaceScheduleRulesUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaReportNotificationsDisabledFailure":{"type":"object","description":"Enable the notifications module before sending a daily agenda.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["REPORT_NOTIFICATIONS_DISABLED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaReportRecipientsRequiredFailure":{"type":"object","description":"No eligible organization owner or additional delivery address is available for this agenda.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["REPORT_RECIPIENTS_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaReportSettingsVersionMismatchFailure":{"type":"object","description":"Report settings changed; reload before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["REPORT_SETTINGS_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaRescheduleAgentAppointmentBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAgentAppointmentBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaRescheduleAgentAppointmentBody":{"type":"object","additionalProperties":false,"properties":{"slotToken":{"type":"string","description":"Exact signed slot token confirmed by the person; the slot must belong to the appointment’s existing service.","minLength":20},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"required":["slotToken"]},"AgendaRescheduleAgentAppointmentConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAgentAppointmentConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaRescheduleAgentAppointmentForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAgentAppointmentForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaRescheduleAgentAppointmentServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAgentAppointmentServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaRescheduleAgentAppointmentUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAgentAppointmentUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaRescheduleAppointmentBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAppointmentBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaRescheduleAppointmentBody":{"type":"object","additionalProperties":false,"properties":{"bookingChannel":{"type":"string","description":"Who moves it, as when booking: \"agent\" (the WhatsApp agent) may not move an appointment of a payer only the team books (`payer_staff_only`)."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"keepService":{"type":"boolean","description":"When true, the new signed slot must belong to the appointment’s original service. Agent rescheduling always enables this restriction."},"notify":{"type":"boolean","description":"false: no \"your appointment moved\" email or WhatsApp, for a correction such as fixing only the service. Reminders still follow the new time."},"reason":{"type":"string","description":"Reason recorded for this scheduling change; null when no reason was supplied."},"slotToken":{"type":"string","description":"Opaque signed token for one exact available slot. Use the returned token unchanged after the patient confirms that time.","minLength":20}},"required":["expectedVersion","slotToken"]},"AgendaRescheduleAppointmentConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAppointmentConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaRescheduleAppointmentForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAppointmentForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaRescheduleAppointmentServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAppointmentServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaRescheduleAppointmentUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaRescheduleAppointmentUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaResource":{"type":"object","required":["capacity","details","id","kind","locationId","name","object","schemaVersion","status","timezone","updatedAt","version"],"properties":{"capacity":{"type":"integer","exclusiveMinimum":0,"description":"Maximum concurrent units this resource or offering can accept."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"id":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Declared domain kind of this record or configuration element."},"locationId":{"anyOf":[{"type":"string","description":"Stable loc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The site it belongs to; null = not tied to one (covers every site).","default":null},"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name of this catalog or configuration record."},"object":{"type":"string","const":"scheduling.resource","description":"Stable resource discriminator identifying the response object kind."},"schemaVersion":{"type":"number","const":1,"description":"Format version of this resource contract, distinct from its persisted record version."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local working hours, appointment dates and age eligibility."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."}},"additionalProperties":false},"AgendaResourceCapacityExceededFailure":{"type":"object","description":"The selected time is no longer available.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RESOURCE_CAPACITY_EXCEEDED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaResourcePage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaResource"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaResourcePageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaResourcePage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaResourceResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaResource"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaResourceVersionMismatchFailure":{"type":"object","description":"The resource changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RESOURCE_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSameOfferingFailure":{"type":"object","description":"An agenda cannot take its own appointments.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SAME_OFFERING"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSameResourceFailure":{"type":"object","description":"An agenda cannot take its own appointments.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SAME_RESOURCE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSameServiceFailure":{"type":"object","description":"A service cannot be merged into itself.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SAME_SERVICE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaScheduleChangedFailure":{"type":"object","description":"The selected time no longer matches the current schedule.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SCHEDULE_CHANGED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaScheduleRuleAgendaMismatchFailure":{"type":"object","description":"The schedule rule belongs to another agenda.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SCHEDULE_RULE_AGENDA_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaScheduleRuleExpectedVersionRequiredFailure":{"type":"object","description":"Expected version is required for an update.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaScheduleRulePage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"type":"object","required":["date","effectiveFrom","effectiveTo","endTime","from","id","kind","object","resourceId","schemaVersion","startTime","timezone","to","updatedAt","version","weekdays"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last local date on which this weekly band applies; null means no upper date bound."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"id":{"type":"string","description":"Stable sch-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"object":{"type":"string","const":"scheduling.schedule_rule","description":"Stable resource discriminator identifying the response object kind."},"resourceId":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"schemaVersion":{"type":"number","const":1,"description":"Format version of this resource contract, distinct from its persisted record version."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local working hours, appointment dates and age eligibility."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."}},"additionalProperties":false},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaScheduleRulePageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaScheduleRulePage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaScheduleRuleVersionMismatchFailure":{"type":"object","description":"The schedule rule changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SCHEDULE_RULE_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaScheduleRulesChangedFailure":{"type":"object","description":"The schedule changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SCHEDULE_RULES_CHANGED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSchedulingJsonValue":{"anyOf":[{"type":"string","maxLength":65536},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue"},"maxItems":500},{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue"}},"maxProperties":500,"additionalProperties":false}]},"AgendaSearchAppointmentsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchAppointmentsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchAppointmentsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaSearchAppointmentsBody":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":500,"default":25,"description":"Maximum number of appointment records returned by one page; defaults to 25 and cannot exceed 500."},"bookingChannel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter the recorded booking channel; null selects appointments whose channel was never recorded."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of whoever booked it."},"createdAfter":{"type":"string","format":"date-time","description":"Inclusive creation instant, independent of the appointment date. Pair with createdBefore; at most 93 days."},"createdBefore":{"type":"string","format":"date-time","description":"Exclusive creation instant. Use for appointments generated during a period, including future appointments."},"from":{"type":"string","format":"date-time","description":"Beginning of the appointment range; must be paired with to unless a patient search is supplied."},"locationId":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Held on an agenda of this site, like `appointmentReport`."},"order":{"anyOf":[{"type":"string","const":"desc"},{"type":"string","const":"asc"}],"default":"desc","description":"Ascending or descending order within the selected appointment sort key."},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The payer's name as recorded in the intake."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"description":"Only appointments marked priority (\"urgent\"), or only the rest."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The reason given for a cancellation or no-show."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only appointments assigned to this agenda in the authenticated organization."},"resourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"minItems":1,"maxItems":200,"description":"Held on any of these agendas (at most 200)."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"sort":{"anyOf":[{"type":"string","const":"createdAt"},{"type":"string","const":"startsAt"}],"default":"createdAt","description":"createdAt uses agenda overlap semantics; startsAt selects appointments beginning inside the report window."},"status":{"anyOf":[{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},{"type":"array","items":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},"minItems":1,"maxItems":8}],"description":"One status, or any of several."},"statusChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of whoever made the latest status change."},"to":{"type":"string","format":"date-time","description":"End of the appointment range; must be paired with from."},"q":{"type":"string","description":"Patient name or document search text; provide this or a complete instant range."},"query":{"type":"string","deprecated":true,"description":"Deprecated: use `q`. Answered until 2027-01-28."}},"additionalProperties":false},"AgendaSearchAppointmentsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchAppointmentsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchAppointmentsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaSearchAppointmentsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchAppointmentsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchAppointmentsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaSearchAppointmentsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchAppointmentsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchAppointmentsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaSearchAppointmentsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchAppointmentsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchAppointmentsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaSearchBookableOfferingsBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchBookableOfferingsBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaSearchBookableOfferingsConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchBookableOfferingsConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaSearchBookableOfferingsForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchBookableOfferingsForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaSearchBookableOfferingsServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchBookableOfferingsServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaSearchBookableOfferingsUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSearchBookableOfferingsUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaService":{"type":"object","required":["defaultDurationMinutes","details","id","name","object","schemaVersion","status","updatedAt","version"],"properties":{"defaultDurationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Service duration in minutes used as the default when configuring an offering."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"id":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"name":{"type":"string","minLength":1,"maxLength":160,"description":"Display name of this catalog or configuration record."},"object":{"type":"string","const":"scheduling.service","description":"Stable resource discriminator identifying the response object kind."},"schemaVersion":{"type":"number","const":1,"description":"Format version of this resource contract, distinct from its persisted record version."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."}},"additionalProperties":false},"AgendaServiceCapacityExceededFailure":{"type":"object","description":"This service already has as many appointments as it can run at once at that time.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SERVICE_CAPACITY_EXCEEDED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaServiceChangedFailure":{"type":"object","description":"The new slot belongs to another service.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SERVICE_CHANGED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaServicePage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaService"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaServicePageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaServicePage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaServiceResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaService"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaServiceVersionMismatchFailure":{"type":"object","description":"The service changed after it was loaded.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SERVICE_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSlot":{"type":"object","required":["endsAt","object","offeringId","resourceIds","slotToken","startsAt","timezone"],"properties":{"endsAt":{"type":"string","format":"date-time","description":"Exclusive end of the visible appointment or slot, before allocation buffers are added."},"object":{"type":"string","const":"scheduling.slot","description":"scheduling.slot identifies this signed available slot."},"offeringId":{"type":"string","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Required service offering whose schedule and capacity produced this signed slot."},"resourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"minItems":1,"description":"Agendas assigned to the appointment or slot, including required professionals, rooms and equipment."},"slotToken":{"type":"string","description":"Opaque signed token for one exact available slot. Use the returned token unchanged after the patient confirms that time.","minLength":20},"startsAt":{"type":"string","format":"date-time","description":"Visible appointment or slot start instant, including an explicit timezone offset."},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local dates and agenda working hours."}},"additionalProperties":false},"AgendaSlotOfferAlreadyOpenFailure":{"type":"object","description":"This waiting-list entry already has an open slot offer.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SLOT_OFFER_ALREADY_OPEN"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSlotOfferClosedFailure":{"type":"object","description":"The slot offer is no longer open.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SLOT_OFFER_CLOSED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSlotOfferMismatchFailure":{"type":"object","description":"The slot belongs to another service or agenda than the entry asks for.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SLOT_OFFER_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSlotOfferNotAllowedFailure":{"type":"object","description":"Only an open waiting-list entry of a registered patient can receive a slot offer.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SLOT_OFFER_NOT_ALLOWED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSlotOfferTooSoonFailure":{"type":"object","description":"The slot starts too soon to hold it for the patient; offer a later one.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SLOT_OFFER_TOO_SOON"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaSlotPage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaSlot"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaSlotPageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaSlotPage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaSlotRequiredFailure":{"type":"object","description":"A hold or slot token is required.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["SLOT_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaStudyLengthNotOfferedFailure":{"type":"object","description":"Select one of the study lengths this agenda offers.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["STUDY_LENGTH_NOT_OFFERED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaStudyOverbookingNotAllowedFailure":{"type":"object","description":"This study has an explicit capacity limit and requires an available ordinary slot.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["STUDY_OVERBOOKING_NOT_ALLOWED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaTargetInactiveFailure":{"type":"object","description":"An archived agenda takes no appointments.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["TARGET_INACTIVE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaUnexpectedQueryParametersFailure":{"type":"object","description":"Remove query parameters not declared by this operation.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UNEXPECTED_QUERY_PARAMETERS"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaUnsupportedContentEncodingFailure":{"type":"object","description":"Send an uncompressed request body.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UNSUPPORTED_CONTENT_ENCODING"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaUnsupportedFileTypeFailure":{"type":"object","description":"Select a supported attachment file type.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UNSUPPORTED_FILE_TYPE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaUpdateAppointmentStatusBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateAppointmentStatusBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaUpdateAppointmentStatusBody":{"type":"object","additionalProperties":false,"properties":{"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"reason":{"type":"string","description":"Why: kept for a cancellation or a no-show, ignored otherwise."},"status":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}],"description":"Current appointment lifecycle state; cancelled and completed appointments cannot regain capacity through a status change."}},"required":["expectedVersion","status"]},"AgendaUpdateAppointmentStatusConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateAppointmentStatusConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaUpdateAppointmentStatusForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateAppointmentStatusForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaUpdateAppointmentStatusServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateAppointmentStatusServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaUpdateAppointmentStatusUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateAppointmentStatusUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaUpdateOfferingBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateOfferingBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateOfferingBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaUpdateOfferingBody":{"type":"object","additionalProperties":false,"properties":{"bookingHorizonDays":{"type":"integer","minimum":1,"maximum":730,"description":"Farthest number of days ahead that this offering can be booked."},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":1440,"description":"Resource occupation added after the visible appointment, in minutes."},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":1440,"description":"Resource occupation added before the visible appointment, in minutes."},"capacity":{"type":"integer","minimum":1,"maximum":10000,"description":"Legacy concurrent-session limit above 1; details.maxConcurrent takes precedence. The historical default 1 delegates to resource capacity."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"durationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Visible appointment duration for this offering, in minutes; resource buffers apply separately."},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":525600,"description":"Minimum advance notice in minutes before this offering can be booked."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"slotIntervalMinutes":{"type":"integer","minimum":5,"maximum":240,"description":"Minute spacing between candidate appointment start times."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"resourceRequirements":{"type":"array","items":{"type":"object","required":["kind"],"properties":{"alternatives":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":100,"default":[],"description":"Explicit resource alternatives for this requirement; an empty list allows any resource of the required kind."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Declared domain kind of this record or configuration element."},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1,"description":"Number of resources of this kind required by one booking."},"required":{"type":"boolean","default":true,"description":"Whether this resource requirement must be satisfied for the booking to proceed."}},"additionalProperties":false},"maxItems":30,"description":"Complete replacement for future bookings. Existing appointment and hold allocations stay unchanged."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."}},"required":["expectedVersion"]},"AgendaUpdateOfferingConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateOfferingConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateOfferingConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaUpdateOfferingForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateOfferingForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateOfferingForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaUpdateOfferingServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateOfferingServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateOfferingServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaUpdateOfferingUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateOfferingUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateOfferingUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaUpdateResourceBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateResourceBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateResourceBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaUpdateResourceBody":{"type":"object","additionalProperties":false,"properties":{"capacity":{"type":"integer","exclusiveMinimum":0,"description":"Maximum simultaneous capacity units available on this resource; each booking consumes its declared share.","maximum":10000},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Resource category used to match booking requirements, such as practitioner, room or equipment."},"locationId":{"anyOf":[{"type":"string","description":"Stable loc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Clinic site associated with this record; null means it is not tied to a site."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."}},"required":["expectedVersion"]},"AgendaUpdateResourceConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateResourceConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateResourceConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaUpdateResourceForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateResourceForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateResourceForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaUpdateResourceServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateResourceServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateResourceServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaUpdateResourceUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateResourceUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateResourceUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaUpdateScheduleRuleBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateScheduleRuleBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaUpdateScheduleRuleBody":{"type":"object","required":["kind","timezone"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Last local date on which this weekly band applies; null means no upper date bound."},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"default":[],"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The update fails if another writer has changed the rule since."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"The rule's agenda. A rule cannot move to another agenda."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."}},"additionalProperties":false},"AgendaUpdateScheduleRuleConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateScheduleRuleConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaUpdateScheduleRuleForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateScheduleRuleForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaUpdateScheduleRuleResult":{"type":"object","required":["date","effectiveFrom","effectiveTo","endTime","from","id","kind","object","resourceId","schemaVersion","startTime","timezone","to","updatedAt","version","weekdays"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last local date on which this weekly band applies; null means no upper date bound."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"id":{"type":"string","description":"Stable sch-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"object":{"type":"string","const":"scheduling.schedule_rule","description":"Stable resource discriminator identifying the response object kind."},"resourceId":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"schemaVersion":{"type":"number","const":1,"description":"Format version of this resource contract, distinct from its persisted record version."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."},"timezone":{"type":"string","minLength":1,"maxLength":120,"description":"IANA timezone used to interpret local working hours, appointment dates and age eligibility."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"updatedAt":{"type":"string","format":"date-time","description":"ISO 8601 instant with an explicit UTC or local offset; local-offset inputs are accepted."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Persisted revision used to detect concurrent edits."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."}},"additionalProperties":false},"AgendaUpdateScheduleRuleResultResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleResult"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateScheduleRuleServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateScheduleRuleServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaUpdateScheduleRuleUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateScheduleRuleUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaUpdateServiceBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateServiceBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateServiceBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaUpdateServiceBody":{"type":"object","additionalProperties":false,"properties":{"defaultDurationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Default appointment duration for this service, in minutes. Each offering can specify its own duration."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."}},"required":["expectedVersion"]},"AgendaUpdateServiceConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateServiceConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateServiceConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaUpdateServiceForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateServiceForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateServiceForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaUpdateServiceServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateServiceServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateServiceServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaUpdateServiceUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateServiceUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateServiceUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaUpdateWaitlistEntryBadRequestError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryBadRequestFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateWaitlistEntryBadRequestFailure":{"oneOf":[{"$ref":"#/components/schemas/InvalidInputFailure"},{"$ref":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure"},{"$ref":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure"},{"$ref":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure"},{"$ref":"#/components/schemas/AgendaInvalidPatientFieldsFailure"},{"$ref":"#/components/schemas/AgendaDurationChangeOffFailure"},{"$ref":"#/components/schemas/AgendaDurationNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaStudyLengthNotOfferedFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileKindFailure"},{"$ref":"#/components/schemas/AgendaInvalidFileNameFailure"},{"$ref":"#/components/schemas/AgendaInvalidIdTokenFailure"},{"$ref":"#/components/schemas/AgendaInvalidJsonFailure"},{"$ref":"#/components/schemas/AgendaInvalidWindowFailure"},{"$ref":"#/components/schemas/AgendaUnexpectedQueryParametersFailure"},{"$ref":"#/components/schemas/AgendaInvalidBodyFailure"}],"discriminator":{"propertyName":"code","mapping":{"INVALID_INPUT":"#/components/schemas/InvalidInputFailure","WAITLIST_SERVICE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistServiceUnavailableFailure","WAITLIST_RESOURCE_UNAVAILABLE":"#/components/schemas/AgendaWaitlistResourceUnavailableFailure","WAITLIST_RESOURCE_AMBIGUOUS":"#/components/schemas/AgendaWaitlistResourceAmbiguousFailure","INVALID_APPOINTMENT_INTAKE":"#/components/schemas/AgendaInvalidAppointmentIntakeFailure","INVALID_PATIENT_FIELDS":"#/components/schemas/AgendaInvalidPatientFieldsFailure","DURATION_CHANGE_OFF":"#/components/schemas/AgendaDurationChangeOffFailure","DURATION_NOT_ALLOWED":"#/components/schemas/AgendaDurationNotAllowedFailure","STUDY_LENGTH_NOT_OFFERED":"#/components/schemas/AgendaStudyLengthNotOfferedFailure","INVALID_FILE_KIND":"#/components/schemas/AgendaInvalidFileKindFailure","INVALID_FILE_NAME":"#/components/schemas/AgendaInvalidFileNameFailure","INVALID_ID_TOKEN":"#/components/schemas/AgendaInvalidIdTokenFailure","INVALID_JSON":"#/components/schemas/AgendaInvalidJsonFailure","INVALID_WINDOW":"#/components/schemas/AgendaInvalidWindowFailure","UNEXPECTED_QUERY_PARAMETERS":"#/components/schemas/AgendaUnexpectedQueryParametersFailure","INVALID_BODY":"#/components/schemas/AgendaInvalidBodyFailure"}}},"AgendaUpdateWaitlistEntryBody":{"type":"object","additionalProperties":false,"properties":{"appointmentId":{"anyOf":[{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Appointment associated with this waiting-list entry; null clears the association."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"description":"HTTPS link to the originating Arbol conversation on an admitted product hostname; null when absent."},"preferences":{"type":"object","required":[],"properties":{"from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"From this local date (YYYY-MM-DD).","default":null},"times":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"Martes y jueves en la mañana\".","default":null},"to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Until this local date (YYYY-MM-DD).","default":null}},"additionalProperties":false},"resourceId":{"anyOf":[{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}]},"resourceName":{"type":"string","description":"The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk note attached to the waiting-list entry; null means no note is recorded."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"description":"Whether the waiting-list entry requests normal handling or an urgent appointment."},"status":{"anyOf":[{"type":"string","const":"waiting"},{"type":"string","const":"offered"},{"type":"string","const":"booked"},{"type":"string","const":"cancelled"}],"description":"Current waiting-list state: waiting, contacted, booked, expired or removed."}},"required":["expectedVersion"]},"AgendaUpdateWaitlistEntryConflictError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryConflictFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateWaitlistEntryConflictFailure":{"oneOf":[{"$ref":"#/components/schemas/AgendaPayerStaffOnlyFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotRemindableFailure"},{"$ref":"#/components/schemas/AgendaAppointmentWithoutPatientFailure"},{"$ref":"#/components/schemas/AgendaArbolCatalogTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolConfigurationRequiredFailure"},{"$ref":"#/components/schemas/AgendaNotificationsNotSetUpFailure"},{"$ref":"#/components/schemas/AgendaSameOfferingFailure"},{"$ref":"#/components/schemas/AgendaSameServiceFailure"},{"$ref":"#/components/schemas/AgendaInvalidHoldPayloadFailure"},{"$ref":"#/components/schemas/AgendaHoldNotActiveFailure"},{"$ref":"#/components/schemas/AgendaAppointmentClosedFailure"},{"$ref":"#/components/schemas/AgendaAppointmentVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaAppointmentNotMovableFailure"},{"$ref":"#/components/schemas/AgendaServiceChangedFailure"},{"$ref":"#/components/schemas/AgendaScheduleChangedFailure"},{"$ref":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure"},{"$ref":"#/components/schemas/AgendaServiceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaResourceCapacityExceededFailure"},{"$ref":"#/components/schemas/AgendaOverbookOutOfRangeFailure"},{"$ref":"#/components/schemas/AgendaOverbookUnavailableFailure"},{"$ref":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaInvalidSlotTokenFailure"},{"$ref":"#/components/schemas/AgendaBirthDateRequiredFailure"},{"$ref":"#/components/schemas/AgendaAgeNotEligibleFailure"},{"$ref":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPayerNameTakenFailure"},{"$ref":"#/components/schemas/AgendaPayerVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaLocationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProfileVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaProviderDisabledFailure"},{"$ref":"#/components/schemas/AgendaBindingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaResourceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure"},{"$ref":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaScheduleRulesChangedFailure"},{"$ref":"#/components/schemas/AgendaServiceVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOfferingVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSameResourceFailure"},{"$ref":"#/components/schemas/AgendaTargetInactiveFailure"},{"$ref":"#/components/schemas/AgendaSlotRequiredFailure"},{"$ref":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaOrganizationVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaPatientDocumentTakenFailure"},{"$ref":"#/components/schemas/AgendaPatientVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaDailyReportTooLargeFailure"},{"$ref":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaReportNotificationsDisabledFailure"},{"$ref":"#/components/schemas/AgendaReportRecipientsRequiredFailure"},{"$ref":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaRemovalJobConflictFailure"},{"$ref":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaFollowupDisabledFailure"},{"$ref":"#/components/schemas/AgendaFollowupConsentRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientEmailRequiredFailure"},{"$ref":"#/components/schemas/AgendaPatientArchivedFailure"},{"$ref":"#/components/schemas/AgendaRecallAlreadyActiveFailure"},{"$ref":"#/components/schemas/AgendaRecallMonthPassedFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitRequiredFailure"},{"$ref":"#/components/schemas/AgendaRecallVisitInFutureFailure"},{"$ref":"#/components/schemas/AgendaRecallVersionMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferNotAllowedFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferMismatchFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferTooSoonFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure"},{"$ref":"#/components/schemas/AgendaSlotOfferClosedFailure"}],"discriminator":{"propertyName":"code","mapping":{"PAYER_STAFF_ONLY":"#/components/schemas/AgendaPayerStaffOnlyFailure","APPOINTMENT_NOT_REMINDABLE":"#/components/schemas/AgendaAppointmentNotRemindableFailure","APPOINTMENT_WITHOUT_PATIENT":"#/components/schemas/AgendaAppointmentWithoutPatientFailure","ARBOL_CATALOG_TOO_LARGE":"#/components/schemas/AgendaArbolCatalogTooLargeFailure","ARBOL_CONFIGURATION_REQUIRED":"#/components/schemas/AgendaArbolConfigurationRequiredFailure","NOTIFICATIONS_NOT_SET_UP":"#/components/schemas/AgendaNotificationsNotSetUpFailure","SAME_OFFERING":"#/components/schemas/AgendaSameOfferingFailure","SAME_SERVICE":"#/components/schemas/AgendaSameServiceFailure","INVALID_HOLD_PAYLOAD":"#/components/schemas/AgendaInvalidHoldPayloadFailure","HOLD_NOT_ACTIVE":"#/components/schemas/AgendaHoldNotActiveFailure","APPOINTMENT_CLOSED":"#/components/schemas/AgendaAppointmentClosedFailure","APPOINTMENT_VERSION_MISMATCH":"#/components/schemas/AgendaAppointmentVersionMismatchFailure","APPOINTMENT_NOT_MOVABLE":"#/components/schemas/AgendaAppointmentNotMovableFailure","SERVICE_CHANGED":"#/components/schemas/AgendaServiceChangedFailure","SCHEDULE_CHANGED":"#/components/schemas/AgendaScheduleChangedFailure","INVALID_AVAILABILITY_WINDOW":"#/components/schemas/AgendaInvalidAvailabilityWindowFailure","SERVICE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaServiceCapacityExceededFailure","RESOURCE_CAPACITY_EXCEEDED":"#/components/schemas/AgendaResourceCapacityExceededFailure","OVERBOOK_OUT_OF_RANGE":"#/components/schemas/AgendaOverbookOutOfRangeFailure","OVERBOOK_UNAVAILABLE":"#/components/schemas/AgendaOverbookUnavailableFailure","STUDY_OVERBOOKING_NOT_ALLOWED":"#/components/schemas/AgendaStudyOverbookingNotAllowedFailure","INVALID_SLOT_TOKEN":"#/components/schemas/AgendaInvalidSlotTokenFailure","BIRTH_DATE_REQUIRED":"#/components/schemas/AgendaBirthDateRequiredFailure","AGE_NOT_ELIGIBLE":"#/components/schemas/AgendaAgeNotEligibleFailure","INTAKE_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaIntakeSettingsVersionMismatchFailure","PAYER_NAME_TAKEN":"#/components/schemas/AgendaPayerNameTakenFailure","PAYER_VERSION_MISMATCH":"#/components/schemas/AgendaPayerVersionMismatchFailure","LOCATION_VERSION_MISMATCH":"#/components/schemas/AgendaLocationVersionMismatchFailure","PROFILE_VERSION_MISMATCH":"#/components/schemas/AgendaProfileVersionMismatchFailure","PROVIDER_DISABLED":"#/components/schemas/AgendaProviderDisabledFailure","BINDING_VERSION_MISMATCH":"#/components/schemas/AgendaBindingVersionMismatchFailure","RESOURCE_VERSION_MISMATCH":"#/components/schemas/AgendaResourceVersionMismatchFailure","SCHEDULE_RULE_AGENDA_MISMATCH":"#/components/schemas/AgendaScheduleRuleAgendaMismatchFailure","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED":"#/components/schemas/AgendaScheduleRuleExpectedVersionRequiredFailure","SCHEDULE_RULE_VERSION_MISMATCH":"#/components/schemas/AgendaScheduleRuleVersionMismatchFailure","SCHEDULE_RULES_CHANGED":"#/components/schemas/AgendaScheduleRulesChangedFailure","SERVICE_VERSION_MISMATCH":"#/components/schemas/AgendaServiceVersionMismatchFailure","OFFERING_VERSION_MISMATCH":"#/components/schemas/AgendaOfferingVersionMismatchFailure","SAME_RESOURCE":"#/components/schemas/AgendaSameResourceFailure","TARGET_INACTIVE":"#/components/schemas/AgendaTargetInactiveFailure","SLOT_REQUIRED":"#/components/schemas/AgendaSlotRequiredFailure","ARBOL_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaArbolSettingsVersionMismatchFailure","NOTIFICATION_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaNotificationSettingsVersionMismatchFailure","ORGANIZATION_VERSION_MISMATCH":"#/components/schemas/AgendaOrganizationVersionMismatchFailure","PATIENT_DOCUMENT_TAKEN":"#/components/schemas/AgendaPatientDocumentTakenFailure","PATIENT_VERSION_MISMATCH":"#/components/schemas/AgendaPatientVersionMismatchFailure","DAILY_REPORT_TOO_LARGE":"#/components/schemas/AgendaDailyReportTooLargeFailure","REPORT_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaReportSettingsVersionMismatchFailure","REPORT_NOTIFICATIONS_DISABLED":"#/components/schemas/AgendaReportNotificationsDisabledFailure","REPORT_RECIPIENTS_REQUIRED":"#/components/schemas/AgendaReportRecipientsRequiredFailure","WAITLIST_ENTRY_VERSION_MISMATCH":"#/components/schemas/AgendaWaitlistEntryVersionMismatchFailure","REMOVAL_JOB_CONFLICT":"#/components/schemas/AgendaRemovalJobConflictFailure","FOLLOWUP_SETTINGS_VERSION_MISMATCH":"#/components/schemas/AgendaFollowupSettingsVersionMismatchFailure","FOLLOWUP_DISABLED":"#/components/schemas/AgendaFollowupDisabledFailure","FOLLOWUP_CONSENT_REQUIRED":"#/components/schemas/AgendaFollowupConsentRequiredFailure","PATIENT_EMAIL_REQUIRED":"#/components/schemas/AgendaPatientEmailRequiredFailure","PATIENT_ARCHIVED":"#/components/schemas/AgendaPatientArchivedFailure","RECALL_ALREADY_ACTIVE":"#/components/schemas/AgendaRecallAlreadyActiveFailure","RECALL_MONTH_PASSED":"#/components/schemas/AgendaRecallMonthPassedFailure","RECALL_VISIT_REQUIRED":"#/components/schemas/AgendaRecallVisitRequiredFailure","RECALL_VISIT_IN_FUTURE":"#/components/schemas/AgendaRecallVisitInFutureFailure","RECALL_VERSION_MISMATCH":"#/components/schemas/AgendaRecallVersionMismatchFailure","SLOT_OFFER_NOT_ALLOWED":"#/components/schemas/AgendaSlotOfferNotAllowedFailure","SLOT_OFFER_MISMATCH":"#/components/schemas/AgendaSlotOfferMismatchFailure","SLOT_OFFER_TOO_SOON":"#/components/schemas/AgendaSlotOfferTooSoonFailure","SLOT_OFFER_ALREADY_OPEN":"#/components/schemas/AgendaSlotOfferAlreadyOpenFailure","SLOT_OFFER_CLOSED":"#/components/schemas/AgendaSlotOfferClosedFailure"}}},"AgendaUpdateWaitlistEntryForbiddenError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryForbiddenFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateWaitlistEntryForbiddenFailure":{"oneOf":[{"$ref":"#/components/schemas/ForbiddenFailure"},{"$ref":"#/components/schemas/AgendaIdTokenMismatchFailure"},{"$ref":"#/components/schemas/AgendaNotFileUploaderFailure"},{"$ref":"#/components/schemas/AgendaNotNoteAuthorFailure"},{"$ref":"#/components/schemas/AgendaOriginNotAllowedFailure"}],"discriminator":{"propertyName":"code","mapping":{"FORBIDDEN":"#/components/schemas/ForbiddenFailure","ID_TOKEN_MISMATCH":"#/components/schemas/AgendaIdTokenMismatchFailure","NOT_FILE_UPLOADER":"#/components/schemas/AgendaNotFileUploaderFailure","NOT_NOTE_AUTHOR":"#/components/schemas/AgendaNotNoteAuthorFailure","ORIGIN_NOT_ALLOWED":"#/components/schemas/AgendaOriginNotAllowedFailure"}}},"AgendaUpdateWaitlistEntryServiceUnavailableError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryServiceUnavailableFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateWaitlistEntryServiceUnavailableFailure":{"oneOf":[{"$ref":"#/components/schemas/UpstreamUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolResponseTooLargeFailure"},{"$ref":"#/components/schemas/AgendaArbolUnavailableFailure"},{"$ref":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure"},{"$ref":"#/components/schemas/AgendaArbolRefusedFailure"}],"discriminator":{"propertyName":"code","mapping":{"UPSTREAM_UNAVAILABLE":"#/components/schemas/UpstreamUnavailableFailure","ARBOL_RESPONSE_TOO_LARGE":"#/components/schemas/AgendaArbolResponseTooLargeFailure","ARBOL_UNAVAILABLE":"#/components/schemas/AgendaArbolUnavailableFailure","REMOVAL_WORKFLOW_UNAVAILABLE":"#/components/schemas/AgendaRemovalWorkflowUnavailableFailure","ARBOL_REFUSED":"#/components/schemas/AgendaArbolRefusedFailure"}}},"AgendaUpdateWaitlistEntryUnsupportedMediaTypeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryUnsupportedMediaTypeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpdateWaitlistEntryUnsupportedMediaTypeFailure":{"oneOf":[{"$ref":"#/components/schemas/UnsupportedMediaTypeFailure"},{"$ref":"#/components/schemas/AgendaApplicationJsonRequiredFailure"},{"$ref":"#/components/schemas/AgendaFileContentMismatchFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedContentEncodingFailure"},{"$ref":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}],"discriminator":{"propertyName":"code","mapping":{"UNSUPPORTED_MEDIA_TYPE":"#/components/schemas/UnsupportedMediaTypeFailure","APPLICATION_JSON_REQUIRED":"#/components/schemas/AgendaApplicationJsonRequiredFailure","FILE_CONTENT_MISMATCH":"#/components/schemas/AgendaFileContentMismatchFailure","UNSUPPORTED_CONTENT_ENCODING":"#/components/schemas/AgendaUnsupportedContentEncodingFailure","UNSUPPORTED_FILE_TYPE":"#/components/schemas/AgendaUnsupportedFileTypeFailure"}}},"AgendaUpgradeRequiredError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/AgendaUpgradeRequiredFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaUpgradeRequiredFailure":{"type":"object","description":"Open the live channel with a WebSocket upgrade.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UPGRADE_REQUIRED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaWaitlistEntry":{"type":"object","required":["appointmentId","channel","contactId","conversationUrl","createdAt","createdBy","id","note","object","offeringId","patient","payer","preferences","priority","reason","resourceId","schemaVersion","serviceId","status","updatedAt","version"],"properties":{"appointmentId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The appointment it relates to: a priority to bring forward."},"channel":{"anyOf":[{"type":"string","const":"calendar"},{"type":"string","const":"agent"}],"description":"Who added it: the desk (\"calendar\") or the WhatsApp agent."},"contactId":{"anyOf":[{"type":"string","description":"Opaque Arbol contact reference associated with this booking; Scheduling does not resolve it.","pattern":"^cnt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"External contact reference associated with this booking; null when it has no external contact."},"conversationUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The agent's WhatsApp conversation."},"createdAt":{"type":"string","format":"date-time","description":"Instant when the scheduling record was first created."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of whoever added it; null for older entries."},"id":{"type":"string","pattern":"^wle_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned waiting-list entry identifier."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk note attached to the waiting-list entry; null means no note is recorded."},"object":{"type":"string","const":"scheduling.waitlist_entry","description":"scheduling.waitlist_entry identifies this waiting-list entry."},"offeringId":{"anyOf":[{"type":"string","description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Exact offering requested by this waiting-list entry; null when it targets the service across eligible agendas."},"patient":{"anyOf":[{"type":"object","required":["document","documentNumber","documentType","id","name","phone"],"properties":{"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."},"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number; null when the patient has no recorded document."},"documentType":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Document category paired with the patient document number; null when unrecorded."},"id":{"type":"string","pattern":"^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Registered patient linked to this waiting-list entry."},"name":{"type":"string","description":"Patient name displayed to the scheduling team."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient contact telephone number; null when no number was recorded."}},"additionalProperties":false},{"type":"null"}],"description":"Who is waiting, as their record reads now; null for a contact-only entry."},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The payer the patient named."},"preferences":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Patient availability preferences retained with the waiting-list entry."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"description":"Whether the waiting-list entry requests normal handling or an urgent appointment."},"reason":{"anyOf":[{"type":"string","const":"manual"},{"type":"string","const":"payer_review"},{"type":"string","const":"priority"}],"description":"Added by hand, a payer only the team books, or a priority to bring forward."},"resourceId":{"anyOf":[{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Agenda identifier within the authenticated organization."},"schemaVersion":{"type":"number","const":1,"description":"Revision of the public record shape; separate from the record version used for concurrency control."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"status":{"anyOf":[{"type":"string","const":"waiting"},{"type":"string","const":"offered"},{"type":"string","const":"booked"},{"type":"string","const":"expired"},{"type":"string","const":"cancelled"}],"description":"Current waiting-list state: waiting, contacted, booked, expired or removed."},"updatedAt":{"type":"string","format":"date-time","description":"Instant of the latest change to this scheduling record."},"version":{"type":"integer","exclusiveMinimum":0,"description":"Current record revision; pass it unchanged as expectedVersion for a guarded mutation."}},"additionalProperties":false},"AgendaWaitlistEntryPage":{"type":"object","required":["data","object","pageInfo"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgendaWaitlistEntry"},"description":"Items admitted by this resource contract within the verified organization."},"object":{"type":"string","const":"list","description":"Discriminator for a resource list response."},"pageInfo":{"$ref":"#/components/schemas/PageInfo","description":"Opaque navigation cursors for this page’s stable keyset order."}},"additionalProperties":false},"AgendaWaitlistEntryPageResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaWaitlistEntryPage"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaWaitlistEntryResponse":{"type":"object","description":"A successful answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AgendaWaitlistEntry"},"error":{"const":null},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"AgendaWaitlistEntryVersionMismatchFailure":{"type":"object","description":"The waitlist entry changed; reload before saving.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["WAITLIST_ENTRY_VERSION_MISMATCH"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaWaitlistResourceAmbiguousFailure":{"type":"object","description":"More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["WAITLIST_RESOURCE_AMBIGUOUS"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaWaitlistResourceUnavailableFailure":{"type":"object","description":"The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["WAITLIST_RESOURCE_UNAVAILABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"AgendaWaitlistServiceUnavailableFailure":{"type":"object","description":"Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["WAITLIST_SERVICE_UNAVAILABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"Empty":{"type":"object","description":"No fields.","additionalProperties":false,"properties":{}},"ForbiddenFailure":{"type":"object","description":"The token does not authorize this operation.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["FORBIDDEN"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"InternalError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/InternalFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"InternalFailure":{"type":"object","description":"The service could not complete the operation.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INTERNAL_ERROR"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"InvalidInputFailure":{"type":"object","description":"The request does not match the published schema.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["INVALID_INPUT"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/InvalidInputFailureData"}}},"InvalidInputFailureData":{"type":"object","properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/ValidationIssue"},"maxItems":10}},"additionalProperties":false},"OutcomeUnknownError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/OutcomeUnknownFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"OutcomeUnknownFailure":{"type":"object","description":"The operation may have been applied; check its result before repeating it.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["OUTCOME_UNKNOWN"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"PageInfo":{"type":"object","required":["hasNextPage","hasPreviousPage","nextCursor","previousCursor"],"properties":{"hasNextPage":{"type":"boolean","description":"Whether a later page exists in the current ordering."},"hasPreviousPage":{"type":"boolean","description":"Whether an earlier page exists in the current ordering."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor for the next page, or null when there is none."},"previousCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor for the previous page, or null when there is none."}},"additionalProperties":false},"RateLimitedError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/RateLimitedFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"RateLimitedFailure":{"type":"object","description":"The request rate limit was exceeded. Try again later.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["RATE_LIMITED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[true],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"RequestTooLargeError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/RequestTooLargeFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"RequestTooLargeFailure":{"type":"object","description":"The request exceeds the allowed size.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["REQUEST_TOO_LARGE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"ResponseMetadata":{"type":"object","description":"What every answer carries besides its data or error.","additionalProperties":false,"required":["requestId"],"properties":{"requestId":{"type":"string","description":"Request correlation identifier, also sent as X-Request-Id."}}},"UnauthorizedError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/UnauthorizedFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"UnauthorizedFailure":{"type":"object","description":"A valid access token is required.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UNAUTHORIZED"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"UnsupportedMediaTypeFailure":{"type":"object","description":"The request content type is not supported.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UNSUPPORTED_MEDIA_TYPE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[false],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"UpstreamTimeoutError":{"type":"object","description":"A failed answer.","additionalProperties":false,"required":["success","data","error","metadata"],"properties":{"success":{"type":"boolean","enum":[false]},"data":{"const":null},"error":{"$ref":"#/components/schemas/UpstreamTimeoutFailure"},"metadata":{"$ref":"#/components/schemas/ResponseMetadata"}}},"UpstreamTimeoutFailure":{"type":"object","description":"The upstream service did not respond before its deadline.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UPSTREAM_TIMEOUT"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[true],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"UpstreamUnavailableFailure":{"type":"object","description":"The upstream service could not complete the request.","additionalProperties":false,"required":["code","message","retryable","data"],"properties":{"code":{"type":"string","enum":["UPSTREAM_UNAVAILABLE"],"description":"The failure code, stable across releases."},"message":{"type":"string","description":"What went wrong, for people; it never contains input values."},"retryable":{"type":"boolean","enum":[true],"description":"Whether repeating the same request may succeed."},"data":{"$ref":"#/components/schemas/Empty"}}},"ValidationIssue":{"type":"object","required":["path","message"],"properties":{"path":{"type":"string","maxLength":256,"description":"RFC 6901 JSON Pointer to the refused field; empty for the whole input."},"message":{"type":"string","maxLength":256}},"additionalProperties":false}},"securitySchemes":{"arbolHuman":{"type":"oauth2","description":"A person's Arbol sign-in for audience https://api.getarbol.com with an organization selected. A service acting for the person presents the token it obtained on their behalf. The token's scopes count only as far as the person's roles grant them.","flows":{"authorizationCode":{"authorizationUrl":"https://auth.getarbol.com/authorize","tokenUrl":"https://auth.getarbol.com/oauth/token","scopes":{"account:api-keys:read":"Read api keys","account:api-keys:write":"Write api keys","account:billing:operate":"Arbol staff: read and change an organization's billing terms, credits, transfers and invoices, and what it costs Arbol","account:billing:read":"See the organization's wallet in credits, its usage and its movements","account:billing:write":"Top up the organization's wallet by card and manage its saved card","account:connections:operate":"Arbol staff: add, change and remove an organization's connections, register its custom servers and read their tools","account:connections:read":"Read connections","account:connections:reconcile":"Verify and store credentials for validator connections approved for a service identity","account:connections:write":"Register, rename and remove the organization's own servers, and change whether Arbi uses its connections and their WhatsApp reminders","account:members:read":"Read members","account:members:write":"Write members","account:organizations:read":"Read organizations","account:organizations:write":"Change the organization's name, logo and sign-in colors","agenda:appointments:read":"Read appointments","agenda:appointments:write":"Write appointments","agenda:availability:read":"Read availability","agenda:bookings:read":"Find bookable services, their requirements and slots, and a patient's appointments, to book for them","agenda:bookings:write":"Book, reschedule and cancel appointments through the booking contract","agenda:locations:read":"Read locations","agenda:offerings:read":"Read offerings","agenda:offerings:write":"Create and configure service offerings (administration)","agenda:resources:read":"Read resources","agenda:resources:write":"Create and configure agendas (administration)","agenda:schedule-rules:read":"Read agenda hours","agenda:schedule-rules:write":"Configure agenda hours (administration)","agenda:services:read":"Read services","agenda:services:write":"Create and configure services (administration)","agenda:waitlist:read":"Read waitlist","agenda:waitlist:write":"Put a patient on a service's waiting list for the clinic's team","axxa:authorizations:read":"Read axxa authorizations","axxa:connections:read":"Read axxa connections","axxa:connections:write":"Manage axxa connections","axxa:eligibility:read":"Read axxa eligibility","axxa:provider:read":"Read axxa provider","comfachoco:affiliations:read":"Read Comfachoco affiliations","comfachoco:connections:read":"Read Comfachoco connections","comfachoco:connections:write":"Manage Comfachoco connections","comfachoco:mcp:use":"Use Comfachoco MCP","famisanar:affiliations:read":"Look up an affiliation using an active Famisanar connection.","famisanar:connections:write":"Verify and remove Famisanar IPS connections.","gmedic:agendas:read":"Read gmedic agendas","gmedic:appointments:read":"Read gmedic appointments","gmedic:appointments:write":"Manage gmedic appointments","gmedic:availability:read":"Read gmedic availability","gmedic:catalogs:read":"Read gmedic catalogs","gmedic:connections:read":"Read gmedic connections","gmedic:connections:write":"Manage gmedic connections","gmedic:patient-notes:read":"Read gmedic patient-notes","gmedic:patient-notes:write":"Manage gmedic patient-notes","gmedic:patients:read":"Read gmedic patients","gmedic:patients:write":"Manage gmedic patients","gmedic:sessions:read":"Read gmedic sessions","gmedic:sessions:write":"Manage gmedic sessions","insights:reports:read":"Read insights reports","nueva-eps:affiliations:read":"Read nueva-eps affiliations","nueva-eps:connections:read":"Read nueva-eps connections","nueva-eps:connections:write":"Manage nueva-eps connections","nueva-eps:precursoras:read":"Read Nueva EPS Precursoras reporting summaries and error reports","oficlinic:appointments:read":"Read e-Oficlinic appointments","oficlinic:appointments:write":"Write e-Oficlinic appointments","oficlinic:availability:read":"Read e-Oficlinic appointment availability","oficlinic:connections:read":"Read e-Oficlinic connections","oficlinic:connections:write":"Write e-Oficlinic connections","oficlinic:daily-roster:read":"Read a professional's e-Oficlinic daily patient roster","oficlinic:mcp:use":"Use the e-Oficlinic MCP transport","oficlinic:patients:read":"Read e-Oficlinic patients","oficlinic:patients:write":"Register e-Oficlinic patients","oficlinic:payers:read":"Read e-Oficlinic payers","oficlinic:professionals:read":"Read e-Oficlinic professionals","oficlinic:services:read":"Read e-Oficlinic services","oficlinic:services:write":"Write e-Oficlinic services","pijaos-salud:affiliations:read":"Look up one member's affiliation through an active Pijaos Salud IPS connection.","pijaos-salud:connections:write":"Verify an IPS login as an authorized staff operator.","raiz:agents:read":"Read agents","raiz:agents:write":"Write agents","raiz:campaigns:read":"Read campaigns","raiz:campaigns:write":"Write campaigns","raiz:changes:read":"Read changes","raiz:channels:read":"Read channels","raiz:channels:write":"Write channels","raiz:contacts:read":"Read contacts","raiz:contacts:write":"Write contacts","raiz:conversations:read":"Read conversations","raiz:conversations:write":"Write conversations","raiz:definitions:read":"Read definitions","raiz:definitions:write":"Write definitions","raiz:facts:write":"Write facts","raiz:knowledge:read":"Read knowledge","raiz:knowledge:write":"Write knowledge","raiz:organization:read":"Read organization","raiz:organization:write":"Write organization","raiz:profiles:read":"Read profiles","raiz:profiles:write":"Write profiles","raiz:reports:read":"Read reports","raiz:staff:operate":"Operate staff","raiz:suppressions:read":"Read suppressions","raiz:suppressions:write":"Write suppressions","raiz:tasks:read":"Read tasks","raiz:tasks:write":"Write tasks","raiz:templates:read":"Read templates","raiz:templates:write":"Write templates","raiz:voices:read":"Read voices","salud-total:affiliations:read":"Look up one member affiliation using an active IPS connection.","salud-total:authorizations:read":"Read and store the IPS authorization report, list observed authorizations and obtain their available documents.","salud-total:connections:read":"Read IPS connection verification metadata.","salud-total:connections:write":"Verify or remove a Salud Total IPS connection.","salud-total:filings:read":"Check member filing availability for one institution and day.","salud-total:invoices:read":"Look up one exact reference in the active IPS billing account.","salud-total:notices:read":"Read the institutional objection notification total without opening a notice.","salud-total:portals:read":"Inspect the private IPS portal inventory as an authorized staff operator.","salud-total:references:read":"Read the active IPS connection’s administrative catalogs.","sanitas:affiliations:read":"Read one member's Sanitas coverage from an active Account connection","sanitas:connections:read":"Read safe Sanitas connection status","sanitas:connections:write":"Verify or retire a Sanitas connection as an authorized staff operator","sura:affiliations:read":"Look up SURA affiliations, authorizations and copays in SaludWeb","sura:appointments:read":"Look up SURA patients, services, registered professionals, schedules, availability and appointments","sura:appointments:write":"Book and cancel SURA appointments","sura:connections:read":"See the organization's SURA connections and whether they work","sura:connections:write":"Connect, change and remove the organization's SURA portal accounts","visoft:appointments:read":"Look up Visoft patients and their appointments, contracts, services, professionals and free slots","visoft:appointments:write":"Book and cancel Visoft appointments","visoft:connections:read":"See the organization's Visoft connections and whether they work","visoft:connections:write":"Connect, change and remove the organization's Visoft (SIIPS) accounts","visoft:patients:write":"Register Visoft patients and correct their details"}}}},"arbolMachine":{"type":"oauth2","description":"A machine application of one organization, created in Arbol Account: client credentials for audience https://api.getarbol.com. The token carries the organization and the scopes the application was granted.","flows":{"clientCredentials":{"tokenUrl":"https://auth.getarbol.com/oauth/token","scopes":{"account:api-keys:read":"Read api keys","account:api-keys:write":"Write api keys","account:billing:read":"See the organization's wallet in credits, its usage and its movements","account:billing:write":"Top up the organization's wallet by card and manage its saved card","account:connections:operate":"Arbol staff: add, change and remove an organization's connections, register its custom servers and read their tools","account:connections:read":"Read connections","account:connections:write":"Register, rename and remove the organization's own servers, and change whether Arbi uses its connections and their WhatsApp reminders","account:members:read":"Read members","account:members:write":"Write members","account:organizations:read":"Read organizations","account:organizations:write":"Change the organization's name, logo and sign-in colors","agenda:appointments:read":"Read appointments","agenda:appointments:write":"Write appointments","agenda:availability:read":"Read availability","agenda:bookings:read":"Find bookable services, their requirements and slots, and a patient's appointments, to book for them","agenda:bookings:write":"Book, reschedule and cancel appointments through the booking contract","agenda:locations:read":"Read locations","agenda:offerings:read":"Read offerings","agenda:resources:read":"Read resources","agenda:schedule-rules:read":"Read agenda hours","agenda:services:read":"Read services","agenda:waitlist:read":"Read waitlist","agenda:waitlist:write":"Put a patient on a service's waiting list for the clinic's team","axxa:authorizations:read":"Read axxa authorizations","axxa:connections:read":"Read axxa connections","axxa:connections:write":"Manage axxa connections","axxa:eligibility:read":"Read axxa eligibility","axxa:provider:read":"Read axxa provider","comfachoco:affiliations:read":"Read Comfachoco affiliations","comfachoco:connections:read":"Read Comfachoco connections","comfachoco:connections:write":"Manage Comfachoco connections","famisanar:affiliations:read":"Look up an affiliation using an active Famisanar connection.","famisanar:connections:write":"Verify and remove Famisanar IPS connections.","gmedic:agendas:read":"Read gmedic agendas","gmedic:appointments:read":"Read gmedic appointments","gmedic:appointments:write":"Manage gmedic appointments","gmedic:availability:read":"Read gmedic availability","gmedic:catalogs:read":"Read gmedic catalogs","gmedic:connections:read":"Read gmedic connections","gmedic:connections:write":"Manage gmedic connections","gmedic:patient-notes:read":"Read gmedic patient-notes","gmedic:patient-notes:write":"Manage gmedic patient-notes","gmedic:patients:read":"Read gmedic patients","gmedic:patients:write":"Manage gmedic patients","gmedic:sessions:read":"Read gmedic sessions","gmedic:sessions:write":"Manage gmedic sessions","insights:reports:read":"Read insights reports","nueva-eps:affiliations:read":"Read nueva-eps affiliations","nueva-eps:connections:read":"Read nueva-eps connections","nueva-eps:connections:write":"Manage nueva-eps connections","nueva-eps:precursoras:read":"Read Nueva EPS Precursoras reporting summaries and error reports","oficlinic:appointments:read":"Read e-Oficlinic appointments","oficlinic:appointments:write":"Write e-Oficlinic appointments","oficlinic:availability:read":"Read e-Oficlinic appointment availability","oficlinic:connections:read":"Read e-Oficlinic connections","oficlinic:connections:write":"Write e-Oficlinic connections","oficlinic:daily-roster:read":"Read a professional's e-Oficlinic daily patient roster","oficlinic:patients:read":"Read e-Oficlinic patients","oficlinic:patients:write":"Register e-Oficlinic patients","oficlinic:payers:read":"Read e-Oficlinic payers","oficlinic:professionals:read":"Read e-Oficlinic professionals","oficlinic:services:read":"Read e-Oficlinic services","oficlinic:services:write":"Write e-Oficlinic services","pijaos-salud:affiliations:read":"Look up one member's affiliation through an active Pijaos Salud IPS connection.","raiz:agents:read":"Read agents","raiz:agents:write":"Write agents","raiz:campaigns:read":"Read campaigns","raiz:campaigns:write":"Write campaigns","raiz:changes:read":"Read changes","raiz:channels:read":"Read channels","raiz:channels:write":"Write channels","raiz:contacts:read":"Read contacts","raiz:contacts:write":"Write contacts","raiz:conversations:read":"Read conversations","raiz:conversations:write":"Write conversations","raiz:definitions:read":"Read definitions","raiz:definitions:write":"Write definitions","raiz:facts:write":"Write facts","raiz:knowledge:read":"Read knowledge","raiz:knowledge:write":"Write knowledge","raiz:organization:read":"Read organization","raiz:organization:write":"Write organization","raiz:profiles:read":"Read profiles","raiz:profiles:write":"Write profiles","raiz:reports:read":"Read reports","raiz:suppressions:read":"Read suppressions","raiz:suppressions:write":"Write suppressions","raiz:tasks:read":"Read tasks","raiz:tasks:write":"Write tasks","raiz:templates:read":"Read templates","raiz:templates:write":"Write templates","raiz:voices:read":"Read voices","salud-total:affiliations:read":"Look up one member affiliation using an active IPS connection.","salud-total:authorizations:read":"Read and store the IPS authorization report, list observed authorizations and obtain their available documents.","salud-total:filings:read":"Check member filing availability for one institution and day.","salud-total:invoices:read":"Look up one exact reference in the active IPS billing account.","salud-total:notices:read":"Read the institutional objection notification total without opening a notice.","sanitas:affiliations:read":"Read one member's Sanitas coverage from an active Account connection","sanitas:connections:read":"Read safe Sanitas connection status","sanitas:connections:write":"Verify or retire a Sanitas connection as an authorized staff operator","sura:affiliations:read":"Look up SURA affiliations, authorizations and copays in SaludWeb","sura:appointments:read":"Look up SURA patients, services, registered professionals, schedules, availability and appointments","sura:appointments:write":"Book and cancel SURA appointments","sura:connections:read":"See the organization's SURA connections and whether they work","sura:connections:write":"Connect, change and remove the organization's SURA portal accounts","visoft:appointments:read":"Look up Visoft patients and their appointments, contracts, services, professionals and free slots","visoft:appointments:write":"Book and cancel Visoft appointments","visoft:connections:read":"See the organization's Visoft connections and whether they work","visoft:connections:write":"Connect, change and remove the organization's Visoft (SIIPS) accounts","visoft:patients:write":"Register Visoft patients and correct their details"}}}},"arbolApiKey":{"type":"http","scheme":"bearer","description":"An Arbol API key (arb_live_…), shown once when it is created in Arbol Account: the same machine application as one string. The Gateway exchanges it for the application's token."}}},"paths":{"/v1/agenda/appointments":{"get":{"operationId":"agenda.appointments.list","summary":"List Appointments","description":"List the appointments in an appointment or creation window, filtered by the fields they match, using stable keyset pagination. To find a patient by name or document, search instead.","tags":["agenda"],"security":[{"arbolHuman":["agenda:appointments:read"]},{"arbolHuman":["agenda:appointments:write"]},{"arbolMachine":["agenda:appointments:read"]},{"arbolMachine":["agenda:appointments:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:appointments:read","agenda:appointments:write"],"x-scope-match":"any","x-effect":"read","x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of appointment records returned by one page; defaults to 25 and cannot exceed 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":25,"description":"Maximum number of appointment records returned by one page; defaults to 25 and cannot exceed 500."}},{"name":"bookingChannel","in":"query","required":false,"description":"Only appointments booked through this recorded channel.","schema":{"type":"string","description":"Only appointments booked through this recorded channel."}},{"name":"createdAfter","in":"query","required":false,"description":"Inclusive creation instant, independent of the appointment date. Pair with createdBefore; at most 93 days.","schema":{"type":"string","format":"date-time","description":"Inclusive creation instant, independent of the appointment date. Pair with createdBefore; at most 93 days."}},{"name":"createdBefore","in":"query","required":false,"description":"Exclusive creation instant. Use for appointments generated during a period, including future appointments.","schema":{"type":"string","format":"date-time","description":"Exclusive creation instant. Use for appointments generated during a period, including future appointments."}},{"name":"createdBy","in":"query","required":false,"description":"Only appointments booked by this principal reference.","schema":{"type":"string","description":"Only appointments booked by this principal reference."}},{"name":"from","in":"query","required":false,"description":"Beginning of the appointment range; must be paired with to unless a patient search is supplied.","schema":{"type":"string","format":"date-time","description":"Beginning of the appointment range; must be paired with to unless a patient search is supplied."}},{"name":"locationId","in":"query","required":false,"description":"Held on an agenda of this site, like `appointmentReport`.","schema":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Held on an agenda of this site, like `appointmentReport`."}},{"name":"order","in":"query","required":false,"description":"Ascending or descending order within the selected appointment sort key.","schema":{"anyOf":[{"type":"string","const":"desc"},{"type":"string","const":"asc"}],"default":"desc","description":"Ascending or descending order within the selected appointment sort key."}},{"name":"payer","in":"query","required":false,"description":"Only appointments whose intake names this payer.","schema":{"type":"string","description":"Only appointments whose intake names this payer."}},{"name":"priority","in":"query","required":false,"description":"Only appointments marked priority (\"urgent\"), or only the rest.","schema":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"description":"Only appointments marked priority (\"urgent\"), or only the rest."}},{"name":"reason","in":"query","required":false,"description":"Only appointments cancelled or missed for this recorded reason.","schema":{"type":"string","description":"Only appointments cancelled or missed for this recorded reason."}},{"name":"resourceId","in":"query","required":false,"description":"Only appointments assigned to this agenda in the authenticated organization.","schema":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only appointments assigned to this agenda in the authenticated organization."}},{"name":"resourceIds","in":"query","required":false,"description":"Held on any of these agendas (at most 200).","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"minItems":1,"maxItems":200,"description":"Held on any of these agendas (at most 200)."}},{"name":"serviceId","in":"query","required":false,"description":"Service identifier within the authenticated organization.","schema":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."}},{"name":"sort","in":"query","required":false,"description":"createdAt uses agenda overlap semantics; startsAt selects appointments beginning inside the report window.","schema":{"anyOf":[{"type":"string","const":"createdAt"},{"type":"string","const":"startsAt"}],"default":"createdAt","description":"createdAt uses agenda overlap semantics; startsAt selects appointments beginning inside the report window."}},{"name":"status","in":"query","required":false,"description":"One status, or any of several.","style":"form","explode":false,"schema":{"anyOf":[{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},{"type":"array","items":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},"minItems":1,"maxItems":8}],"description":"One status, or any of several."}},{"name":"statusChangedBy","in":"query","required":false,"description":"Only appointments whose latest status change this principal made.","schema":{"type":"string","description":"Only appointments whose latest status change this principal made."}},{"name":"to","in":"query","required":false,"description":"End of the appointment range; must be paired with from.","schema":{"type":"string","format":"date-time","description":"End of the appointment range; must be paired with from."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAppointmentPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAppointmentsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAppointmentsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAppointmentsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAppointmentsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAppointmentsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"appointments","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","bookingChannel":"string","createdAfter":"string","createdBefore":"string","createdBy":"string","from":"string","locationId":"string","order":"string","payer":"string","priority":"string","reason":"string","resourceId":"string","resourceIds":"list","serviceId":"string","sort":"string","status":"list","statusChangedBy":"string","to":"string"}},"x-fern-sdk-group-name":["agenda","appointments"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":500,"default":25,"description":"Maximum number of appointment records returned by one page; defaults to 25 and cannot exceed 500."},"bookingChannel":{"type":"string","description":"Only appointments booked through this recorded channel."},"createdAfter":{"type":"string","format":"date-time","description":"Inclusive creation instant, independent of the appointment date. Pair with createdBefore; at most 93 days."},"createdBefore":{"type":"string","format":"date-time","description":"Exclusive creation instant. Use for appointments generated during a period, including future appointments."},"createdBy":{"type":"string","description":"Only appointments booked by this principal reference."},"from":{"type":"string","format":"date-time","description":"Beginning of the appointment range; must be paired with to unless a patient search is supplied."},"locationId":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Held on an agenda of this site, like `appointmentReport`."},"order":{"anyOf":[{"type":"string","const":"desc"},{"type":"string","const":"asc"}],"default":"desc","description":"Ascending or descending order within the selected appointment sort key."},"payer":{"type":"string","description":"Only appointments whose intake names this payer."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"description":"Only appointments marked priority (\"urgent\"), or only the rest."},"reason":{"type":"string","description":"Only appointments cancelled or missed for this recorded reason."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only appointments assigned to this agenda in the authenticated organization."},"resourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"minItems":1,"maxItems":200,"description":"Held on any of these agendas (at most 200)."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"sort":{"anyOf":[{"type":"string","const":"createdAt"},{"type":"string","const":"startsAt"}],"default":"createdAt","description":"createdAt uses agenda overlap semantics; startsAt selects appointments beginning inside the report window."},"status":{"anyOf":[{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},{"type":"array","items":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},"minItems":1,"maxItems":8}],"description":"One status, or any of several."},"statusChangedBy":{"type":"string","description":"Only appointments whose latest status change this principal made."},"to":{"type":"string","format":"date-time","description":"End of the appointment range; must be paired with from."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listAppointments","x-arbol-native-rpc":false},"post":{"operationId":"agenda.appointments.create","summary":"Create Appointment","description":"Book an admitted slot or convert an active hold, preserving request-key idempotency and serialized capacity checks.","tags":["agenda"],"security":[{"arbolHuman":["agenda:appointments:write"]}],"x-required-scopes":["agenda:appointments:write"],"x-effect":"write","x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateAppointmentBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAppointmentResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateAppointmentBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateAppointmentForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateAppointmentConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateAppointmentUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateAppointmentServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"appointments","verb":"create","id":null,"query":null},"x-fern-sdk-group-name":["agenda","appointments"],"x-fern-sdk-method-name":"create","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":false},"x-arbol-input-schema":{"type":"object","required":["idempotencyKey"],"properties":{"bookingChannel":{"type":"string","description":"Booking source recorded on the appointment; null when no channel was recorded."},"contactId":{"anyOf":[{"type":"string","description":"Opaque Arbol contact reference associated with this booking; Scheduling does not resolve it.","pattern":"^cnt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"External contact reference associated with this booking; null when it has no external contact."},"holdId":{"type":"string","pattern":"^hld_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Existing unexpired capacity hold to convert; provide holdId or a freshly returned signed slot token."},"idempotencyKey":{"type":"string","description":"Stable key for this booking attempt, unique within the verified organization. Reusing it returns the original appointment."},"intake":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentIntakeInput"},{"type":"null"}],"description":"Appointment-specific contact, payer, authorization and custom-field values; null when no intake was recorded."},"patient":{"anyOf":[{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},{"type":"null"}],"description":"Patient identity copied into the booking; null when no patient identity was supplied."},"patientBirthDate":{"type":"string","format":"date","description":"Patient-supplied date of birth (YYYY-MM-DD), stored on the record and checked against service age eligibility."},"patientId":{"type":"string","pattern":"^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"The registered patient the desk picked. The typed document still decides who it is; this record only gains that document when it had none."},"slotToken":{"type":"string","description":"Opaque signed token for one exact available slot. Use the returned token unchanged after the patient confirms that time.","minLength":20},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk-authored appointment title; null permits the service name to supply the display title."}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"createAppointment","x-arbol-native-rpc":false}},"/v1/agenda/appointments/{appointmentId}":{"get":{"operationId":"agenda.appointments.get","summary":"Get Appointment","description":"Read one appointment with its service, assigned agendas and patient details within the authenticated tenant.","tags":["agenda"],"security":[{"arbolHuman":["agenda:appointments:read"]},{"arbolHuman":["agenda:appointments:write"]},{"arbolMachine":["agenda:appointments:read"]},{"arbolMachine":["agenda:appointments:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:appointments:read","agenda:appointments:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"appointmentId","in":"path","required":true,"description":"Organization-owned appointment identifier.","schema":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAppointmentResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAppointmentBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAppointmentForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAppointmentConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAppointmentUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAppointmentServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"appointments","verb":"get","id":"appointmentId","query":{}},"x-fern-sdk-group-name":["agenda","appointments"],"x-fern-sdk-method-name":"get","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"appointmentId":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."}},"required":["appointmentId"]},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"getAppointment","x-arbol-native-rpc":false}},"/v1/agenda/appointments/{appointmentId}/change-status":{"post":{"operationId":"agenda.appointments.changeStatus","summary":"Change Appointment Status","description":"Apply an allowed appointment status transition using the expected version and record its attributed history.","tags":["agenda"],"security":[{"arbolHuman":["agenda:appointments:write"]}],"x-required-scopes":["agenda:appointments:write"],"x-effect":"write","x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"appointmentId","in":"path","required":true,"description":"Organization-owned appointment identifier.","schema":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAppointmentResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateAppointmentStatusServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"appointments","verb":"changeStatus","id":"appointmentId","query":null},"x-fern-sdk-group-name":["agenda","appointments"],"x-fern-sdk-method-name":"changeStatus","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":false},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"reason":{"type":"string","description":"Why: kept for a cancellation or a no-show, ignored otherwise."},"status":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}],"description":"Current appointment lifecycle state; cancelled and completed appointments cannot regain capacity through a status change."},"appointmentId":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."}},"required":["expectedVersion","appointmentId","status"]},"x-arbol-actor-kinds":["user"],"x-arbol-method":"updateAppointmentStatus","x-arbol-native-rpc":false}},"/v1/agenda/appointments/{appointmentId}/reschedule":{"post":{"operationId":"agenda.appointments.reschedule","summary":"Reschedule Appointment","description":"Move an appointment to an admitted slot with version and capacity checks, then reconcile its notifications and provider events.","tags":["agenda"],"security":[{"arbolHuman":["agenda:appointments:write"]}],"x-required-scopes":["agenda:appointments:write"],"x-effect":"write","x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"appointmentId","in":"path","required":true,"description":"Organization-owned appointment identifier.","schema":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAppointmentResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAppointmentServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"appointments","verb":"reschedule","id":"appointmentId","query":null},"x-fern-sdk-group-name":["agenda","appointments"],"x-fern-sdk-method-name":"reschedule","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":false},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"bookingChannel":{"type":"string","description":"Who moves it, as when booking: \"agent\" (the WhatsApp agent) may not move an appointment of a payer only the team books (`payer_staff_only`)."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"keepService":{"type":"boolean","description":"When true, the new signed slot must belong to the appointment’s original service. Agent rescheduling always enables this restriction."},"notify":{"type":"boolean","description":"false: no \"your appointment moved\" email or WhatsApp, for a correction such as fixing only the service. Reminders still follow the new time."},"reason":{"type":"string","description":"Reason recorded for this scheduling change; null when no reason was supplied."},"slotToken":{"type":"string","description":"Opaque signed token for one exact available slot. Use the returned token unchanged after the patient confirms that time.","minLength":20},"appointmentId":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned appointment identifier."}},"required":["expectedVersion","appointmentId","slotToken"]},"x-arbol-actor-kinds":["user"],"x-arbol-method":"rescheduleAppointment","x-arbol-native-rpc":false}},"/v1/agenda/appointments/search":{"post":{"operationId":"agenda.appointments.search","summary":"Search Appointments","description":"Search appointments by patient name or document (q), or within the requested window and filters, using stable keyset pagination.","tags":["agenda"],"security":[{"arbolHuman":["agenda:appointments:read"]},{"arbolHuman":["agenda:appointments:write"]},{"arbolMachine":["agenda:appointments:read"]},{"arbolMachine":["agenda:appointments:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:appointments:read","agenda:appointments:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchAppointmentsBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAppointmentPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchAppointmentsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchAppointmentsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchAppointmentsConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchAppointmentsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchAppointmentsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"appointments","verb":"search","id":null,"query":null},"x-fern-sdk-group-name":["agenda","appointments"],"x-fern-sdk-method-name":"search","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":500,"default":25,"description":"Maximum number of appointment records returned by one page; defaults to 25 and cannot exceed 500."},"bookingChannel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter the recorded booking channel; null selects appointments whose channel was never recorded."},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of whoever booked it."},"createdAfter":{"type":"string","format":"date-time","description":"Inclusive creation instant, independent of the appointment date. Pair with createdBefore; at most 93 days."},"createdBefore":{"type":"string","format":"date-time","description":"Exclusive creation instant. Use for appointments generated during a period, including future appointments."},"from":{"type":"string","format":"date-time","description":"Beginning of the appointment range; must be paired with to unless a patient search is supplied."},"locationId":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Held on an agenda of this site, like `appointmentReport`."},"order":{"anyOf":[{"type":"string","const":"desc"},{"type":"string","const":"asc"}],"default":"desc","description":"Ascending or descending order within the selected appointment sort key."},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The payer's name as recorded in the intake."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"description":"Only appointments marked priority (\"urgent\"), or only the rest."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The reason given for a cancellation or no-show."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only appointments assigned to this agenda in the authenticated organization."},"resourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"minItems":1,"maxItems":200,"description":"Held on any of these agendas (at most 200)."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"sort":{"anyOf":[{"type":"string","const":"createdAt"},{"type":"string","const":"startsAt"}],"default":"createdAt","description":"createdAt uses agenda overlap semantics; startsAt selects appointments beginning inside the report window."},"status":{"anyOf":[{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},{"type":"array","items":{"anyOf":[{"type":"string","const":"tentative"},{"type":"string","const":"scheduled"},{"type":"string","const":"confirmed"},{"type":"string","const":"checked_in"},{"type":"string","const":"completed"},{"type":"string","const":"cancelled"},{"type":"string","const":"no_show"},{"type":"string","const":"unknown"}]},"minItems":1,"maxItems":8}],"description":"One status, or any of several."},"statusChangedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Principal reference of whoever made the latest status change."},"to":{"type":"string","format":"date-time","description":"End of the appointment range; must be paired with from."},"q":{"type":"string","description":"Patient name or document search text; provide this or a complete instant range."},"query":{"type":"string","deprecated":true,"description":"Deprecated: use `q`. Answered until 2027-01-28."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"searchAppointments","x-arbol-native-rpc":false}},"/v1/agenda/availability":{"get":{"operationId":"agenda.availability.list","summary":"Get Availability","description":"Find bookable slots for one offering within the requested window, earliest first, a page at a time, enforcing schedule, capacity and active holds.","tags":["agenda"],"security":[{"arbolHuman":["agenda:availability:read"]},{"arbolMachine":["agenda:availability:read"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:availability:read"],"x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"durationMinutes","in":"query","required":false,"description":"Requested visible appointment duration in minutes; admitted only when the organization permits the override.","schema":{"type":"integer","minimum":1,"maximum":1440,"description":"Requested visible appointment duration in minutes; admitted only when the organization permits the override."}},{"name":"excludeAppointmentId","in":"query","required":false,"description":"Exclude allocations belonging to this appointment while evaluating a proposed reschedule.","schema":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Exclude allocations belonging to this appointment while evaluating a proposed reschedule."}},{"name":"from","in":"query","required":true,"description":"Inclusive beginning of the requested instant range.","schema":{"type":"string","format":"date-time","description":"Inclusive beginning of the requested instant range."}},{"name":"occupationMinutes","in":"query","required":false,"description":"A study length in minutes among those the offering offers (occupationMinutes and studyOptions), booked in that length’s arrival hours; absent: its usual length.","schema":{"type":"integer","minimum":1,"maximum":2880,"description":"A study length in minutes among those the offering offers (occupationMinutes and studyOptions), booked in that length’s arrival hours; absent: its usual length."}},{"name":"offeringId","in":"query","required":true,"description":"Required service offering whose available signed slots are searched within the requested interval.","schema":{"type":"string","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Required service offering whose available signed slots are searched within the requested interval."}},{"name":"preferredResourceIds","in":"query","required":false,"description":"Preferred agendas considered first while satisfying the offering resource requirements.","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":20,"default":[],"description":"Preferred agendas considered first while satisfying the offering resource requirements."}},{"name":"timezone","in":"query","required":true,"description":"IANA timezone used to interpret local dates and agenda working hours.","schema":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."}},{"name":"to","in":"query","required":true,"description":"Exclusive end of the requested instant range.","schema":{"type":"string","format":"date-time","description":"Exclusive end of the requested instant range."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSlotPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAvailabilityBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAvailabilityForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAvailabilityConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAvailabilityUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAvailabilityServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"availability","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","durationMinutes":"integer","excludeAppointmentId":"string","from":"string","occupationMinutes":"integer","offeringId":"string","preferredResourceIds":"list","timezone":"string","to":"string"}},"x-fern-sdk-group-name":["agenda","availability"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["from","offeringId","timezone","to"],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"durationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Requested visible appointment duration in minutes; admitted only when the organization permits the override."},"excludeAppointmentId":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Exclude allocations belonging to this appointment while evaluating a proposed reschedule."},"from":{"type":"string","format":"date-time","description":"Inclusive beginning of the requested instant range."},"occupationMinutes":{"type":"integer","minimum":1,"maximum":2880,"description":"A study length in minutes among those the offering offers (occupationMinutes and studyOptions), booked in that length’s arrival hours; absent: its usual length."},"offeringId":{"type":"string","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Required service offering whose available signed slots are searched within the requested interval."},"preferredResourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":20,"default":[],"description":"Preferred agendas considered first while satisfying the offering resource requirements."},"timezone":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."},"to":{"type":"string","format":"date-time","description":"Exclusive end of the requested instant range."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"getAvailability","x-arbol-native-rpc":false}},"/v1/agenda/booking-locations":{"get":{"operationId":"agenda.bookingLocations.list","summary":"List sites","description":"List the organization's sites (sedes), a page at a time: follow pageInfo.nextCursor for more. Pass a site's id as locationId to find_first_available to search only its agendas.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:read"]},{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:read"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:read","agenda:bookings:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"channel","in":"query","required":false,"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it.","schema":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."}},{"name":"connectionId","in":"query","required":false,"description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","schema":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaLocationPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentLocationsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentLocationsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentLocationsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentLocationsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentLocationsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"bookingLocations","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","channel":"string","connectionId":"string"}},"x-fern-sdk-group-name":["agenda","bookingLocations"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listAgentLocations","x-arbol-native-rpc":true}},"/v1/agenda/booking-offerings":{"get":{"operationId":"agenda.bookingOfferings.list","summary":"Search bookable offerings","description":"Search active bookable offerings by q (such as electroencefalograma or neurología), exact serviceId or locationId. Pass the known service name instead of loading the whole catalog. Returns a compact page with offering/service ids, agendas, sites, current bookingChecklist, staff guidance (description), patientInstructions, eligibility (the ages a service takes, in completed years on the appointment day; null for any age) and occupationMinutes (how long the patient stays when longer than the appointment, such as a 12-hour study). Check these requirements against known patient facts before slots or booking; explain patient instructions, and ask only for missing required facts. When eligibility is set, ask the patient's date of birth before booking and pass it as patientBirthDate. If exactly one location applies, use it automatically without asking the patient to choose a site; provide its address for arrival or booking confirmation. Never infer age from a name or document type. A listed service does not establish payer coverage. Follow pageInfo.nextCursor only if needed.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:read"]},{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:read"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:read","agenda:bookings:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 10; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":20,"description":"Maximum items returned in one page. Defaults to 10; larger reads require another cursor.","default":10}},{"name":"locationId","in":"query","required":false,"description":"Clinic site associated with this record; null means it is not tied to a site.","schema":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Clinic site associated with this record; null means it is not tied to a site."}},{"name":"serviceId","in":"query","required":false,"description":"Service whose bookable offerings or appointments are addressed.","schema":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service whose bookable offerings or appointments are addressed."}},{"name":"q","in":"query","required":false,"description":"Free-text filter: a service or offering name, or part of one.","schema":{"type":"string","description":"Free-text filter: a service or offering name, or part of one."}},{"name":"channel","in":"query","required":false,"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it.","schema":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."}},{"name":"connectionId","in":"query","required":false,"description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","schema":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},{"name":"query","in":"query","required":false,"description":"Deprecated: use `q`. Answered until 2027-01-28.","schema":{"type":"string","deprecated":true,"description":"Deprecated: use `q`. Answered until 2027-01-28."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookableOfferingPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSearchBookableOfferingsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"bookingOfferings","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","locationId":"string","serviceId":"string","q":"string","channel":"string","connectionId":"string","query":"string"}},"x-fern-sdk-group-name":["agenda","bookingOfferings"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":20,"description":"Maximum items returned in one page. Defaults to 10; larger reads require another cursor.","default":10},"locationId":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Clinic site associated with this record; null means it is not tied to a site."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service whose bookable offerings or appointments are addressed."},"q":{"type":"string","description":"Free-text filter: a service or offering name, or part of one."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"},"query":{"type":"string","deprecated":true,"description":"Deprecated: use `q`. Answered until 2027-01-28."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"searchBookableOfferings","x-arbol-native-rpc":true}},"/v1/agenda/booking-requirements":{"get":{"operationId":"agenda.bookingRequirements.get","summary":"Get booking intake settings","description":"Get required/optional booking fields, document-type codes and active payers. Pass payerQuery when a document already identifies the payer (e.g. the health plan on an insurance card), to omit unrelated payers. Reuse clear patient data from the conversation or documents instead of asking it again; request only missing required or ambiguous values. Each payer includes attended sites and sitesNote: a nonempty sites list restricts which IPS/sede is served; an empty list means all its sites. Each payer also has bookingPolicy: 'staff_only' means only the clinic's team books its patients, so never book them; use add_to_waitlist with reason payer_review instead. An empty payer match does not establish coverage.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:read"]},{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:read"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:read","agenda:bookings:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"payerQuery","in":"query","required":false,"description":"Known payer name to narrow the active payer list; an empty match never establishes coverage.","schema":{"type":"string","description":"Known payer name to narrow the active payer list; an empty match never establishes coverage."}},{"name":"channel","in":"query","required":false,"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it.","schema":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."}},{"name":"connectionId","in":"query","required":false,"description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","schema":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsResultResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentBookingRequirementsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"bookingRequirements","verb":"get","id":null,"query":{"payerQuery":"string","channel":"string","connectionId":"string"}},"x-fern-sdk-group-name":["agenda","bookingRequirements"],"x-fern-sdk-method-name":"get","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","properties":{"payerQuery":{"type":"string","description":"Known payer name to narrow the active payer list; an empty match never establishes coverage."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"getAgentBookingRequirements","x-arbol-native-rpc":true}},"/v1/agenda/booking-slots":{"get":{"operationId":"agenda.bookingSlots.list","summary":"Find scheduling availability","description":"Find available slots for one offering, earliest first, a page at a time: follow pageInfo.nextCursor for later ones. The returned slotToken is required to create the appointment.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:read"]},{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:read"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:read","agenda:bookings:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"excludeAppointmentId","in":"query","required":false,"description":"Exclude allocations belonging to this appointment while evaluating a proposed reschedule.","schema":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Exclude allocations belonging to this appointment while evaluating a proposed reschedule."}},{"name":"from","in":"query","required":true,"description":"Inclusive beginning of the requested instant range.","schema":{"type":"string","format":"date-time","description":"Inclusive beginning of the requested instant range."}},{"name":"offeringId","in":"query","required":true,"description":"Required service offering whose available signed slots are searched within the requested interval.","schema":{"type":"string","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Required service offering whose available signed slots are searched within the requested interval."}},{"name":"preferredResourceIds","in":"query","required":false,"description":"Preferred agendas considered first while satisfying the offering resource requirements.","style":"form","explode":false,"schema":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":20,"default":[],"description":"Preferred agendas considered first while satisfying the offering resource requirements."}},{"name":"timezone","in":"query","required":true,"description":"IANA timezone used to interpret local dates and agenda working hours.","schema":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."}},{"name":"to","in":"query","required":true,"description":"Exclusive end of the requested instant range.","schema":{"type":"string","format":"date-time","description":"Exclusive end of the requested instant range."}},{"name":"channel","in":"query","required":false,"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it.","schema":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."}},{"name":"connectionId","in":"query","required":false,"description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","schema":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaSlotPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindBookableSlotsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindBookableSlotsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindBookableSlotsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindBookableSlotsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindBookableSlotsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"bookingSlots","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","excludeAppointmentId":"string","from":"string","offeringId":"string","preferredResourceIds":"list","timezone":"string","to":"string","channel":"string","connectionId":"string"}},"x-fern-sdk-group-name":["agenda","bookingSlots"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["from","offeringId","timezone","to"],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"excludeAppointmentId":{"type":"string","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Exclude allocations belonging to this appointment while evaluating a proposed reschedule."},"from":{"type":"string","format":"date-time","description":"Inclusive beginning of the requested instant range."},"offeringId":{"type":"string","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Required service offering whose available signed slots are searched within the requested interval."},"preferredResourceIds":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":20,"default":[],"description":"Preferred agendas considered first while satisfying the offering resource requirements."},"timezone":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."},"to":{"type":"string","format":"date-time","description":"Exclusive end of the requested instant range."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"findBookableSlots","x-arbol-native-rpc":true}},"/v1/agenda/bookings":{"post":{"operationId":"agenda.bookings.create","summary":"Create an appointment","description":"Book one slot only after the person explicitly confirms it. Pass the exact slotToken returned by find_availability, the patient's name, documentNumber and documentType (one of the organization's documentTypes codes; the first one when omitted), and the intake the organization requires (call get_intake_settings first). When the service has an age rule (eligibility in list_offerings), ask the patient's date of birth and pass patientBirthDate; never infer age from a name or document type. The booking also creates or updates the patient's record. It answers with guidance to tell the patient and slip: a link, valid for an hour, to the appointment's printable slip PDF (with the service's indications) to send them as a file.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookingResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookAgentAppointmentServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"bookings","verb":"create","id":null,"query":null},"x-fern-sdk-group-name":["agenda","bookings"],"x-fern-sdk-method-name":"create","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["slotToken"],"properties":{"contactId":{"anyOf":[{"type":"string","description":"Opaque Arbol contact reference associated with this booking; Scheduling does not resolve it.","pattern":"^cnt_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"External contact reference associated with this booking; null when it has no external contact."},"intake":{"anyOf":[{"$ref":"#/components/schemas/AgendaAppointmentIntakeInput"},{"type":"null"}],"description":"Appointment-specific contact, payer, authorization and custom-field values; null when no intake was recorded."},"patient":{"anyOf":[{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},{"type":"null"}],"description":"Patient identity copied into the booking; null when no patient identity was supplied."},"patientBirthDate":{"type":"string","format":"date","description":"Patient-supplied date of birth (YYYY-MM-DD), stored on the record and checked against service age eligibility."},"slotToken":{"type":"string","description":"Opaque signed token for one exact available slot. Use the returned token unchanged after the patient confirms that time.","minLength":20},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk-authored appointment title; null permits the service name to supply the display title."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"bookAgentAppointment","x-arbol-native-rpc":true}},"/v1/agenda/bookings/{appointmentId}":{"get":{"operationId":"agenda.bookings.get","summary":"Get an appointment","description":"Read one appointment by its id, appointmentId: when it starts and ends, its status, the patient, the agendas (resourceIds), the intake and guidance (the service's current patientInstructions, arrivalOrder, who attends it and the site with its address) to tell the patient, and slip: a link, valid for an hour, to its printable slip PDF to send them as a file.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:read"]},{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:read"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:read","agenda:bookings:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"appointmentId","in":"path","required":true,"description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},{"name":"channel","in":"query","required":false,"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it.","schema":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."}},{"name":"connectionId","in":"query","required":false,"description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","schema":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookingResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetAgentAppointmentServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"bookings","verb":"get","id":"appointmentId","query":{"channel":"string","connectionId":"string"}},"x-fern-sdk-group-name":["agenda","bookings"],"x-fern-sdk-method-name":"get","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"},"appointmentId":{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"required":["appointmentId"]},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"getAgentAppointment","x-arbol-native-rpc":true}},"/v1/agenda/bookings/{appointmentId}/cancel":{"post":{"operationId":"agenda.bookings.cancel","summary":"Cancel an appointment","description":"Cancel one appointment after the person explicitly confirms which one. Frees its slot. Pass the appointment as appointmentId (its id from list_patient_appointments) and the reason the person gave.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:write"],"x-effect":"delete","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"appointmentId","in":"path","required":true,"description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAppointmentResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCancelAgentAppointmentServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"bookings","verb":"cancel","id":"appointmentId","query":null},"x-fern-sdk-group-name":["agenda","bookings"],"x-fern-sdk-method-name":"cancel","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"reason":{"type":"string","description":"Cancellation reason explicitly provided by the person; recorded in appointment history."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"},"appointmentId":{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"required":["appointmentId","reason"]},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"cancelAgentAppointment","x-arbol-native-rpc":true}},"/v1/agenda/bookings/{appointmentId}/reschedule":{"post":{"operationId":"agenda.bookings.reschedule","summary":"Reschedule an appointment","description":"Move one appointment to a new time after the person confirms it. First find the new time with find_availability or find_first_available for the same service (another professional or room of that service is fine), then pass that slotToken and the appointment as appointmentId. A slot of another service is refused: the appointment keeps its service.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:write"],"x-effect":"write","x-mcp-idempotent":false,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"appointmentId","in":"path","required":true,"description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaBookingResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRescheduleAgentAppointmentServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"bookings","verb":"reschedule","id":"appointmentId","query":null},"x-fern-sdk-group-name":["agenda","bookings"],"x-fern-sdk-method-name":"reschedule","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"slotToken":{"type":"string","description":"Exact signed slot token confirmed by the person; the slot must belong to the appointment’s existing service.","minLength":20},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"},"appointmentId":{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"required":["appointmentId","slotToken"]},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"rescheduleAgentAppointment","x-arbol-native-rpc":true}},"/v1/agenda/bookings/lookup":{"post":{"operationId":"agenda.bookings.lookup","summary":"Look up a patient's appointments","description":"Find a patient by their exact documentNumber (and documentType, such as CC or TI, when known) and list their appointments, newest first, each with id, start, status and agendas; upcoming ones also carry guidance (patientInstructions, arrivalOrder, who attends and the site's address). Use it before cancelling or rescheduling; found=false means no patient has that document. When several patients share the number under different types, patients lists them and appointments is empty: ask which one and call again with documentType.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:read"]},{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:read"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:read","agenda:bookings:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsResultResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListAgentPatientAppointmentsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"bookings","verb":"lookup","id":null,"query":null},"x-fern-sdk-group-name":["agenda","bookings"],"x-fern-sdk-method-name":"lookup","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","properties":{"documentNumber":{"type":"string","description":"Exact patient document number; normalized for matching, with documentType needed when multiple types share the number."},"documentType":{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"},"document":{"type":"string","deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listAgentPatientAppointments","x-arbol-native-rpc":true}},"/v1/agenda/first-availability/{serviceId}":{"get":{"operationId":"agenda.firstAvailability.get","summary":"Get First Available","description":"Find the earliest bookable slots for a service across eligible agendas, with a bounded search horizon and continuation.","tags":["agenda"],"security":[{"arbolHuman":["agenda:availability:read"]},{"arbolMachine":["agenda:availability:read"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:availability:read"],"x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"serviceId","in":"path","required":true,"description":"Service identifier within the authenticated organization.","schema":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."}},{"name":"days","in":"query","required":false,"description":"Maximum number of days to search; omission uses the service booking horizon.","schema":{"type":"string","pattern":"^[0-9]+$","description":"Maximum number of days to search; omission uses the service booking horizon."}},{"name":"durationMinutes","in":"query","required":false,"description":"Requested visible appointment duration in minutes; admitted only when the organization permits the override.","schema":{"type":"string","pattern":"^[0-9]+$","description":"Requested visible appointment duration in minutes; admitted only when the organization permits the override."}},{"name":"from","in":"query","required":false,"description":"Earliest instant to examine; omission starts the availability search at the current time.","schema":{"type":"string","format":"date-time","description":"Earliest instant to examine; omission starts the availability search at the current time."}},{"name":"occupationMinutes","in":"query","required":false,"description":"A study length in minutes among those its agendas offer; only agendas offering it are searched, at that length.","schema":{"type":"string","pattern":"^[0-9]+$","description":"A study length in minutes among those its agendas offer; only agendas offering it are searched, at that length."}},{"name":"group","in":"query","required":false,"description":"Group first availability globally by time or return a separate earliest-slot set for each offering.","schema":{"anyOf":[{"type":"string","const":"time"},{"type":"string","const":"offering"}],"default":"time","description":"Group first availability globally by time or return a separate earliest-slot set for each offering."}},{"name":"limit","in":"query","required":false,"description":"Maximum returned slots overall or per offering according to group; defaults to 20 and cannot exceed 50.","schema":{"type":"integer","minimum":1,"maximum":50,"description":"Maximum returned slots overall or per offering according to group; defaults to 20 and cannot exceed 50."}},{"name":"locationId","in":"query","required":false,"description":"Limit appointments to agendas associated with the selected site.","schema":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Limit appointments to agendas associated with the selected site."}},{"name":"resourceId","in":"query","required":false,"description":"Agenda identifier within the authenticated organization.","schema":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Agenda identifier within the authenticated organization."}},{"name":"timezone","in":"query","required":true,"description":"IANA timezone used to interpret local dates and agenda working hours.","schema":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFirstAvailabilityResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetFirstAvailableBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetFirstAvailableForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetFirstAvailableConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetFirstAvailableUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaGetFirstAvailableServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"firstAvailability","verb":"get","id":"serviceId","query":{"days":"string","durationMinutes":"string","from":"string","occupationMinutes":"string","group":"string","limit":"integer","locationId":"string","resourceId":"string","timezone":"string"}},"x-fern-sdk-group-name":["agenda","firstAvailability"],"x-fern-sdk-method-name":"get","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["serviceId","timezone"],"properties":{"days":{"type":"string","pattern":"^[0-9]+$","description":"Maximum number of days to search; omission uses the service booking horizon."},"durationMinutes":{"type":"string","pattern":"^[0-9]+$","description":"Requested visible appointment duration in minutes; admitted only when the organization permits the override."},"from":{"type":"string","format":"date-time","description":"Earliest instant to examine; omission starts the availability search at the current time."},"occupationMinutes":{"type":"string","pattern":"^[0-9]+$","description":"A study length in minutes among those its agendas offer; only agendas offering it are searched, at that length."},"group":{"anyOf":[{"type":"string","const":"time"},{"type":"string","const":"offering"}],"default":"time","description":"Group first availability globally by time or return a separate earliest-slot set for each offering."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Maximum returned slots overall or per offering according to group; defaults to 20 and cannot exceed 50."},"locationId":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Limit appointments to agendas associated with the selected site."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Agenda identifier within the authenticated organization."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"timezone":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"getFirstAvailable","x-arbol-native-rpc":false}},"/v1/agenda/locations":{"get":{"operationId":"agenda.locations.list","summary":"List Locations","description":"List clinic locations and their active state within the authenticated tenant.","tags":["agenda"],"security":[{"arbolHuman":["agenda:locations:read"]},{"arbolMachine":["agenda:locations:read"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:locations:read"],"x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaLocationPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListLocationsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListLocationsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListLocationsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListLocationsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListLocationsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"locations","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer"}},"x-fern-sdk-group-name":["agenda","locations"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listLocations","x-arbol-native-rpc":false}},"/v1/agenda/nearest-booking-slots":{"get":{"operationId":"agenda.nearestBookingSlots.list","summary":"Find the first available times for a service","description":"Find the truly nearest bookable times for one service, in ONE call, across every professional, room or equipment that offers it (up to 50 agendas). Leave days out: the search then reaches as far as the service can be booked (its booking horizon, up to a year) and stops at the first `limit` slots, so an opening months away is found at once. Do not page week by week. An empty data list means there is no opening within that reach (searchedUntil says how far it looked); offer the waitlist instead. Pass days only to look at a shorter stretch. group 'time' (default) returns the earliest slots overall, a page at a time: pageInfo.nextCursor reads the slots after these, and pageInfo.previousCursor with direction backward the ones before; group 'offering' returns each agenda's first slots as one page. Use limit 1–3 to quote the nearest time. Each slotToken books with create_appointment.","tags":["agenda"],"security":[{"arbolHuman":["agenda:bookings:read"]},{"arbolHuman":["agenda:bookings:write"]},{"arbolMachine":["agenda:bookings:read"]},{"arbolMachine":["agenda:bookings:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:bookings:read","agenda:bookings:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"days","in":"query","required":false,"description":"Days to search; absent: as far as the service can be booked.","schema":{"type":"integer","description":"Days to search; absent: as far as the service can be booked.","minimum":1,"maximum":366}},{"name":"from","in":"query","required":false,"description":"Start of the search; defaults to now.","schema":{"type":"string","format":"date-time","description":"Start of the search; defaults to now."}},{"name":"group","in":"query","required":false,"description":"Group first availability globally by time or return a separate earliest-slot set for each offering.","schema":{"anyOf":[{"type":"string","const":"time"},{"type":"string","const":"offering"}],"default":"time","description":"Group first availability globally by time or return a separate earliest-slot set for each offering."}},{"name":"limit","in":"query","required":false,"description":"Maximum returned slots overall or per offering according to group; defaults to 20 and cannot exceed 50.","schema":{"type":"integer","minimum":1,"maximum":50,"default":20,"description":"Maximum returned slots overall or per offering according to group; defaults to 20 and cannot exceed 50."}},{"name":"locationId","in":"query","required":false,"description":"Only agendas at this site (and those not tied to any site).","schema":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only agendas at this site (and those not tied to any site)."}},{"name":"resourceId","in":"query","required":false,"description":"Only agendas that can use this professional, room or equipment.","schema":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only agendas that can use this professional, room or equipment."}},{"name":"serviceId","in":"query","required":true,"description":"Service identifier within the authenticated organization.","schema":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."}},{"name":"timezone","in":"query","required":true,"description":"IANA timezone used to interpret local dates and agenda working hours.","schema":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."}},{"name":"cursor","in":"query","required":false,"description":"A slot's place in the nearest times' order, from pageInfo. Omit it for the first page, or with direction backward for the last page within the search's reach.","schema":{"type":"string","description":"A slot's place in the nearest times' order, from pageInfo. Omit it for the first page, or with direction backward for the last page within the search's reach.","maxLength":512,"minLength":1}},{"name":"direction","in":"query","required":false,"description":"forward reads the slots after the cursor; backward reads the ones before it.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"default":"forward","description":"forward reads the slots after the cursor; backward reads the ones before it."}},{"name":"channel","in":"query","required":false,"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it.","schema":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."}},{"name":"connectionId","in":"query","required":false,"description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","schema":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaNearestSlotPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaFindNearestBookableSlotsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"nearestBookingSlots","verb":"list","id":null,"query":{"days":"integer","from":"string","group":"string","limit":"integer","locationId":"string","resourceId":"string","serviceId":"string","timezone":"string","cursor":"string","direction":"string","channel":"string","connectionId":"string"}},"x-fern-sdk-group-name":["agenda","nearestBookingSlots"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["serviceId","timezone"],"properties":{"days":{"type":"integer","description":"Days to search; absent: as far as the service can be booked.","minimum":1,"maximum":366},"from":{"type":"string","format":"date-time","description":"Start of the search; defaults to now."},"group":{"anyOf":[{"type":"string","const":"time"},{"type":"string","const":"offering"}],"default":"time","description":"Group first availability globally by time or return a separate earliest-slot set for each offering."},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20,"description":"Maximum returned slots overall or per offering according to group; defaults to 20 and cannot exceed 50."},"locationId":{"type":"string","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only agendas at this site (and those not tied to any site)."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only agendas that can use this professional, room or equipment."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"timezone":{"type":"string","description":"IANA timezone used to interpret local dates and agenda working hours."},"cursor":{"type":"string","description":"A slot's place in the nearest times' order, from pageInfo. Omit it for the first page, or with direction backward for the last page within the search's reach.","maxLength":512,"minLength":1},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"default":"forward","description":"forward reads the slots after the cursor; backward reads the ones before it."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"findNearestBookableSlots","x-arbol-native-rpc":true}},"/v1/agenda/offerings":{"post":{"operationId":"agenda.offerings.create","summary":"Create Offering","description":"Attach a service to an agenda with its scheduling requirements, duration, eligibility and intake policy.","tags":["agenda"],"security":[{"arbolHuman":["agenda:offerings:write"]}],"x-required-scopes":["agenda:offerings:write"],"x-effect":"write","x-mcp-idempotent":false,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateOfferingBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaOfferingResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateOfferingBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateOfferingForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateOfferingConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateOfferingUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateOfferingServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"offerings","verb":"create","id":null,"query":null},"x-fern-sdk-group-name":["agenda","offerings"],"x-fern-sdk-method-name":"create","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["durationMinutes","name","serviceId"],"properties":{"bookingHorizonDays":{"type":"integer","minimum":1,"maximum":730,"default":90,"description":"Farthest number of days ahead that this offering can be booked."},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":1440,"default":0,"description":"Resource occupation added after the visible appointment, in minutes."},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":1440,"default":0,"description":"Resource occupation added before the visible appointment, in minutes."},"capacity":{"type":"integer","minimum":1,"maximum":10000,"default":1,"description":"Legacy concurrent-session limit above 1; details.maxConcurrent takes precedence. The historical default 1 delegates to resource capacity."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"default":{},"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"durationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Visible appointment duration for this offering, in minutes; resource buffers apply separately."},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":525600,"default":0,"description":"Minimum advance notice in minutes before this offering can be booked."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"slotIntervalMinutes":{"type":"integer","minimum":5,"maximum":240,"default":15,"description":"Minute spacing between candidate appointment start times."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"default":"active","description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"resourceRequirements":{"type":"array","items":{"type":"object","required":["kind"],"properties":{"alternatives":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":100,"default":[],"description":"Explicit resource alternatives for this requirement; an empty list allows any resource of the required kind."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Declared domain kind of this record or configuration element."},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1,"description":"Number of resources of this kind required by one booking."},"required":{"type":"boolean","default":true,"description":"Whether this resource requirement must be satisfied for the booking to proceed."}},"additionalProperties":false},"maxItems":30,"default":[],"description":"Resource kinds, quantities and explicit alternatives needed by this offering."},"serviceId":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"createOffering","x-arbol-native-rpc":false},"get":{"operationId":"agenda.offerings.list","summary":"List Offerings","description":"List service offerings using tenant-qualified agenda, service and active-state filters.","tags":["agenda"],"security":[{"arbolHuman":["agenda:offerings:read"]},{"arbolMachine":["agenda:offerings:read"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:offerings:read"],"x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"serviceId","in":"query","required":false,"description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},{"name":"status","in":"query","required":false,"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both.","schema":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaOfferingPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListOfferingsBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListOfferingsForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListOfferingsConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListOfferingsUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListOfferingsServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"offerings","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","serviceId":"string","status":"string"}},"x-fern-sdk-group-name":["agenda","offerings"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"serviceId":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listOfferings","x-arbol-native-rpc":false}},"/v1/agenda/offerings/{offeringId}":{"patch":{"operationId":"agenda.offerings.update","summary":"Update Offering","description":"Update the offering named by offeringId using its expected version.","tags":["agenda"],"security":[{"arbolHuman":["agenda:offerings:write"]}],"x-required-scopes":["agenda:offerings:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"offeringId","in":"path","required":true,"description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateOfferingBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaOfferingResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateOfferingBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateOfferingForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateOfferingConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateOfferingUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateOfferingServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"offerings","verb":"update","id":"offeringId","query":null},"x-fern-sdk-group-name":["agenda","offerings"],"x-fern-sdk-method-name":"update","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"bookingHorizonDays":{"type":"integer","minimum":1,"maximum":730,"description":"Farthest number of days ahead that this offering can be booked."},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":1440,"description":"Resource occupation added after the visible appointment, in minutes."},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":1440,"description":"Resource occupation added before the visible appointment, in minutes."},"capacity":{"type":"integer","minimum":1,"maximum":10000,"description":"Legacy concurrent-session limit above 1; details.maxConcurrent takes precedence. The historical default 1 delegates to resource capacity."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"durationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Visible appointment duration for this offering, in minutes; resource buffers apply separately."},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":525600,"description":"Minimum advance notice in minutes before this offering can be booked."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"slotIntervalMinutes":{"type":"integer","minimum":5,"maximum":240,"description":"Minute spacing between candidate appointment start times."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"resourceRequirements":{"type":"array","items":{"type":"object","required":["kind"],"properties":{"alternatives":{"type":"array","items":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"maxItems":100,"default":[],"description":"Explicit resource alternatives for this requirement; an empty list allows any resource of the required kind."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Declared domain kind of this record or configuration element."},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1,"description":"Number of resources of this kind required by one booking."},"required":{"type":"boolean","default":true,"description":"Whether this resource requirement must be satisfied for the booking to proceed."}},"additionalProperties":false},"maxItems":30,"description":"Complete replacement for future bookings. Existing appointment and hold allocations stay unchanged."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"offeringId":{"type":"string","description":"Stable off-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"required":["expectedVersion","offeringId"]},"x-arbol-actor-kinds":["user"],"x-arbol-method":"updateOffering","x-arbol-native-rpc":false}},"/v1/agenda/resource-schedules/{resourceId}":{"patch":{"operationId":"agenda.resourceSchedules.update","summary":"Update Resource Schedule","description":"Update an agenda’s hours as one complete set of working rules, replaced atomically, naming the rules last read (expectedRules); a rule left out of the set is removed.","tags":["agenda"],"security":[{"arbolHuman":["agenda:schedule-rules:write"]}],"x-required-scopes":["agenda:schedule-rules:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"resourceId","in":"path","required":true,"description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesResultResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaReplaceScheduleRulesServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"resourceSchedules","verb":"update","id":"resourceId","query":null},"x-fern-sdk-group-name":["agenda","resourceSchedules"],"x-fern-sdk-method-name":"update","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["expectedRules","resourceId","rules"],"properties":{"expectedRules":{"type":"array","items":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string","description":"Stable sch-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"version":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails when another writer has changed this record."}},"additionalProperties":false},"maxItems":400,"description":"Identifiers and versions of the complete schedule loaded by the editor; concurrent changes reject the replacement."},"resourceId":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"rules":{"type":"array","items":{"type":"object","required":["kind"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Last local date on which this weekly band applies; null means no upper date bound."},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"default":[],"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."}},"additionalProperties":false},"maxItems":400,"description":"Schedule bands or profile policy rules owned by this configuration."}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"replaceScheduleRules","x-arbol-native-rpc":false}},"/v1/agenda/resources":{"post":{"operationId":"agenda.resources.create","summary":"Create Resource","description":"Create a professional, room or equipment agenda with its capacity and booking policy.","tags":["agenda"],"security":[{"arbolHuman":["agenda:resources:write"]}],"x-required-scopes":["agenda:resources:write"],"x-effect":"write","x-mcp-idempotent":false,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateResourceBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaResourceResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateResourceBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateResourceForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateResourceConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateResourceUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateResourceServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"resources","verb":"create","id":null,"query":null},"x-fern-sdk-group-name":["agenda","resources"],"x-fern-sdk-method-name":"create","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["kind","name","timezone"],"properties":{"capacity":{"type":"integer","exclusiveMinimum":0,"maximum":10000,"default":1,"description":"Maximum simultaneous capacity units available on this resource; each booking consumes its declared share."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"default":{},"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Resource category used to match booking requirements, such as practitioner, room or equipment."},"locationId":{"anyOf":[{"type":"string","description":"Stable loc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"default":null,"description":"Clinic site associated with this record; null means it is not tied to a site."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"default":"active","description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"createResource","x-arbol-native-rpc":false},"get":{"operationId":"agenda.resources.list","summary":"List Resources","description":"List agendas using kind and active-state filters with stable keyset pagination.","tags":["agenda"],"security":[{"arbolHuman":["agenda:resources:read"]},{"arbolMachine":["agenda:resources:read"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:resources:read"],"x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"kind","in":"query","required":false,"description":"Filter resources by the category used to satisfy offering requirements.","schema":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Filter resources by the category used to satisfy offering requirements."}},{"name":"status","in":"query","required":false,"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both.","schema":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaResourcePageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListResourcesBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListResourcesForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListResourcesConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListResourcesUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListResourcesServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"resources","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","kind":"string","status":"string"}},"x-fern-sdk-group-name":["agenda","resources"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Filter resources by the category used to satisfy offering requirements."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listResources","x-arbol-native-rpc":false}},"/v1/agenda/resources/{resourceId}":{"patch":{"operationId":"agenda.resources.update","summary":"Update Resource","description":"Update the agenda named by resourceId using its expected version.","tags":["agenda"],"security":[{"arbolHuman":["agenda:resources:write"]}],"x-required-scopes":["agenda:resources:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"resourceId","in":"path","required":true,"description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateResourceBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaResourceResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateResourceBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateResourceForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateResourceConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateResourceUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateResourceServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"resources","verb":"update","id":"resourceId","query":null},"x-fern-sdk-group-name":["agenda","resources"],"x-fern-sdk-method-name":"update","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"capacity":{"type":"integer","exclusiveMinimum":0,"description":"Maximum simultaneous capacity units available on this resource; each booking consumes its declared share.","maximum":10000},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"kind":{"anyOf":[{"type":"string","const":"practitioner"},{"type":"string","const":"assistant"},{"type":"string","const":"room"},{"type":"string","const":"chair"},{"type":"string","const":"equipment"},{"type":"string","const":"location"},{"type":"string","const":"team"},{"type":"string","const":"generic"}],"description":"Resource category used to match booking requirements, such as practitioner, room or equipment."},"locationId":{"anyOf":[{"type":"string","description":"Stable loc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^loc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Clinic site associated with this record; null means it is not tied to a site."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"resourceId":{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"required":["expectedVersion","resourceId"]},"x-arbol-actor-kinds":["user"],"x-arbol-method":"updateResource","x-arbol-native-rpc":false}},"/v1/agenda/schedule-rules":{"get":{"operationId":"agenda.scheduleRules.list","summary":"List Schedule Rules","description":"Read the agenda’s weekly bands and dated overrides in its local timezone, by agenda then start, a page at a time.","tags":["agenda"],"security":[{"arbolHuman":["agenda:schedule-rules:read"]},{"arbolMachine":["agenda:schedule-rules:read"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:schedule-rules:read"],"x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"resourceId","in":"query","required":false,"description":"Scheduling resource addressed by this request or associated with this record.","schema":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Scheduling resource addressed by this request or associated with this record."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaScheduleRulePageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListScheduleRulesBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListScheduleRulesForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListScheduleRulesConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListScheduleRulesUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListScheduleRulesServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"scheduleRules","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","resourceId":"string"}},"x-fern-sdk-group-name":["agenda","scheduleRules"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Scheduling resource addressed by this request or associated with this record."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listScheduleRules","x-arbol-native-rpc":false},"post":{"operationId":"agenda.scheduleRules.create","summary":"Create Schedule Rule","description":"Add one working rule to an agenda: a weekly band, a dated override, time off or a block, with its window as from and to in the agenda’s timezone.","tags":["agenda"],"security":[{"arbolHuman":["agenda:schedule-rules:write"]}],"x-required-scopes":["agenda:schedule-rules:write"],"x-effect":"write","x-mcp-idempotent":false,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleResultResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateScheduleRuleServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"scheduleRules","verb":"create","id":null,"query":null},"x-fern-sdk-group-name":["agenda","scheduleRules"],"x-fern-sdk-method-name":"create","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["kind","resourceId","timezone"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Last local date on which this weekly band applies; null means no upper date bound."},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Scheduling resource addressed by this request or associated with this record."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"default":[],"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"createScheduleRule","x-arbol-native-rpc":false}},"/v1/agenda/schedule-rules/{scheduleRuleId}":{"patch":{"operationId":"agenda.scheduleRules.update","summary":"Update Schedule Rule","description":"Rewrite one of an agenda’s working rules, named by scheduleRuleId, with the version last read (expectedVersion). A rule stays on its agenda.","tags":["agenda"],"security":[{"arbolHuman":["agenda:schedule-rules:write"]}],"x-required-scopes":["agenda:schedule-rules:write"],"x-effect":"write","x-mcp-idempotent":false,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"scheduleRuleId","in":"path","required":true,"description":"The rule to update.","schema":{"type":"string","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"The rule to update."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleResultResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateScheduleRuleServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"scheduleRules","verb":"update","id":"scheduleRuleId","query":null},"x-fern-sdk-group-name":["agenda","scheduleRules"],"x-fern-sdk-method-name":"update","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["kind","timezone","scheduleRuleId"],"properties":{"date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Specific local calendar date for a dated band or closure; null for a weekly band."},"effectiveFrom":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"First local date on which this weekly band applies; null means no lower date bound."},"effectiveTo":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"default":null,"description":"Last local date on which this weekly band applies; null means no upper date bound."},"kind":{"anyOf":[{"type":"string","const":"weekly"},{"type":"string","const":"date_override"},{"type":"string","const":"time_off"},{"type":"string","const":"block"}],"description":"Declared domain kind of this record or configuration element."},"timezone":{"type":"string","description":"IANA timezone used to interpret the record’s local dates and time bands."},"weekdays":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6},"maxItems":7,"default":[],"description":"Local weekdays on which a weekly band applies, numbered Sunday 0 through Saturday 6."},"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"Start of this local time band in HH:MM, interpreted in its resource’s timezone."},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","description":"End of this local time band in HH:MM, interpreted in its resource’s timezone."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The update fails if another writer has changed the rule since."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"The rule's agenda. A rule cannot move to another agenda."},"scheduleRuleId":{"type":"string","pattern":"^sch_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"The rule to update."},"endTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `to`. Answered until 2027-01-28."},"startTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$","deprecated":true,"description":"Deprecated: use `from`. Answered until 2027-01-28."}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"updateScheduleRule","x-arbol-native-rpc":false}},"/v1/agenda/services":{"post":{"operationId":"agenda.services.create","summary":"Create Service","description":"Create a bookable service with its intake, eligibility and duration policy.","tags":["agenda"],"security":[{"arbolHuman":["agenda:services:write"]}],"x-required-scopes":["agenda:services:write"],"x-effect":"write","x-mcp-idempotent":false,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateServiceBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaServiceResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateServiceBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateServiceForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateServiceConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateServiceUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateServiceServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"services","verb":"create","id":null,"query":null},"x-fern-sdk-group-name":["agenda","services"],"x-fern-sdk-method-name":"create","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["defaultDurationMinutes","name"],"properties":{"defaultDurationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Default appointment duration for this service, in minutes. Each offering can specify its own duration."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"default":{},"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"default":"active","description":"Lifecycle state controlling whether this record remains available to its domain consumers."}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"createService","x-arbol-native-rpc":false},"get":{"operationId":"agenda.services.list","summary":"List Services","description":"List services using tenant-qualified filters and stable keyset pagination.","tags":["agenda"],"security":[{"arbolHuman":["agenda:services:read"]},{"arbolMachine":["agenda:services:read"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:services:read"],"x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"status","in":"query","required":false,"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both.","schema":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaServicePageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListServicesBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListServicesForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListServicesConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListServicesUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListServicesServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"services","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","status":"string"}},"x-fern-sdk-group-name":["agenda","services"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Filter the collection by the stored active or inactive lifecycle state; omit it to include both."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listServices","x-arbol-native-rpc":false}},"/v1/agenda/services/{serviceId}":{"patch":{"operationId":"agenda.services.update","summary":"Update Service","description":"Update the service named by serviceId using its expected version.","tags":["agenda"],"security":[{"arbolHuman":["agenda:services:write"]}],"x-required-scopes":["agenda:services:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"serviceId","in":"path","required":true,"description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","schema":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateServiceBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaServiceResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateServiceBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateServiceForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateServiceConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateServiceUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateServiceServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"services","verb":"update","id":"serviceId","query":null},"x-fern-sdk-group-name":["agenda","services"],"x-fern-sdk-method-name":"update","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"defaultDurationMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"Default appointment duration for this service, in minutes. Each offering can specify its own duration."},"details":{"type":"object","patternProperties":{"^.{1,200}$":{"$ref":"#/components/schemas/AgendaSchedulingJsonValue","description":"JSON-compatible configuration value; strings, arrays and objects have bounded size."}},"additionalProperties":false,"description":"Bounded JSON configuration owned by this catalog record, including supported domain settings."},"name":{"type":"string","description":"Display name of this catalog or configuration record."},"status":{"anyOf":[{"type":"string","const":"active"},{"type":"string","const":"inactive"}],"description":"Lifecycle state controlling whether this record remains available to its domain consumers."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"serviceId":{"type":"string","description":"Stable svc-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"}},"required":["expectedVersion","serviceId"]},"x-arbol-actor-kinds":["user"],"x-arbol-method":"updateService","x-arbol-native-rpc":false}},"/v1/agenda/waitlist":{"post":{"operationId":"agenda.waitlist.create","summary":"Create Waitlist Entry","description":"An authenticated staff user records a consented waitlist request without sending or queuing messages, emails, offers or patient follow-ups. A repeat for the same patient, service and reason returns the existing open entry without changing it; use update with expectedVersion to amend it. Read the returned entry before claiming any preference was saved. This operation never books an appointment. Requires a user login with agenda:waitlist:write; service tokens and native agents cannot call it.","tags":["agenda"],"security":[{"arbolHuman":["agenda:waitlist:write"]}],"x-required-scopes":["agenda:waitlist:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaWaitlistEntryResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaCreateWaitlistEntryServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"waitlist","verb":"create","id":null,"query":null},"x-fern-sdk-group-name":["agenda","waitlist"],"x-fern-sdk-method-name":"create","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["patient","serviceId"],"properties":{"appointmentId":{"anyOf":[{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The appointment it relates to: a priority to bring forward.","default":null},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"default":null,"description":"Agent conversation URL retained so the scheduling team can reopen the referring conversation."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Desk note attached to the waiting-list entry; null means no note is recorded."},"patient":{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},"patientId":{"type":"string","pattern":"^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Registered patient selected by the desk; document resolution remains authoritative for patient identity."},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The payer the patient named, as said.","default":null},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Patient contact telephone number; null when no number was recorded."},"preferences":{"type":"object","required":[],"properties":{"from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"From this local date (YYYY-MM-DD).","default":null},"times":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"Martes y jueves en la mañana\".","default":null},"to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Until this local date (YYYY-MM-DD).","default":null}},"additionalProperties":false,"default":{"from":null,"times":null,"to":null},"description":"Patient availability preferences retained with the waiting-list entry."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"default":"normal","description":"Whether the waiting-list entry requests normal handling or an urgent appointment."},"reason":{"anyOf":[{"type":"string","const":"manual"},{"type":"string","const":"payer_review"},{"type":"string","const":"priority"}],"description":"Why: by hand, a payer only the team books, or a priority to bring forward.","default":"manual"},"resourceId":{"anyOf":[{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note.","default":null},"resourceName":{"type":"string","description":"The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."}},"additionalProperties":false},"x-arbol-actor-kinds":["user"],"x-arbol-method":"createWaitlistEntry","x-arbol-native-rpc":false},"get":{"operationId":"agenda.waitlist.list","summary":"List Waitlist","description":"List the organization’s waitlist entries, a page at a time: open ones first (urgent, then the longest waiting), then closed ones, most recently changed first, up to 500 in all. Narrow them by serviceId and resourceId (the agenda an entry asked for); offeringId finds only entries from before services and agendas were chosen separately.","tags":["agenda"],"security":[{"arbolHuman":["agenda:waitlist:read"]},{"arbolHuman":["agenda:waitlist:write"]},{"arbolMachine":["agenda:waitlist:read"]},{"arbolMachine":["agenda:waitlist:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:waitlist:read","agenda:waitlist:write"],"x-scope-match":"any","x-effect":"read","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by pageInfo; omit it to request the first page.","schema":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."}},{"name":"direction","in":"query","required":false,"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","schema":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"}},{"name":"limit","in":"query","required":false,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25}},{"name":"offeringId","in":"query","required":false,"description":"Only entries recorded for this exact offering, which only entries from before services and agendas were chosen separately have; newer entries carry serviceId and resourceId instead.","schema":{"type":"string","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only entries recorded for this exact offering, which only entries from before services and agendas were chosen separately have; newer entries carry serviceId and resourceId instead."}},{"name":"resourceId","in":"query","required":false,"description":"Only entries that asked for this professional or agenda; entries with no Agenda resource filter (resourceId null, including manual professional restrictions in note) are left out.","schema":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only entries that asked for this professional or agenda; entries with no Agenda resource filter (resourceId null, including manual professional restrictions in note) are left out."}},{"name":"serviceId","in":"query","required":false,"description":"Only entries for this service, whichever agenda they asked for.","schema":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only entries for this service, whichever agenda they asked for."}}],"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaWaitlistEntryPageResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListWaitlistBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListWaitlistForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListWaitlistConflictError"}}}},"415":{"description":"- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListWaitlistUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaListWaitlistServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-arbol-api":{"namespace":"agenda","resource":"waitlist","verb":"list","id":null,"query":{"cursor":"string","direction":"string","limit":"integer","offeringId":"string","resourceId":"string","serviceId":"string"}},"x-fern-sdk-group-name":["agenda","waitlist"],"x-fern-sdk-method-name":"list","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"Opaque cursor returned by pageInfo; omit it to request the first page."},"direction":{"anyOf":[{"type":"string","const":"forward"},{"type":"string","const":"backward"}],"description":"Direction to traverse the stable keyset ordering from the supplied cursor.","default":"forward"},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum items returned in one page. Defaults to 25; larger reads require another cursor.","default":25},"offeringId":{"type":"string","pattern":"^off_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only entries recorded for this exact offering, which only entries from before services and agendas were chosen separately have; newer entries carry serviceId and resourceId instead."},"resourceId":{"type":"string","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only entries that asked for this professional or agenda; entries with no Agenda resource filter (resourceId null, including manual professional restrictions in note) are left out."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Only entries for this service, whichever agenda they asked for."}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"listWaitlist","x-arbol-native-rpc":false}},"/v1/agenda/waitlist/{waitlistEntryId}":{"patch":{"operationId":"agenda.waitlist.update","summary":"Update Waitlist Entry","description":"An authenticated staff user amends one existing waitlist entry with expectedVersion, preserving its ID, patient, service and queue position. Omitted preferences, professional, priority and appointment association are preserved. Send the complete consented date/time window when replacing preferences. Use resourceId:null only to clear the Agenda resource filter and retain any external or multiple-professional restriction explicitly in note. Sends and queues no messages, emails, offers or patient follow-ups and never changes a booking. Requires a user login with agenda:waitlist:write; service tokens and native agents cannot call it.","tags":["agenda"],"security":[{"arbolHuman":["agenda:waitlist:write"]}],"x-required-scopes":["agenda:waitlist:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"parameters":[{"name":"waitlistEntryId","in":"path","required":true,"description":"Organization-owned waiting-list entry identifier.","schema":{"type":"string","pattern":"^wle_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned waiting-list entry identifier."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaWaitlistEntryResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpdateWaitlistEntryServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"waitlist","verb":"update","id":"waitlistEntryId","query":null},"x-fern-sdk-group-name":["agenda","waitlist"],"x-fern-sdk-method-name":"update","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","additionalProperties":false,"properties":{"appointmentId":{"anyOf":[{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"Appointment associated with this waiting-list entry; null clears the association."},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"description":"Version last read by the caller. The mutation fails if another writer has changed this record."},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"description":"HTTPS link to the originating Arbol conversation on an admitted product hostname; null when absent."},"preferences":{"type":"object","required":[],"properties":{"from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"From this local date (YYYY-MM-DD).","default":null},"times":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"Martes y jueves en la mañana\".","default":null},"to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Until this local date (YYYY-MM-DD).","default":null}},"additionalProperties":false},"resourceId":{"anyOf":[{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}]},"resourceName":{"type":"string","description":"The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk note attached to the waiting-list entry; null means no note is recorded."},"priority":{"anyOf":[{"type":"string","const":"normal"},{"type":"string","const":"urgent"}],"description":"Whether the waiting-list entry requests normal handling or an urgent appointment."},"status":{"anyOf":[{"type":"string","const":"waiting"},{"type":"string","const":"offered"},{"type":"string","const":"booked"},{"type":"string","const":"cancelled"}],"description":"Current waiting-list state: waiting, contacted, booked, expired or removed."},"waitlistEntryId":{"type":"string","pattern":"^wle_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Organization-owned waiting-list entry identifier."}},"required":["expectedVersion","waitlistEntryId"]},"x-arbol-actor-kinds":["user"],"x-arbol-method":"updateWaitlistEntry","x-arbol-native-rpc":false}},"/v1/agenda/waitlist/join":{"post":{"operationId":"agenda.waitlist.join","summary":"Add a patient to the waiting list","description":"Put a patient on the clinic's waiting list for the team to act on, only with the person's consent. Use reason 'payer_review' instead of booking when the patient's payer (EPS) has bookingPolicy 'staff_only' in get_intake_settings (create_appointment refuses them): the team coordinates with the doctor and books it. Use reason 'priority' right after create_appointment when the patient asked for a priority (urgent) appointment: pass that appointment's id as appointmentId so the team can bring it forward. For agent calls, the platform supplies conversationUrl from the invoking conversation; omit that field. Direct callers may supply the referring conversation link so the team can reopen it. Pass the patient's name, documentNumber and documentType, phone, serviceId and the payer as the patient said it. Use resourceName for the requested professional when the Agenda id is unknown. It resolves a unique active agenda for serviceId. If using resourceId, copy agendas[].id from bookingOfferings.list verbatim; its top-level id identifies an offering. Never rewrite a prefix. Search the catalog with a short clinical term, such as neurología, then select the exact serviceId. A WAITLIST_SERVICE_UNAVAILABLE, WAITLIST_RESOURCE_UNAVAILABLE or WAITLIST_RESOURCE_AMBIGUOUS refusal changes no waiting-list entry: correct the reference and retry using the existing consent. For a professional documented in the provider system but absent from Agenda, retain the restriction explicitly in note, omit resourceName and use resourceId:null on the same manual request. This is a manual preference for the team, never permission to offer any other doctor. If the person accepts several named professionals, preserve their names and the complete time window in note rather than inventing one resource ID. Calling again for the same patient, service and reason returns the same open entry. Only a request from the same verified Raíz conversation may reconcile manual and priority as one entry; payer_review stays separate. A consented reason priority request from the same verified Raíz conversation promotes a manual entry created in that same native conversation in place to priority urgent, preserving its ID, open status and queue date. For an Agenda booking include its verified appointmentId; for an external booking omit that ID and retain the verified booking in note. Historical entries, another conversation and explicit desk priority decisions are preserved; inspect the returned priority and never claim an upgrade unless it is urgent. A later manual join never lowers or duplicates that priority request. Supplied consented preferences, note, payer, conversation and appointment association can be reconciled; omit unchanged fields to retain them. A supplied confirmed phone replaces the patient contact phone; omitted or null phone preserves it. Omitted fields preserve their values; resourceId:null clears the Agenda resource filter, but never clears a named-professional restriction recorded in note. When supplying preferences, send the complete consented date/time window; null fields clear those limits. Identical repeats do not change the version. Staff status, explicit desk priority and original queue position are preserved. A closed entry is not reopened. This registers a waiting-list request, never an appointment. Then tell the patient the clinic's team will contact them.","tags":["agenda"],"security":[{"arbolHuman":["agenda:waitlist:write"]},{"arbolMachine":["agenda:waitlist:write"]},{"arbolApiKey":[]}],"x-required-scopes":["agenda:waitlist:write"],"x-effect":"write","x-mcp-idempotent":true,"x-mcp-open-world":false,"x-max-body-bytes":262144,"x-max-output-bytes":8388608,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryBody"}}}},"responses":{"200":{"description":"Successful operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaWaitlistEntryResponse"}}}},"400":{"description":"- `INVALID_INPUT`: The request does not match the published schema.\n- `WAITLIST_SERVICE_UNAVAILABLE`: Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.\n- `WAITLIST_RESOURCE_UNAVAILABLE`: The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.\n- `WAITLIST_RESOURCE_AMBIGUOUS`: More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.\n- `INVALID_APPOINTMENT_INTAKE`: Correct the indicated patient or intake fields before booking.\n- `INVALID_PATIENT_FIELDS`: Correct the indicated patient fields before saving.\n- `DURATION_CHANGE_OFF`: This service does not allow changing appointment duration.\n- `DURATION_NOT_ALLOWED`: Select a duration allowed by this service.\n- `STUDY_LENGTH_NOT_OFFERED`: Select one of the study lengths this agenda offers.\n- `INVALID_FILE_KIND`: Select a supported attachment kind.\n- `INVALID_FILE_NAME`: Provide a valid attachment filename.\n- `INVALID_ID_TOKEN`: Provide a valid identity token.\n- `INVALID_JSON`: Send a valid JSON document.\n- `INVALID_WINDOW`: Provide a positive time window within the supported range.\n- `UNEXPECTED_QUERY_PARAMETERS`: Remove query parameters not declared by this operation.\n- `INVALID_BODY`: The request body could not be read. Send valid uncompressed JSON.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INVALID_INPUT","WAITLIST_SERVICE_UNAVAILABLE","WAITLIST_RESOURCE_UNAVAILABLE","WAITLIST_RESOURCE_AMBIGUOUS","INVALID_APPOINTMENT_INTAKE","INVALID_PATIENT_FIELDS","DURATION_CHANGE_OFF","DURATION_NOT_ALLOWED","STUDY_LENGTH_NOT_OFFERED","INVALID_FILE_KIND","INVALID_FILE_NAME","INVALID_ID_TOKEN","INVALID_JSON","INVALID_WINDOW","UNEXPECTED_QUERY_PARAMETERS","INVALID_BODY"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryBadRequestError"}}}},"401":{"description":"`UNAUTHORIZED`: A valid access token is required.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNAUTHORIZED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"- `FORBIDDEN`: The token does not authorize this operation.\n- `ID_TOKEN_MISMATCH`: The identity token does not match the authenticated user.\n- `NOT_FILE_UPLOADER`: Only the uploader may delete this attachment.\n- `NOT_NOTE_AUTHOR`: Only the author may edit or delete this note.\n- `ORIGIN_NOT_ALLOWED`: This request origin is not allowed.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["FORBIDDEN","ID_TOKEN_MISMATCH","NOT_FILE_UPLOADER","NOT_NOTE_AUTHOR","ORIGIN_NOT_ALLOWED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryForbiddenError"}}}},"404":{"description":"`RECORD_NOT_FOUND`: The requested record does not exist.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["RECORD_NOT_FOUND"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaRecordNotFoundError"}}}},"409":{"description":"- `PAYER_STAFF_ONLY`: This payer requires booking by the organization team. Add the patient to the waitlist for review.\n- `APPOINTMENT_NOT_REMINDABLE`: Only an open future appointment with a patient email can receive a reminder.\n- `APPOINTMENT_WITHOUT_PATIENT`: Link a patient to this appointment before performing this action.\n- `ARBOL_CATALOG_TOO_LARGE`: The integration catalog exceeds the supported size. Narrow the catalog before retrying.\n- `ARBOL_CONFIGURATION_REQUIRED`: Configure the organization integration before using it.\n- `NOTIFICATIONS_NOT_SET_UP`: Patient emails need the notifications module turned on.\n- `SAME_OFFERING`: An agenda cannot take its own appointments.\n- `SAME_SERVICE`: A service cannot be merged into itself.\n- `INVALID_HOLD_PAYLOAD`: The held slot is malformed.\n- `HOLD_NOT_ACTIVE`: The hold is no longer active.\n- `APPOINTMENT_CLOSED`: A cancelled appointment cannot be edited.\n- `APPOINTMENT_VERSION_MISMATCH`: The appointment changed after it was loaded.\n- `APPOINTMENT_NOT_MOVABLE`: A closed appointment cannot be moved.\n- `SERVICE_CHANGED`: The new slot belongs to another service.\n- `SCHEDULE_CHANGED`: The selected time no longer matches the current schedule.\n- `INVALID_AVAILABILITY_WINDOW`: Availability windows must be positive and at most 31 days.\n- `SERVICE_CAPACITY_EXCEEDED`: This service already has as many appointments as it can run at once at that time.\n- `RESOURCE_CAPACITY_EXCEEDED`: The selected time is no longer available.\n- `OVERBOOK_OUT_OF_RANGE`: An overbooked appointment must start between yesterday and the booking horizon.\n- `OVERBOOK_UNAVAILABLE`: No active agenda can take this appointment.\n- `STUDY_OVERBOOKING_NOT_ALLOWED`: This study has an explicit capacity limit and requires an available ordinary slot.\n- `INVALID_SLOT_TOKEN`: Request a fresh available slot before booking.\n- `BIRTH_DATE_REQUIRED`: This service has an age rule: the patient's date of birth is required.\n- `AGE_NOT_ELIGIBLE`: The patient's age on that day is outside this service's age rule.\n- `INTAKE_SETTINGS_VERSION_MISMATCH`: Intake settings changed; reload before saving.\n- `PAYER_NAME_TAKEN`: Another payer already has that name.\n- `PAYER_VERSION_MISMATCH`: The payer changed; reload before saving.\n- `LOCATION_VERSION_MISMATCH`: The site changed after it was loaded.\n- `PROFILE_VERSION_MISMATCH`: The profile changed after it was loaded.\n- `PROVIDER_DISABLED`: Enable the provider integration before using it.\n- `BINDING_VERSION_MISMATCH`: Connection changed or is synchronizing; refresh and retry.\n- `RESOURCE_VERSION_MISMATCH`: The resource changed after it was loaded.\n- `SCHEDULE_RULE_AGENDA_MISMATCH`: The schedule rule belongs to another agenda.\n- `SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED`: Expected version is required for an update.\n- `SCHEDULE_RULE_VERSION_MISMATCH`: The schedule rule changed after it was loaded.\n- `SCHEDULE_RULES_CHANGED`: The schedule changed after it was loaded.\n- `SERVICE_VERSION_MISMATCH`: The service changed after it was loaded.\n- `OFFERING_VERSION_MISMATCH`: The offering changed after it was loaded.\n- `SAME_RESOURCE`: An agenda cannot take its own appointments.\n- `TARGET_INACTIVE`: An archived agenda takes no appointments.\n- `SLOT_REQUIRED`: A hold or slot token is required.\n- `ARBOL_SETTINGS_VERSION_MISMATCH`: Arbol settings changed.\n- `NOTIFICATION_SETTINGS_VERSION_MISMATCH`: Notification settings changed; reload before saving.\n- `ORGANIZATION_VERSION_MISMATCH`: The organization changed; reload before saving.\n- `PATIENT_DOCUMENT_TAKEN`: Another patient has that document.\n- `PATIENT_VERSION_MISMATCH`: The patient changed after it was loaded.\n- `DAILY_REPORT_TOO_LARGE`: Daily report exceeds the supported size; no partial report was generated.\n- `REPORT_SETTINGS_VERSION_MISMATCH`: Report settings changed; reload before saving.\n- `REPORT_NOTIFICATIONS_DISABLED`: Enable the notifications module before sending a daily agenda.\n- `REPORT_RECIPIENTS_REQUIRED`: No eligible organization owner or additional delivery address is available for this agenda.\n- `WAITLIST_ENTRY_VERSION_MISMATCH`: The waitlist entry changed; reload before saving.\n- `REMOVAL_JOB_CONFLICT`: A removal is already active, or this idempotency key belongs to another decision.\n- `FOLLOWUP_SETTINGS_VERSION_MISMATCH`: Follow-up email settings changed; reload before saving.\n- `FOLLOWUP_DISABLED`: Turn this follow-up email on in the notification settings first.\n- `FOLLOWUP_CONSENT_REQUIRED`: The patient has not consented to this follow-up email for their current address.\n- `PATIENT_EMAIL_REQUIRED`: Record the patient's email before this action.\n- `PATIENT_ARCHIVED`: Restore the patient before this action.\n- `RECALL_ALREADY_ACTIVE`: The patient already has an active recall for this service.\n- `RECALL_MONTH_PASSED`: The recall's month has already passed.\n- `RECALL_VISIT_REQUIRED`: Enter the last visit: there is no attended appointment of this service for the patient.\n- `RECALL_VISIT_IN_FUTURE`: The last visit must be a past date.\n- `RECALL_VERSION_MISMATCH`: The recall changed after it was loaded.\n- `SLOT_OFFER_NOT_ALLOWED`: Only an open waiting-list entry of a registered patient can receive a slot offer.\n- `SLOT_OFFER_MISMATCH`: The slot belongs to another service or agenda than the entry asks for.\n- `SLOT_OFFER_TOO_SOON`: The slot starts too soon to hold it for the patient; offer a later one.\n- `SLOT_OFFER_ALREADY_OPEN`: This waiting-list entry already has an open slot offer.\n- `SLOT_OFFER_CLOSED`: The slot offer is no longer open.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["PAYER_STAFF_ONLY","APPOINTMENT_NOT_REMINDABLE","APPOINTMENT_WITHOUT_PATIENT","ARBOL_CATALOG_TOO_LARGE","ARBOL_CONFIGURATION_REQUIRED","NOTIFICATIONS_NOT_SET_UP","SAME_OFFERING","SAME_SERVICE","INVALID_HOLD_PAYLOAD","HOLD_NOT_ACTIVE","APPOINTMENT_CLOSED","APPOINTMENT_VERSION_MISMATCH","APPOINTMENT_NOT_MOVABLE","SERVICE_CHANGED","SCHEDULE_CHANGED","INVALID_AVAILABILITY_WINDOW","SERVICE_CAPACITY_EXCEEDED","RESOURCE_CAPACITY_EXCEEDED","OVERBOOK_OUT_OF_RANGE","OVERBOOK_UNAVAILABLE","STUDY_OVERBOOKING_NOT_ALLOWED","INVALID_SLOT_TOKEN","BIRTH_DATE_REQUIRED","AGE_NOT_ELIGIBLE","INTAKE_SETTINGS_VERSION_MISMATCH","PAYER_NAME_TAKEN","PAYER_VERSION_MISMATCH","LOCATION_VERSION_MISMATCH","PROFILE_VERSION_MISMATCH","PROVIDER_DISABLED","BINDING_VERSION_MISMATCH","RESOURCE_VERSION_MISMATCH","SCHEDULE_RULE_AGENDA_MISMATCH","SCHEDULE_RULE_EXPECTED_VERSION_REQUIRED","SCHEDULE_RULE_VERSION_MISMATCH","SCHEDULE_RULES_CHANGED","SERVICE_VERSION_MISMATCH","OFFERING_VERSION_MISMATCH","SAME_RESOURCE","TARGET_INACTIVE","SLOT_REQUIRED","ARBOL_SETTINGS_VERSION_MISMATCH","NOTIFICATION_SETTINGS_VERSION_MISMATCH","ORGANIZATION_VERSION_MISMATCH","PATIENT_DOCUMENT_TAKEN","PATIENT_VERSION_MISMATCH","DAILY_REPORT_TOO_LARGE","REPORT_SETTINGS_VERSION_MISMATCH","REPORT_NOTIFICATIONS_DISABLED","REPORT_RECIPIENTS_REQUIRED","WAITLIST_ENTRY_VERSION_MISMATCH","REMOVAL_JOB_CONFLICT","FOLLOWUP_SETTINGS_VERSION_MISMATCH","FOLLOWUP_DISABLED","FOLLOWUP_CONSENT_REQUIRED","PATIENT_EMAIL_REQUIRED","PATIENT_ARCHIVED","RECALL_ALREADY_ACTIVE","RECALL_MONTH_PASSED","RECALL_VISIT_REQUIRED","RECALL_VISIT_IN_FUTURE","RECALL_VERSION_MISMATCH","SLOT_OFFER_NOT_ALLOWED","SLOT_OFFER_MISMATCH","SLOT_OFFER_TOO_SOON","SLOT_OFFER_ALREADY_OPEN","SLOT_OFFER_CLOSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryConflictError"}}}},"413":{"description":"`REQUEST_TOO_LARGE`: The request exceeds the allowed size.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["REQUEST_TOO_LARGE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeError"}}}},"415":{"description":"- `UNSUPPORTED_MEDIA_TYPE`: The request content type is not supported.\n- `APPLICATION_JSON_REQUIRED`: Send the request as application/json.\n- `FILE_CONTENT_MISMATCH`: The uploaded content does not match its declared file type.\n- `UNSUPPORTED_CONTENT_ENCODING`: Send an uncompressed request body.\n- `UNSUPPORTED_FILE_TYPE`: Select a supported attachment file type.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UNSUPPORTED_MEDIA_TYPE","APPLICATION_JSON_REQUIRED","FILE_CONTENT_MISMATCH","UNSUPPORTED_CONTENT_ENCODING","UNSUPPORTED_FILE_TYPE"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryUnsupportedMediaTypeError"}}}},"426":{"description":"`UPGRADE_REQUIRED`: Open the live channel with a WebSocket upgrade.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPGRADE_REQUIRED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaUpgradeRequiredError"}}}},"429":{"description":"`RATE_LIMITED`: The request rate limit was exceeded. Try again later.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}},"Retry-After":{"description":"Seconds before another attempt.","schema":{"type":"integer","minimum":0}}},"x-failure-codes":["RATE_LIMITED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}},"500":{"description":"`INTERNAL_ERROR`: The service could not complete the operation.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["INTERNAL_ERROR"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalError"}}}},"502":{"description":"`OUTCOME_UNKNOWN`: The operation may have been applied; check its result before repeating it.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["OUTCOME_UNKNOWN"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeUnknownError"}}}},"503":{"description":"- `UPSTREAM_UNAVAILABLE`: The upstream service could not complete the request.\n- `ARBOL_RESPONSE_TOO_LARGE`: The integration response exceeds the supported size.\n- `ARBOL_UNAVAILABLE`: The integration service is temporarily unavailable. Retry later.\n- `REMOVAL_WORKFLOW_UNAVAILABLE`: Durable removal is unavailable here; use the bounded manual removal operations.\n- `ARBOL_REFUSED`: The integration service rejected this request. Review its configuration.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_UNAVAILABLE","ARBOL_RESPONSE_TOO_LARGE","ARBOL_UNAVAILABLE","REMOVAL_WORKFLOW_UNAVAILABLE","ARBOL_REFUSED"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgendaAddAgentWaitlistEntryServiceUnavailableError"}}}},"504":{"description":"`UPSTREAM_TIMEOUT`: The upstream service did not respond before its deadline.","headers":{"X-Request-Id":{"description":"Request correlation identifier.","schema":{"type":"string"}}},"x-failure-codes":["UPSTREAM_TIMEOUT"],"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpstreamTimeoutError"}}}}},"x-scope-match":"any","x-arbol-api":{"namespace":"agenda","resource":"waitlist","verb":"join","id":null,"query":null},"x-fern-sdk-group-name":["agenda","waitlist"],"x-fern-sdk-method-name":"join","x-arbol-service-id":"agenda","x-arbol-publication":"selected","x-arbol-publish":{"rest":true,"mcp":true},"x-arbol-input-schema":{"type":"object","required":["patient","reason","serviceId"],"properties":{"appointmentId":{"anyOf":[{"type":"string","description":"Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"The appointment it relates to: a priority to bring forward."},"conversationUrl":{"anyOf":[{"type":"string","format":"uri","maxLength":500},{"type":"null"}],"description":"Agent conversation URL retained so the scheduling team can reopen the referring conversation.","x-arbol-runtime-input":"conversationUrl"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Desk note attached to the waiting-list entry; null means no note is recorded."},"patient":{"type":"object","required":["name"],"properties":{"documentNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Patient document number as typed (\"12.345.678\"), stored normalized; null when the patient has none. Identity combines its type and number."},"documentType":{"anyOf":[{"type":"string","description":"Document-type code from the organization’s configured active types. Input is trimmed and uppercased."},{"type":"null"}],"default":null,"description":"Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."},"name":{"type":"string","description":"Patient display name with surrounding whitespace removed."},"document":{"anyOf":[{"type":"string"},{"type":"null"}],"deprecated":true,"description":"Deprecated: use `documentNumber`. Answered until 2027-01-28."}},"additionalProperties":false},"payer":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The payer the patient named, as said."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The contact phone supplied or confirmed by the person for this request. Replaces their stored contact phone; omitted or null preserves it."},"preferences":{"type":"object","required":[],"properties":{"from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"From this local date (YYYY-MM-DD).","default":null},"times":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"\"Martes y jueves en la mañana\".","default":null},"to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Until this local date (YYYY-MM-DD).","default":null}},"additionalProperties":false,"description":"Patient availability preferences retained with the waiting-list entry."},"resourceName":{"type":"string","description":"The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."},"reason":{"anyOf":[{"type":"string","const":"manual"},{"type":"string","const":"payer_review"},{"type":"string","const":"priority"}],"description":"manual records a consented waitlist request after no suitable availability; payer_review asks staff to coordinate a restricted payer; priority asks staff to bring an existing booking forward."},"resourceId":{"anyOf":[{"type":"string","description":"Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.","pattern":"^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},{"type":"null"}],"description":"One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note."},"serviceId":{"type":"string","pattern":"^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"Service identifier within the authenticated organization."},"channel":{"anyOf":[{"type":"string","const":"voice"},{"type":"string","const":"whatsapp"},{"type":"string","const":"web"}],"description":"The conversation's channel, set by the platform. It changes nothing in Agenda; omit it."},"connectionId":{"type":"string","description":"The platform's id for the organization's Agenda, set by the platform. An organization has one Agenda, so it selects nothing; omit it.","maxLength":128,"minLength":1,"pattern":"^[\\w-]+$"}},"additionalProperties":false},"x-arbol-actor-kinds":["user","service"],"x-arbol-method":"addAgentWaitlistEntry","x-arbol-native-rpc":true}}}}