What It Is#
Topolo Calendar is the scheduling application for public booking pages, availability management, invitations, and booking lifecycle controls across the Topolo platform. Hosts publish event types at calendar.topolo.app/<handle>/<event-type> and invitees book timeslots without needing an account.
Automation workflows#
Examples below are source-reviewed illustrations of input and expected behavior. They were not executed and are not captured responses. IDs are placeholders to replace with identifiers discovered in the selected context. Dates are illustrative. Successful persistence, notification requests, provider connection and recipient delivery require separate verification.
Authorization and selected context#
Confirm the production identity and organization with topolo whoami, discover this application and the intended resource using the current credential, then inspect the exact action contract. A schema-valid input does not establish permission or resource access. Calendar records use their selected app workspace; discover that workspace separately and preserve its scope. Obtain authorization for the specific effect, retain the original payload, and verify the resulting state using the named read action. On an uncertain write outcome, reconcile the record before repeating it. Do not store API keys, provider passwords, access tokens, private exports or invitee manage links in documentation.
Create the workspace host#
Read host.get first. A new workspace can return host:null. Use host.update with displayName and a valid IANA timezone to create its first host, then read host.get again. The source generates the public handle and preserves it on later updates; callers do not supply a handle in this action. host.avatar.upload returns an avatar URL; pass that URL to host.update if you want it attached to the host profile. Uploading the image alone is not proof the profile now uses it.
Set availability and event types#
Read availability.get before availability.update. The rules array replaces the entire weekly schedule; omitted weekdays become unavailable. Minutes are counted from local midnight in the host timezone and each end must follow its start. availability.overrides.create with a date and no window blocks the whole date; list overrides and preserve a prior snapshot before changing them. Deleting an override restores weekly-rule behavior. Discover event types with event_types.list/get. Create or update duration, buffers and notice deliberately; changing a slug changes the shared booking address. event_types.delete is refused when bookings reference the type.
Manage bookings and invitation effects#
List bookings with explicit offset-aware windowStart/windowEnd values; discover bookingId from the result and get the booking before editing. bookings.create requires startAt and inviteeName, plus either one event-type reference or durationMinutes for a custom booking; never supply both eventTypeId and eventTypeSlug. A booking may be pending approval or confirmed. Approval, updates, rescheduling, cancellation and invite resend can request notifications through Notify. Read bookings.get for booking state and delivery receipts; a booking response is not recipient-delivery proof. Confirm the intended invitee, time and communication before a mutation. A 409 booking_conflict requires a different available slot, not repeated blind writes. Approval requires pending status.
Connect and synchronize external calendars#
List external calendars first. external_calendars.oauth.start returns an authorization URL for a person to visit; it does not itself prove a connection. The source saves provider identity and credentials through Nexus, while Calendar keeps a connection reference and busy-time projection. CalDAV registration is not proof of successful synchronization. Supply credentials only through the authorized input channel, never through examples or logs. Manual/ICS registration alone does not import busy time. Inspect external_calendars.sync semantics for the chosen provider, confirm its window/blocks, and read the connection and relevant availability afterward. Disconnecting a calendar can expose slots previously suppressed by its busy blocks; existing bookings are not cancelled by sync.
Read the operational widget#
widget.get is a read-only Calendar operations summary. Check workspace, widget state and generatedAt. An empty widget can be a valid state; it does not establish that every booking workflow or external provider has been checked.
Handle privacy and workspace retirement#
privacy.export, privacy.erase and privacy.protection.canary are organization-level operations, even when a workspace is selected. Export only for an authorized purpose and protect its contents. Erasure requires the literal ERASE confirmation and removes Calendar-owned organization data and avatars; do not infer that invitees have been notified. The protection canary is a diagnostic read, not a privacy certification. workspaces.delete is for the exact verified workspace, requires it to be empty, and defers archival to Auth before removing its local mirror. An in-use/default workspace refusal must be resolved through its legitimate owner, not bypassed by deleting domain records.
Illustrative inputs and expected behavior#
Set the host profile#
Action: app_topolo_calendar.host.update · Inspect contract
Illustrative input; replace discovered identifiers before any authorized call.
{
"displayName": "Example Studio",
"timezone": "Asia/Dubai"
}Expected behavior: Creates or updates the selected workspace host. Read host.get and retain the generated handle.
Set weekly availability#
Action: app_topolo_calendar.availability.update · Inspect contract
Illustrative input; replace discovered identifiers before any authorized call.
{
"rules": [
{
"dayOfWeek": 1,
"startMinute": 540,
"endMinute": 1020
}
]
}Expected behavior: Replaces the weekly rules with Monday 09:00–17:00 only; every omitted weekday is unavailable.
Block a date#
Action: app_topolo_calendar.availability.overrides.create · Inspect contract
Illustrative input; replace discovered identifiers before any authorized call.
{
"date": "2026-11-20",
"startMinute": null,
"endMinute": null
}Expected behavior: Blocks this date in the host timezone. List overrides to verify the saved override.
Create an event type#
Action: app_topolo_calendar.event_types.create · Inspect contract
Illustrative input; replace discovered identifiers before any authorized call.
{
"slug": "intro-call",
"name": "Intro call",
"durationMinutes": 30,
"bufferAfterMinutes": 10,
"minNoticeMinutes": 120
}Expected behavior: Creates a 30-minute event type when permitted. Its public address includes the discovered host handle and event-type slug.
List bookings#
Action: app_topolo_calendar.bookings.list · Inspect contract
Illustrative input; replace discovered identifiers before any authorized call.
{
"windowStart": "2026-11-23T00:00:00+04:00",
"windowEnd": "2026-11-24T00:00:00+04:00"
}Expected behavior: Reads the selected workspace bookings for this offset-aware window; it does not send invitations.
Create a booking#
Action: app_topolo_calendar.bookings.create · Inspect contract
Illustrative input; replace discovered identifiers before any authorized call.
{
"eventTypeId": "evt_example_discovered",
"startAt": "2026-11-23T10:00:00+04:00",
"inviteeName": "Example Invitee",
"inviteeEmail": "invitee@example.com"
}Expected behavior: If authorized and conflict-free, persists a pending or confirmed booking according to its event type. Inspect booking state and any notification receipts separately.
Begin an external calendar connection#
Action: app_topolo_calendar.external_calendars.oauth.start · Inspect contract
Illustrative input; replace discovered identifiers before any authorized call.
{
"provider": "google",
"redirectPath": "/settings/calendars"
}Expected behavior: Returns an authorization URL for human consent. Connection and sync remain unverified until separately read back.
Action index#
Inspect each current action before use; this workflow index does not replace its input/output contract.
| Action | Declared permission | Method |
|---|---|---|
app_topolo_calendar.availability.get | app_topolo_calendar.availability:read | GET |
app_topolo_calendar.availability.overrides.create | app_topolo_calendar.availability:write | POST |
app_topolo_calendar.availability.overrides.delete | app_topolo_calendar.availability:write | DELETE |
app_topolo_calendar.availability.overrides.list | app_topolo_calendar.availability:read | GET |
app_topolo_calendar.availability.update | app_topolo_calendar.availability:write | PUT |
app_topolo_calendar.bookings.approve | app_topolo_calendar.bookings:write | POST |
app_topolo_calendar.bookings.cancel | app_topolo_calendar.bookings:write | POST |
app_topolo_calendar.bookings.create | app_topolo_calendar.bookings:write | POST |
app_topolo_calendar.bookings.get | app_topolo_calendar.bookings:read | GET |
app_topolo_calendar.bookings.invite.resend | app_topolo_calendar.bookings:write | POST |
app_topolo_calendar.bookings.list | app_topolo_calendar.bookings:read | GET |
app_topolo_calendar.bookings.reschedule | app_topolo_calendar.bookings:write | POST |
app_topolo_calendar.bookings.update | app_topolo_calendar.bookings:write | PUT |
app_topolo_calendar.event_types.create | app_topolo_calendar.event_types:write | POST |
app_topolo_calendar.event_types.delete | app_topolo_calendar.event_types:write | DELETE |
app_topolo_calendar.event_types.get | app_topolo_calendar.event_types:read | GET |
app_topolo_calendar.event_types.list | app_topolo_calendar.event_types:read | GET |
app_topolo_calendar.event_types.update | app_topolo_calendar.event_types:write | PUT |
app_topolo_calendar.external_calendars.caldav.create | app_topolo_calendar.availability:write | POST |
app_topolo_calendar.external_calendars.create | app_topolo_calendar.availability:write | POST |
app_topolo_calendar.external_calendars.delete | app_topolo_calendar.availability:write | DELETE |
app_topolo_calendar.external_calendars.list | app_topolo_calendar.availability:read | GET |
app_topolo_calendar.external_calendars.oauth.start | app_topolo_calendar.availability:write | POST |
app_topolo_calendar.external_calendars.sync | app_topolo_calendar.availability:write | POST |
app_topolo_calendar.host.avatar.upload | app_topolo_calendar.host:write | POST |
app_topolo_calendar.host.get | app_topolo_calendar.host:read | GET |
app_topolo_calendar.host.update | app_topolo_calendar.host:write | PUT |
app_topolo_calendar.privacy.erase | app_topolo_calendar.privacy:delete | DELETE |
app_topolo_calendar.privacy.export | app_topolo_calendar.privacy:read | GET |
app_topolo_calendar.privacy.protection.canary | app_topolo_calendar.privacy:read | GET |
app_topolo_calendar.widget.get | app_topolo_calendar.host:read | GET |
app_topolo_calendar.workspaces.delete | app_topolo_calendar.workspace:delete | DELETE |
Architecture#
Calendar is a Cloudflare-native Worker with D1 as the system of record and a per-host Durable Object (CalendarHostDO) acting as the hot-path coordinator. The DO serialises booking attempts, writes slot holds through to D1, caches availability windows, and writes confirmed bookings to D1 before acknowledging success.
Workspace Management#
The shared Topolo workspace control reads and manages app-scoped workspace identity through Topolo Auth: authenticated users can list, create, rename, choose a default, and delete an eligible workspace. Workspace IDs and slugs remain stable and exactly one default is explicit. The selected platform workspace scopes this application's app-owned records; the app retains only domain-specific deletion guards for default or non-empty workspaces.
Runtime Surfaces#
The primary public surface is https://calendar.topolo.app. The root page renders Topolo's shared landing page from Auth-managed Calendar landing config. Public booking pages live at /<handle>/<event-type>. The authenticated admin UI is served from /app inside Topolo's shared application shell, with the app switcher preloaded during shell boot and a weekly Calendar workspace as the default signed-in view.
API Reference#
The public booking API exposes host lookup, event-type lookup, availability probing, booking holds, booking confirmation, and token-backed invitee manage links under /api/public/*. The authenticated host-management API lives under /api/admin/* for host profile, event type, availability rules and overrides, booking detail/edit/reschedule/cancel/resend actions, and external-calendar free/busy sync scaffolding.
Auth and Permissions#
Calendar uses Topolo Auth for workspace access through the stable service slug topolo-calendar; the Worker and browser resolve the current environment's concrete Auth app id before login, callback exchange, widget responses, and admin Auth middleware checks. Public booking endpoints are unauthenticated so invitees can load a page, probe availability, place a temporary hold, and submit a booking. Admin endpoints (/api/admin/*) require a valid bearer token through the shared Auth middleware and enforce the matching Calendar service-scoped permissions for host, event type, availability, and booking actions.
Calendar's admin sign-in uses the shared first-party Topolo login page on calendar.topolo.app/login, with embedded email/password sign-in, password reveal, signup handoff, Auth-backed password submission, and /auth/callback completion. For automation, read host.get first. If the selected workspace has no host, use host.update with a display name and timezone; Calendar generates the public handle. Read the returned profile before sharing booking links. Public invitee booking flows remain account-free.
Data Ownership#
Calendar owns hosts, event types, availability rules and overrides, bookings, attendees, delivery receipts, persisted slot holds, recurrence series, public manage-token hashes, external-calendar sync projections, stable Nexus connection references, and imported external busy blocks. Nexus is the sole owner of Google, Microsoft, and CalDAV provider identity, lifecycle state, errors, scopes, expiry, and credentials under app_topolo_calendar; Calendar resolves the connection only while connecting or syncing and does not persist provider credentials in D1. Meeting sessions (join tokens, transcripts, realtime state) remain owned by Topolo Chat; Calendar stores a meetingProviderRef pointing at the created Chat meeting for Topolo Chat event types. External providers (Microsoft Teams, Google Meet, Zoom) remain configurable per event type by storing the host-supplied meeting link or instructions on the booking until native provider adapters are connected.
Invitations and Manage Links#
Calendar emits calendar.booking.invite_requested, calendar.booking.updated, calendar.booking.cancelled, and calendar.booking.reminder_due events through TopoloNotify after booking persistence succeeds. The notification payload includes a Calendar-built RFC5545 .ics attachment with stable UID, incrementing SEQUENCE, METHOD:REQUEST for create/update/reminder, and METHOD:CANCEL for cancellation. Invitees receive token-backed manage links at /manage/<token> for view, cancel, and reschedule without a Topolo account.
Mobile Experience#
The checked-in mobile experience contract is approved in native_capability mode. Its fallback route is /agenda, its offline policy is read_through_cache, and it requires organization context.
Published permissions: bookings:read, bookings:write.
/agendauses/api/admin/bookingswith thecalendar.agendatemplate andcalendar.agenda.listdata source./agenda/:iduses/api/admin/bookings/:idwith therecord.detailtemplate andcalendar.agenda.detaildata source.
The native clients consume this manifest as an explicit rendering contract. A web mode record intentionally opens the product web experience; native_capability publishes the listed native routes and actions. Do not infer unlisted native behavior.
Deployments#
Calendar deploys as the Cloudflare Worker topolo-calendar with static assets bound through ASSETS, a D1 binding named DB, and the CALENDAR_HOST Durable Object binding. The production domain is calendar.topolo.app; staging mirrors it at calendar.stg.topolo.us with a staging-specific browser build so Auth and app-origin calls stay inside the staging installation.
Recurrence and Sync Scope#
Calendar supports a bounded RFC5545 recurrence subset for daily, weekly, and monthly series with interval plus count or until limits. The Worker materializes occurrences for the next 18 months and records edited or cancelled occurrence exceptions. External calendar sync is provider-neutral at the core: Google Calendar, Microsoft Graph, and CalDAV adapters import free/busy blocks into external_busy_blocks, and the same conflict engine checks confirmed bookings, persisted holds, availability overrides, and external busy blocks.
Failure Modes#
- Google/Microsoft OAuth and CalDAV sync require an active Nexus connection under
app_topolo_calendar; missing, disconnected, deauthorized, deleted, or error-state connections fail closed - rows migrated from Calendar's retired local credential store have no canonical Nexus reference and remain disconnected until the host reconnects the provider
- invitee manage links are bearer tokens; stale or rotated links return
invalid_or_stale_token TOPOLO_NOTIFY_URLorTOPOLO_SERVICE_CLIENT_SECRETmissing prevents invite/update/cancel/reminder delivery while leaving booking persistence intact
Debugging#
Start with the current action reference, then verify the DB and CALENDAR_HOST bindings. Public 4xx responses usually mean a missing host, missing event type, malformed JSON payload, unavailable slot, or expired hold. Admin 401 responses should be traced through Topolo Auth validation for the app id resolved from topolo-calendar.
Use It#
Open Calendar for the human product surface. Use the current Calendar action reference for the supported automation contracts.
Discover the credential-scoped automation surface before making an API call:
topolo services --query topolo-calendar --json
topolo actions --service topolo-calendar --json
topolo actions capabilities --service topolo-calendar --jsonChoose an action, inspect it with topolo actions get <action-id> --json, then validate and plan a published example. The Agent Actions reference exposes the same public schemas, effects, examples, verification, and recovery guidance.
Example workflow:
- Confirm the active identity and organization with
topolo whoami --json. - Discover Calendar and select one published action rather than guessing a route.
- Inspect its input/output schemas and published example.
- Validate and plan the exact payload; obtain confirmation for a mutation.
- Execute and perform every published verification step.
Change Log / Verification#
-
Removed the stale action-coverage exclusion for Calendar's retired credential-convergence route at staging commit
2ab76973224bon 2026-08-01. The exact source audit now classifies all 48 served routes with zero gaps, dead actions, or invalid exclusions; staging API version93de2cb8-d952-4ab2-9434-b85542f615d5and web version5196315c-ca71-47e7-b96b-83094ed6f29bpassed the governed deployment. -
Reconciled canonical Nexus connection ownership against
apps/TopoloCalendarstaging commits7d76370d7cf3,4b2c7d6a3cef, andc49a36029ad2on 2026-08-01. Calendar now retains only scheduling/sync projection state and a stable Nexus connection reference; Nexus owns provider identity, lifecycle, errors, scopes, expiry, and credentials, and the retired Calendar credential-store binding and re-encryption path are absent from the canonical manifest and runtime configuration. -
Retired Calendar's 2026-07-28 app-local credential protection and convergence path when canonical Nexus connection ownership landed on 2026-08-01; no compatibility route or credential-store binding remains.
-
Verified the native_capability mobile experience contract and its 2 published route(s) against
apps/TopoloCalendarorigin/stagingaca56ed07338on 2026-07-27. -
Reconciled this page against
apps/TopoloCalendarorigin/staging8f12c0d80378on 2026-07-24 after reviewing every docs-relevant commit since its previous verification watermark. Dependency-only currency commits were checked by the fleet production-dependency gate and did not change this page's product contract. -
Reconciled workspace verification on 2026-06-28 against apps/TopoloCalendar commits through 15b439e; reviewed 278 commits since 2026-06-01, including 15b439e chore(deps): refresh @topolo-io/app-shell pins (package.json + lockfile); a2444d0 Adopt canonical Topolo typography; df2793d Split Calendar shell startup bundle; 22fa5bc Lazy load Calendar routes.
-
Resolved Calendar app identity from the Auth-owned
topolo-calendarservice slug on 2026-05-13 so the browser login/callback path, Worker widget payload, and admin Auth middleware no longer carry checked-in concreteapp_*ids. -
Moved Google/Microsoft Calendar OAuth app client credentials out of Calendar Worker secrets and into Nexus generic integration app credentials on 2026-06-01.
-
Added calendar invite/update/cancel/reminder Notify events, Calendar-owned ICS generation, public manage links, admin booking lifecycle actions, availability overrides, recurrence materialization, persisted holds, and native Google/Microsoft/CalDAV free/busy sync on 2026-06-01.
-
Verified Calendar staging origin isolation on 2026-04-30.
-
Added configurable meeting providers on 2026-04-26: Topolo Chat event types now create Chat guest meeting links at booking confirmation, while Teams, Google Meet, and Zoom event types can carry host-supplied links or instructions.
-
Replaced the signed Calendar admin page with the shared Topolo shell and default weekly Calendar workspace on 2026-04-22, including the preloaded app switcher and authenticated bookings list route.
-
Replaced Calendar's local first-run host setup form with the shared
@topolo-io/onboardingshell and flow on 2026-04-22. -
Fixed Calendar admin permission checks on 2026-04-22 so Auth's service-scoped Calendar grants unlock the admin API after sign-in.
-
Replaced Calendar's local root marketing screen with the shared landing page and registered Calendar as a first-party UI Kit app on 2026-04-22 so the deployed
/loginroute exposes embedded email/password sign-in instead of the external-app provider-only prompt. -
Moved Calendar admin sign-in onto the shared app-origin first-party login surface on 2026-04-21 and seeded Auth plus Developers D1 so Calendar is a Topolo-owned platform app under the Topolo organization.
-
Added canonical Calendar system coverage and aligned the public handbook with the current Worker, D1, Durable Object, and Auth contract on 2026-04-21.
-
Enforced Calendar admin route permissions and provisioned the production D1 binding on 2026-04-21.