{"openapi":"3.1.0","info":{"title":"OnChain Trips Public API","description":"","license":{"name":""},"version":"0.1.0"},"paths":{"/account":{"get":{"tags":["Account"],"operationId":"get_account","responses":{"200":{"description":"Get the authenticated account profile"}}},"patch":{"tags":["Account"],"operationId":"patch_account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchAccountRequest"}}},"required":true},"responses":{"204":{"description":"Account profile updated"},"400":{"description":"Invalid JSON body or invalid patch payload"},"401":{"description":"Unauthorized"},"404":{"description":"Account not found"}}}},"/account/api-keys":{"get":{"tags":["Account"],"operationId":"get_account_api_keys","responses":{"200":{"description":"List API keys for the authenticated account"}}},"post":{"tags":["Account"],"operationId":"create_account_api_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"API key created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountApiKeyResponse"}}}},"400":{"description":"Invalid JSON body or API key limit reached"},"401":{"description":"Unauthorized or premium plan required"}}}},"/account/api-keys/{key_id}":{"delete":{"tags":["Account"],"operationId":"delete_account_api_key","parameters":[{"name":"key_id","in":"path","description":"API key id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"API key deleted"},"401":{"description":"Unauthorized"},"404":{"description":"API key not found"}}}},"/account/api-keys/{key_id}/activate":{"post":{"tags":["Account"],"operationId":"activate_account_api_key","parameters":[{"name":"key_id","in":"path","description":"API key id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"API key activated"},"401":{"description":"Unauthorized"},"404":{"description":"API key not found"}}}},"/account/api-keys/{key_id}/deactivate":{"post":{"tags":["Account"],"operationId":"deactivate_account_api_key","parameters":[{"name":"key_id","in":"path","description":"API key id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"API key deactivated"},"401":{"description":"Unauthorized"},"404":{"description":"API key not found"}}}},"/account/following":{"get":{"tags":["Account"],"operationId":"get_account_following","parameters":[{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max accounts to return (default 50, max 100)","required":false,"schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"List accounts followed by the authenticated account"}}}},"/account/following/{account_id}":{"get":{"tags":["Account"],"operationId":"get_account_following_status","parameters":[{"name":"account_id","in":"path","description":"Target account id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Check whether the authenticated account follows the target account"}}}},"/account/integrations/mcp":{"get":{"tags":["Account"],"operationId":"get_account_mcp_integration_status","responses":{"200":{"description":"Get the authenticated account MCP integration status"}}}},"/account/integrations/mcp/token":{"get":{"tags":["Account"],"operationId":"get_account_mcp_integration_token","responses":{"200":{"description":"Get the authenticated account MCP integration token"}}}},"/account/network":{"get":{"tags":["Account"],"operationId":"get_account_network","parameters":[{"name":"depth","in":"query","description":"Network depth to fetch (default 3, max 3)","required":false,"schema":{"type":"integer","format":"int32","minimum":0}}],"responses":{"200":{"description":"Get the authenticated account's traveler network graph"}}}},"/account/settings":{"get":{"tags":["Account"],"operationId":"get_account_settings","responses":{"200":{"description":"Get the authenticated account settings"}}}},"/account/statistics/buddies":{"get":{"tags":["Account"],"operationId":"get_account_statistics_buddies","responses":{"200":{"description":"Get top travel buddies and shared totals for the authenticated account"}}}},"/account/statistics/countries":{"get":{"tags":["Account"],"operationId":"get_account_statistics_countries","responses":{"200":{"description":"Get ranked visited countries and aggregate visit totals for the authenticated account"}}}},"/account/statistics/expenses":{"get":{"tags":["Account"],"operationId":"get_account_statistics_expenses","responses":{"200":{"description":"Get expense statistics grouped by category and month for the authenticated account"}}}},"/account/statistics/overview":{"get":{"tags":["Account"],"operationId":"get_account_statistics_overview","responses":{"200":{"description":"Get combined travel, expense, and buddies statistics for the authenticated account"}}}},"/account/statistics/streaks":{"get":{"tags":["Account"],"operationId":"get_account_statistics_streaks","responses":{"200":{"description":"Get current and historical travel streak metrics for the authenticated account"}}}},"/account/statistics/trips":{"get":{"tags":["Account"],"operationId":"get_account_statistics_trips","responses":{"200":{"description":"Get enriched travel statistics for the authenticated account"}}}},"/account/usage":{"get":{"tags":["Account"],"operationId":"get_account_usage","responses":{"200":{"description":"Get current account usage metrics and plan limits"}}}},"/account/usage/premium-history":{"get":{"tags":["Account"],"operationId":"get_account_usage_premium_history","responses":{"200":{"description":"Get premium account usage periods and their metrics history"}}}},"/account/usage/total":{"get":{"tags":["Account"],"operationId":"get_account_usage_total","responses":{"200":{"description":"Get aggregated lifetime account usage metrics"}}}},"/account/vehicle":{"get":{"tags":["Account"],"operationId":"get_account_vehicle","responses":{"200":{"description":"Get the authenticated account vehicle profile"}}}},"/account/webhooks":{"get":{"tags":["Account"],"operationId":"get_account_webhooks","responses":{"200":{"description":"Get the authenticated account webhook configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountWebhookConfig"}}}},"404":{"description":"Webhook configuration not found"}}},"post":{"tags":["Account"],"operationId":"create_account_webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountWebhookRequest"}}},"required":true},"responses":{"204":{"description":"Webhook configuration created"},"400":{"description":"Invalid JSON body, invalid webhook URL, unsupported event type, or webhook already exists"},"401":{"description":"Unauthorized or premium plan required"}}}},"/account/webhooks/activate":{"post":{"tags":["Account"],"operationId":"activate_account_webhook","responses":{"204":{"description":"Webhook delivery activated"},"401":{"description":"Unauthorized"},"404":{"description":"Webhook configuration not found"}}}},"/account/webhooks/deactivate":{"post":{"tags":["Account"],"operationId":"deactivate_account_webhook","responses":{"204":{"description":"Webhook delivery deactivated"},"401":{"description":"Unauthorized"},"404":{"description":"Webhook configuration not found"}}}},"/account/webhooks/subscriptions":{"patch":{"tags":["Account"],"operationId":"patch_account_webhook_subscriptions","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchAccountWebhookSubscriptionsRequest"}}},"required":true},"responses":{"204":{"description":"Webhook subscriptions updated"},"400":{"description":"Invalid JSON body or unsupported event type"},"401":{"description":"Unauthorized"},"404":{"description":"Webhook configuration not found"}}}},"/account/webhooks/test":{"post":{"tags":["Account"],"operationId":"test_account_webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestAccountWebhookRequest"}}},"required":true},"responses":{"200":{"description":"Webhook test delivery attempted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountWebhookTestResponse"}}}},"400":{"description":"Invalid JSON body, unsupported event type, or webhook delivery validation failed"},"401":{"description":"Unauthorized"},"404":{"description":"Webhook configuration not found"}}}},"/account/webhooks/url":{"patch":{"tags":["Account"],"operationId":"patch_account_webhook_url","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchAccountWebhookUrlRequest"}}},"required":true},"responses":{"204":{"description":"Webhook URL updated"},"400":{"description":"Invalid JSON body or invalid webhook URL"},"401":{"description":"Unauthorized"},"404":{"description":"Webhook configuration not found"}}}},"/accounts/search":{"get":{"tags":["Accounts"],"operationId":"search_accounts","parameters":[{"name":"prefix","in":"query","description":"Alias prefix filter","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","description":"Opaque pagination cursor from a previous response","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Max accounts to return (default 20, max 100)","required":false,"schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"Search public accounts by alias prefix"}}}},"/accounts/{account_id}":{"get":{"tags":["Accounts"],"operationId":"get_account_by_id","parameters":[{"name":"account_id","in":"path","description":"Public account id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get the public profile summary for one account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAccountProfile"}}}},"404":{"description":"Public account not found"}}}},"/accounts/{account_id}/countries":{"get":{"tags":["Accounts"],"operationId":"get_account_countries","parameters":[{"name":"account_id","in":"path","description":"Public account id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List visited countries for one public account","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VisitedCountry"}}}}},"404":{"description":"Public account not found"}}}},"/accounts/{account_id}/trips":{"get":{"tags":["Accounts"],"operationId":"get_account_trips","parameters":[{"name":"account_id","in":"path","description":"Public account id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List public trips for one account","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Trip"}}}}},"404":{"description":"Public account not found"}}}},"/countries":{"get":{"tags":["Countries"],"operationId":"get_countries","responses":{"200":{"description":"Get countries"}}}},"/countries/map-visited":{"get":{"tags":["Countries"],"operationId":"get_countries_map_visited","responses":{"200":{"description":"Get a map-friendly country visit timeline for the authenticated account"}}}},"/countries/visited":{"get":{"tags":["Countries"],"operationId":"get_visited_countries","responses":{"200":{"description":"List visited countries for the authenticated account"}}}},"/countries/visited/{country_code}/trips":{"get":{"tags":["Countries"],"operationId":"get_visited_country_trips","parameters":[{"name":"country_code","in":"path","description":"Country code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List account trips associated with a visited country"}}}},"/countries/{country_code}":{"get":{"tags":["Countries"],"operationId":"get_country_by_code","parameters":[{"name":"country_code","in":"path","description":"Country code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a country by code"},"404":{"description":"Country not found"},"500":{"description":"Internal server error"}}}},"/countries/{country_code}/cities":{"get":{"tags":["Countries"],"operationId":"get_country_cities","parameters":[{"name":"country_code","in":"path","description":"Country code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List registry cities for a country grouped by settlement size"},"400":{"description":"Invalid country code"},"500":{"description":"Internal server error"}}}},"/countries/{country_code}/pois":{"get":{"tags":["POI"],"operationId":"get_country_pois","parameters":[{"name":"country_code","in":"path","description":"Country code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List POIs for a country"},"500":{"description":"Internal server error"}}}},"/countries/{country_code}/pois/{poi_id}":{"get":{"tags":["POI"],"operationId":"get_country_poi_by_id","parameters":[{"name":"country_code","in":"path","description":"Country code","required":true,"schema":{"type":"string"}},{"name":"poi_id","in":"path","description":"POI id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a country-scoped POI"},"404":{"description":"POI not found in the country"},"500":{"description":"Internal server error"}}}},"/participants/{account_id}/summary":{"get":{"tags":["Participants"],"operationId":"get_participant_summary","parameters":[{"name":"account_id","in":"path","description":"Participant account id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a compact participant profile and trip summary"}}}},"/pois":{"get":{"tags":["POI"],"operationId":"get_pois","responses":{"200":{"description":"Get POIs"}}}},"/pois/{id}":{"get":{"tags":["POI"],"operationId":"get_poi_by_id","parameters":[{"name":"id","in":"path","description":"POI id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get POI"}}}},"/polls/{poll_id}/participants/{participant_id}":{"get":{"tags":["Polls"],"operationId":"get_public_poll","parameters":[{"name":"poll_id","in":"path","description":"Poll id","required":true,"schema":{"type":"string"}},{"name":"participant_id","in":"path","description":"Public participant token/id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get the public poll view for one participant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPollView"}}}},"404":{"description":"Poll or participant not found"}},"security":[{}]}},"/polls/{poll_id}/participants/{participant_id}/votes":{"post":{"tags":["Polls"],"operationId":"cast_public_poll_votes","parameters":[{"name":"poll_id","in":"path","description":"Poll id","required":true,"schema":{"type":"string"}},{"name":"participant_id","in":"path","description":"Public participant token/id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastPollVotesRequest"}}},"required":true},"responses":{"204":{"description":"Votes successfully cast for the public poll participant"},"400":{"description":"Invalid JSON body or invalid vote selection"},"404":{"description":"Poll or participant not found"}},"security":[{}]}},"/shared-links/{share_id}":{"get":{"tags":["Shared Links"],"operationId":"get_public_shared_link_by_id","parameters":[{"name":"share_id","in":"path","description":"Share link id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get public metadata for one share link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedLink"}}}},"404":{"description":"Shared link not found"}}}},"/shared-links/{share_id}/resolve":{"post":{"tags":["Shared Links"],"operationId":"resolve_public_shared_link","parameters":[{"name":"share_id","in":"path","description":"Share link id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveSharedLinkRequest"}}},"required":true},"responses":{"200":{"description":"Resolve and access the shared-link payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedSharedLinkResponse"}}}},"400":{"description":"Invalid JSON body or shared link disabled for abuse"},"401":{"description":"Incorrect password"},"404":{"description":"Shared link not found"}},"security":[{}]}},"/tags":{"get":{"tags":["Tags"],"operationId":"get_tags","responses":{"200":{"description":"Get the curated trip tags catalog"}}}},"/trips":{"get":{"tags":["Trips"],"operationId":"get_trips","responses":{"200":{"description":"Get trips"}}},"post":{"tags":["Trips"],"operationId":"create_trip","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripRequest"}}},"required":true},"responses":{"200":{"description":"Trip created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripResponse"}}}},"400":{"description":"Invalid JSON body or invalid trip creation request"},"401":{"description":"Unauthorized"},"404":{"description":"Related resource not found"}}}},"/trips/{id}":{"get":{"tags":["Trips"],"operationId":"get_trip_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get lightweight trip detail"}}},"delete":{"tags":["Trips"],"operationId":"delete_trip","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Trip deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}},"patch":{"tags":["Trips"],"operationId":"patch_trip","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTripRequest"}}},"required":true},"responses":{"200":{"description":"Trip updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTripResponse"}}}},"400":{"description":"Invalid JSON body or invalid date format"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/cities":{"get":{"tags":["Cities"],"operationId":"get_trip_cities","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List trip city visits grouped by country"}}},"post":{"tags":["Cities"],"operationId":"create_trip_city","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripCityRequest"}}},"required":true},"responses":{"204":{"description":"City visit added to the trip"},"400":{"description":"Invalid request body, city id, or planned dates"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/cities/{city_visit_id}":{"get":{"tags":["Cities"],"operationId":"get_trip_city_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"city_visit_id","in":"path","description":"Trip city visit id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get one trip city visit by id"}}},"delete":{"tags":["Cities"],"operationId":"delete_trip_city","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"city_visit_id","in":"path","description":"Trip city visit id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Trip city visit deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or city visit not found"}}},"patch":{"tags":["Cities"],"operationId":"patch_trip_city","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"city_visit_id","in":"path","description":"Trip city visit id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTripCityRequest"}}},"required":true},"responses":{"204":{"description":"Trip city visit updated"},"400":{"description":"Invalid JSON body"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or city visit not found"}}}},"/trips/{id}/countries":{"get":{"tags":["Countries"],"operationId":"get_trip_countries","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List visited countries for a trip"}}},"post":{"tags":["Countries"],"operationId":"create_trip_countries","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTripCountriesRequest"}}},"required":true},"responses":{"204":{"description":"Countries added to the trip"},"400":{"description":"Invalid JSON body or invalid country codes payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/countries/{country_code}":{"delete":{"tags":["Countries"],"operationId":"delete_trip_country","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"country_code","in":"path","description":"Country code","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Country removed from the trip"},"400":{"description":"Invalid country code"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/countries/{country_code}/cities":{"get":{"tags":["Cities"],"operationId":"get_trip_country_cities","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"country_code","in":"path","description":"Country code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List trip city visits for a specific country"}}}},"/trips/{id}/cruises":{"get":{"tags":["Cruises"],"operationId":"get_cruises","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List cruises for a trip"}}},"post":{"tags":["Cruises"],"operationId":"create_cruise","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCruiseRequest"}}},"required":true},"responses":{"201":{"description":"Cruise created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCruiseResponse"}}}},"400":{"description":"Invalid JSON body or invalid cruise payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/cruises/{cruise_id}":{"get":{"tags":["Cruises"],"operationId":"get_cruise_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"cruise_id","in":"path","description":"Cruise id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single cruise"}}},"delete":{"tags":["Cruises"],"operationId":"delete_cruise","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"cruise_id","in":"path","description":"Cruise id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Cruise deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or cruise not found"}}},"patch":{"tags":["Cruises"],"operationId":"patch_cruise","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"cruise_id","in":"path","description":"Cruise id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCruiseRequest"}}},"required":true},"responses":{"204":{"description":"Cruise updated"},"400":{"description":"Invalid JSON body or invalid cruise payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or cruise not found"}}}},"/trips/{id}/custom-pois":{"get":{"tags":["Trips"],"operationId":"get_trip_custom_pois","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get public custom POIs plus private custom POIs owned by the authenticated account"}}}},"/trips/{id}/custom-pois/{poi_id}":{"get":{"tags":["Trips"],"operationId":"get_trip_custom_poi_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"poi_id","in":"path","description":"Custom POI id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single custom POI"}}}},"/trips/{id}/favorite":{"post":{"tags":["Trips"],"operationId":"add_trip_to_favorites","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Trip marked as favorite"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}},"delete":{"tags":["Trips"],"operationId":"remove_trip_from_favorites","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Trip removed from favorites"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/financial-items":{"get":{"tags":["Financial Items"],"operationId":"get_financial_items","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get financial summary for a trip"}}}},"/trips/{id}/financial-items/events":{"get":{"tags":["Financial Items"],"operationId":"get_financial_item_events","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get append-only financial events for a trip","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TripFinanceEventsResponse"}}}}}}},"/trips/{id}/financial-items/expenses":{"get":{"tags":["Financial Items"],"operationId":"get_expenses","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List expenses for a trip"}}},"post":{"tags":["Financial Items"],"operationId":"create_expense","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExpenseRequest"}}},"required":true},"responses":{"201":{"description":"Expense created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseWriteResponse"}}}},"400":{"description":"Invalid JSON body or invalid expense payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/financial-items/expenses/{expense_id}":{"get":{"tags":["Financial Items"],"operationId":"get_expense_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"expense_id","in":"path","description":"Expense id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single expense"}}},"delete":{"tags":["Financial Items"],"operationId":"delete_expense","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"expense_id","in":"path","description":"Expense id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Expense deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or expense not found"}}},"patch":{"tags":["Financial Items"],"operationId":"patch_expense","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"expense_id","in":"path","description":"Expense id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExpenseRequest"}}},"required":true},"responses":{"200":{"description":"Expense updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpenseWriteResponse"}}}},"400":{"description":"Invalid JSON body or invalid expense payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or expense not found"}}}},"/trips/{id}/financial-items/members-summary":{"get":{"tags":["Financial Items"],"operationId":"get_members_summary","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get member balances for a trip"}}}},"/trips/{id}/financial-items/payments":{"get":{"tags":["Financial Items"],"operationId":"get_payments","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List payments for a trip"}}},"post":{"tags":["Financial Items"],"operationId":"create_payment","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentRequest"}}},"required":true},"responses":{"201":{"description":"Payment created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentWriteResponse"}}}},"400":{"description":"Invalid JSON body or invalid payment payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/financial-items/payments/{payment_id}":{"get":{"tags":["Financial Items"],"operationId":"get_payment_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single payment"}}},"delete":{"tags":["Financial Items"],"operationId":"delete_payment","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Payment deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or payment not found"}}},"patch":{"tags":["Financial Items"],"operationId":"patch_payment","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"payment_id","in":"path","description":"Payment id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentRequest"}}},"required":true},"responses":{"200":{"description":"Payment updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentWriteResponse"}}}},"400":{"description":"Invalid JSON body or invalid payment payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or payment not found"}}}},"/trips/{id}/financial-items/summary":{"get":{"tags":["Financial Items"],"operationId":"get_financial_items_summary","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get financial totals and member balances for a trip"}}}},"/trips/{id}/flights":{"get":{"tags":["Flights"],"operationId":"get_flights","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List flights for a trip"}}},"post":{"tags":["Flights"],"operationId":"create_flight","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlightRequest"}}},"required":true},"responses":{"201":{"description":"Flight created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlightResponse"}}}},"400":{"description":"Invalid JSON body or invalid flight payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/flights/{flight_id}":{"get":{"tags":["Flights"],"operationId":"get_flight_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"flight_id","in":"path","description":"Flight id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single flight"}}},"delete":{"tags":["Flights"],"operationId":"delete_flight","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"flight_id","in":"path","description":"Flight id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Flight deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or flight not found"}}},"patch":{"tags":["Flights"],"operationId":"patch_flight","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"flight_id","in":"path","description":"Flight id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFlightRequest"}}},"required":true},"responses":{"204":{"description":"Flight updated"},"400":{"description":"Invalid JSON body or invalid flight payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or flight not found"}}}},"/trips/{id}/gallery":{"get":{"tags":["Gallery"],"operationId":"get_gallery","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get the gallery metadata for a trip"}}},"delete":{"tags":["Gallery"],"operationId":"delete_gallery","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Delete an empty gallery container for a trip"},"400":{"description":"Gallery still contains images"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or gallery not found"}}}},"/trips/{id}/gallery/access":{"post":{"tags":["Gallery"],"operationId":"get_gallery_access","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return the gallery read-access contract for private assets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryAccessContract"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Trip or gallery not found"}}}},"/trips/{id}/gallery/uploads":{"post":{"tags":["Gallery"],"operationId":"start_gallery_upload","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartGalleryUploadRequest"}}},"required":true},"responses":{"200":{"description":"Start a gallery upload session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartGalleryUploadResponse"}}}},"400":{"description":"Invalid JSON body, quota exceeded, or not enough free slots"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/lessons-learned":{"get":{"tags":["Lessons Learned"],"operationId":"get_lessons_learned","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List lessons learned for a trip"}}},"post":{"tags":["Lessons Learned"],"operationId":"create_lesson_learned","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLessonLearnedRequest"}}},"required":true},"responses":{"201":{"description":"Lesson learned created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLessonLearnedResponse"}}}},"400":{"description":"Invalid JSON body"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/lessons-learned/{lesson_id}":{"get":{"tags":["Lessons Learned"],"operationId":"get_lesson_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"lesson_id","in":"path","description":"Lesson learned id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single lesson learned"}}},"delete":{"tags":["Lessons Learned"],"operationId":"delete_lesson_learned","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"lesson_id","in":"path","description":"Lesson learned id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Lesson learned deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or lesson learned not found"}}},"patch":{"tags":["Lessons Learned"],"operationId":"patch_lesson_learned","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"lesson_id","in":"path","description":"Lesson learned id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchLessonLearnedRequest"}}},"required":true},"responses":{"204":{"description":"Lesson learned updated"},"400":{"description":"Invalid JSON body or visibility change not allowed"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or lesson learned not found"}}}},"/trips/{id}/lodgings":{"get":{"tags":["Lodgings"],"operationId":"get_lodgings","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List lodgings for a trip"}}},"post":{"tags":["Lodgings"],"operationId":"create_lodging","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLodgingRequest"}}},"required":true},"responses":{"201":{"description":"Lodging created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLodgingResponse"}}}},"400":{"description":"Invalid JSON body or invalid lodging payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/lodgings/{lodging_id}":{"get":{"tags":["Lodgings"],"operationId":"get_lodging_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"lodging_id","in":"path","description":"Lodging id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single lodging"}}},"delete":{"tags":["Lodgings"],"operationId":"delete_lodging","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"lodging_id","in":"path","description":"Lodging id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Lodging deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or lodging not found"}}},"patch":{"tags":["Lodgings"],"operationId":"patch_lodging","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"lodging_id","in":"path","description":"Lodging id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLodgingRequest"}}},"required":true},"responses":{"204":{"description":"Lodging updated"},"400":{"description":"Invalid JSON body or invalid lodging payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or lodging not found"}}}},"/trips/{id}/map":{"get":{"tags":["Map"],"operationId":"get_trip_map","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get ready-to-render map data for a trip"}}}},"/trips/{id}/member-vehicles":{"get":{"tags":["Trips"],"operationId":"get_trip_member_vehicles","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get enriched vehicles for all trip members"}}}},"/trips/{id}/member-vehicles/{account_id}":{"get":{"tags":["Trips"],"operationId":"get_trip_member_vehicle_by_account_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"account_id","in":"path","description":"Member account id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get the enriched vehicle for one trip member by account id"}}}},"/trips/{id}/members":{"get":{"tags":["Trips"],"operationId":"get_trip_members","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get confirmed and unconfirmed trip members"}}},"post":{"tags":["Trips"],"operationId":"create_trip_member","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTripMemberRequest"}}},"required":true},"responses":{"200":{"description":"Member added to trip or invited pending confirmation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTripMemberResponse"}}}},"400":{"description":"Invalid JSON body or invalid member add request"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/members/{member_id}":{"get":{"tags":["Trips"],"operationId":"get_trip_member_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Trip member id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get one trip member by id, including confirmation state"}}},"delete":{"tags":["Trips"],"operationId":"delete_trip_member","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Trip member id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Trip member removed"},"400":{"description":"Invalid member removal request"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or member not found"}}},"patch":{"tags":["Trips"],"operationId":"patch_trip_member","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"member_id","in":"path","description":"Trip member id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTripMemberRequest"}}},"required":true},"responses":{"204":{"description":"Trip member role updated"},"400":{"description":"Invalid JSON body or invalid member role patch"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or member not found"}}}},"/trips/{id}/roadmap":{"get":{"tags":["Roadmaps"],"operationId":"get_roadmap","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get the roadmap markdown for a trip"}}}},"/trips/{id}/shared-links":{"get":{"tags":["Shared Links"],"operationId":"get_shared_links","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List public share links for a trip"}}},"post":{"tags":["Shared Links"],"operationId":"create_shared_link","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSharedLinkRequest"}}},"required":true},"responses":{"201":{"description":"Shared link created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSharedLinkResponse"}}}},"400":{"description":"Invalid JSON body or invalid share request"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/shared-links/{share_id}":{"get":{"tags":["Shared Links"],"operationId":"get_shared_link_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"share_id","in":"path","description":"Share link id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get one share link by id"}}},"delete":{"tags":["Shared Links"],"operationId":"delete_shared_link","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"share_id","in":"path","description":"Share link id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Shared link deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or shared link not found"}}},"patch":{"tags":["Shared Links"],"operationId":"patch_shared_link","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"share_id","in":"path","description":"Share link id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchSharedLinkRequest"}}},"required":true},"responses":{"204":{"description":"Shared link updated"},"400":{"description":"Invalid JSON body or invalid shared link patch"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or shared link not found"}}}},"/trips/{id}/tags":{"get":{"tags":["Tags"],"operationId":"get_trip_tags","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get the tags assigned to a trip"}}},"post":{"tags":["Tags"],"operationId":"add_trip_tag","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignTripTagRequest"}}},"required":true},"responses":{"204":{"description":"Curated tag assigned to the trip"},"400":{"description":"Invalid JSON body or unknown curated tag slug"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/tags/{slug}":{"delete":{"tags":["Tags"],"operationId":"remove_trip_tag","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","description":"Curated tag slug","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Curated tag removed from the trip"},"400":{"description":"Unknown curated tag slug"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/trains":{"get":{"tags":["Trains"],"operationId":"get_trains","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List trains for a trip"}}},"post":{"tags":["Trains"],"operationId":"create_train","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrainRequest"}}},"required":true},"responses":{"201":{"description":"Train created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrainResponse"}}}},"400":{"description":"Invalid JSON body or invalid train payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/trains/{train_id}":{"get":{"tags":["Trains"],"operationId":"get_train_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"train_id","in":"path","description":"Train id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single train"}}},"delete":{"tags":["Trains"],"operationId":"delete_train","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"train_id","in":"path","description":"Train id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Train deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or train not found"}}},"patch":{"tags":["Trains"],"operationId":"patch_train","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"train_id","in":"path","description":"Train id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTrainRequest"}}},"required":true},"responses":{"204":{"description":"Train updated"},"400":{"description":"Invalid JSON body or invalid train payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or train not found"}}}},"/trips/{id}/transport":{"get":{"tags":["Transport"],"operationId":"get_transport","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List transport segments for a trip"}}},"post":{"tags":["Transport"],"operationId":"create_transport_segment","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransportSegmentRequest"}}},"required":true},"responses":{"201":{"description":"Transport segment created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransportSegmentResponse"}}}},"400":{"description":"Invalid JSON body or invalid transport payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/transport/{segment_id}":{"get":{"tags":["Transport"],"operationId":"get_transport_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"segment_id","in":"path","description":"Transport segment id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single transport segment"}}},"delete":{"tags":["Transport"],"operationId":"delete_transport_segment","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"segment_id","in":"path","description":"Transport segment id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Transport segment deleted"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or transport segment not found"}}},"patch":{"tags":["Transport"],"operationId":"patch_transport_segment","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"segment_id","in":"path","description":"Transport segment id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTransportSegmentRequest"}}},"required":true},"responses":{"204":{"description":"Transport segment updated"},"400":{"description":"Invalid JSON body or invalid transport payload"},"401":{"description":"Unauthorized"},"404":{"description":"Trip or transport segment not found"}}}},"/trips/{id}/upgrade-to-advanced":{"post":{"tags":["Trips"],"operationId":"upgrade_trip_to_advanced","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Trip upgraded to advanced"},"400":{"description":"Trip is already advanced or cannot be upgraded"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/vehicle":{"get":{"tags":["Trips"],"operationId":"get_trip_vehicle","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get the vehicle associated with a trip"}}},"patch":{"tags":["Trips"],"operationId":"patch_trip_vehicle","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTripVehicleRequest"}}},"required":true},"responses":{"204":{"description":"Trip vehicle updated"},"400":{"description":"Invalid JSON body or trip type does not support vehicles"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/videos":{"get":{"tags":["Trips"],"operationId":"get_trip_videos","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List trip videos for a trip"}}}},"/trips/{id}/videos/access":{"post":{"tags":["Trips"],"operationId":"get_trip_videos_access","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Return the videos read-access contract for a trip","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoAccessContract"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/trips/{id}/videos/{video_id}":{"get":{"tags":["Trips"],"operationId":"get_trip_video_by_id","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"video_id","in":"path","description":"Video id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a single trip video"}}},"delete":{"tags":["Trips"],"operationId":"delete_trip_video","parameters":[{"name":"id","in":"path","description":"Trip id","required":true,"schema":{"type":"string"}},{"name":"video_id","in":"path","description":"Video id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Trip video reference deleted"},"400":{"description":"Invalid video id"},"401":{"description":"Unauthorized"},"404":{"description":"Trip not found"}}}},"/webhooks/events":{"get":{"tags":["Webhooks"],"operationId":"get_webhook_events","responses":{"200":{"description":"List stable webhook event keys"}}}},"/webhooks/events/catalog":{"get":{"tags":["Webhooks"],"operationId":"get_webhook_event_catalog","responses":{"200":{"description":"Get the webhook event catalog","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventCatalogEntry"}}}}}}}}},"components":{"schemas":{"AccountApiKey":{"type":"object","required":["id","name","permissions","isActive","createdAt"],"properties":{"createdAt":{"type":"string"},"id":{"type":"string"},"isActive":{"type":"boolean"},"name":{"type":"string"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/AccountApiKeyPermission"}}}},"AccountApiKeyPermission":{"type":"string","enum":["fullAccess"]},"AccountBillingPeriod":{"type":"string","enum":["Monthly","Annual"]},"AccountBuddiesStatisticsResponse":{"type":"object","required":["buddies"],"properties":{"buddies":{"type":"array","items":{"$ref":"#/components/schemas/AccountBuddyDto"}}}},"AccountBuddyDto":{"type":"object","required":["name","total","tripsTogether"],"properties":{"name":{"type":"string"},"total":{"type":"integer","format":"int64","minimum":0},"tripsTogether":{"type":"integer","format":"int32","minimum":0}}},"AccountCountryStatisticsResponse":{"type":"object","required":["countries","totalVisitedCountries","totalVisits"],"properties":{"countries":{"type":"array","items":{"$ref":"#/components/schemas/VisitedCountry"}},"totalVisitedCountries":{"type":"integer","format":"int32","minimum":0},"totalVisits":{"type":"integer","format":"int32","minimum":0}}},"AccountExpensesStatisticsResponse":{"type":"object","required":["totalByCategory","totalByMonth","tripTotal"],"properties":{"totalByCategory":{"type":"array","items":{"$ref":"#/components/schemas/CategoryTotalDto"}},"totalByMonth":{"type":"array","items":{"$ref":"#/components/schemas/MonthTotalDto"}},"tripTotal":{"type":"array","items":{"$ref":"#/components/schemas/TripTotalDto"}}}},"AccountMcpIntegrationStatus":{"type":"object","required":["hasToken","enabled"],"properties":{"createdAt":{"type":["string","null"]},"enabled":{"type":"boolean"},"hasToken":{"type":"boolean"}}},"AccountMcpIntegrationToken":{"type":"object","required":["token","enabled","createdAt"],"properties":{"createdAt":{"type":"string"},"enabled":{"type":"boolean"},"token":{"type":"string"}}},"AccountPlanSummary":{"type":"object","required":["tier"],"properties":{"billingPeriod":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/AccountBillingPeriod"}]},"expiresAt":{"type":["string","null"]},"tier":{"$ref":"#/components/schemas/AccountPlanTier"}}},"AccountPlanTier":{"type":"string","enum":["Basic","Adventurer","Apex"]},"AccountPremiumUsageHistoryResponse":{"type":"object","required":["registers"],"properties":{"registers":{"type":"array","items":{"$ref":"#/components/schemas/AccountPremiumUsageRegister"}}}},"AccountPremiumUsageRegister":{"type":"object","required":["startAt","endAt","metrics"],"properties":{"endAt":{"type":"string"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/AccountUsageMetric"}},"startAt":{"type":"string"}}},"AccountProfile":{"type":"object","required":["id","hasPassword","createdAt","isPublic","numNotifications","socialMedia"],"properties":{"alias":{"type":["string","null"]},"createdAt":{"type":"string"},"defaultCountryCode":{"type":["string","null"]},"description":{"type":["string","null"]},"email":{"type":["string","null"]},"hasPassword":{"type":"boolean"},"id":{"type":"string"},"isPublic":{"type":"boolean"},"numNotifications":{"type":"integer","format":"int32","minimum":0},"premiumPlan":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/AccountPlanSummary"}]},"socialMedia":{"$ref":"#/components/schemas/AccountSocialMedia"}}},"AccountSettings":{"type":"object","required":["requireAcceptanceFromStrangers","requireAcceptanceFromKnownUsers"],"properties":{"requireAcceptanceFromKnownUsers":{"type":"boolean"},"requireAcceptanceFromStrangers":{"type":"boolean"}}},"AccountSocialMedia":{"type":"object","properties":{"facebookProfile":{"type":["string","null"]},"instagramProfile":{"type":["string","null"]},"linkedinProfile":{"type":["string","null"]},"xProfile":{"type":["string","null"]},"youtubeChannel":{"type":["string","null"]}}},"AccountStatisticsOverviewResponse":{"type":"object","required":["trips","expenses","buddies"],"properties":{"buddies":{"$ref":"#/components/schemas/AccountBuddiesStatisticsResponse"},"expenses":{"$ref":"#/components/schemas/AccountExpensesStatisticsResponse"},"trips":{"$ref":"#/components/schemas/AccountTripsStatisticsResponse"}}},"AccountTravelStreaksResponse":{"type":"object","required":["currentTravelStreakDays","longestTravelStreakDays","currentTravelStreakTrips","longestTravelStreakTrips","activeYearsInRow","longestActiveYearsRun"],"properties":{"activeYearsInRow":{"type":"integer","format":"int32","minimum":0},"currentTravelStreakDays":{"type":"integer","format":"int32","minimum":0},"currentTravelStreakTrips":{"type":"integer","format":"int32","minimum":0},"lastTripEndedAt":{"type":["string","null"]},"longestActiveYearsRun":{"type":"integer","format":"int32","minimum":0},"longestTravelStreakDays":{"type":"integer","format":"int32","minimum":0},"longestTravelStreakTrips":{"type":"integer","format":"int32","minimum":0}}},"AccountTripsStatisticsResponse":{"type":"object","required":["continentVisits","tripsPerYear","seasonalityHeatmap","daysTraveledInYear","tripDurationDistribution"],"properties":{"continentVisits":{"type":"array","items":{"$ref":"#/components/schemas/StatisticsLabelValueDto"}},"daysTraveledInYear":{"type":"array","items":{"$ref":"#/components/schemas/StatisticsLabelValueDto"}},"seasonalityHeatmap":{"type":"array","items":{"$ref":"#/components/schemas/StatisticsLabelValuesDto"}},"tripDurationDistribution":{"type":"array","items":{"$ref":"#/components/schemas/StatisticsLabelValueDto"}},"tripsPerYear":{"type":"array","items":{"$ref":"#/components/schemas/StatisticsLabelValueDto"}}}},"AccountUsageMetric":{"type":"object","required":["metric","value","limit","remaining"],"properties":{"limit":{"type":"integer","format":"int32","minimum":0},"metric":{"type":"string"},"remaining":{"type":"integer","format":"int32","minimum":0},"value":{"type":"integer","format":"int32","minimum":0}}},"AccountUsageResponse":{"type":"object","required":["metrics"],"properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/AccountUsageMetric"}}}},"AccountWebhookConfig":{"type":"object","required":["webhookUrl","eventTypes","isActive"],"properties":{"eventTypes":{"type":"array","items":{"type":"string"}},"isActive":{"type":"boolean"},"lastHealthCheckAt":{"type":["string","null"]},"lastHealthCheckOk":{"type":["boolean","null"]},"webhookUrl":{"type":"string"}}},"AccountWebhookTestResponse":{"type":"object","required":["statusCode","responseBody"],"properties":{"responseBody":{"type":"string"},"statusCode":{"type":"integer","format":"int64","minimum":0}}},"AccountsSearchResponse":{"type":"object","required":["accounts","totalPublicAccounts"],"properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/PublicAccountSummary"}},"nextCursor":{"type":["string","null"]},"totalPublicAccounts":{"type":"integer","format":"int64","minimum":0}}},"AddTripCountriesRequest":{"type":"object","required":["countryCodes"],"properties":{"countryCodes":{"type":"array","items":{"type":"string"}}}},"AddTripMemberResponse":{"type":"object","required":["confirmed"],"properties":{"confirmed":{"type":"boolean"}}},"AssignTripTagRequest":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string"}}},"CanonicalVehicleCatalogDetails":{"type":"object","required":["year","fuelType","transmission","numGears","combinedConsumptionLPer100kmMillis"],"properties":{"combinedConsumptionLPer100kmMillis":{"type":"integer","format":"int32","minimum":0},"fuelType":{"type":"string"},"numGears":{"type":"integer","format":"int32","minimum":0},"transmission":{"type":"string"},"year":{"type":"integer","format":"int32","minimum":0}}},"CastPollVotesRequest":{"type":"object","required":["votes"],"properties":{"votes":{"type":"array","items":{"$ref":"#/components/schemas/PollVoteChoice"}}}},"CategoryTotalDto":{"type":"object","required":["category","total"],"properties":{"category":{"type":"string"},"total":{"type":"integer","format":"int64","minimum":0}}},"CityVisit":{"type":"object","required":["cityVisitId","name","lat","lon","plannedDates"],"properties":{"cityVisitId":{"type":"string"},"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"},"name":{"type":"string"},"plannedDates":{"type":"array","items":{"type":"string"}},"visitedAt":{"type":["string","null"]}}},"CoordinateSource":{"type":"string","enum":["gps","latLon"]},"Country":{"type":"object","required":["code","name","emoji"],"properties":{"code":{"type":"string"},"emoji":{"type":"string"},"name":{"type":"string"}}},"CountryCitiesCatalog":{"type":"object","required":["bigCities","cities","towns","villages","unknown"],"properties":{"bigCities":{"type":"array","items":{"$ref":"#/components/schemas/CountryCity"}},"cities":{"type":"array","items":{"$ref":"#/components/schemas/CountryCity"}},"towns":{"type":"array","items":{"$ref":"#/components/schemas/CountryCity"}},"unknown":{"type":"array","items":{"$ref":"#/components/schemas/CountryCity"}},"villages":{"type":"array","items":{"$ref":"#/components/schemas/CountryCity"}}}},"CountryCity":{"type":"object","required":["id","name","lat","lon"],"properties":{"admin":{"type":["string","null"]},"id":{"type":"integer","format":"int32","minimum":0},"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"},"name":{"type":"string"}}},"CountryVisitedTimelineEntry":{"type":"object","required":["code","name","emoji","visitedAt","colorHex","borderColorHex"],"properties":{"borderColorHex":{"type":"string"},"code":{"type":"string"},"colorHex":{"type":"string"},"emoji":{"type":"string"},"name":{"type":"string"},"visitedAt":{"type":"string"}}},"CreateAccountApiKeyPermission":{"type":"string","enum":["fullAccess"]},"CreateAccountApiKeyRequest":{"type":"object","required":["name","permissions"],"properties":{"name":{"type":"string"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/CreateAccountApiKeyPermission"}}}},"CreateAccountApiKeyResponse":{"type":"object","required":["keyId","token"],"properties":{"keyId":{"type":"string"},"token":{"type":"string"}}},"CreateAccountWebhookRequest":{"type":"object","required":["webhookUrl","eventTypes"],"properties":{"eventTypes":{"type":"array","items":{"type":"string"}},"webhookUrl":{"type":"string"}}},"CreateCruiseRequest":{"type":"object","properties":{"arrivalAt":{"type":["string","null"]},"cruiseLine":{"type":["string","null"]},"departureAt":{"type":["string","null"]},"destinationLatLon":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CruiseLatLon"}]},"destinationPortCountryCode":{"type":["string","null"]},"destinationPortId":{"type":["string","null"]},"destinationPortKind":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CruisePortKind"}]},"destinationPortName":{"type":["string","null"]},"destinationTz":{"type":["string","null"]},"originLatLon":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CruiseLatLon"}]},"originPortCountryCode":{"type":["string","null"]},"originPortId":{"type":["string","null"]},"originPortKind":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CruisePortKind"}]},"originPortName":{"type":["string","null"]},"originTz":{"type":["string","null"]}}},"CreateCruiseResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"CreateExpenseCurrency":{"type":"string","enum":["EUR","USD","GBP","BTC"]},"CreateExpenseParticipantRequest":{"type":"object","required":["memberId"],"properties":{"amount":{"type":["integer","null"],"format":"int64","minimum":0},"memberId":{"type":"string"}}},"CreateExpenseRequest":{"type":"object","required":["description","amount","currency","expenseType","splitType","payerId","participants"],"properties":{"amount":{"type":"integer","format":"int64","minimum":0},"currency":{"$ref":"#/components/schemas/CreateExpenseCurrency"},"description":{"type":"string"},"expenseType":{"$ref":"#/components/schemas/CreateExpenseType"},"participants":{"type":"array","items":{"$ref":"#/components/schemas/CreateExpenseParticipantRequest"}},"payerId":{"type":"string"},"splitType":{"$ref":"#/components/schemas/CreateExpenseSplitType"}}},"CreateExpenseSplitType":{"type":"string","enum":["SPLIT","OWNED","CUSTOM"]},"CreateExpenseType":{"type":"string","enum":["FOOD","FLIGHT","LODGING","ACTIVITIES","TRANSPORT","OTHERS"]},"CreateFlightRequest":{"type":"object","required":["originAirportKind","departureAt","destinationAirportKind","landingAt"],"properties":{"airlineId":{"type":["string","null"]},"departureAt":{"type":"string"},"departureTz":{"type":["string","null"]},"destinationAirportCountryCode":{"type":["string","null"]},"destinationAirportKind":{"$ref":"#/components/schemas/FlightAirportKind"},"destinationAirportName":{"type":["string","null"]},"destinationIcaoCode":{"type":["string","null"]},"destinationLatLon":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/FlightLatLon"}]},"landingAt":{"type":"string"},"landingTz":{"type":["string","null"]},"originAirportCountryCode":{"type":["string","null"]},"originAirportKind":{"$ref":"#/components/schemas/FlightAirportKind"},"originAirportName":{"type":["string","null"]},"originIcaoCode":{"type":["string","null"]},"originLatLon":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/FlightLatLon"}]}}},"CreateFlightResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"CreateLessonLearnedRequest":{"type":"object","required":["category","title","content","visibility"],"properties":{"category":{"$ref":"#/components/schemas/LessonLearnedCategory"},"content":{"type":"string"},"title":{"type":"string"},"visibility":{"$ref":"#/components/schemas/LessonVisibility"}}},"CreateLessonLearnedResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"CreateLodgingRequest":{"type":"object","required":["name"],"properties":{"address":{"type":["string","null"]},"description":{"type":["string","null"]},"endAt":{"type":["string","null"]},"name":{"type":"string"},"reservationUrl":{"type":["string","null"]},"startAt":{"type":["string","null"]}}},"CreateLodgingResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"CreatePaymentRequest":{"type":"object","required":["description","amount","currency","from","to"],"properties":{"amount":{"type":"integer","format":"int64","minimum":0},"currency":{"$ref":"#/components/schemas/CreateExpenseCurrency"},"description":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}}},"CreateRoadTransportSegmentRequest":{"type":"object","properties":{"destinationLabel":{"type":["string","null"]},"endAt":{"type":["string","null"]},"originLabel":{"type":["string","null"]},"startAt":{"type":["string","null"]}}},"CreateRoadTripCityVisitRequest":{"type":"object","required":["cityId"],"properties":{"cityId":{"type":"integer","format":"int32","minimum":0},"endAt":{"type":["string","null"]},"startAt":{"type":["string","null"]}}},"CreateSharedLinkRequest":{"type":"object","required":["description","resources"],"properties":{"autoExpiresAt":{"type":["string","null"]},"description":{"type":"string"},"emails":{"type":["array","null"],"items":{"type":"string"}},"password":{"type":["string","null"]},"resources":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkResource"}}}},"CreateSharedLinkResponse":{"type":"object","required":["id","url"],"properties":{"id":{"type":"string"},"url":{"type":"string"}}},"CreateTrainRequest":{"type":"object","properties":{"arrivalAt":{"type":["string","null"]},"departureAt":{"type":["string","null"]},"destinationLatLon":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TrainLatLon"}]},"destinationStationCountryCode":{"type":["string","null"]},"destinationStationId":{"type":["string","null"]},"destinationStationKind":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TrainStationKind"}]},"destinationStationName":{"type":["string","null"]},"destinationTz":{"type":["string","null"]},"originLatLon":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TrainLatLon"}]},"originStationCountryCode":{"type":["string","null"]},"originStationId":{"type":["string","null"]},"originStationKind":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TrainStationKind"}]},"originStationName":{"type":["string","null"]},"originTz":{"type":["string","null"]}}},"CreateTrainResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"CreateTransportSegmentRequest":{"type":"object","properties":{"destinationLabel":{"type":["string","null"]},"endAt":{"type":["string","null"]},"orderIndex":{"type":["integer","null"],"format":"int32","minimum":0},"originLabel":{"type":["string","null"]},"startAt":{"type":["string","null"]}}},"CreateTransportSegmentResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"CreateTripCityRequest":{"type":"object","required":["cityId","plannedDates"],"properties":{"cityId":{"type":"integer","format":"int32","minimum":0},"plannedDates":{"type":"array","items":{"type":"string"}}}},"CreateTripMemberRequest":{"type":"object","required":["memberId","role"],"properties":{"memberId":{"type":"string"},"role":{"$ref":"#/components/schemas/MemberRole"}}},"CreateTripRequest":{"type":"object","required":["name","tripType"],"properties":{"collaborators":{"type":"array","items":{"type":"string"}},"countryCodes":{"type":"array","items":{"type":"string"}},"description":{"type":["string","null"]},"endAt":{"type":["string","null"]},"hasImage":{"type":"boolean"},"lodgings":{"type":"array","items":{"$ref":"#/components/schemas/CreateLodgingRequest"}},"name":{"type":"string"},"roadTripCityVisits":{"type":"array","items":{"$ref":"#/components/schemas/CreateRoadTripCityVisitRequest"}},"startAt":{"type":["string","null"]},"tripType":{"$ref":"#/components/schemas/CreateTripTypeRequest"}}},"CreateTripResponse":{"type":"object","required":["tripId"],"properties":{"coverImageJwt":{"type":["string","null"]},"tripId":{"type":"string"}}},"CreateTripTypeRequest":{"oneOf":[{"type":"object","required":["type"],"properties":{"flights":{"type":"array","items":{"$ref":"#/components/schemas/CreateFlightRequest"}},"type":{"type":"string","enum":["flight"]}}},{"type":"object","required":["type"],"properties":{"trains":{"type":"array","items":{"$ref":"#/components/schemas/CreateTrainRequest"}},"type":{"type":"string","enum":["train"]}}},{"type":"object","required":["vehicle","type"],"properties":{"transportSegments":{"type":"array","items":{"$ref":"#/components/schemas/CreateRoadTransportSegmentRequest"}},"type":{"type":"string","enum":["road"]},"vehicle":{"$ref":"#/components/schemas/PatchTripVehicleRequest"}}},{"type":"object","required":["type"],"properties":{"cruises":{"type":"array","items":{"$ref":"#/components/schemas/CreateCruiseRequest"}},"type":{"type":"string","enum":["cruise"]}}},{"type":"object","required":["type"],"properties":{"cruises":{"type":"array","items":{"$ref":"#/components/schemas/CreateCruiseRequest"}},"flights":{"type":"array","items":{"$ref":"#/components/schemas/CreateFlightRequest"}},"trains":{"type":"array","items":{"$ref":"#/components/schemas/CreateTrainRequest"}},"transportSegments":{"type":"array","items":{"$ref":"#/components/schemas/CreateRoadTransportSegmentRequest"}},"type":{"type":"string","enum":["advanced"]},"vehicle":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PatchTripVehicleRequest"}]}}}]},"Cruise":{"type":"object","required":["id","origin","destination"],"properties":{"cruiseLine":{"type":["string","null"]},"destination":{"$ref":"#/components/schemas/CruisePort"},"id":{"type":"string"},"origin":{"$ref":"#/components/schemas/CruisePort"}}},"CruiseLatLon":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"}}},"CruisePort":{"oneOf":[{"type":"object","required":["portId","type"],"properties":{"departureAt":{"type":["string","null"]},"portId":{"type":"string"},"type":{"type":"string","enum":["registered"]}}},{"type":"object","required":["portName","type"],"properties":{"departureAt":{"type":["string","null"]},"lat":{"type":["number","null"],"format":"double"},"lon":{"type":["number","null"],"format":"double"},"portName":{"type":"string"},"type":{"type":"string","enum":["custom"]}}}]},"CruisePortKind":{"type":"string","enum":["registered","custom"]},"CustomPoi":{"type":"object","required":["id","name","lat","lon","coordinateSource","createdAt","isPrivate","creatorAccountId"],"properties":{"coordinateSource":{"$ref":"#/components/schemas/CoordinateSource"},"createdAt":{"type":"string"},"creatorAccountId":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"isPrivate":{"type":"boolean"},"lat":{"type":"number","format":"float"},"lon":{"type":"number","format":"float"},"name":{"type":"string"},"visitedAt":{"type":["string","null"]}}},"ExpenseAdd":{"type":"object","required":["payerAlias","description","totalAmount","currency","expenseType","splitType","members"],"properties":{"currency":{"type":"string"},"description":{"type":"string"},"expenseType":{"type":"string"},"members":{"type":"array","items":{"$ref":"#/components/schemas/MemberAmount"}},"payerAlias":{"type":"string"},"splitType":{"type":"string"},"totalAmount":{"type":"integer","format":"int64","minimum":0}}},"ExpenseChange":{"oneOf":[{"type":"object","required":["data","type"],"properties":{"data":{"$ref":"#/components/schemas/ExpenseAdd"},"type":{"type":"string","enum":["add"]}}},{"type":"object","required":["data","type"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ExpenseUpdate"}},"type":{"type":"string","enum":["update"]}}},{"type":"object","required":["data","type"],"properties":{"data":{"$ref":"#/components/schemas/ExpenseDelete"},"type":{"type":"string","enum":["delete"]}}}]},"ExpenseDelete":{"type":"object","required":["creatorAlias","payerAlias","description","totalAmount","currency","expenseType","splitType","members"],"properties":{"creatorAlias":{"type":"string"},"currency":{"type":"string"},"description":{"type":"string"},"expenseType":{"type":"string"},"members":{"type":"array","items":{"$ref":"#/components/schemas/MemberAmount"}},"payerAlias":{"type":"string"},"splitType":{"type":"string"},"totalAmount":{"type":"integer","format":"int64","minimum":0}}},"ExpenseDto":{"type":"object","required":["id","description","totalAmount","currency","expenseType","splitType","createdAtEpoch","ownerId","participants"],"properties":{"createdAtEpoch":{"type":"integer","format":"int64","minimum":0},"currency":{"type":"string"},"description":{"type":"string"},"expenseType":{"type":"string"},"id":{"type":"string"},"ownerId":{"type":"string"},"participants":{"type":"array","items":{"$ref":"#/components/schemas/ParticipantDto"}},"splitType":{"type":"string"},"totalAmount":{"type":"integer","format":"int64","minimum":0}}},"ExpenseEvent":{"type":"object","required":["expenseId","description","actorAlias","change","createdAt"],"properties":{"actorAlias":{"type":"string"},"change":{"$ref":"#/components/schemas/ExpenseChange"},"createdAt":{"type":"string"},"description":{"type":"string"},"expenseId":{"type":"string"}}},"ExpenseUpdate":{"type":"object","required":["updateType","from","to"],"properties":{"from":{"type":"string"},"to":{"type":"string"},"updateType":{"type":"string"}}},"ExpenseWriteResponse":{"type":"object","required":["expense","memberBalances","totalSpent"],"properties":{"expense":{"$ref":"#/components/schemas/ExpenseDto"},"memberBalances":{"type":"array","items":{"$ref":"#/components/schemas/MemberSummary"}},"totalSpent":{"type":"integer","format":"int64","minimum":0}}},"FinanceEvent":{"oneOf":[{"type":"object","required":["data","type"],"properties":{"data":{"$ref":"#/components/schemas/ExpenseEvent"},"type":{"type":"string","enum":["expense"]}}},{"type":"object","required":["data","type"],"properties":{"data":{"$ref":"#/components/schemas/PaymentEvent"},"type":{"type":"string","enum":["payment"]}}}]},"FinancialItems":{"type":"object","required":["totalSpent","currency","membersSummary","expenses","payments"],"properties":{"currency":{"type":"string"},"expenses":{"type":"array","items":{"$ref":"#/components/schemas/ExpenseDto"}},"membersSummary":{"type":"array","items":{"$ref":"#/components/schemas/MemberSummary"}},"payments":{"type":"array","items":{"$ref":"#/components/schemas/PaymentDto"}},"totalSpent":{"type":"integer","format":"int64","minimum":0}}},"FinancialItemsSummary":{"type":"object","required":["totalSpent","currency","numExpenses","numPayments","membersSummary"],"properties":{"currency":{"type":"string"},"membersSummary":{"type":"array","items":{"$ref":"#/components/schemas/MemberSummary"}},"numExpenses":{"type":"integer","format":"int64","minimum":0},"numPayments":{"type":"integer","format":"int64","minimum":0},"totalSpent":{"type":"integer","format":"int64","minimum":0}}},"Flight":{"type":"object","required":["id","origin","destination"],"properties":{"airlineId":{"type":["string","null"]},"destination":{"$ref":"#/components/schemas/FlightAirport"},"id":{"type":"string"},"origin":{"$ref":"#/components/schemas/FlightAirport"}}},"FlightAirport":{"oneOf":[{"type":"object","required":["icaoCode","type"],"properties":{"departureAt":{"type":["string","null"]},"icaoCode":{"type":"string"},"type":{"type":"string","enum":["registered"]}}},{"type":"object","required":["countryCode","label","type"],"properties":{"countryCode":{"type":"string"},"departureAt":{"type":["string","null"]},"label":{"type":"string"},"lat":{"type":["number","null"],"format":"double"},"lon":{"type":["number","null"],"format":"double"},"timezone":{"type":["string","null"]},"type":{"type":"string","enum":["custom"]}}}]},"FlightAirportKind":{"type":"string","enum":["registered","custom"]},"FlightLatLon":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"}}},"FollowingAccount":{"type":"object","required":["accountId"],"properties":{"accountId":{"type":"string"},"alias":{"type":["string","null"]}}},"FollowingResponse":{"type":"object","required":["accounts","totalFollowing"],"properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/FollowingAccount"}},"nextCursor":{"type":["string","null"]},"totalFollowing":{"type":"integer","format":"int32","minimum":0}}},"FollowingStatusResponse":{"type":"object","required":["accountId","isFollowing"],"properties":{"accountId":{"type":"string"},"isFollowing":{"type":"boolean"}}},"Gallery":{"type":"object","required":["path","slots"],"properties":{"path":{"type":"string"},"slots":{"type":"array","items":{"$ref":"#/components/schemas/Slot"}}}},"GalleryAccessContract":{"type":"object","required":["path","slotsTokenJwt"],"properties":{"path":{"type":"string"},"slotsTokenJwt":{"type":"string"}}},"LessonLearned":{"type":"object","required":["id","category","title","content","visibility","createdAt","isOwner"],"properties":{"category":{"$ref":"#/components/schemas/LessonLearnedCategory"},"content":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"isOwner":{"type":"boolean"},"title":{"type":"string"},"visibility":{"$ref":"#/components/schemas/LessonVisibility"}}},"LessonLearnedCategory":{"type":"string","enum":["DontDoThis","DoThisAgain","InterestingThings","FoodHighlights","TouristTraps","PackingTips","Timing","BudgetInsights","PersonalTakeaways","CulturalInsights","TransportationTips","SafetyTips","HiddenGems","Other"]},"LessonVisibility":{"type":"string","enum":["Private","Public"]},"Lodging":{"type":"object","required":["id","name"],"properties":{"address":{"type":["string","null"]},"description":{"type":["string","null"]},"endAtEpoch":{"type":["integer","null"],"format":"int64","minimum":0},"id":{"type":"string"},"name":{"type":"string"},"reservationUrl":{"type":["string","null"]},"startAtEpoch":{"type":["integer","null"],"format":"int64","minimum":0}}},"MapLine":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/Point"},"to":{"$ref":"#/components/schemas/Point"}}},"MapPoint":{"type":"object","required":["point","name"],"properties":{"name":{"type":"string"},"point":{"$ref":"#/components/schemas/Point"}}},"Member":{"type":"object","required":["id","role"],"properties":{"alias":{"type":["string","null"]},"email":{"type":["string","null"]},"id":{"type":"string"},"role":{"$ref":"#/components/schemas/MemberRole"}}},"MemberAmount":{"type":"object","required":["alias"],"properties":{"alias":{"type":"string"},"amount":{"type":["integer","null"],"format":"int64","minimum":0}}},"MemberRole":{"type":"string","enum":["owner","collaborator","viewer"]},"MemberSummary":{"type":"object","required":["id","amountSpent","balance"],"properties":{"amountSpent":{"type":"integer","format":"int64","minimum":0},"balance":{"type":"integer","format":"int64"},"id":{"type":"string"}}},"MemberVehicle":{"oneOf":[{"type":"object","required":["vehicle_id","manufacturer","model","type"],"properties":{"catalog_details":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/CanonicalVehicleCatalogDetails"}]},"fuel_consumption_l_per_100km_millis":{"type":["integer","null"],"format":"int32","minimum":0},"license_plate":{"type":["string","null"]},"manufacturer":{"type":"string"},"model":{"type":"string"},"nickname":{"type":["string","null"]},"type":{"type":"string","enum":["canonical"]},"vehicle_id":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["manufacturer","model","fuel_consumption_l_per_100km_millis","type"],"properties":{"fuel_consumption_l_per_100km_millis":{"type":"integer","format":"int32","minimum":0},"license_plate":{"type":["string","null"]},"manufacturer":{"type":"string"},"model":{"type":"string"},"nickname":{"type":["string","null"]},"type":{"type":"string","enum":["manual"]}}}]},"MonthTotalDto":{"type":"object","required":["month","total"],"properties":{"month":{"type":"integer","format":"int32","minimum":0},"total":{"type":"integer","format":"int64","minimum":0}}},"POI":{"type":"object","required":["id","title","lat","lon"],"properties":{"id":{"type":"string"},"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"},"title":{"type":"string"}}},"ParticipantAvatar":{"type":"object","required":["path","version"],"properties":{"path":{"type":"string"},"version":{"type":"integer","format":"int32","minimum":0}}},"ParticipantDto":{"type":"object","required":["memberId","amount"],"properties":{"amount":{"type":"integer","format":"int64","minimum":0},"memberId":{"type":"string"}}},"ParticipantSocialMedia":{"type":"object","properties":{"facebookProfile":{"type":["string","null"]},"instagramProfile":{"type":["string","null"]},"linkedinProfile":{"type":["string","null"]},"xProfile":{"type":["string","null"]},"youtubeChannel":{"type":["string","null"]}}},"ParticipantSummary":{"type":"object","required":["accountId","numTrips","differentCountriesVisited","socialMedia"],"properties":{"accountId":{"type":"string"},"alias":{"type":["string","null"]},"avatar":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/ParticipantAvatar"}]},"description":{"type":["string","null"]},"differentCountriesVisited":{"type":"array","items":{"type":"string"}},"email":{"type":["string","null"]},"isFollowing":{"type":["boolean","null"]},"isPublic":{"type":["boolean","null"]},"numTrips":{"type":"integer","format":"int32","minimum":0},"socialMedia":{"$ref":"#/components/schemas/ParticipantSocialMedia"}}},"PatchAccountRequest":{"type":"object","properties":{"alias":{"type":["string","null"]},"defaultCountryCode":{"type":["string","null"]},"description":{"type":["string","null"]},"isPublic":{"type":["boolean","null"]},"socialMedia":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PatchAccountSocialMedia"}]}}},"PatchAccountSocialMedia":{"type":"object","properties":{"facebookProfile":{"type":["string","null"]},"instagramProfile":{"type":["string","null"]},"linkedinProfile":{"type":["string","null"]},"xProfile":{"type":["string","null"]},"youtubeChannel":{"type":["string","null"]}}},"PatchAccountWebhookSubscriptionsRequest":{"type":"object","required":["eventTypes"],"properties":{"eventTypes":{"type":"array","items":{"type":"string"}}}},"PatchAccountWebhookUrlRequest":{"type":"object","required":["webhookUrl"],"properties":{"webhookUrl":{"type":"string"}}},"PatchLessonLearnedRequest":{"type":"object","properties":{"category":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/LessonLearnedCategory"}]},"content":{"type":["string","null"]},"title":{"type":["string","null"]},"visibility":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/LessonVisibility"}]}}},"PatchSharedLinkRequest":{"type":"object","properties":{"autoExpiresAt":{"type":["string","null"]},"isActive":{"type":["boolean","null"]},"password":{"type":["string","null"]},"resources":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SharedLinkResource"}}}},"PatchTripCityRequest":{"type":"object","required":["visited"],"properties":{"visited":{"type":"boolean"}}},"PatchTripMemberRequest":{"type":"object","required":["role"],"properties":{"role":{"$ref":"#/components/schemas/MemberRole"}}},"PatchTripRequest":{"type":"object","properties":{"description":{"type":["string","null"]},"endAt":{"type":["string","null"]},"hasImage":{"type":["boolean","null"]},"name":{"type":["string","null"]},"startAt":{"type":["string","null"]}}},"PatchTripResponse":{"type":"object","properties":{"coverImageJwt":{"type":["string","null"]}}},"PatchTripVehicleRequest":{"type":"object","required":["manufacturer","model","fuelConsumptionLPer100kmMillis"],"properties":{"fuelConsumptionLPer100kmMillis":{"type":"integer","format":"int32","minimum":0},"licensePlate":{"type":["string","null"]},"manufacturer":{"type":"string"},"model":{"type":"string"},"nickname":{"type":["string","null"]}}},"PaymentAdd":{"type":"object","required":["description","from","to","amount","currency"],"properties":{"amount":{"type":"integer","format":"int64","minimum":0},"currency":{"type":"string"},"description":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}}},"PaymentChange":{"oneOf":[{"type":"object","required":["data","type"],"properties":{"data":{"$ref":"#/components/schemas/PaymentAdd"},"type":{"type":"string","enum":["add"]}}},{"type":"object","required":["data","type"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentUpdate"}},"type":{"type":"string","enum":["update"]}}},{"type":"object","required":["data","type"],"properties":{"data":{"$ref":"#/components/schemas/PaymentDelete"},"type":{"type":"string","enum":["delete"]}}}]},"PaymentDelete":{"type":"object","required":["from","to","description","amount","currency"],"properties":{"amount":{"type":"integer","format":"int64","minimum":0},"currency":{"type":"string"},"description":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}}},"PaymentDto":{"type":"object","required":["id","description","amount","currency","createdAtEpoch","from","to"],"properties":{"amount":{"type":"integer","format":"int64","minimum":0},"createdAtEpoch":{"type":"integer","format":"int64","minimum":0},"currency":{"type":"string"},"description":{"type":"string"},"from":{"type":"string"},"id":{"type":"string"},"to":{"type":"string"}}},"PaymentEvent":{"type":"object","required":["paymentId","description","actorAlias","change","createdAt"],"properties":{"actorAlias":{"type":"string"},"change":{"$ref":"#/components/schemas/PaymentChange"},"createdAt":{"type":"string"},"description":{"type":"string"},"paymentId":{"type":"string"}}},"PaymentUpdate":{"type":"object","required":["updateType","from","to"],"properties":{"from":{"type":"string"},"to":{"type":"string"},"updateType":{"type":"string"}}},"PaymentWriteResponse":{"type":"object","required":["paymentId","memberBalances","totalSpent"],"properties":{"memberBalances":{"type":"array","items":{"$ref":"#/components/schemas/MemberSummary"}},"paymentId":{"type":"string"},"totalSpent":{"type":"integer","format":"int64","minimum":0}}},"PlannedCountryVisit":{"type":"object","required":["code","name","emoji"],"properties":{"code":{"type":"string"},"emoji":{"type":"string"},"name":{"type":"string"},"plannedAt":{"type":["string","null"]}}},"Point":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"}}},"PollVoteChoice":{"oneOf":[{"type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["proposal"]}}},{"type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["dateOption"]}}},{"type":"object","required":["id","type"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["flight"]}}}]},"PublicAccountAvatar":{"type":"object","required":["path","version"],"properties":{"path":{"type":"string"},"version":{"type":"integer","format":"int32","minimum":0}}},"PublicAccountProfile":{"type":"object","required":["accountId","isFollowing","numTrips","differentCountriesVisited","socialMedia"],"properties":{"accountId":{"type":"string"},"alias":{"type":["string","null"]},"avatar":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PublicAccountAvatar"}]},"description":{"type":["string","null"]},"differentCountriesVisited":{"type":"array","items":{"type":"string"}},"isFollowing":{"type":"boolean"},"numTrips":{"type":"integer","format":"int32","minimum":0},"socialMedia":{"$ref":"#/components/schemas/PublicAccountSocialMedia"}}},"PublicAccountSocialMedia":{"type":"object","properties":{"facebookProfile":{"type":["string","null"]},"instagramProfile":{"type":["string","null"]},"linkedinProfile":{"type":["string","null"]},"xProfile":{"type":["string","null"]},"youtubeChannel":{"type":["string","null"]}}},"PublicAccountSummary":{"type":"object","required":["id","accountId","alias"],"properties":{"accountId":{"type":"string"},"alias":{"type":"string"},"avatar":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PublicAccountAvatar"}]},"id":{"type":"string"}}},"PublicPollCreator":{"type":"object","required":["alias"],"properties":{"alias":{"type":"string"},"avatar":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PublicAccountAvatar"}]}}},"PublicPollDateOption":{"type":"object","required":["id","startAt","endAt"],"properties":{"endAt":{"type":"string"},"flight":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PublicPollFlightInfo"}]},"id":{"type":"string"},"startAt":{"type":"string"},"votedAtPosition":{"type":["integer","null"],"format":"int32","minimum":0}}},"PublicPollFlightInfo":{"type":"object","properties":{"departureAt":{"type":["string","null"]},"landingAt":{"type":["string","null"]},"link":{"type":["string","null"]},"price":{"type":["integer","null"],"format":"int64","minimum":0}}},"PublicPollProposal":{"type":"object","required":["id","title","description","dateOptions"],"properties":{"dateOptions":{"type":"array","items":{"$ref":"#/components/schemas/PublicPollDateOption"}},"description":{"type":"string"},"id":{"type":"string"},"title":{"type":"string"},"votedAtPosition":{"type":["integer","null"],"format":"int32","minimum":0}}},"PublicPollView":{"type":"object","required":["title","description","imageId","proposals","creator"],"properties":{"creator":{"$ref":"#/components/schemas/PublicPollCreator"},"description":{"type":"string"},"imageId":{"type":"string"},"proposals":{"type":"array","items":{"$ref":"#/components/schemas/PublicPollProposal"}},"title":{"type":"string"},"votedAt":{"type":["string","null"]}}},"ResolveSharedLinkRequest":{"type":"object","properties":{"password":{"type":["string","null"]}}},"ResolvedSharedLinkResponse":{"type":"object","required":["name"],"properties":{"countries":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkCountries"}]},"expenses":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkExpenses"}]},"gallery":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkGallery"}]},"lessonsLearned":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkLessonsLearned"}]},"map":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkMapData"}]},"name":{"type":"string"},"pointsOfInterest":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkPointsOfInterest"}]},"roadmap":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkRoadmap"}]},"statistics":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkStatistics"}]},"videos":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SharedLinkVideos"}]}}},"Roadmap":{"type":"object","required":["roadmap","createdUsingAi","createdAt","lastEditedAt"],"properties":{"createdAt":{"type":"string"},"createdUsingAi":{"type":"boolean"},"lastEditedAt":{"type":"string"},"roadmap":{"type":"string"}}},"SharedLink":{"type":"object","required":["id","url","description","resources","numVisited","withPassword"],"properties":{"autoExpiresAt":{"type":["string","null"]},"deactivatedAt":{"type":["string","null"]},"description":{"type":"string"},"id":{"type":"string"},"lastVisitedAt":{"type":["string","null"]},"numVisited":{"type":"integer","format":"int32","minimum":0},"resources":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkResource"}},"url":{"type":"string"},"withPassword":{"type":"boolean"}}},"SharedLinkCityVisit":{"type":"object","required":["name","lat","lon","visited"],"properties":{"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"},"name":{"type":"string"},"visited":{"type":"boolean"}}},"SharedLinkCoord":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"}}},"SharedLinkCountries":{"type":"object","required":["countries"],"properties":{"countries":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkCountry"}}}},"SharedLinkCountry":{"type":"object","required":["code","cities"],"properties":{"cities":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkCityVisit"}},"code":{"type":"string"}}},"SharedLinkCustomPoi":{"type":"object","required":["id","name","lat","lon","coordinateSource","createdAt","isPrivate"],"properties":{"coordinateSource":{"$ref":"#/components/schemas/CoordinateSource"},"createdAt":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string"},"isPrivate":{"type":"boolean"},"lat":{"type":"number","format":"float"},"lon":{"type":"number","format":"float"},"name":{"type":"string"},"visitedAt":{"type":["string","null"]}}},"SharedLinkExpenses":{"type":"object"},"SharedLinkGallery":{"type":"object","required":["path","slotsTokenJwt","slots"],"properties":{"path":{"type":"string"},"slots":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkGallerySlot"}},"slotsTokenJwt":{"type":"string"}}},"SharedLinkGallerySlot":{"type":"object","required":["position"],"properties":{"position":{"type":"integer","format":"int32","minimum":0},"uploadedAt":{"type":["string","null"]}}},"SharedLinkLessonLearned":{"type":"object","required":["id","title","content","category","visibility","createdAt","isOwner"],"properties":{"category":{"$ref":"#/components/schemas/LessonLearnedCategory"},"content":{"type":"string"},"createdAt":{"type":"string"},"id":{"type":"string"},"isOwner":{"type":"boolean"},"title":{"type":"string"},"visibility":{"$ref":"#/components/schemas/LessonVisibility"}}},"SharedLinkLessonsLearned":{"type":"object","required":["lessons"],"properties":{"lessons":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkLessonLearned"}}}},"SharedLinkMapData":{"type":"object","required":["mapType","countries","points","lines","topLeftPoint","bottomRightPoint"],"properties":{"bottomRightPoint":{"$ref":"#/components/schemas/SharedLinkCoord"},"countries":{"type":"array","items":{"type":"string"}},"lines":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkMapLine"}},"mapType":{"type":"string"},"points":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkMapPoint"}},"topLeftPoint":{"$ref":"#/components/schemas/SharedLinkCoord"}}},"SharedLinkMapLine":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/SharedLinkCoord"},"to":{"$ref":"#/components/schemas/SharedLinkCoord"}}},"SharedLinkMapPoint":{"type":"object","required":["name","coord"],"properties":{"coord":{"$ref":"#/components/schemas/SharedLinkCoord"},"name":{"type":"string"}}},"SharedLinkPointsOfInterest":{"type":"object","required":["customPois"],"properties":{"customPois":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkCustomPoi"}}}},"SharedLinkResource":{"type":"string","enum":["roadmap","expenses","gallery","videos","pointsOfInterest","statistics","lessonsLearned","countries","map"]},"SharedLinkRoadmap":{"type":"object","required":["markdown"],"properties":{"markdown":{"type":"string"}}},"SharedLinkStatistics":{"type":"object"},"SharedLinkVideoReference":{"type":"object","required":["videoId","videoName","uploadedAt"],"properties":{"uploadedAt":{"type":"string"},"videoId":{"type":"string"},"videoName":{"type":"string"}}},"SharedLinkVideos":{"type":"object","required":["tripId","videoAccessJwt","videos"],"properties":{"tripId":{"type":"string"},"videoAccessJwt":{"type":"string"},"videos":{"type":"array","items":{"$ref":"#/components/schemas/SharedLinkVideoReference"}}}},"Slot":{"type":"object","required":["position"],"properties":{"position":{"type":"integer","format":"int32","minimum":0},"uploadedAt":{"type":["string","null"]}}},"StartGalleryUploadRequest":{"type":"object","required":["imageCount"],"properties":{"imageCount":{"type":"integer","format":"int32","minimum":0}}},"StartGalleryUploadResponse":{"type":"object","required":["path","freeSlotsTokenJwt","freeSlots","occupiedSlots"],"properties":{"freeSlots":{"type":"array","items":{"$ref":"#/components/schemas/Slot"}},"freeSlotsTokenJwt":{"type":"string"},"occupiedSlots":{"type":"array","items":{"$ref":"#/components/schemas/Slot"}},"path":{"type":"string"}}},"StatisticsLabelValueDto":{"type":"object","required":["label","value"],"properties":{"label":{"type":"string"},"value":{"type":"integer","format":"int32","minimum":0}}},"StatisticsLabelValuesDto":{"type":"object","required":["label","values"],"properties":{"label":{"type":"string"},"values":{"type":"array","items":{"type":"integer","format":"int32","minimum":0}}}},"TagSummary":{"type":"object","required":["slug","emoji"],"properties":{"emoji":{"type":"string"},"slug":{"type":"string"}}},"TestAccountWebhookRequest":{"type":"object","required":["eventType"],"properties":{"eventType":{"type":"string"}}},"Train":{"type":"object","required":["id","origin","destination"],"properties":{"destination":{"$ref":"#/components/schemas/TrainStation"},"id":{"type":"string"},"origin":{"$ref":"#/components/schemas/TrainStation"}}},"TrainLatLon":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"}}},"TrainStation":{"oneOf":[{"type":"object","required":["stationId","type"],"properties":{"departureAt":{"type":["string","null"]},"stationId":{"type":"string"},"type":{"type":"string","enum":["registered"]}}},{"type":"object","required":["stationName","type"],"properties":{"departureAt":{"type":["string","null"]},"lat":{"type":["number","null"],"format":"double"},"lon":{"type":["number","null"],"format":"double"},"stationName":{"type":"string"},"type":{"type":"string","enum":["custom"]}}}]},"TrainStationKind":{"type":"string","enum":["registered","custom"]},"TransportMetadata":{"oneOf":[{"type":"object","required":["type"],"properties":{"airlineId":{"type":["string","null"]},"type":{"type":"string","enum":["flight"]}}},{"type":"object","required":["type"],"properties":{"note":{"type":["string","null"]},"type":{"type":"string","enum":["train"]}}},{"type":"object","required":["type"],"properties":{"note":{"type":["string","null"]},"type":{"type":"string","enum":["road"]}}},{"type":"object","required":["type"],"properties":{"note":{"type":["string","null"]},"type":{"type":"string","enum":["cruise"]}}}]},"TransportPoint":{"oneOf":[{"type":"object","required":["code","type"],"properties":{"at":{"type":["string","null"]},"code":{"type":"string"},"label":{"type":["string","null"]},"type":{"type":"string","enum":["registered"]}}},{"type":"object","required":["label","type"],"properties":{"at":{"type":["string","null"]},"label":{"type":"string"},"lat":{"type":["number","null"],"format":"double"},"lon":{"type":["number","null"],"format":"double"},"type":{"type":"string","enum":["custom"]}}}]},"TransportSegment":{"type":"object","required":["id","segmentType","orderIndex","origin","destination","metadata"],"properties":{"destination":{"$ref":"#/components/schemas/TransportPoint"},"endsAt":{"type":["string","null"]},"id":{"type":"string"},"metadata":{"$ref":"#/components/schemas/TransportMetadata"},"orderIndex":{"type":"integer","format":"int32","minimum":0},"origin":{"$ref":"#/components/schemas/TransportPoint"},"segmentType":{"$ref":"#/components/schemas/TransportSegmentType"},"startsAt":{"type":["string","null"]}}},"TransportSegmentType":{"type":"string","enum":["flight","train","road","cruise"]},"TravelerEdge":{"type":"object","required":["nodeA","nodeB"],"properties":{"nodeA":{"type":"string"},"nodeB":{"type":"string"}}},"TravelerNode":{"type":"object","required":["accountId","label","isPublic","level"],"properties":{"accountId":{"type":"string"},"isPublic":{"type":"boolean"},"label":{"type":"string"},"level":{"type":"integer","format":"int32","minimum":0}}},"TravelersNetworkResponse":{"type":"object","required":["centerAccountId","depth","nodes","edges"],"properties":{"centerAccountId":{"type":"string"},"depth":{"type":"integer","format":"int32","minimum":0},"edges":{"type":"array","items":{"$ref":"#/components/schemas/TravelerEdge"}},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/TravelerNode"}}}},"Trip":{"type":"object","required":["id","title","description"],"properties":{"description":{"type":"string"},"id":{"type":"string"},"title":{"type":"string"}}},"TripCountryCities":{"type":"object","required":["countryCode","cityVisits"],"properties":{"cityVisits":{"type":"array","items":{"$ref":"#/components/schemas/CityVisit"}},"countryCode":{"type":"string"}}},"TripDetail":{"type":"object","required":["id","title","description","countryCodes","tripType","confirmedMemberCount","unconfirmedMemberCount"],"properties":{"confirmedMemberCount":{"type":"integer","format":"int32","minimum":0},"countryCodes":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"endAt":{"type":["string","null"]},"id":{"type":"string"},"startAt":{"type":["string","null"]},"title":{"type":"string"},"tripType":{"$ref":"#/components/schemas/TripTypeSummary"},"unconfirmedMemberCount":{"type":"integer","format":"int32","minimum":0}}},"TripFinanceEventsResponse":{"type":"object","required":["events"],"properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/FinanceEvent"}}}},"TripMapData":{"type":"object","required":["continent","countries","points","lines","topLeftPoint","bottomRightPoint"],"properties":{"bottomRightPoint":{"$ref":"#/components/schemas/Point"},"continent":{"type":"string"},"countries":{"type":"array","items":{"$ref":"#/components/schemas/Country"}},"lines":{"type":"array","items":{"$ref":"#/components/schemas/MapLine"}},"points":{"type":"array","items":{"$ref":"#/components/schemas/MapPoint"}},"topLeftPoint":{"$ref":"#/components/schemas/Point"}}},"TripMapResponse":{"type":"object","properties":{"data":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/TripMapData"}]}}},"TripMemberDetail":{"type":"object","required":["id","role","confirmed"],"properties":{"alias":{"type":["string","null"]},"confirmed":{"type":"boolean"},"email":{"type":["string","null"]},"id":{"type":"string"},"role":{"$ref":"#/components/schemas/MemberRole"}}},"TripMemberVehicle":{"type":"object","required":["accountId","alias","isCurrentUser"],"properties":{"accountId":{"type":"string"},"alias":{"type":"string"},"isCurrentUser":{"type":"boolean"},"vehicle":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/MemberVehicle"}]}}},"TripMembers":{"type":"object","required":["members","unconfirmedMembers"],"properties":{"members":{"type":"array","items":{"$ref":"#/components/schemas/Member"}},"unconfirmedMembers":{"type":"array","items":{"$ref":"#/components/schemas/Member"}}}},"TripTotalDto":{"type":"object","required":["name","total"],"properties":{"name":{"type":"string"},"total":{"type":"integer","format":"int64","minimum":0}}},"TripTypeSummary":{"type":"string","enum":["flight","train","road","cruise","advanced"]},"TripVideoReference":{"type":"object","required":["videoId","videoName","addedAt"],"properties":{"addedAt":{"type":"string"},"sourceUploadSessionId":{"type":["string","null"]},"videoId":{"type":"string"},"videoName":{"type":"string"}}},"TripVideos":{"type":"object","required":["videos"],"properties":{"videos":{"type":"array","items":{"$ref":"#/components/schemas/TripVideoReference"}}}},"Vehicle":{"type":"object","required":["manufacturer","model","fuelConsumptionLPer100kmMillis"],"properties":{"fuelConsumptionLPer100kmMillis":{"type":"integer","format":"int32","minimum":0},"licensePlate":{"type":["string","null"]},"manufacturer":{"type":"string"},"model":{"type":"string"},"nickname":{"type":["string","null"]}}},"VideoAccessContract":{"type":"object","required":["videoAccessJwt"],"properties":{"videoAccessJwt":{"type":"string"}}},"VisitedCountriesMap":{"type":"object","required":["allVisits","allPlannedVisits","years"],"properties":{"allPlannedVisits":{"type":"array","items":{"$ref":"#/components/schemas/PlannedCountryVisit"}},"allVisits":{"type":"array","items":{"$ref":"#/components/schemas/CountryVisitedTimelineEntry"}},"years":{"type":"array","items":{"$ref":"#/components/schemas/VisitedCountriesYearGroup"}}}},"VisitedCountriesYearGroup":{"type":"object","required":["year","visits","plannedVisits"],"properties":{"plannedVisits":{"type":"array","items":{"$ref":"#/components/schemas/PlannedCountryVisit"}},"visits":{"type":"array","items":{"$ref":"#/components/schemas/CountryVisitedTimelineEntry"}},"year":{"type":"integer","format":"int32","minimum":0}}},"VisitedCountry":{"type":"object","required":["code","name","emoji","visitCount"],"properties":{"code":{"type":"string"},"emoji":{"type":"string"},"name":{"type":"string"},"visitCount":{"type":"integer","format":"int32","minimum":0}}},"VisitedCountryTrip":{"type":"object","required":["id","name","description","members"],"properties":{"description":{"type":"string"},"endAt":{"type":["string","null"]},"id":{"type":"string"},"members":{"type":"array","items":{"$ref":"#/components/schemas/VisitedCountryTripMember"}},"name":{"type":"string"},"startAt":{"type":["string","null"]}}},"VisitedCountryTripMember":{"type":"object","required":["id"],"properties":{"email":{"type":["string","null"]},"id":{"type":"string"},"name":{"type":["string","null"]}}},"WebhookEventCatalogEntry":{"type":"object","required":["key","name","description","jsonSchema","jsonExample","isAvailable"],"properties":{"description":{"type":"string"},"isAvailable":{"type":"boolean"},"jsonExample":{"type":"string"},"jsonSchema":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"}}}},"securitySchemes":{"bearer_auth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"bearer_auth":[]}],"tags":[{"name":"Trips","description":"Trip endpoints"},{"name":"Cruises","description":"Cruise endpoints"},{"name":"Flights","description":"Flight endpoints"},{"name":"Trains","description":"Train endpoints"},{"name":"Transport","description":"Transport segment endpoints"},{"name":"Lodgings","description":"Lodging endpoints"},{"name":"Cities","description":"Trip cities endpoints"},{"name":"Map","description":"Trip map endpoints"},{"name":"Gallery","description":"Trip gallery endpoints"},{"name":"Shared Links","description":"Trip share link endpoints"},{"name":"Lessons Learned","description":"Trip lessons learned endpoints"},{"name":"Roadmaps","description":"Trip roadmap endpoints"},{"name":"POI","description":"POI endpoints"},{"name":"Countries","description":"Countries endpoints"},{"name":"Financial Items","description":"Trip financial item endpoints"},{"name":"Account","description":"Authenticated account endpoints"},{"name":"Participants","description":"Participant profile endpoints"},{"name":"Polls","description":"Public poll participation endpoints"},{"name":"Tags","description":"Trip tags catalog and trip tag endpoints"},{"name":"Webhooks","description":"Webhook discovery and configuration endpoints"}]}