Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

4.4 KB
Raw Blame
use utoipa::OpenApi;

/// OpenAPI document for the calendar service.
///
/// The calendar mutation operations live in the shared `calendar_events` crate.
/// Their paths are root-relative; clients carry the `/calendar` gateway prefix
/// in their base URL.
#[derive(OpenApi)]
#[openapi(
    paths(
        crate::health::health_handler,
        calendar_events::inbound::replacement_router::prepare_calendar_replacement,
        calendar_events::inbound::replacement_router::confirm_calendar_replacement,
        calendar_events::inbound::replacement_router::calendar_replacement_status,
        calendar_events::inbound::replacement_router::discard_calendar_replacement,
        calendar_events::inbound::replacement_router::calendar_event_provider_url,
        calendar_events::inbound::team_router::get_team_sharing,
        calendar_events::inbound::team_router::set_team_sharing,
        calendar_events::inbound::team_router::get_availability_calendars,
        calendar_events::inbound::team_router::set_availability_calendar,
        calendar_events::inbound::mutation_router::list_calendars,
        calendar_events::inbound::mutation_router::create_calendar_event,
        calendar_events::inbound::mutation_router::update_calendar_event,
        calendar_events::inbound::mutation_router::delete_calendar_event,
        calendar_events::inbound::mutation_router::rsvp_calendar_event,
        calendar_events::inbound::mutation_router::invite_calendar_event_guests,
        calendar_events::inbound::mutation_router::copy_calendar_event,
        calendar_events::inbound::mutation_router::respond_to_join_request,
        calendar_scheduling::inbound::router::settings,
        calendar_scheduling::inbound::router::save,
        calendar_scheduling::inbound::router::bookings,
        calendar_scheduling::inbound::router::manage,
        calendar_scheduling::inbound::router::insights,
        calendar_scheduling::inbound::router::change,
        calendar_scheduling::inbound::router::host_slots,
        calendar_scheduling::inbound::router::list_links,
        calendar_scheduling::inbound::router::create_link,
        calendar_scheduling::inbound::router::edit_link,
    ),
    components(schemas(
        calendar_events::inbound::team_router::TeamCalendarSharingBody,
        calendar_events::inbound::team_router::AvailabilityCalendarBody,
        calendar_events::inbound::team_router::AvailabilityCalendarsResponse,
        calendar_events::domain::team::TeamCalendarSharing,
        calendar_events::domain::team::AvailabilityCalendar,
        calendar_events::inbound::mutation_router::CreateCalendarEventRequest,
        calendar_events::inbound::mutation_router::ListCalendarsResponse,
        calendar_events::domain::models::VisibleCalendar,
        calendar_events::inbound::mutation_router::UpdateCalendarEventRequest,
        calendar_events::inbound::mutation_router::RsvpCalendarEventRequest,
        calendar_events::inbound::mutation_router::InviteCalendarEventGuestsRequest,
        calendar_events::inbound::mutation_router::CalendarGuestInputBody,
        calendar_events::inbound::mutation_router::CopyCalendarEventRequest,
        calendar_events::inbound::mutation_router::RespondToJoinRequestRequest,
        calendar_events::inbound::mutation_router::CalendarJoinRequestDecision,
        calendar_events::domain::join_requests::CalendarJoinRequest,
        calendar_events::domain::join_requests::CalendarJoinRequestStatus,
        calendar_events::inbound::mutation_router::CalendarAttendeeInputBody,
        calendar_events::inbound::mutation_router::CalendarMutationApiError,
        calendar_events::inbound::mutation_router::CalendarMutationErrorCode,
        calendar_events::inbound::mutation_router::CalendarDeletionScopeParam,
        calendar_events::inbound::mutation_router::CalendarUpdateScopeParam,
        calendar_events::domain::models::CalendarEvent,
        calendar_events::domain::models::CalendarAttendee,
        calendar_events::domain::models::AttendeeResponseStatus,
        calendar_events::domain::models::EventTime,
        calendar_events::domain::models::EventStatus,
        calendar_events::domain::models::EventVisibility,
        calendar_events::domain::models::EventTransparency,
        calendar_events::domain::models::RefreshCalendarEvent,
    )),
    tags(
        (name = "calendar_events", description = "Macro Calendar Service"),
        (name = "scheduling", description = "Booking links, bookings and booking settings"),
    )
)]
pub struct ApiDoc;