{"openapi":"3.1.0","info":{"title":"Overlay Mapping API","version":"0.1.0"},"paths":{"/account/deletion-preview":{"get":{"summary":"Account Deletion Preview","description":"What the signed-in user would lose. Shown in the delete-account\nconfirmation dialog so the decision is made with the numbers in view.","operationId":"account_deletion_preview_account_deletion_preview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account":{"get":{"summary":"Get Account","operationId":"get_account_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Delete Own Account","description":"Self-serve account deletion. Purges the user's data, then deletes the\nClerk account — after which the caller's session token is dead, so the\nfrontend must sign out and redirect rather than make further requests.","operationId":"delete_own_account_account_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/upload":{"post":{"summary":"Upload Map","operationId":"upload_map_upload_post","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_map_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/georeference/{map_id}":{"post":{"summary":"Georeference Map","operationId":"georeference_map_georeference__map_id__post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeoreferenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/basemap":{"post":{"summary":"Create Basemap","operationId":"create_basemap_basemap_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasemapCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/slug/{slug}":{"get":{"summary":"Get Map By Slug","operationId":"get_map_by_slug_map_slug__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}":{"get":{"summary":"Get Map","operationId":"get_map_map__map_id__get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Map","operationId":"delete_map_map__map_id__delete","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/anon/claim":{"post":{"summary":"Claim Anon Maps","description":"Transfer all maps for the caller's anon session to their newly\nsigned-in user_id. Called by the frontend right after Clerk sign-up.\n\nNo-op (and 200) if there is no anon cookie or it has no maps — this\nendpoint is safe to call unconditionally on every sign-in.","operationId":"claim_anon_maps_anon_claim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/maps":{"get":{"summary":"List Maps","operationId":"list_maps_maps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/map/{map_id}/embed":{"put":{"summary":"Update Map Embed","operationId":"update_map_embed_map__map_id__embed_put","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/apply-pro-credit":{"post":{"summary":"Apply Pro Credit","operationId":"apply_pro_credit_map__map_id__apply_pro_credit_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/settings":{"put":{"summary":"Update Map Settings","operationId":"update_map_settings_map__map_id__settings_put","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/calendar":{"put":{"summary":"Update Calendar Settings","description":"Switch a basemap map between the points and calendar layouts, and turn\npublic event submissions on or off. Fields left out are unchanged.","operationId":"update_calendar_settings_map__map_id__calendar_put","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/listing":{"put":{"summary":"Update Map Listing","operationId":"update_map_listing_map__map_id__listing_put","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/submit-review":{"post":{"summary":"Submit Map For Review","operationId":"submit_map_for_review_map__map_id__submit_review_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Map Review","operationId":"cancel_map_review_map__map_id__submit_review_delete","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/unpublish":{"post":{"summary":"Owner Unpublish Map","operationId":"owner_unpublish_map_map__map_id__unpublish_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/frame":{"put":{"summary":"Update Basemap Frame","operationId":"update_basemap_frame_map__map_id__frame_put","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasemapFrameUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/duplicate":{"post":{"summary":"Duplicate Map","operationId":"duplicate_map_map__map_id__duplicate_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/viewer.html":{"get":{"summary":"Viewer Page","operationId":"viewer_page_viewer_html_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Id"}},{"name":"embed","in":"query","required":false,"schema":{"type":"string","default":"","title":"Embed"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/pois":{"get":{"summary":"List Pois","operationId":"list_pois_map__map_id__pois_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Poi","operationId":"create_poi_map__map_id__pois_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POICreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/export.geojson":{"get":{"summary":"Export Pois Geojson","operationId":"export_pois_geojson_map__map_id__export_geojson_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/poi/{poi_id}":{"put":{"summary":"Update Poi","operationId":"update_poi_poi__poi_id__put","parameters":[{"name":"poi_id","in":"path","required":true,"schema":{"type":"string","title":"Poi Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POIUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Poi","operationId":"delete_poi_poi__poi_id__delete","parameters":[{"name":"poi_id","in":"path","required":true,"schema":{"type":"string","title":"Poi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/locate":{"get":{"summary":"Locate Address","description":"Find an address for the phone quick-add flow, which shows the spot on a\nmap to confirm before saving. Editors only: it spends Nominatim quota.","operationId":"locate_address_map__map_id__locate_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/pois/import-row":{"post":{"summary":"Import Poi Row","description":"Geocode a single CSV row's address and create the POI. The frontend calls\nthis once per row (throttled) so each request stays well under Cloudflare's\n~100s limit and respects Nominatim's rate policy. Returns {ok: false, reason}\nfor rows that can't be placed rather than failing the whole import.","operationId":"import_poi_row_map__map_id__pois_import_row_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POICsvRow"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/poi-from-flyer":{"post":{"summary":"Poi From Flyer","operationId":"poi_from_flyer_map__map_id__poi_from_flyer_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_poi_from_flyer_map__map_id__poi_from_flyer_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/poi/{poi_id}/waypoint":{"post":{"summary":"Create Waypoint","description":"Mint (or return) this POI's permanent waypoint code.\n\nIdempotent — asking twice returns the same code, so re-opening the dialog\ncan never invalidate a sign someone has already printed.","operationId":"create_waypoint_map__map_id__poi__poi_id__waypoint_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"poi_id","in":"path","required":true,"schema":{"type":"string","title":"Poi Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/waypoints":{"get":{"summary":"List Waypoints","description":"Every waypoint on this map, for the print sheet.","operationId":"list_waypoints_map__map_id__waypoints_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/submissions/extract":{"post":{"summary":"Extract Submission","description":"Fill the submission form from a flyer photo. Saves nothing: the image is\nread and discarded, and the visitor still reviews and submits the form.","operationId":"extract_submission_map__map_id__submissions_extract_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_submission_map__map_id__submissions_extract_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/submissions":{"post":{"summary":"Create Submission","operationId":"create_submission_map__map_id__submissions_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Submissions","description":"The pending queue. Events whose dates have passed drop out of it.","operationId":"list_submissions_map__map_id__submissions_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/submissions/{sub_id}/approve":{"post":{"summary":"Approve Submission","operationId":"approve_submission_map__map_id__submissions__sub_id__approve_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SubmissionApprove"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/submissions/{sub_id}/reject":{"post":{"summary":"Reject Submission","operationId":"reject_submission_map__map_id__submissions__sub_id__reject_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"sub_id","in":"path","required":true,"schema":{"type":"string","title":"Sub Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"summary":"Admin List Users","operationId":"admin_list_users_admin_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/user/{owner_id}/stats":{"get":{"summary":"Admin Get User Stats","operationId":"admin_get_user_stats_admin_user__owner_id__stats_get","parameters":[{"name":"owner_id","in":"path","required":true,"schema":{"type":"string","title":"Owner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user-lookup":{"get":{"summary":"Admin Lookup User","description":"Resolve an email address or user id to a Clerk user, plus what they own.\n\n/admin/users is built from `maps GROUP BY owner_id`, so it only lists people\nwho currently own a map. A deletion request arriving by email often comes\nfrom someone with no maps — they'd be invisible in that list — so this looks\nthe account up in Clerk directly.","operationId":"admin_lookup_user_admin_user_lookup_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user/{user_id}":{"delete":{"summary":"Admin Delete User","description":"Delete a user and purge their data, for requests that arrive by email.\n\nAdmins are refused: an admin removing their own account this way would lock\nthemselves out mid-request, and one admin deleting another is a bigger\ndecision than a button click. Both cases should go through the CLI.","operationId":"admin_delete_user_admin_user__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/maps/{owner_id}":{"get":{"summary":"Admin Get User Maps","operationId":"admin_get_user_maps_admin_maps__owner_id__get","parameters":[{"name":"owner_id","in":"path","required":true,"schema":{"type":"string","title":"Owner Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/map/{map_id}/public":{"put":{"summary":"Admin Set Public","operationId":"admin_set_public_admin_map__map_id__public_put","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPublicRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/review-queue":{"get":{"summary":"Admin Review Queue","operationId":"admin_review_queue_admin_review_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/map/{map_id}/featured":{"put":{"summary":"Admin Set Featured","operationId":"admin_set_featured_admin_map__map_id__featured_put","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFeaturedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/map/{map_id}/transfer":{"post":{"summary":"Admin Transfer Map","operationId":"admin_transfer_map_admin_map__map_id__transfer_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferMapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/grant-credits":{"post":{"summary":"Admin Grant Credits","operationId":"admin_grant_credits_admin_grant_credits_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreditsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/promo-codes":{"get":{"summary":"Admin List Promo Codes","operationId":"admin_list_promo_codes_admin_promo_codes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Admin Create Promo Code","operationId":"admin_create_promo_code_admin_promo_codes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoCodeCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/promo-codes/{code}":{"delete":{"summary":"Admin Delete Promo Code","operationId":"admin_delete_promo_code_admin_promo_codes__code__delete","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/redeem-code":{"post":{"summary":"Redeem Promo Code","operationId":"redeem_promo_code_redeem_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/claims":{"get":{"summary":"Admin List Claims","operationId":"admin_list_claims_admin_claims_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/claims/{claim_id}/dismiss":{"put":{"summary":"Admin Dismiss Claim","operationId":"admin_dismiss_claim_admin_claims__claim_id__dismiss_put","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/map-locations":{"get":{"summary":"Admin Map Locations","operationId":"admin_map_locations_admin_map_locations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/create-checkout-session":{"post":{"summary":"Create Checkout Session","operationId":"create_checkout_session_create_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stripe-webhook":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/events/map-view":{"post":{"summary":"Record Map View","operationId":"record_map_view_events_map_view_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapViewEvent"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/events/poi-click":{"post":{"summary":"Record Poi Click","operationId":"record_poi_click_events_poi_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/POIClickEvent"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/analytics":{"get":{"summary":"Map Analytics","operationId":"map_analytics_map__map_id__analytics_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/collaborators":{"post":{"summary":"Add Collaborator","operationId":"add_collaborator_map__map_id__collaborators_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorAddRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Collaborators","operationId":"list_collaborators_map__map_id__collaborators_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/collaborators/{collab_id}":{"delete":{"summary":"Remove Collaborator","operationId":"remove_collaborator_map__map_id__collaborators__collab_id__delete","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"collab_id","in":"path","required":true,"schema":{"type":"string","title":"Collab Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/pending-collaborators/{pending_id}":{"delete":{"summary":"Remove Pending Collaborator","operationId":"remove_pending_collaborator_map__map_id__pending_collaborators__pending_id__delete","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"pending_id","in":"path","required":true,"schema":{"type":"string","title":"Pending Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/feed/preview":{"post":{"summary":"Preview Feed","description":"Fetch a small sample of the feed and return detected columns + sample rows\nso the frontend can build the column-mapping GUI.","operationId":"preview_feed_map__map_id__feed_preview_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedPreview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/feed":{"get":{"summary":"Get Feed","operationId":"get_feed_map__map_id__feed_get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Save Feed","description":"Create or replace the map's feed config, then kick off an initial refresh\nin the background. One feed per map.","operationId":"save_feed_map__map_id__feed_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Feed","operationId":"delete_feed_map__map_id__feed_delete","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"delete_pois","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Delete Pois"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/map/{map_id}/feed/refresh":{"post":{"summary":"Refresh Feed Now","operationId":"refresh_feed_now_map__map_id__feed_refresh_post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/m/{slug}":{"get":{"summary":"Public Map Page","operationId":"public_map_page_m__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/w/{code}":{"get":{"summary":"Waypoint Redirect","description":"Scan target for a printed waypoint QR code.\n\nDeliberately a redirect rather than a page: the code resolves to a map and\na POI server-side, so the viewer only ever needs to understand `poi=`. When\nthe POI has been deleted the redirect simply omits it and the map opens\nun-zoomed — the sign still works, which matters because it is bolted to a\npost and cannot be recalled.","operationId":"waypoint_redirect_w__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/explore":{"get":{"summary":"Explore Index","operationId":"explore_index_explore_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/explore/{category}":{"get":{"summary":"Explore Category","operationId":"explore_category_explore__category__get","parameters":[{"name":"category","in":"path","required":true,"schema":{"type":"string","title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public-maps":{"get":{"summary":"Public Maps Api","operationId":"public_maps_api_public_maps_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","default":"","title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":60,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/claim/{map_id}":{"post":{"summary":"Submit Claim","operationId":"submit_claim_claim__map_id__post","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sitemap.xml":{"get":{"summary":"Sitemap","operationId":"sitemap_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/backup":{"post":{"summary":"Trigger Backup","operationId":"trigger_backup_admin_backup_post","parameters":[{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/cleanup-anon":{"post":{"summary":"Trigger Cleanup Anon","operationId":"trigger_cleanup_anon_admin_cleanup_anon_post","parameters":[{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/cleanup-submissions":{"post":{"summary":"Trigger Cleanup Submissions","description":"Nightly: delete community calendar submissions on the schedule the\nprivacy policy states.","operationId":"trigger_cleanup_submissions_admin_cleanup_submissions_post","parameters":[{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/disk-usage":{"get":{"summary":"Disk Usage","description":"What is actually on the volume, biggest first.\n\nAnswers three questions a `df` alone can't: which maps are large, how much\nis held by directories with no surviving database row (orphans from failed\nuploads or pre-cleanup deletions), and how much headroom the nightly backup\nhas left — it needs room for a DB snapshot plus a tarball of everything.","operationId":"disk_usage_admin_disk_usage_get","parameters":[{"name":"top","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Top"}},{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/cleanup-incomplete":{"post":{"summary":"Trigger Cleanup Incomplete","description":"Delete uploads abandoned before georeferencing — see\nbackend/cleanup_incomplete.py for the exact conditions. Dry-run by default\nhere; the daily cron calls it for real.","operationId":"trigger_cleanup_incomplete_admin_cleanup_incomplete_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Dry Run"}},{"name":"idle_days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Idle Days"}},{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reencode-images":{"post":{"summary":"Reencode Images","description":"Start a background re-encode of existing PNG map images to WebP.\n\nReturns immediately: the work runs past Cloudflare's 100s request cap, so\nholding the connection open is not an option. Poll\nGET /admin/reencode-status for progress.\n\nDefaults are the safe ones — a dry run that writes nothing, originals kept\nwhen it does run, and no batch cap since nothing is waiting on it now.","operationId":"reencode_images_admin_reencode_images_post","parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Dry Run"}},{"name":"delete_originals","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Delete Originals"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/reencode-status":{"get":{"summary":"Reencode Status","description":"Progress of the current or most recent re-encode.","operationId":"reencode_status_admin_reencode_status_get","parameters":[{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/purge-stale-originals":{"post":{"summary":"Purge Stale Originals","description":"Delete `original.pdf` files left behind after rasterization.\n\nUploads rasterize the PDF and then unlink it. Older code did those in the\nother order, so a failure between the two stranded the source PDF — they\nare pure waste, since nothing serves or restores from them.\n\nA PDF is only removed when a rasterized image sits beside it. Without that\ncheck, a map whose rasterization never produced an image would lose its\nonly remaining artifact. Dry-run by default.","operationId":"purge_stale_originals_admin_purge_stale_originals_post","parameters":[{"name":"confirm","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Confirm"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/purge-orphan-dirs":{"post":{"summary":"Purge Orphan Dirs","description":"Delete DATA_DIR directories that have no surviving row in `maps`.\n\nThese accumulate from failed uploads and from deletions that predate the\ncurrent cleanup paths. They are unreachable — nothing can serve or restore\nthem — so removing them is safe, but it is still an irreversible delete of\nimage data: dry-run by default, pass ?confirm=true to actually unlink.","operationId":"purge_orphan_dirs_admin_purge_orphan_dirs_post","parameters":[{"name":"confirm","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Confirm"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/backup-status":{"get":{"summary":"Backup Status","description":"Age of the newest backup in R2. Read by the backup-watchdog workflow,\nwhich runs on GitHub Actions rather than here on purpose — a watchdog\nhosted inside the thing it watches goes quiet for the same reasons its\nsubject does.","operationId":"backup_status_admin_backup_status_get","parameters":[{"name":"max_age_hours","in":"query","required":false,"schema":{"type":"number","default":36.0,"title":"Max Age Hours"}},{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/delete-user":{"post":{"summary":"Trigger Delete User","description":"Purge a user's data and delete their Clerk account, for deletion\nrequests that arrive out-of-band (support email, privacy request) rather\nthan through the in-app button. Requires ADMIN_TOKEN (X-Admin-Token), not BACKUP_TOKEN. Call with ?dry_run=true first to see the counts.","operationId":"trigger_delete_user_admin_delete_user_post","parameters":[{"name":"user_id","in":"query","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/refresh-feeds":{"post":{"summary":"Trigger Refresh Feeds","operationId":"trigger_refresh_feeds_admin_refresh_feeds_post","parameters":[{"name":"x-backup-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backup-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdminFeaturedRequest":{"properties":{"featured":{"type":"boolean","title":"Featured"}},"type":"object","required":["featured"],"title":"AdminFeaturedRequest"},"AdminPublicRequest":{"properties":{"is_public":{"type":"boolean","title":"Is Public"}},"type":"object","required":["is_public"],"title":"AdminPublicRequest"},"BasemapCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"title":"Name"},"corners":{"items":{},"type":"array","title":"Corners"},"bearing":{"type":"number","title":"Bearing","default":0.0},"basemap_style":{"type":"string","title":"Basemap Style","default":"osm"},"layout":{"type":"string","title":"Layout","default":"poi"}},"type":"object","required":["name","corners"],"title":"BasemapCreateRequest"},"BasemapFrameUpdate":{"properties":{"corners":{"items":{},"type":"array","title":"Corners"}},"type":"object","required":["corners"],"title":"BasemapFrameUpdate"},"Body_extract_submission_map__map_id__submissions_extract_post":{"properties":{"image":{"type":"string","contentMediaType":"application/octet-stream","title":"Image"}},"type":"object","required":["image"],"title":"Body_extract_submission_map__map_id__submissions_extract_post"},"Body_poi_from_flyer_map__map_id__poi_from_flyer_post":{"properties":{"image":{"type":"string","contentMediaType":"application/octet-stream","title":"Image"}},"type":"object","required":["image"],"title":"Body_poi_from_flyer_map__map_id__poi_from_flyer_post"},"Body_upload_map_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_map_upload_post"},"CalendarSettingsUpdate":{"properties":{"layout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layout"},"accept_submissions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accept Submissions"}},"type":"object","title":"CalendarSettingsUpdate"},"CheckoutRequest":{"properties":{"map_id":{"type":"string","title":"Map Id"}},"type":"object","required":["map_id"],"title":"CheckoutRequest"},"ClaimRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"org":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Org"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["name","email"],"title":"ClaimRequest"},"CollaboratorAddRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"CollaboratorAddRequest"},"ControlPoint":{"properties":{"point":{"type":"string","title":"Point"},"px":{"type":"number","title":"Px"},"py":{"type":"number","title":"Py"},"lng":{"type":"number","title":"Lng"},"lat":{"type":"number","title":"Lat"}},"type":"object","required":["point","px","py","lng","lat"],"title":"ControlPoint"},"EmbedUpdate":{"properties":{"embed_enabled":{"type":"boolean","title":"Embed Enabled"}},"type":"object","required":["embed_enabled"],"title":"EmbedUpdate"},"FeedConfig":{"properties":{"source_url":{"type":"string","title":"Source Url"},"format":{"type":"string","title":"Format","default":"json"},"query_params":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Params"},"column_map":{"additionalProperties":true,"type":"object","title":"Column Map"},"unique_key_field":{"type":"string","title":"Unique Key Field"},"max_rows":{"type":"integer","title":"Max Rows","default":250},"refresh_interval":{"type":"string","title":"Refresh Interval","default":"manual"}},"type":"object","required":["source_url","column_map","unique_key_field"],"title":"FeedConfig"},"FeedPreview":{"properties":{"source_url":{"type":"string","title":"Source Url"},"format":{"type":"string","title":"Format","default":"json"},"query_params":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Params"}},"type":"object","required":["source_url"],"title":"FeedPreview"},"GeoreferenceRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"bearing":{"type":"number","title":"Bearing"},"control_points":{"items":{"$ref":"#/components/schemas/ControlPoint"},"type":"array","title":"Control Points"}},"type":"object","required":["bearing","control_points"],"title":"GeoreferenceRequest"},"GrantCreditsRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"credits":{"type":"integer","title":"Credits","default":1}},"type":"object","required":["user_id"],"title":"GrantCreditsRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ListingUpdate":{"properties":{"slug":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Slug"},"category":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Category"},"location_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Location Name"},"venue_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Venue Url"},"description_short":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description Short"},"description_long":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Description Long"}},"type":"object","title":"ListingUpdate"},"MapSettingsUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"banner_enabled":{"type":"boolean","title":"Banner Enabled","default":false},"banner_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner Text"}},"type":"object","title":"MapSettingsUpdate"},"MapViewEvent":{"properties":{"map_id":{"type":"string","title":"Map Id"}},"type":"object","required":["map_id"],"title":"MapViewEvent"},"POIClickEvent":{"properties":{"map_id":{"type":"string","title":"Map Id"},"poi_id":{"type":"string","title":"Poi Id"}},"type":"object","required":["map_id","poi_id"],"title":"POIClickEvent"},"POICreate":{"properties":{"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"address":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Address"},"hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hours"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"},"link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Url"},"link_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Title"},"schedule":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Schedule"},"show_on_load":{"type":"boolean","title":"Show On Load","default":true},"show_label":{"type":"boolean","title":"Show Label","default":false}},"type":"object","required":["lat","lng","title"],"title":"POICreate"},"POICsvRow":{"properties":{"title":{"type":"string","title":"Title"},"location":{"type":"string","title":"Location"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"body":{"type":"string","title":"Body","default":""},"link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Url"},"link_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Title"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"},"show_on_load":{"type":"boolean","title":"Show On Load","default":true}},"type":"object","required":["title","location"],"title":"POICsvRow"},"POIUpdate":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body","default":""},"address":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Address"},"hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hours"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"},"link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Url"},"link_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Title"},"schedule":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Schedule"},"show_on_load":{"type":"boolean","title":"Show On Load","default":true},"show_label":{"type":"boolean","title":"Show Label","default":false}},"type":"object","required":["title"],"title":"POIUpdate"},"PromoCodeCreateRequest":{"properties":{"code":{"type":"string","title":"Code"},"credits":{"type":"integer","title":"Credits","default":1},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["code"],"title":"PromoCodeCreateRequest"},"RedeemCodeRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"RedeemCodeRequest"},"SubmissionApprove":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Body"},"address":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Address"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lng":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"},"hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hours"},"link_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Link Url"},"link_title":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Link Title"}},"type":"object","title":"SubmissionApprove","description":"Every field is optional: send only what the reviewer edited."},"SubmissionCreate":{"properties":{"title":{"type":"string","maxLength":120,"title":"Title"},"body":{"type":"string","maxLength":2000,"title":"Body","default":""},"address":{"type":"string","maxLength":300,"title":"Address","default":""},"date_from":{"type":"string","title":"Date From"},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"},"hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Hours"},"link_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Link Url"},"link_title":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Link Title"},"submitter_name":{"type":"string","maxLength":80,"title":"Submitter Name"},"submitter_email":{"type":"string","maxLength":200,"title":"Submitter Email"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","required":["title","date_from","submitter_name","submitter_email"],"title":"SubmissionCreate"},"TransferMapRequest":{"properties":{"target_user_id":{"type":"string","title":"Target User Id"}},"type":"object","required":["target_user_id"],"title":"TransferMapRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}