{"openapi":"3.1.0","info":{"title":"LIVEY API","description":"LIVEY API: event discovery, venue management, and artist workflows.","version":"1.20.0"},"paths":{"/api/v1/health/":{"get":{"tags":["health"],"summary":"Health Check","operationId":"health_check_api_v1_health__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/api/v1/events/series/{series_id}":{"get":{"tags":["events"],"summary":"Get Event Series","description":"One PAGE of a run's occurrences, soonest first, plus the run's true length.\n\nA series with ZERO occurrences is a 200 with an empty list, NOT a 404 —\nuntil the generator half of FR-P2-0224 ships, *every* series is in that\nstate. `occurrence_count` is the run's full length and `has_more` says\nwhether this page is all of it. A malformed `series_id` is a 422, a\nmissing run is a 404, and a transport failure is a 503.","operationId":"get_event_series_api_v1_events_series__series_id__get","parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Occurrences per page. The run's true length is `occurrence_count`.","default":200,"title":"Limit"},"description":"Occurrences per page. The run's true length is `occurrence_count`."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Occurrences to skip, in date order.","default":0,"title":"Offset"},"description":"Occurrences to skip, in date order."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesOccurrences"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/{event_id}/categories/{category_slug}":{"delete":{"tags":["events"],"summary":"Remove Event Category","description":"Preview the removal, or — with `?confirm=Y` — perform it.\n\n🛑 A DELETE that writes nothing by default is deliberate. The genres a\ncategory takes with it are invisible in the form, so the unconfirmed call is\nhow a human learns what they are about to lose; `requires_confirmation`\nfalse means nothing would be, and the surface must not nag.","operationId":"remove_event_category_api_v1_events__event_id__categories__category_slug__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"category_slug","in":"path","required":true,"schema":{"type":"string","title":"Category Slug"}},{"name":"confirm","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`Y` performs the removal. Anything else, or omitted, previews it and writes nothing.","title":"Confirm"},"description":"`Y` performs the removal. Anything else, or omitted, previews it and writes nothing."},{"name":"expect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`plan_token` from the preview. A set that changed since then is a 409 carrying the new plan, never a wider delete.","title":"Expect"},"description":"`plan_token` from the preview. A set that changed since then is a 409 carrying the new plan, never a wider delete."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCategoryRemoval"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/popular":{"get":{"tags":["events"],"summary":"Get Popular Outside Radius","description":"DEPRECATED by Story 3.18 (FR-014 amendment, BUG-005) — always [].\n\nThis was the Story 3.9 \"Popular this week, outside your radius\" fallback\nshelf source: by design it returned events OUTSIDE the user's area, which\nis the literal BUG-005 repro (NYC ZIP → popular events in Tampa). The\nshelf is removed from the product; this stub keeps answering 200 [] so\npre-OTA mobile bundles hit the shelf's empty-omit branch — invisible —\nnever an error block inside the designed empty state. The legacy query\nparams stay accepted for the same reason. Physical removal is logged in\ndeferred-work.md, keyed on OTA adoption.","operationId":"get_popular_outside_radius_api_v1_events_popular_get","deprecated":true,"parameters":[{"name":"exclude_zip","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Exclude Zip"}},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","maximum":50.0,"minimum":0,"default":10.0,"title":"Radius Miles"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"},"title":"Response Get Popular Outside Radius Api V1 Events Popular Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/recommended":{"get":{"tags":["events"],"summary":"Get Recommended Events","operationId":"get_recommended_events_api_v1_events_recommended_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EventSummary"},"type":"array","title":"Response Get Recommended Events Api V1 Events Recommended Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/events/trending/content":{"get":{"tags":["events"],"summary":"Get Trending Content","operationId":"get_trending_content_api_v1_events_trending_content_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrendingContentItem"},"title":"Response Get Trending Content Api V1 Events Trending Content Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/trending":{"get":{"tags":["events"],"summary":"Get Trending Events","operationId":"get_trending_events_api_v1_events_trending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EventSummary"},"type":"array","title":"Response Get Trending Events Api V1 Events Trending Get"}}}}}}},"/api/v1/events/":{"get":{"tags":["events"],"summary":"List Events","operationId":"list_events_api_v1_events__get","parameters":[{"name":"zip_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"},"title":"Response List Events Api V1 Events  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/search":{"get":{"tags":["events"],"summary":"Search Events","operationId":"search_events_api_v1_events_search_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"zip_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"}},{"name":"radius_miles","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":50.0,"minimum":0},{"type":"null"}],"title":"Radius Miles"}},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"start_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start After"}},{"name":"start_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Before"}},{"name":"categories","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Categories"}},{"name":"venue","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"genres","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Genres"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"recommended","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"is_promoted","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Promoted"}},{"name":"include_other_categories","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Other Categories"}},{"name":"include_other_genres","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Other Genres"}},{"name":"category_patterns","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Category Patterns"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Issue #11: event-tag values to narrow by, as `<group-slug>/<value-slug>` (a bare value slug is accepted when it names exactly one group, as is a tag value uuid). Repeat the parameter or comma-join it. Values in the SAME group are OR'd; different groups are AND'd.","title":"Tags"},"description":"Issue #11: event-tag values to narrow by, as `<group-slug>/<value-slug>` (a bare value slug is accepted when it names exactly one group, as is a tag value uuid). Repeat the parameter or comma-join it. Values in the SAME group are OR'd; different groups are AND'd."},{"name":"include_total","in":"query","required":false,"schema":{"type":"boolean","description":"False skips the exact match count, and `total` is then this page's own row count. For a caller that never shows the total, such as a home-page shelf.","default":true,"title":"Include Total"},"description":"False skips the exact match count, and `total` is then this page's own row count. For a caller that never shows the total, such as a home-page shelf."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/{event_id}":{"get":{"tags":["events"],"summary":"Get Event","operationId":"get_event_api_v1_events__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/events/{event_id}/artists":{"get":{"tags":["events"],"summary":"Get Event Artists","operationId":"get_event_artists_api_v1_events__event_id__artists_get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthMeSummary"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/sign-in-options":{"get":{"tags":["auth"],"summary":"Sign In Options","operationId":"sign_in_options_api_v1_auth_sign_in_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInOptions"}}}}}}},"/api/v1/auth/signup":{"post":{"tags":["auth"],"summary":"Signup","operationId":"signup_api_v1_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/social/apple-authorization-code":{"post":{"tags":["auth"],"summary":"Apple Authorization Code","description":"Exchange the CALLER's fresh Apple code and replace their stored token (Q73).","operationId":"apple_authorization_code_api_v1_auth_social_apple_authorization_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleAuthorizationCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleRefreshTokenResponse"}}}},"401":{"description":"No valid session — the user id comes from the JWT, never the body."},"403":{"description":"The account was deleted (`account_deleted`). OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`)."},"409":{"description":"The token cannot be this account's own: it holds no Apple identity, or Apple says the grant belongs to a different Apple ID."},"503":{"description":"Apple is not configured here or did not answer, or a Supabase client is unavailable."},"422":{"description":"The body is malformed, or Apple refused the code — already used, expired, or issued to another client id."},"429":{"description":"Too many codes posted by this account."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/social/apple-refresh-token":{"post":{"tags":["auth"],"summary":"Apple Refresh Token","description":"Validate the browser lane's forwarded Apple token and store it on the CALLER's own account.","operationId":"apple_refresh_token_api_v1_auth_social_apple_refresh_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleRefreshTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleRefreshTokenResponse"}}}},"401":{"description":"No valid session — the user id comes from the JWT, never the body."},"403":{"description":"The account was deleted (`account_deleted`). OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`)."},"409":{"description":"The token cannot be this account's own: it holds no Apple identity, or Apple says the grant belongs to a different Apple ID."},"503":{"description":"Apple is not configured here or did not answer, or a Supabase client is unavailable."},"422":{"description":"The body is malformed, or Apple refused the token — revoked, expired, or issued to another client id."},"429":{"description":"Too many refresh tokens posted by this account."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/social/cancel-link":{"post":{"tags":["auth"],"summary":"Cancel Link","description":"Undo the unconfirmed link on the caller's own account. Nothing to undo is a success.","operationId":"cancel_link_api_v1_auth_social_cancel_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelLinkResponse"}}}},"401":{"description":"No valid session — these endpoints carry auth explicitly."},"503":{"description":"The identity lock could not be evaluated."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/social/confirm-link":{"post":{"tags":["auth"],"summary":"Confirm Link","description":"Advance the watermark for the caller's own account. The user id is the JWT's.","operationId":"confirm_link_api_v1_auth_social_confirm_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmLinkResponse"}}}},"401":{"description":"No valid session — these endpoints carry auth explicitly."},"503":{"description":"The identity lock could not be evaluated."},"422":{"description":"No emailed code was verified on this session, the code is too old to still be proof, or the identity is unknown here."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/social/link-status":{"get":{"tags":["auth"],"summary":"Link Status","description":"Is the caller's own account waiting on a sign-in method, and until when?","operationId":"link_status_api_v1_auth_social_link_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkStatusResponse"}}}},"401":{"description":"No valid session — these endpoints carry auth explicitly."},"503":{"description":"The identity lock could not be evaluated."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/social/preflight":{"post":{"tags":["auth"],"summary":"Preflight","operationId":"preflight_api_v1_auth_social_preflight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPreflightRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPreflightResponse"}}}},"401":{"description":"The provider token did not verify."},"403":{"description":"The provider is switched off, or the account was deleted."},"429":{"description":"Too many pre-flights for this address or this caller."},"503":{"description":"A provider key set or a Supabase client is unavailable."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/consent":{"get":{"tags":["auth"],"summary":"Consent Status","description":"Is the gate owed for the caller's own account, and which screen.","operationId":"consent_status_api_v1_auth_consent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentStatusResponse"}}}},"401":{"description":"No valid session — the account is always the JWT's."},"404":{"description":"The account has no profile."},"422":{"description":"An affirmation is missing or false, or a policy version is malformed."},"503":{"description":"A Supabase client is unavailable."}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["auth"],"summary":"Record Consent","description":"An existing account's one-time answer. Repeating it moves nothing.","operationId":"record_consent_api_v1_auth_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentAffirmations"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentRecordedResponse"}}}},"401":{"description":"No valid session — the account is always the JWT's."},"404":{"description":"The account has no profile."},"422":{"description":"An affirmation is missing or false, or a policy version is malformed."},"503":{"description":"A Supabase client is unavailable."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/social/finish-up":{"post":{"tags":["auth"],"summary":"Finish Up","description":"A new social account's one screen. Runs once; a repeat writes nothing; a re-ask is 409.","operationId":"finish_up_api_v1_auth_social_finish_up_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinishUpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentRecordedResponse"}}}},"401":{"description":"No valid session — the account is always the JWT's."},"404":{"description":"The account has no profile."},"422":{"description":"An affirmation is missing or false, or a policy version is malformed."},"503":{"description":"A Supabase client is unavailable."},"409":{"description":"The account owes the one-time consent screen, not the finish-up (`reconsent_owed`)."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/zips/nearest":{"get":{"tags":["zips"],"summary":"Nearest ZIP centroid to a coordinate pair","description":"Resolves a foreground device location (lat, lng) to the nearest US ZIP centroid within 30 miles.  Guest-accessible — no authentication header required.  Coordinates are transient: never persisted, never logged, never captured to Sentry on this route (FR-063 privacy contract).","operationId":"get_nearest_zip_api_v1_zips_nearest_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","maximum":90.0,"minimum":-90.0,"description":"Latitude (decimal, -90 to 90), rounded to 2 decimals client-side","title":"Lat"},"description":"Latitude (decimal, -90 to 90), rounded to 2 decimals client-side"},{"name":"lng","in":"query","required":true,"schema":{"type":"number","maximum":180.0,"minimum":-180.0,"description":"Longitude (decimal, -180 to 180), rounded to 2 decimals client-side","title":"Lng"},"description":"Longitude (decimal, -180 to 180), rounded to 2 decimals client-side"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipResolutionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zips/cities":{"get":{"tags":["zips"],"summary":"City+state suggestions for a typed US city name","description":"Up to 10 gazetteer city+state pairs for a typed city name: prefix matches first, then substring matches, each ordered by ZIP count. Without `state` the pairs span every state (one per state for a shared name); with it, only that state. A query with no letters, or a state with no rows, returns an empty list. Guest-accessible.","operationId":"get_zip_cities_api_v1_zips_cities_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"description":"Typed city name","title":"Q"},"description":"Typed city name"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"description":"Two-letter uppercase state","title":"State"},"description":"Two-letter uppercase state"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CitySuggestion"},"title":"Response Get Zip Cities Api V1 Zips Cities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zips/resolve":{"get":{"tags":["zips"],"summary":"Default ZIP and every ZIP for a US city in a named state","description":"Resolves a city in a REQUIRED two-letter state to its default ZIP (the ZIP whose centroid is nearest the mean of the city's centroids, ties to the lowest ZIP) and every ZIP in that city, default first, with distances in miles. A state is never inferred. An unknown city returns 200 with outcome=not_found. Guest-accessible.","operationId":"resolve_city_zip_api_v1_zips_resolve_get","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Z]{2}$","description":"Two-letter uppercase state","title":"State"},"description":"Two-letter uppercase state"},{"name":"city","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"description":"City name","title":"City"},"description":"City name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CityResolutionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zips/{zip_code}":{"get":{"tags":["zips"],"summary":"City/state for a typed US ZIP code","description":"Forward ZIP→place lookup (BUG-068).  Resolves a typed 5-digit US ZIP to its city + state from the bundled gazetteer.  Guest-accessible — no authentication header required.  No coordinates and no geolocation are involved: the ZIP is user-typed and may be anywhere (a user can set their area to a ZIP they are not physically near).  A well-formed but unknown ZIP returns 200 with outcome=not_found (a clean miss, never a 404).  Declared AFTER /nearest so the literal route keeps precedence.","operationId":"get_zip_place_api_v1_zips__zip_code__get","parameters":[{"name":"zip_code","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","description":"5-digit US ZIP code","title":"Zip Code"},"description":"5-digit US ZIP code"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipPlaceResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stats/counts":{"get":{"tags":["stats"],"summary":"Get Public Counts","description":"Public home-page counters (QF-001). Rounding is applied API-side.","operationId":"get_public_counts_api_v1_stats_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCountsResponse"}}}}}}},"/api/v1/event-category-images":{"get":{"tags":["event-category-images"],"summary":"Get Event Category Images","operationId":"get_event_category_images_api_v1_event_category_images_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Get Event Category Images Api V1 Event Category Images Get"}}}}}}},"/api/v1/share-cards/{kind}/{entity_id}/card.jpg":{"get":{"tags":["share-cards"],"summary":"Get Share Card","operationId":"get_share_card_api_v1_share_cards__kind___entity_id__card_jpg_get","parameters":[{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ShareEntityKind"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"responses":{"200":{"description":"The 1200x630 share card","content":{"image/jpeg":{}}},"404":{"description":"No public page with this id, or no picture a card may show"},"503":{"description":"Busy, over its time budget, or the catalog could not be read; try LIVEY's picture"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/content/":{"get":{"tags":["content"],"summary":"Get Site Content","operationId":"get_site_content_api_v1_content__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteContentPublicBundle"}}}}}}},"/api/v1/taxonomy/vocabulary":{"get":{"tags":["taxonomy"],"summary":"Read Vocabulary","description":"Every active category, its picker heading, and its active genres.\n\n🛑 CATEGORIES WITH NO SECOND LEVEL ARE INCLUDED, with an empty `genres`\nlist and a null `second_level_label`. Omitting them would make a client\nunable to distinguish \"this category has no second level\" (13 of 18,\ndeliberate) from \"this category does not exist\" (a stale client) — the\nsame two-answers rule `CategoryGenreVocabulary` keeps internally.","operationId":"read_vocabulary_api_v1_taxonomy_vocabulary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CategoryVocabularyView"},"type":"array","title":"Response Read Vocabulary Api V1 Taxonomy Vocabulary Get"}}}}}}},"/api/v1/taxonomy/categories":{"get":{"tags":["taxonomy"],"summary":"Read Categories","description":"Every ACTIVE category, in `sort_order`, with its emoji.\n\n🛑 RETIRED CATEGORIES ARE ABSENT. A client that caches this list and\nstops seeing a slug must resolve it to `other` + the generic asset\nrather than render blank — which is why `other` is undeletable and\nun-retirable at the database (`trg_categories_protect_other`).","operationId":"read_categories_api_v1_taxonomy_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CategoryOptionView"},"type":"array","title":"Response Read Categories Api V1 Taxonomy Categories Get"}}}}}}},"/api/v1/venue-tags/vocabulary":{"get":{"tags":["venue-tags"],"summary":"Read Vocabulary","description":"The ACTIVE vocabulary: 9 groups in `sort_order`, values inside each.","operationId":"read_vocabulary_api_v1_venue_tags_vocabulary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagVocabularyResponse"}}}}}}},"/api/v1/venue-tags/venues/{venue_id}":{"get":{"tags":["venue-tags"],"summary":"Read Venue Tags","description":"Every tag one venue carries, RETIRED VALUES INCLUDED.","operationId":"read_venue_tags_api_v1_venue_tags_venues__venue_id__get","parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VenueTag"},"title":"Response Read Venue Tags Api V1 Venue Tags Venues  Venue Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venue-tags/venues/{venue_id}/types":{"get":{"tags":["venue-tags"],"summary":"Read Venue Types","description":"Every type one venue carries, RETIRED VALUES INCLUDED.","operationId":"read_venue_types_api_v1_venue_tags_venues__venue_id__types_get","parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VenueType"},"title":"Response Read Venue Types Api V1 Venue Tags Venues  Venue Id  Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venue-types/vocabulary":{"get":{"tags":["venue-types"],"summary":"Read Vocabulary","description":"The ACTIVE vocabulary: the client's ratified 22, in `sort_order`.","operationId":"read_vocabulary_api_v1_venue_types_vocabulary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VenueType"},"type":"array","title":"Response Read Vocabulary Api V1 Venue Types Vocabulary Get"}}}}}}},"/api/v1/artist-tags/vocabulary":{"get":{"tags":["artist-tags"],"summary":"Read Vocabulary","description":"The ACTIVE vocabulary: groups in `sort_order`, values inside each.","operationId":"read_vocabulary_api_v1_artist_tags_vocabulary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagVocabularyResponse"}}}}}}},"/api/v1/artist-tags/artists/{artist_id}":{"get":{"tags":["artist-tags"],"summary":"Read Artist Tags","description":"Every tag one artist carries, RETIRED VALUES INCLUDED.\n\nThis is the read that makes `is_active` a SAFE alternative to a delete.","operationId":"read_artist_tags_api_v1_artist_tags_artists__artist_id__get","parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArtistTag"},"title":"Response Read Artist Tags Api V1 Artist Tags Artists  Artist Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artist-types/vocabulary":{"get":{"tags":["artist-types"],"summary":"Read Vocabulary","description":"The ACTIVE vocabulary: 13 types in `sort_order`, each with its scoped genres.","operationId":"read_vocabulary_api_v1_artist_types_vocabulary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTypeVocabularyResponse"}}}}}}},"/api/v1/artist-types/artists/{artist_id}":{"get":{"tags":["artist-types"],"summary":"Read Artist Taxonomy","description":"One artist's types and genres, authored rows SPLIT from machine rows.\n\nSeed an edit control from the authored half only — a control is a SET,\nso seeding it from machine rows re-stamps or deletes them (P2-BUG-824).","operationId":"read_artist_taxonomy_api_v1_artist_types_artists__artist_id__get","parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTaxonomyAssignmentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/event-tags/vocabulary":{"get":{"tags":["event-tags"],"summary":"Read Vocabulary","description":"The ACTIVE vocabulary: 13 groups in `sort_order`, values inside each.\n\n⚠️ `TagValue.is_derived` is ON THE WIRE deliberately. A picker must\nrender those rows READ-ONLY and say why — a derived value is a\nprojection of a structured column, and an admin who wants to change it\nchanges the column on the event.\n\n── THE OFFLINE BEHAVIOUR, DEFINED RATHER THAN ACCIDENTAL ────────────\nA client CACHES THE LAST SERVED RESPONSE and falls back to that. There\nis deliberately NO bundled seed copy: a bundled copy is a mechanism for\na CODE-OWNED vocabulary, where a drift test can pin it — and Story 18.0\nAC #13 reversed §D14, so no axis is code-owned any more. A first launch\nwith no network therefore shows NO tag filters rather than a wrong list.\n(Story 18.31 Open Question 4; flagged for review, and it lands on Story\n18.9's own bundled-copy guard too.)","operationId":"read_vocabulary_api_v1_event_tags_vocabulary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTagVocabularyResponse"}}}}}}},"/api/v1/event-tags/events/{event_id}":{"get":{"tags":["event-tags"],"summary":"Read Event Tags","description":"Every tag one event carries, RETIRED VALUES INCLUDED.\n\nAn event that carries a value retired last week still carries it. This\nis the read that makes `is_active` a SAFE alternative to a delete, and\nit is deliberately a different endpoint from `/vocabulary` — the two\nanswer different questions.\n\n⚠️ `source` and `confidence` reach the client, intentionally. §D19's\nAbility-group harm argument requires the read path to distinguish an AI\ninference from a human assertion: `ADA Accessible` asserted by a model\nat 0.6 and asserted by the venue owner are not the same claim, and a\nsurface that cannot tell them apart cannot render them differently.","operationId":"read_event_tags_api_v1_event_tags_events__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventTag"},"title":"Response Read Event Tags Api V1 Event Tags Events  Event Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/content-reports":{"post":{"tags":["content-reports"],"summary":"Create Content Report","operationId":"create_content_report_api_v1_content_reports_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentReportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/home-feed":{"get":{"tags":["home-feed"],"summary":"Home Feed","operationId":"home_feed_api_v1_home_feed_get","parameters":[{"name":"zip","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}},{"name":"radius_miles","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":250,"minimum":1},{"type":"null"}],"title":"Radius Miles"}},{"name":"event_types","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Event Types"}},{"name":"genres","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Genres"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeFeedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/delete-account-public/confirm":{"post":{"tags":["users"],"summary":"Confirm Public Account Deletion","description":"Validate the signed one-shot token and complete immediate deletion.","operationId":"confirm_public_account_deletion_api_v1_users_delete_account_public_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAccountDeletionConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAccountDeletionConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/delete-account-public":{"post":{"tags":["users"],"summary":"Request Public Account Deletion","description":"Public deletion request. Always returns the same 200 body (no enumeration).","operationId":"request_public_account_deletion_api_v1_users_delete_account_public_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAccountDeletionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAccountDeletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites/redeem":{"post":{"tags":["invites"],"summary":"Redeem Invite","description":"Redeem an invite token as the currently authenticated account.\n\n`granted` / `already_admin` are 200s; every refusal maps to the Dev\nNotes' status table via `_REDEEM_ERROR_STATUS`, as a flat body\nmatching `AdminInviteErrorBody` exactly (no HTTPException \"detail\"\nnesting — see CLAUDE.md § admin_invite_redeem.py).","operationId":"redeem_invite_api_v1_invites_redeem_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteRedeemRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteRedeemResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteErrorBody"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteErrorBody"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteErrorBody"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/area-alerts/unsubscribe":{"post":{"tags":["area-alerts"],"summary":"Confirm Unsubscribe","description":"Idempotent opt-in delete. Uniform response whether or not the row existed.","operationId":"confirm_unsubscribe_api_v1_area_alerts_unsubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["area-alerts"],"summary":"Render Unsubscribe Confirmation","description":"Confirmation page — side-effect-free by design (anti-prefetch).","operationId":"render_unsubscribe_confirmation_api_v1_area_alerts_unsubscribe_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/event-changes/unsubscribe":{"post":{"tags":["event-changes"],"summary":"Confirm Event Change Unsubscribe","description":"Idempotent opt-out. Uniform response whether or not the row already existed.","operationId":"confirm_event_change_unsubscribe_api_v1_event_changes_unsubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["event-changes"],"summary":"Render Event Change Unsubscribe Confirmation","description":"Confirmation page — side-effect-free by design (anti-prefetch).","operationId":"render_event_change_unsubscribe_confirmation_api_v1_event_changes_unsubscribe_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/paid-messages/unsubscribe":{"post":{"tags":["paid-messages"],"summary":"Confirm Paid Message Unsubscribe","description":"Idempotent opt-out through the one opt-out service. Repeating it is success.","operationId":"confirm_paid_message_unsubscribe_api_v1_paid_messages_unsubscribe_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["paid-messages"],"summary":"Render Paid Message Unsubscribe Confirmation","description":"Confirmation page — side-effect-free by design, so a mail scanner's prefetch changes nothing.","operationId":"render_paid_message_unsubscribe_confirmation_api_v1_paid_messages_unsubscribe_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Receive Stripe Event","description":"Accept one Stripe delivery. See CLAUDE.md § webhooks.py.","operationId":"receive_stripe_event_api_v1_webhooks_stripe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeWebhookAck"}}}},"409":{"description":"Another attempt is still processing this event; Stripe retries it later."},"503":{"description":"Stripe is unconfigured, or LIVEY cannot apply this delivery yet; Stripe retries it."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plans/founding-offer":{"get":{"tags":["billing"],"summary":"Get Founding Offer","operationId":"get_founding_offer_api_v1_plans_founding_offer_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundingOfferRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/plans/":{"get":{"tags":["billing"],"summary":"Get Plans","operationId":"get_plans_api_v1_plans__get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCatalogRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/licenses/checkout-session":{"post":{"tags":["billing"],"summary":"Create License Checkout Session","description":"Retired: license sales have ended, so this always answers 409 — buy a plan per venue or act.","operationId":"create_license_checkout_session_api_v1_billing_licenses_checkout_session_post","deprecated":true,"security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingRedirectResponse"}}}},"404":{"description":"The chosen plan code is unknown, no longer sold, or not provisioned right now."},"409":{"description":"This profile already bills, the plan sells the other kind of profile, Stripe is still processing an earlier ask, or the Business Plan Terms changed since the box was ticked (`{\"error\": \"terms_version_stale\"}`)."},"422":{"description":"The body has no `consent`, or `consent.accepted` is not true — the terms box was not ticked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}}},"/api/v1/billing/licenses/mine":{"get":{"tags":["billing"],"summary":"List My Licenses","description":"Every license this account manages, attached or not, both kinds (CAP-7).","operationId":"list_my_licenses_api_v1_billing_licenses_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LicenseRead"},"title":"Response List My Licenses Api V1 Billing Licenses Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/claims/checkout-session":{"post":{"tags":["billing"],"summary":"Create Claimant Checkout Session","description":"Where to send a live claimant to put the profile they claimed on Connect.","operationId":"create_claimant_checkout_session_api_v1_billing_claims_checkout_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimantCheckoutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingRedirectResponse"}}}},"404":{"description":"The chosen plan code is unknown, no longer sold, or not provisioned right now."},"409":{"description":"This profile already bills, the plan sells the other kind of profile, Stripe is still processing an earlier ask, or the Business Plan Terms changed since the box was ticked (`{\"error\": \"terms_version_stale\"}`)."},"422":{"description":"The body has no `consent`, or `consent.accepted` is not true — the terms box was not ticked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}}},"/api/v1/billing/claims/portal-session":{"post":{"tags":["billing"],"summary":"Create Claimant Portal Session","description":"Where to send the PAYER to manage the subscription they are paying for (R-10).","operationId":"create_claimant_portal_session_api_v1_billing_claims_portal_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimantBillingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingRedirectResponse"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/claims/cancellation":{"post":{"tags":["billing"],"summary":"Claimant Cancel","description":"Confirm the quoted outcome; a changed outcome is a 409 carrying the new quote.","operationId":"claimant_cancel_api_v1_billing_claims_cancellation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimantCancellationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/claims/cancellation-quote":{"post":{"tags":["billing"],"summary":"Claimant Cancellation Quote","description":"What stopping this claim's plan does right now.","operationId":"claimant_cancellation_quote_api_v1_billing_claims_cancellation_quote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimantBillingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationQuote"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/claims/cancellation/resume":{"post":{"tags":["billing"],"summary":"Claimant Resume","description":"Keep my plan.","operationId":"claimant_resume_api_v1_billing_claims_cancellation_resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimantBillingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/licenses/cancellation":{"post":{"tags":["billing"],"summary":"License Cancel","description":"Confirm the quoted outcome for this license.","operationId":"license_cancel_api_v1_billing_licenses_cancellation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseCancellationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/licenses/cancellation-quote":{"post":{"tags":["billing"],"summary":"License Cancellation Quote","description":"What cancelling this license does right now.","operationId":"license_cancellation_quote_api_v1_billing_licenses_cancellation_quote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseQuoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationQuote"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/licenses/cancellation/resume":{"post":{"tags":["billing"],"summary":"License Resume","description":"Keep my license.","operationId":"license_resume_api_v1_billing_licenses_cancellation_resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseQuoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/preferred-categories":{"get":{"tags":["profiles"],"summary":"Get My Preferred Categories","description":"This caller's category/genre preferences, resolved for display.","operationId":"get_my_preferred_categories_api_v1_profiles_me_preferred_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredCategoriesResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["profiles"],"summary":"Replace My Preferred Categories","description":"Replace this caller's preference set with exactly what was sent.\n\n🛑 PUT, NOT PATCH. A partial write cannot express a DESELECTION, and\n\"I unticked it and it came back\" is the failure that produces.\n\n🛑 422 NAMES THE OFFENDING VALUE. An unrecognised category, an unknown\ngenre id, or a genre sent under a category it does not belong to are all\nrefusals — never a silently shorter list, which is §D10's silent-discard\ndefect and the thing FR-P2-0218 forbids on the end-user path.","operationId":"replace_my_preferred_categories_api_v1_profiles_me_preferred_categories_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredCategoriesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferredCategoriesResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/profiles/me":{"get":{"tags":["profiles"],"summary":"Get My Profile","operationId":"get_my_profile_api_v1_profiles_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSummary"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["profiles"],"summary":"Update My Profile","operationId":"update_my_profile_api_v1_profiles_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileResponse"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAccountSummary"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/profiles/me/preferences":{"patch":{"tags":["profiles"],"summary":"Update My Preferences","operationId":"update_my_preferences_api_v1_profiles_me_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfilePreferencesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSummary"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/profiles/{profile_id}":{"get":{"tags":["profiles"],"summary":"View Profile","operationId":"view_profile_api_v1_profiles__profile_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/paid-message-opt-outs":{"get":{"tags":["profiles"],"summary":"List Paid Message Opt Outs","description":"Every venue or artist this person has declined paid messages from, by name.","operationId":"list_paid_message_opt_outs_api_v1_profiles_me_paid_message_opt_outs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidMessageOptOutListRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/paid-message-opt-outs/{entity_kind}/{entity_id}":{"delete":{"tags":["profiles"],"summary":"Opt Back In To Paid Messages","description":"Withdraw an opt-out. Withdrawing one never recorded is success.","operationId":"opt_back_in_to_paid_messages_api_v1_profiles_me_paid_message_opt_outs__entity_kind___entity_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ManagedEntityKind"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidMessageOptOutRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["profiles"],"summary":"Opt Out Of Paid Messages","description":"Never receive a paid message from this venue or artist. Repeating it is success.","operationId":"opt_out_of_paid_messages_api_v1_profiles_me_paid_message_opt_outs__entity_kind___entity_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ManagedEntityKind"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidMessageOptOutRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/promotional-push":{"put":{"tags":["profiles"],"summary":"Choose Promotional Push","description":"Turn promotions on (409 when the wording changed) or off. Returns what is stored.","operationId":"choose_promotional_push_api_v1_profiles_me_promotional_push_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionalPushConsentWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionalPushConsentRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["profiles"],"summary":"Read Promotional Push Consent","description":"The stored choice (off unless turned on) and the wording to show beside it.","operationId":"read_promotional_push_consent_api_v1_profiles_me_promotional_push_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotionalPushConsentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/follower-push":{"put":{"tags":["profiles"],"summary":"Choose Follower Push","description":"Turn follower pushes on (409 when the wording changed) or off. Returns what is stored.","operationId":"choose_follower_push_api_v1_profiles_me_follower_push_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerPushConsentWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerPushConsentRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["profiles"],"summary":"Read Follower Push Consent","description":"The stored choice (off unless turned on) and the wording to show beside it.","operationId":"read_follower_push_consent_api_v1_profiles_me_follower_push_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerPushConsentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profiles/me/business-push-pause":{"put":{"tags":["profiles"],"summary":"Pause Business Pushes","description":"Pause for `one_day` (24 h), `seven_days` (168 h) or `until_resumed`; replaces any pause.","operationId":"pause_business_pushes_api_v1_profiles_me_business_push_pause_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessPushPauseWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessPushPauseRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["profiles"],"summary":"Read Business Push Pause","description":"Whether business pushes are paused, and until when (`indefinite` = until resumed).","operationId":"read_business_push_pause_api_v1_profiles_me_business_push_pause_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessPushPauseRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["profiles"],"summary":"Resume Business Pushes","description":"End any pause now; resuming when not paused is success.","operationId":"resume_business_pushes_api_v1_profiles_me_business_push_pause_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessPushPauseRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/favorites":{"get":{"tags":["users"],"summary":"List User Favorites","operationId":"list_user_favorites_api_v1_users_favorites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FavoriteRead"},"type":"array","title":"Response List User Favorites Api V1 Users Favorites Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["users"],"summary":"Add User Favorite","operationId":"add_user_favorite_api_v1_users_favorites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/follows":{"get":{"tags":["users"],"summary":"List User Follows","operationId":"list_user_follows_api_v1_users_follows_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FollowRead"},"type":"array","title":"Response List User Follows Api V1 Users Follows Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["users"],"summary":"Create User Follow","operationId":"create_user_follow_api_v1_users_follows_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/delete-account":{"post":{"tags":["users"],"summary":"Delete Account","description":"Delete the caller's account: revoke push tokens, revoke all sessions,\nfire the destructive delete_account RPC, then delete the GoTrue user to free\nthe email address. Returns immediate success, not queued deletion timing.","operationId":"delete_account_api_v1_users_me_delete_account_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountDeletionResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me":{"get":{"tags":["users"],"summary":"Get User Profile","operationId":"get_user_profile_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAccountSummary"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["users"],"summary":"Update User Profile","operationId":"update_user_profile_api_v1_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileResponse"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAccountSummary"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/push-tokens":{"post":{"tags":["users"],"summary":"Register Push Token","description":"Atomically register a device push token, revoking the prior active token\nfor the same (user, platform). Body validation is automatic (422 on bad\nplatform). NOTE: an unauthenticated call returns 403 (inherited\nget_auth_context behaviour), not 401 — see Story 1.5 Dev Agent Record.\n\n⚠️ **Story 18.0b worked example — access control + ClientSet.** Two things\nchanged here and they are independent:\n\n  1. `Depends(permissions(IsAuthenticated()))` replaces\n     `Depends(get_auth_context)`. It still returns the `AuthContext`, so the\n     handler body is unchanged — the permission is declarative and composes\n     (`permissions(IsAuthenticated(), HasRole(\"venue\"))`).\n  2. The repository takes the injected `ClientSet` instead of a client this\n     route constructed. **The route no longer picks a privilege level** —\n     `PushTokenRepository.register` names `.user` itself, so RLS scopes the\n     statement to the caller and this handler cannot get it wrong.","operationId":"register_push_token_api_v1_users_me_push_tokens_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushTokenRegistrationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushTokenRegistrationResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me/push-tokens/{token}":{"delete":{"tags":["users"],"summary":"Delete Push Token","description":"Revoke a single push token (marks revoked_at). 404 if the token doesn't\nexist or isn't the caller's (RLS scopes; existence is never leaked).\n\n⚠️ Story 18.0b worked example — see `register_push_token` above. Note what\nthe permission class does NOT do: it confirms the caller is authenticated,\nand cannot stop this touching another user's token. **RLS does that**, which\nis why `PushTokenRepository.revoke` uses `.user` and why the JWT still has to\nreach Postgres.","operationId":"delete_push_token_api_v1_users_me_push_tokens__token__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/favorites/{event_id}":{"delete":{"tags":["users"],"summary":"Remove User Favorite","operationId":"remove_user_favorite_api_v1_users_favorites__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/follows/{artist_id}":{"delete":{"tags":["users"],"summary":"Remove User Follow","operationId":"remove_user_follow_api_v1_users_follows__artist_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me/sign-in-methods/connect/confirm":{"post":{"tags":["users"],"summary":"Confirm Sign In Method Connect","description":"Confirm the provider the client just linked, behind a fresh emailed code.","operationId":"confirm_sign_in_method_connect_api_v1_users_me_sign_in_methods_connect_confirm_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Livey-Fresh-Auth","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Livey-Fresh-Auth"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInMethodChangeResponse"}}}},"403":{"description":"No fresh emailed-code proof, a disabled provider, or a locked account."},"404":{"description":"That sign-in method is not on this account."},"409":{"description":"`last_sign_in_method` — removing it would leave no way in."},"422":{"description":"No newly connected identity inside the fresh-auth window."},"429":{"description":"Too many changes from this account."},"503":{"description":"The account's sign-in facts could not be read or changed."}}}},"/api/v1/users/me/sign-in-methods":{"get":{"tags":["users"],"summary":"List Sign In Methods","description":"Every way into the caller's account; readable while the account is locked.","operationId":"list_sign_in_methods_api_v1_users_me_sign_in_methods_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInMethodListResponse"}}}},"503":{"description":"The account's sign-in facts could not be read."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/sign-in-methods/code":{"post":{"tags":["users"],"summary":"Send Sign In Code","description":"Email the account's own address a code. The address is the JWT's, never the body's.","operationId":"send_sign_in_code_api_v1_users_me_sign_in_methods_code_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInCodeSentResponse"}}}},"422":{"description":"The session carries no email address to send a code to."},"429":{"description":"Too many codes for this account or this caller."},"503":{"description":"The code could not be sent."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/sign-in-methods/{identity_id}":{"delete":{"tags":["users"],"summary":"Disconnect Sign In Method","description":"Disconnect one provider behind a fresh code; never the last usable way in.","operationId":"disconnect_sign_in_method_api_v1_users_me_sign_in_methods__identity_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity Id"}},{"name":"X-Livey-Fresh-Auth","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Livey-Fresh-Auth"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInMethodChangeResponse"}}}},"403":{"description":"No fresh emailed-code proof, a disabled provider, or a locked account. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"That sign-in method is not on this account."},"409":{"description":"`last_sign_in_method` — removing it would leave no way in."},"422":{"description":"No newly connected identity inside the fresh-auth window."},"429":{"description":"Too many changes from this account."},"503":{"description":"The account's sign-in facts could not be read or changed."}}}},"/api/v1/users/me/sessions":{"get":{"tags":["users"],"summary":"List Active Sessions","description":"Every device the caller is signed in on, the current one first. Never an IP.","operationId":"list_active_sessions_api_v1_users_me_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveSessionListResponse"}}}},"401":{"description":"`session_revoked` — this sign-in was ended; sign in again."},"503":{"description":"The account's sessions could not be read."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/security/password-changed":{"post":{"tags":["users"],"summary":"Password Changed","description":"Called after GoTrue accepted a new password: end the other sessions, send the email.","operationId":"password_changed_api_v1_users_me_security_password_changed_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChangedResponse"}}}},"401":{"description":"`session_revoked` — this sign-in was ended; sign in again."},"429":{"description":"Too many changes from this account."},"503":{"description":"The other sessions could not be ended."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/sessions/{session_id}":{"delete":{"tags":["users"],"summary":"End Active Session","description":"End one session. `signed_out: true` means it was this one — sign out locally now.","operationId":"end_active_session_api_v1_users_me_sessions__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRevokeResponse"}}}},"401":{"description":"`session_revoked` — this sign-in was ended; sign in again."},"404":{"description":"`session_not_found` — no live session of the caller's has that id."},"429":{"description":"Too many changes from this account."},"503":{"description":"The session could not be ended."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/entities":{"get":{"tags":["users"],"summary":"List My Entities","description":"Both halves of this account's ownership story, in one consistent read.","operationId":"list_my_entities_api_v1_me_entities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyEntitiesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/favorites/":{"get":{"tags":["favorites"],"summary":"List Favorites","operationId":"list_favorites_api_v1_favorites__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FavoriteRead"},"type":"array","title":"Response List Favorites Api V1 Favorites  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["favorites"],"summary":"Add Favorite","operationId":"add_favorite_api_v1_favorites__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/favorites/events":{"get":{"tags":["favorites"],"summary":"List Favorite Events","description":"The Favorites-tab list (Story 4.2). `when` selects upcoming vs past (Story 3.22).","operationId":"list_favorite_events_api_v1_favorites_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"when","in":"query","required":false,"schema":{"enum":["upcoming","past"],"type":"string","default":"upcoming","title":"When"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"},"title":"Response List Favorite Events Api V1 Favorites Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/favorites/{event_id}":{"delete":{"tags":["favorites"],"summary":"Remove Favorite","operationId":"remove_favorite_api_v1_favorites__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/follows/":{"get":{"tags":["follows"],"summary":"List Follows","operationId":"list_follows_api_v1_follows__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FollowRead"},"type":"array","title":"Response List Follows Api V1 Follows  Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["follows"],"summary":"Create Follow","operationId":"create_follow_api_v1_follows__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/follows/venues":{"get":{"tags":["follows"],"summary":"List Venue Follows","operationId":"list_venue_follows_api_v1_follows_venues_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VenueFollowRead"},"type":"array","title":"Response List Venue Follows Api V1 Follows Venues Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["follows"],"summary":"Create Venue Follow","operationId":"create_venue_follow_api_v1_follows_venues_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueFollowCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueFollowRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/follows/artists/details":{"get":{"tags":["follows"],"summary":"List Followed Artists Details","description":"The Followed-Artists list (Story 4.4 AC #3, FR-023): rich, paginated, recency order.","operationId":"list_followed_artists_details_api_v1_follows_artists_details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FollowedArtistRead"},"title":"Response List Followed Artists Details Api V1 Follows Artists Details Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/follows/venues/details":{"get":{"tags":["follows"],"summary":"List Followed Venues Details","description":"The Followed-Venues list (Story 4.4 AC #2, FR-024): rich, paginated, recency order.","operationId":"list_followed_venues_details_api_v1_follows_venues_details_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FollowedVenueRead"},"title":"Response List Followed Venues Details Api V1 Follows Venues Details Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/follows/{artist_id}":{"delete":{"tags":["follows"],"summary":"Remove Follow","operationId":"remove_follow_api_v1_follows__artist_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/follows/venues/{venue_id}":{"delete":{"tags":["follows"],"summary":"Remove Venue Follow","operationId":"remove_venue_follow_api_v1_follows_venues__venue_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reviews/{review_id}/photo":{"post":{"tags":["reviews"],"summary":"Attach Review Photo","description":"Attach THE photo to the caller's review; a second attach replaces it.","operationId":"attach_review_photo_api_v1_reviews__review_id__photo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["reviews"],"summary":"Detach Review Photo","description":"Take the photo off the caller's review, leaving the words.","operationId":"detach_review_photo_api_v1_reviews__review_id__photo_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reviews/{review_id}":{"patch":{"tags":["reviews"],"summary":"Edit Review","operationId":"edit_review_api_v1_reviews__review_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["reviews"],"summary":"Withdraw Review","operationId":"withdraw_review_api_v1_reviews__review_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reviews/{target_kind}/{target_id}":{"get":{"tags":["reviews"],"summary":"List Target Reviews","operationId":"list_target_reviews_api_v1_reviews__target_kind___target_id__get","parameters":[{"name":"target_kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ReviewTargetKind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewRead"},"title":"Response List Target Reviews Api V1 Reviews  Target Kind   Target Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reviews"],"summary":"Submit Review","operationId":"submit_review_api_v1_reviews__target_kind___target_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"target_kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ReviewTargetKind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/uploads/staged-cover-image":{"post":{"tags":["uploads"],"summary":"Upload Staged Cover Image","description":"Stage a cover image for an owner self-create (FR-077). No entity, no DB write.","operationId":"upload_staged_cover_image_api_v1_uploads_staged_cover_image_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagedCoverImageRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/area-alerts":{"get":{"tags":["area-alerts"],"summary":"List Area Alerts","description":"Every ZIP the caller is opted in to — the web Preferences page's list.","operationId":"list_area_alerts_api_v1_area_alerts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaAlertOptInListRead"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["area-alerts"],"summary":"Create Area Alert","operationId":"create_area_alert_api_v1_area_alerts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipAreaAlertRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipAreaAlertResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/area-alerts/{zip}":{"delete":{"tags":["area-alerts"],"summary":"Delete Area Alert","description":"Opt-out. Idempotent: deleting a non-existent row is a clean 204.","operationId":"delete_area_alert_api_v1_area_alerts__zip__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["area-alerts"],"summary":"Get Area Alert Status","description":"Per-ZIP opt-in status so the mobile Toggle reflects server truth.","operationId":"get_area_alert_status_api_v1_area_alerts__zip__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaAlertStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zip-coverage/{zip}":{"get":{"tags":["zip-coverage"],"summary":"Get Zip Coverage","description":"Show the control only when `enabled and eligible`; `progress` follows a requested ZIP an admin added.","operationId":"get_zip_coverage_api_v1_zip_coverage__zip__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipCoverageStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zip-coverage/{zip}/request":{"post":{"tags":["zip-coverage"],"summary":"Request Zip Coverage","description":"Record the ask (200, reason `already_requested`); 409 / 429 carry the refusing guard. Never runs discovery.","operationId":"request_zip_coverage_api_v1_zip_coverage__zip__request_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipCoverageStatus"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zip-coverage/{zip}/guest":{"get":{"tags":["zip-coverage"],"summary":"Get Guest Zip Coverage","description":"Offer sign-in only when `enabled and eligible`; never carries an allowance or progress.","operationId":"get_guest_zip_coverage_api_v1_zip_coverage__zip__guest_get","parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipCoverageStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/popular":{"get":{"tags":["venues"],"summary":"Get Popular Venues","operationId":"get_popular_venues_api_v1_venues_popular_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VenueProfileRead"},"title":"Response Get Popular Venues Api V1 Venues Popular Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/recommended":{"get":{"tags":["venues"],"summary":"Get Recommended Venues","operationId":"get_recommended_venues_api_v1_venues_recommended_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VenueProfileRead"},"title":"Response Get Recommended Venues Api V1 Venues Recommended Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/pins":{"get":{"tags":["venues"],"summary":"Get Venue Pins","description":"Map points for these venues; a venue whose location is only approximate is left out.","operationId":"get_venue_pins_api_v1_venues_pins_get","parameters":[{"name":"venue_id","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":100,"title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VenuePinRead"},"title":"Response Get Venue Pins Api V1 Venues Pins Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/":{"get":{"tags":["venues"],"summary":"List Venues","operationId":"list_venues_api_v1_venues__get","parameters":[{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"zip_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":60,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VenueProfileRead"},"title":"Response List Venues Api V1 Venues  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/search":{"get":{"tags":["venues"],"summary":"Search Venues","operationId":"search_venues_api_v1_venues_search_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"zip_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"}},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"null"}],"title":"State"}},{"name":"radius_miles","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":50.0,"minimum":0},{"type":"null"}],"description":"When supplied WITH zip_code, venues inside the radius are ranked FIRST and the rest follow (nothing is excluded). Omitted or 0 keeps the historical exact-ZIP filter, which is what web sends.","title":"Radius Miles"},"description":"When supplied WITH zip_code, venues inside the radius are ranked FIRST and the rest follow (nothing is excluded). Omitted or 0 keeps the historical exact-ZIP filter, which is what web sends."},{"name":"include_without_events","in":"query","required":false,"schema":{"type":"boolean","description":"Story 14.1 (QF-007): when true, bypass the BUG-128 '>=1 upcoming event' prefilter so venues with no upcoming events still appear. The mobile search passes this for explicit text queries + the 'show without events' toggle. Default false keeps the discovery-scoped behavior for existing callers.","default":false,"title":"Include Without Events"},"description":"Story 14.1 (QF-007): when true, bypass the BUG-128 '>=1 upcoming event' prefilter so venues with no upcoming events still appear. The mobile search passes this for explicit text queries + the 'show without events' toggle. Default false keeps the discovery-scoped behavior for existing callers."},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Issue #11: venue-tag values to narrow by, as `<group-slug>/<value-slug>` (a bare value slug is accepted when it names exactly one group, as is a tag value uuid). Values in the SAME group are OR'd; different groups are AND'd.","title":"Tags"},"description":"Issue #11: venue-tag values to narrow by, as `<group-slug>/<value-slug>` (a bare value slug is accepted when it names exactly one group, as is a tag value uuid). Values in the SAME group are OR'd; different groups are AND'd."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/events":{"post":{"tags":["venues"],"summary":"Create Venue Event","description":"Create an event at a managed venue. Omit `venue_id` → oldest grant. See CLAUDE.md § events.py.","operationId":"create_venue_event_api_v1_venues_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCreated"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/venues/mine/gallery":{"post":{"tags":["venues"],"summary":"Add Owner Venue Gallery Photo","description":"Paid-tier gallery-add (Story 23.4, FR-P2-1101). Free venues get a 4xx — see CLAUDE.md § venues.py.","operationId":"add_owner_venue_gallery_photo_api_v1_venues_mine_gallery_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueProfileRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["venues"],"summary":"List Owner Venue Gallery","description":"The ONE shared pool the owner manages — every picture, whoever added it (Q-16).","operationId":"list_owner_venue_gallery_api_v1_venues_mine_gallery_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response List Owner Venue Gallery Api V1 Venues Mine Gallery Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine":{"post":{"tags":["venues"],"summary":"Create Venue","description":"Owner self-create — review-gated; no venue row is written here. See CLAUDE.md § venues.py.","operationId":"create_venue_api_v1_venues_mine_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"create_anyway","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Create Anyway"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueProfileCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerClaimSubmission"}}}},"409":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClaimCapExceededBody"},{"$ref":"#/components/schemas/ClaimAlreadyExistsBody"},{"$ref":"#/components/schemas/ClaimAlreadyManagedBody"},{"$ref":"#/components/schemas/ClaimConflictDetailBody"},{"$ref":"#/components/schemas/VenueMatchFoundBody"}],"title":"Response 409 Create Venue Api V1 Venues Mine Post"}}},"description":"Conflict"},"422":{"description":"`venue_address_unplaceable`: the address is a placeholder or a town's name, so nothing was matched or written. A malformed body is still FastAPI's `detail` list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueAddressUnplaceableBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}},"get":{"tags":["venues"],"summary":"Get My Venue","operationId":"get_my_venue_api_v1_venues_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["venues"],"summary":"Update Venue","operationId":"update_venue_api_v1_venues_mine_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueProfileRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/managed":{"get":{"tags":["venues"],"summary":"Get My Managed Venues","description":"Every managed venue in grant order, with its owner-only billing facts (Story 23.3).","operationId":"get_my_managed_venues_api_v1_venues_mine_managed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ManagedVenueRead"},"type":"array","title":"Response Get My Managed Venues Api V1 Venues Mine Managed Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/venues/mine/gallery/order":{"patch":{"tags":["venues"],"summary":"Reorder Owner Venue Gallery","description":"Persist the owner's complete venue-gallery order (Story 23.14).","operationId":"reorder_owner_venue_gallery_api_v1_venues_mine_gallery_order_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryOrderWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Reorder Owner Venue Gallery Api V1 Venues Mine Gallery Order Patch"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/cover-image":{"post":{"tags":["venues"],"summary":"Upload Owner Venue Cover","description":"Owner cover upload for an approved venue. Self-create uses `/uploads/staged-cover-image`.","operationId":"upload_owner_venue_cover_api_v1_venues_mine_cover_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueProfileRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events":{"get":{"tags":["venues"],"summary":"Get My Venue Events","description":"Every managed venue's events, or one venue's on `?venue_id=`. See CLAUDE.md § events.py.","operationId":"get_my_venue_events_api_v1_venues_mine_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this managed venue's events. Omitted → every managed venue.","title":"Venue Id"},"description":"Only this managed venue's events. Omitted → every managed venue."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"},"title":"Response Get My Venue Events Api V1 Venues Mine Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/tags":{"post":{"tags":["venues"],"summary":"Assign Tag","description":"Attach one EXISTING tag value, stamped `owner`.","operationId":"assign_tag_api_v1_venues_mine_tags_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerVenueTagAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTag"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/types":{"post":{"tags":["venues"],"summary":"Assign Type","description":"Attach one EXISTING venue type. Retired values are refused, never minted.","operationId":"assign_type_api_v1_venues_mine_types_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerVenueTypeAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueVenueType"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/legal-entity":{"delete":{"tags":["venues"],"summary":"Delete My Legal Entity","description":"Unlink, and delete the entity when nothing else points at it. Idempotent.","operationId":"delete_my_legal_entity_api_v1_venues_mine_legal_entity_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["venues"],"summary":"Get My Legal Entity","description":"The venue's recorded entity, or `null` — having none is not an error.","operationId":"get_my_legal_entity_api_v1_venues_mine_legal_entity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LegalEntityRead"},{"type":"null"}],"title":"Response Get My Legal Entity Api V1 Venues Mine Legal Entity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["venues"],"summary":"Put My Legal Entity","description":"Replace both fields. A PUT, so an absent `ein` clears the stored one.","operationId":"put_my_legal_entity_api_v1_venues_mine_legal_entity_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/billing/apply-license":{"post":{"tags":["venues"],"summary":"Apply License","description":"CAP-2 — attach one of this owner's own unattached licenses to this venue.","operationId":"apply_license_api_v1_venues_mine_billing_apply_license_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyLicenseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseRead"}}}},"404":{"description":"No unattached license with that id is waiting for this account to apply."},"409":{"description":"This profile already has a paid plan."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/billing/change-plan":{"post":{"tags":["venues"],"summary":"Change Plan","description":"Story 31.2 — move this venue's active plan (monthly <-> annual, or off the $20 plan).","operationId":"change_plan_api_v1_venues_mine_billing_change_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChangeBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChangeRead"}}}},"403":{"description":"Only the manager of this profile's subscription can change its plan. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"The chosen plan code is unknown, no longer sold, or not provisioned right now."},"409":{"description":"No active self-paid subscription to change, it is already on that plan, or the Business Plan Terms changed since the box was ticked (`{\"error\": \"terms_version_stale\"}`)."},"422":{"description":"The body has no `consent`, or `consent.accepted` is not true — the terms box was not ticked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."}}}},"/api/v1/venues/mine/billing/checkout-session":{"post":{"tags":["venues"],"summary":"Create Checkout Session","description":"Where to send this venue's owner to buy the plan they chose (Story 31.2).","operationId":"create_checkout_session_api_v1_venues_mine_billing_checkout_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCheckoutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingRedirectResponse"}}}},"404":{"description":"The chosen plan code is unknown, no longer sold, or not provisioned right now."},"409":{"description":"This profile already bills, the plan sells the other kind of profile, Stripe is still processing an earlier ask, or the Business Plan Terms changed since the box was ticked (`{\"error\": \"terms_version_stale\"}`)."},"422":{"description":"The body has no `consent`, or `consent.accepted` is not true — the terms box was not ticked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}}},"/api/v1/venues/mine/billing/portal-session":{"post":{"tags":["venues"],"summary":"Create Portal Session","description":"Where to send this venue's owner to manage an existing subscription.","operationId":"create_portal_session_api_v1_venues_mine_billing_portal_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingRedirectResponse"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/billing/cancellation":{"post":{"tags":["venues"],"summary":"Cancel","description":"Confirm the outcome the owner was shown; a changed outcome is a 409 carrying the new quote.","operationId":"cancel_api_v1_venues_mine_billing_cancellation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/billing/cancellation-quote":{"post":{"tags":["venues"],"summary":"Cancellation Quote","description":"What Cancel plan does right now for this venue — read fresh from Stripe.","operationId":"cancellation_quote_api_v1_venues_mine_billing_cancellation_quote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationQuote"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/billing/cancellation/resume":{"post":{"tags":["venues"],"summary":"Resume","description":"Keep my plan — undo a cancellation scheduled for the period end.","operationId":"resume_api_v1_venues_mine_billing_cancellation_resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/push-to-area":{"get":{"tags":["venues"],"summary":"Get My Venue Push To Area","description":"The promotions card for one venue: paid or not, people left this month, every request.","operationId":"get_my_venue_push_to_area_api_v1_venues_mine_push_to_area_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/follower-messages":{"get":{"tags":["venues"],"summary":"Get My Venue Follower Messages","description":"Whether this venue can message its audience now, to roughly how many, and when next.","operationId":"get_my_venue_follower_messages_api_v1_venues_mine_follower_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerMessageOverviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["venues"],"summary":"Send My Venue Follower Message","description":"Message this venue's followers and favoriters. Free → 403; too soon or nobody to reach → 409.","operationId":"send_my_venue_follower_message_api_v1_venues_mine_follower_messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerMessageRequestBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerMessageSendRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/audience":{"get":{"tags":["venues"],"summary":"Get My Venue Audience","description":"One managed venue's audience: who looked, when, from which areas, and what they did.","operationId":"get_my_venue_audience_api_v1_venues_mine_audience_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."},{"name":"period","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AudiencePeriodChoice","description":"The period every number covers.","default":"90_days"},"description":"The period every number covers."},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's first day, local to the entity's zone.","title":"Start"},"description":"A custom period's first day, local to the entity's zone."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's last day, local to the entity's zone.","title":"End"},"description":"A custom period's last day, local to the entity's zone."},{"name":"baseline","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Any day of the month growth is compared with.","title":"Baseline"},"description":"Any day of the month growth is compared with."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerAudienceReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/{venue_id}":{"get":{"tags":["venues"],"summary":"Get Venue Detail","description":"Story 23.4 (FR-P2-1101): gallery attaches only while the venue is paid NOW. F-129: then its space links.","operationId":"get_venue_detail_api_v1_venues__venue_id__get","parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/{venue_id}/events":{"get":{"tags":["venues"],"summary":"Get Venue Events","operationId":"get_venue_events_api_v1_venues__venue_id__events_get","parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"},"title":"Response Get Venue Events Api V1 Venues  Venue Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/gallery/{image_id}":{"patch":{"tags":["venues"],"summary":"Describe Owner Venue Gallery Photo","description":"Set one venue picture's alt text (Story 23.14, ruling #10).","operationId":"describe_owner_venue_gallery_photo_api_v1_venues_mine_gallery__image_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryAltTextWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Describe Owner Venue Gallery Photo Api V1 Venues Mine Gallery  Image Id  Patch"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["venues"],"summary":"Remove Owner Venue Gallery Photo","description":"Owner removes any pooled picture, LIVEY's own included, freeing its slot (Q-16).","operationId":"remove_owner_venue_gallery_photo_api_v1_venues_mine_gallery__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Remove Owner Venue Gallery Photo Api V1 Venues Mine Gallery  Image Id  Delete"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}":{"delete":{"tags":["venues"],"summary":"Delete My Venue Event","description":"HARD-delete own event (`event_artists` and `favorites` cascade). Cross-owner is 404.","operationId":"delete_my_venue_event_api_v1_venues_mine_events__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["venues"],"summary":"Get My Venue Event","description":"Seed the owner edit form. Returns the EDITABLE shape, not `EventDetail`. See CLAUDE.md § events.py.","operationId":"get_my_venue_event_api_v1_venues_mine_events__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOwnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["venues"],"summary":"Update My Venue Event","description":"Edit own event, including cancel/restore via `status`. Cross-owner is 404. See CLAUDE.md § events.py.","operationId":"update_my_venue_event_api_v1_venues_mine_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOwnerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOwnerRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/tags/{tag_value_id}":{"delete":{"tags":["venues"],"summary":"Unassign Tag","description":"Detach one value. An ASSIGNMENT is removable; a VALUE is not.","operationId":"unassign_tag_api_v1_venues_mine_tags__tag_value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value Id"}},{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/types/{venue_type_id}":{"delete":{"tags":["venues"],"summary":"Unassign Type","description":"Detach one type. Idempotent — removing what is not there is not an error.","operationId":"unassign_type_api_v1_venues_mine_types__venue_type_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Type Id"}},{"name":"venue_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed venue. Omitted → longest-held grant.","title":"Venue Id"},"description":"Act on this managed venue. Omitted → longest-held grant."}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}/tags":{"post":{"tags":["venues"],"summary":"Assign Event Tag","description":"Attach one EXISTING tag value, stamped `owner`. Cross-owner is 404.","operationId":"assign_event_tag_api_v1_venues_mine_events__event_id__tags_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerEventTagAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTag"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}/tags/{tag_value_id}":{"delete":{"tags":["venues"],"summary":"Unassign Event Tag","description":"Detach one value. An ASSIGNMENT is removable; a VALUE never is.","operationId":"unassign_event_tag_api_v1_venues_mine_events__event_id__tags__tag_value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}/promote":{"post":{"tags":["venues"],"summary":"Promote My Venue Event","description":"Promote one of the caller's own events. Free venue → 403; not theirs → 404.","operationId":"promote_my_venue_event_api_v1_venues_mine_events__event_id__promote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerPromotionRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}/unpromote":{"post":{"tags":["venues"],"summary":"Unpromote My Venue Event","description":"Stand one of the caller's own events down. Never gated on paid state.","operationId":"unpromote_my_venue_event_api_v1_venues_mine_events__event_id__unpromote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerPromotionRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}/pictures":{"post":{"tags":["venues"],"summary":"Add My Event Picture","description":"Add one picture (raw image body) to the caller's own event, within its plan's cap.","operationId":"add_my_event_picture_api_v1_venues_mine_events__event_id__pictures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerEventPicturesRead"}}}},"403":{"description":"This event shows its cover picture only. Upgrade to add event pictures. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No event of yours by that id."},"409":{"description":"The event already shows every picture its plan allows."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["venues"],"summary":"List My Event Pictures","description":"Every picture on the caller's event, each marked shown or not by today's plan.","operationId":"list_my_event_pictures_api_v1_venues_mine_events__event_id__pictures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerEventPicturesRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}/pictures/{image_id}":{"delete":{"tags":["venues"],"summary":"Remove My Event Picture","description":"Take one picture off the caller's own event. Never gated on paid state.","operationId":"remove_my_event_picture_api_v1_venues_mine_events__event_id__pictures__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerEventPicturesRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/venues/mine/events/{event_id}/push-to-area":{"get":{"tags":["venues"],"summary":"Get My Venue Event Push To Area","description":"Whether a venue show can be put forward, to how many, and the last request's fate.","operationId":"get_my_venue_event_push_to_area_api_v1_venues_mine_events__event_id__push_to_area_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaOverviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["venues"],"summary":"Request My Venue Event Push To Area","description":"Queue a push about a venue show for an administrator. Free → 403; not theirs → 404.","operationId":"request_my_venue_event_push_to_area_api_v1_venues_mine_events__event_id__push_to_area_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaRequestBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaOverviewRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/gallery":{"post":{"tags":["artists"],"summary":"Add Owner Artist Gallery Photo","description":"Paid-tier gallery-add (Story 23.5, FR-P2-1102). Free artists get a 4xx — see CLAUDE.md § artists.py.","operationId":"add_owner_artist_gallery_photo_api_v1_artists_mine_gallery_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistProfileRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["artists"],"summary":"List Owner Artist Gallery","description":"The ONE shared pool the owner manages — every picture, whoever added it (Q-16).","operationId":"list_owner_artist_gallery_api_v1_artists_mine_gallery_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response List Owner Artist Gallery Api V1 Artists Mine Gallery Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/events":{"post":{"tags":["artists"],"summary":"Create Artist Event","description":"Create and auto-publish an event authored by an approved artist owner.\n\nQF-025: reverses the AC #7 / Story 12.3 deliberate omission. Artist events:\n  - auto-publish (no pending/review state — source='artist-owner-claim')\n  - must specify an existing venue (venue_id required — FK non-nullable)\n  - are immediately linked to the authoring artist via event_artists\n  - are editable/deletable by admins via the existing admin events UI\n\nAuth gate: require_managed_artist (role=artist + approved managed profile).\nNon-artist roles receive 403 before this handler runs.\nOmit `artist_id` → oldest grant; a foreign id is 403 (P2-BUG-058).\n\n`zip_code` is **venue-derived on read and is not honoured for\ndisplay** — identical to the venue-owner path. The value is still\nstored, but every read resolves the ZIP from the event's `venues`\nrow first and `public.event_extended` exposes it as `v.zip_code`\n(Story 18.3 / ADR-0004 §D1). The same `timezone` caveat applies: its\nchain still ends at the payload ZIP for a venue carrying neither a\ntimezone nor a ZIP. `venue_name` is not settable here.","operationId":"create_artist_event_api_v1_artists_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistEventCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCreated"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/artists/mine":{"post":{"tags":["artists"],"summary":"Create Artist Profile","description":"Owner self-create — REVIEW-GATED (Story 12.4 AC #1).\n\nThe reversal of the inherited instant-grant create: NO artist row is created\nand NO ownership is written here. The validated payload is staged on a\n`pending` artist_claims row (`proposed_data`, artist_id NULL); the artist is\nmaterialized only when an admin approves the claim (admin/claims.py\nreview_claim — the single grant point). Returns 202 + a \"submitted for\nreview\" representation, never a live artist.","operationId":"create_artist_profile_api_v1_artists_mine_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistProfileCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerClaimSubmission"}}}},"409":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClaimCapExceededBody"},{"$ref":"#/components/schemas/ClaimAlreadyExistsBody"},{"$ref":"#/components/schemas/ClaimAlreadyManagedBody"},{"$ref":"#/components/schemas/ClaimConflictDetailBody"}],"title":"Response 409 Create Artist Profile Api V1 Artists Mine Post"}}},"description":"Conflict"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["artists"],"summary":"Get My Artist Profile","operationId":"get_my_artist_profile_api_v1_artists_mine_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["artists"],"summary":"Update Artist Profile","operationId":"update_artist_profile_api_v1_artists_mine_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistProfileRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/events":{"get":{"tags":["artists"],"summary":"Get My Artist Events","description":"The artist-owner dashboard's gig list — the artist mirror of\n``GET /venues/mine/events``, and the READ half that makes M-06's reversible\ncancel actually reversible for artist owners.\n\nINCLUDES CANCELLED EVENTS on purpose. That is the entire reason this route\nexists: the artist dashboard used to list gigs from the PUBLIC\n``GET /artists/{artist_id}/events``, which applies ``exclude_cancelled()``,\nso a cancelled gig vanished on the next page load and only an admin could\nrestore it. The public route KEEPS excluding them (it is a discovery\nsurface); this owner-scoped route deliberately does not.\n\nSCOPE: events linked via ``event_artists`` to ANY of the caller's APPROVED\nmanaged artists — the FULL set, not ``require_managed_artist``'s ``ids[0]``,\nso an owner of two acts sees the second act's gigs too. The linkage is\nresolved by ``ArtistOwnerEventAuthorizer`` (the very class that authorizes\nthe artist-owner PATCH/DELETE routes), so ownership is defined in ONE place.\n\nMirrors the venue-owner route's contract — ``list[EventSummary]`` through the\nshared ``EventCardMapper``, ``?limit=`` (1..200, default 50), ordered by\n``start_time`` — with one deliberate difference: a DB failure answers 503\n(retryable) rather than the venue route's 500, matching this router's own\nconvention (``_get_supabase_client_or_503``, ``GET /{artist_id}/events``) and\nthe shared ``execute_or_503`` error mapper.","operationId":"get_my_artist_events_api_v1_artists_mine_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this managed artist's gigs. Omitted → every managed artist.","title":"Artist Id"},"description":"Only this managed artist's gigs. Omitted → every managed artist."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"},"title":"Response Get My Artist Events Api V1 Artists Mine Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/managed":{"get":{"tags":["artists"],"summary":"Get My Managed Artists","description":"Every managed artist in grant order, with its owner-only billing facts (Story 23.3).","operationId":"get_my_managed_artists_api_v1_artists_mine_managed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ManagedArtistRead"},"type":"array","title":"Response Get My Managed Artists Api V1 Artists Mine Managed Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/artists/popular":{"get":{"tags":["artists"],"summary":"Get Popular Artists","operationId":"get_popular_artists_api_v1_artists_popular_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArtistProfileRead"},"title":"Response Get Popular Artists Api V1 Artists Popular Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/recommended":{"get":{"tags":["artists"],"summary":"Get Recommended Artists","operationId":"get_recommended_artists_api_v1_artists_recommended_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArtistProfileRead"},"title":"Response Get Recommended Artists Api V1 Artists Recommended Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/":{"get":{"tags":["artists"],"summary":"List Artists","operationId":"list_artists_api_v1_artists__get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"genre","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":60,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArtistProfileRead"},"title":"Response List Artists Api V1 Artists  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/gallery/order":{"patch":{"tags":["artists"],"summary":"Reorder Owner Artist Gallery","description":"Persist the owner's complete artist-gallery order (Story 23.14).","operationId":"reorder_owner_artist_gallery_api_v1_artists_mine_gallery_order_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryOrderWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Reorder Owner Artist Gallery Api V1 Artists Mine Gallery Order Patch"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/search":{"get":{"tags":["artists"],"summary":"Search Artists","operationId":"search_artists_api_v1_artists_search_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"genre","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"}},{"name":"include_without_events","in":"query","required":false,"schema":{"type":"boolean","description":"QF-036 (v1.0.0 quick fix): when true, bypass the ZIP-based upcoming-event prefilter below so artists with no upcoming event in the searched ZIP still appear (e.g. an exact name match). Mirrors venues.py's search_venues flag. Default false preserves the ZIP-scoped behavior for any caller that omits it.","default":false,"title":"Include Without Events"},"description":"QF-036 (v1.0.0 quick fix): when true, bypass the ZIP-based upcoming-event prefilter below so artists with no upcoming event in the searched ZIP still appear (e.g. an exact name match). Mirrors venues.py's search_venues flag. Default false preserves the ZIP-scoped behavior for any caller that omits it."},{"name":"zip_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"description":"Story 14.4 (FR-113): 5-digit ZIP. When set, returns only artists with at least one upcoming event in that ZIP.","title":"Zip Code"},"description":"Story 14.4 (FR-113): 5-digit ZIP. When set, returns only artists with at least one upcoming event in that ZIP."},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Issue #11: artist-tag values to narrow by, as `<group-slug>/<value-slug>` (a bare value slug is accepted when it names exactly one group, as is a tag value uuid). Values in the SAME group are OR'd; different groups are AND'd.","title":"Tags"},"description":"Issue #11: artist-tag values to narrow by, as `<group-slug>/<value-slug>` (a bare value slug is accepted when it names exactly one group, as is a tag value uuid). Values in the SAME group are OR'd; different groups are AND'd."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/cover-image":{"post":{"tags":["artists"],"summary":"Upload Owner Artist Cover","description":"QF-032 — owner cover upload; writes `cover_image_url` ONLY. See CLAUDE.md § artists.py.","operationId":"upload_owner_artist_cover_api_v1_artists_mine_cover_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistProfileRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/legal-entity":{"delete":{"tags":["artists"],"summary":"Delete My Legal Entity","description":"Unlink, and delete the entity when nothing else points at it. Idempotent.","operationId":"delete_my_legal_entity_api_v1_artists_mine_legal_entity_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["artists"],"summary":"Get My Legal Entity","description":"The artist's recorded entity, or `null` — having none is not an error.","operationId":"get_my_legal_entity_api_v1_artists_mine_legal_entity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LegalEntityRead"},{"type":"null"}],"title":"Response Get My Legal Entity Api V1 Artists Mine Legal Entity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["artists"],"summary":"Put My Legal Entity","description":"Replace both fields. A PUT, so an absent `ein` clears the stored one.","operationId":"put_my_legal_entity_api_v1_artists_mine_legal_entity_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/billing/apply-license":{"post":{"tags":["artists"],"summary":"Apply License","description":"CAP-2 — attach one of this owner's own unattached licenses to this artist.","operationId":"apply_license_api_v1_artists_mine_billing_apply_license_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyLicenseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseRead"}}}},"404":{"description":"No unattached license with that id is waiting for this account to apply."},"409":{"description":"This profile already has a paid plan."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/billing/change-plan":{"post":{"tags":["artists"],"summary":"Change Plan","description":"Story 31.2 — move this artist's active plan (monthly <-> annual, or off the $20 plan).","operationId":"change_plan_api_v1_artists_mine_billing_change_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChangeBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanChangeRead"}}}},"403":{"description":"Only the manager of this profile's subscription can change its plan. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"The chosen plan code is unknown, no longer sold, or not provisioned right now."},"409":{"description":"No active self-paid subscription to change, it is already on that plan, or the Business Plan Terms changed since the box was ticked (`{\"error\": \"terms_version_stale\"}`)."},"422":{"description":"The body has no `consent`, or `consent.accepted` is not true — the terms box was not ticked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."}}}},"/api/v1/artists/mine/billing/checkout-session":{"post":{"tags":["artists"],"summary":"Create Checkout Session","description":"Where to send this artist's owner to buy the plan they chose (Story 31.2).","operationId":"create_checkout_session_api_v1_artists_mine_billing_checkout_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCheckoutBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingRedirectResponse"}}}},"404":{"description":"The chosen plan code is unknown, no longer sold, or not provisioned right now."},"409":{"description":"This profile already bills, the plan sells the other kind of profile, Stripe is still processing an earlier ask, or the Business Plan Terms changed since the box was ticked (`{\"error\": \"terms_version_stale\"}`)."},"422":{"description":"The body has no `consent`, or `consent.accepted` is not true — the terms box was not ticked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}}},"/api/v1/artists/mine/billing/portal-session":{"post":{"tags":["artists"],"summary":"Create Portal Session","description":"Where to send this artist's owner to manage an existing subscription.","operationId":"create_portal_session_api_v1_artists_mine_billing_portal_session_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingRedirectResponse"}}}},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/billing/cancellation":{"post":{"tags":["artists"],"summary":"Cancel","description":"Confirm the outcome the owner was shown; a changed outcome is a 409 carrying the new quote.","operationId":"cancel_api_v1_artists_mine_billing_cancellation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/billing/cancellation-quote":{"post":{"tags":["artists"],"summary":"Cancellation Quote","description":"What Cancel plan does right now for this artist — read fresh from Stripe.","operationId":"cancellation_quote_api_v1_artists_mine_billing_cancellation_quote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationQuote"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/billing/cancellation/resume":{"post":{"tags":["artists"],"summary":"Resume","description":"Keep my plan — undo a cancellation scheduled for the period end.","operationId":"resume_api_v1_artists_mine_billing_cancellation_resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeRead"}}}},"403":{"description":"Only the person who pays for this plan can cancel or keep it. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No such license, or no claim of yours names this profile."},"409":{"description":"Nothing to cancel or keep here, or the outcome changed since the quote (body carries `quote`)."},"503":{"description":"Billing is unconfigured, or Stripe could not complete the request; nothing changed."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/push-to-area":{"get":{"tags":["artists"],"summary":"Get My Artist Push To Area","description":"The promotions card for one act: paid or not, people left this month, every request.","operationId":"get_my_artist_push_to_area_api_v1_artists_mine_push_to_area_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/follower-messages":{"get":{"tags":["artists"],"summary":"Get My Artist Follower Messages","description":"Whether this act can message its audience now, to roughly how many, and when next.","operationId":"get_my_artist_follower_messages_api_v1_artists_mine_follower_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerMessageOverviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["artists"],"summary":"Send My Artist Follower Message","description":"Message this act's followers and favoriters. Free → 403; too soon or nobody to reach → 409.","operationId":"send_my_artist_follower_message_api_v1_artists_mine_follower_messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerMessageRequestBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowerMessageSendRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/audience":{"get":{"tags":["artists"],"summary":"Get My Artist Audience","description":"One managed act's audience: who looked, when, from which areas, and what they did.","operationId":"get_my_artist_audience_api_v1_artists_mine_audience_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."},{"name":"period","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AudiencePeriodChoice","description":"The period every number covers.","default":"90_days"},"description":"The period every number covers."},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's first day, local to the entity's zone.","title":"Start"},"description":"A custom period's first day, local to the entity's zone."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's last day, local to the entity's zone.","title":"End"},"description":"A custom period's last day, local to the entity's zone."},{"name":"baseline","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Any day of the month growth is compared with.","title":"Baseline"},"description":"Any day of the month growth is compared with."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerAudienceReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/events/{event_id}":{"delete":{"tags":["artists"],"summary":"Delete My Artist Event","description":"HARD-delete an event the caller's artist is booked on (row gone,\n``event_artists`` + ``favorites`` cascade). Irreversible; the typed\nconfirmation is a client-side gate.","operationId":"delete_my_artist_event_api_v1_artists_mine_events__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["artists"],"summary":"Get My Artist Event","description":"Seed the owner edit form. Returns the EDITABLE shape, not `EventDetail`. 404 when not the caller's.","operationId":"get_my_artist_event_api_v1_artists_mine_events__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOwnerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["artists"],"summary":"Update My Artist Event","description":"Edit an event the caller's artist is booked on — including CANCEL and\nRESTORE via the ``status`` field (``\"cancelled\"`` / ``\"scheduled\"``).\n\nA cancelled event survives as a row and disappears from public discovery,\nbut stays readable to the owner and to admins so it can be restored; the\ntransition is recorded in ``event_status_changes`` by a trigger. 404 when\nthe event does not exist OR the caller's artist is not linked to it. 422\nfor an empty body.\n\nM-07: ``artist_ids`` re-tags the bill, with ONE restriction — the caller's own\n``event_artists`` link can never be removed (``pinned_artist_ids``). The guard\nabove derives ownership from that link, so dropping it would permanently\norphan the artist's own event and lock them out of it.\n\nCancelling or restoring notifies every favoriter. The push is scheduled on\nBackgroundTasks so Expo latency never lands in this request, and it is\nbest-effort: a send failure is logged, never surfaced as a failed PATCH, and\nretried by the reminder-scheduler sweep.","operationId":"update_my_artist_event_api_v1_artists_mine_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOwnerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventOwnerRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/gallery/{image_id}":{"patch":{"tags":["artists"],"summary":"Describe Owner Artist Gallery Photo","description":"Set one artist picture's alt text (Story 23.14, ruling #10).","operationId":"describe_owner_artist_gallery_photo_api_v1_artists_mine_gallery__image_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryAltTextWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Describe Owner Artist Gallery Photo Api V1 Artists Mine Gallery  Image Id  Patch"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["artists"],"summary":"Remove Owner Artist Gallery Photo","description":"Owner removes any pooled picture, LIVEY's own included, freeing its slot (Q-16).","operationId":"remove_owner_artist_gallery_photo_api_v1_artists_mine_gallery__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Remove Owner Artist Gallery Photo Api V1 Artists Mine Gallery  Image Id  Delete"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/{artist_id}":{"get":{"tags":["artists"],"summary":"Get Artist Detail","operationId":"get_artist_detail_api_v1_artists__artist_id__get","parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistProfileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/{artist_id}/events":{"get":{"tags":["artists"],"summary":"Get Artist Events","operationId":"get_artist_events_api_v1_artists__artist_id__events_get","parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSummary"},"title":"Response Get Artist Events Api V1 Artists  Artist Id  Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/events/{event_id}/promote":{"post":{"tags":["artists"],"summary":"Promote My Artist Event","description":"Promote a gig one of the caller's acts is booked on. Free artist → 403; not theirs → 404.","operationId":"promote_my_artist_event_api_v1_artists_mine_events__event_id__promote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerPromotionRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/events/{event_id}/unpromote":{"post":{"tags":["artists"],"summary":"Unpromote My Artist Event","description":"Stand one of the caller's own gigs down. Never gated on paid state.","operationId":"unpromote_my_artist_event_api_v1_artists_mine_events__event_id__unpromote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerPromotionRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/events/{event_id}/pictures":{"post":{"tags":["artists"],"summary":"Add My Event Picture","description":"Add one picture (raw image body) to the caller's own event, within its plan's cap.","operationId":"add_my_event_picture_api_v1_artists_mine_events__event_id__pictures_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerEventPicturesRead"}}}},"403":{"description":"This event shows its cover picture only. Upgrade to add event pictures. OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"404":{"description":"No event of yours by that id."},"409":{"description":"The event already shows every picture its plan allows."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["artists"],"summary":"List My Event Pictures","description":"Every picture on the caller's event, each marked shown or not by today's plan.","operationId":"list_my_event_pictures_api_v1_artists_mine_events__event_id__pictures_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerEventPicturesRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/events/{event_id}/pictures/{image_id}":{"delete":{"tags":["artists"],"summary":"Remove My Event Picture","description":"Take one picture off the caller's own event. Never gated on paid state.","operationId":"remove_my_event_picture_api_v1_artists_mine_events__event_id__pictures__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerEventPicturesRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/events/{event_id}/push-to-area":{"get":{"tags":["artists"],"summary":"Get My Artist Event Push To Area","description":"Whether a gig one of the caller's acts is booked on can be put forward, to how many, and the last request's fate.","operationId":"get_my_artist_event_push_to_area_api_v1_artists_mine_events__event_id__push_to_area_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this managed act may pay. Omitted → any linked act.","title":"Artist Id"},"description":"Only this managed act may pay. Omitted → any linked act."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaOverviewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["artists"],"summary":"Request My Artist Event Push To Area","description":"Queue a push about a gig one of the caller's acts is booked on for an administrator. Free → 403; not theirs → 404.","operationId":"request_my_artist_event_push_to_area_api_v1_artists_mine_events__event_id__push_to_area_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only this managed act may pay. Omitted → any linked act.","title":"Artist Id"},"description":"Only this managed act may pay. Omitted → any linked act."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaRequestBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToAreaOverviewRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/types":{"post":{"tags":["artists"],"summary":"Assign Type","description":"Attach one EXISTING artist type, stamped `owner`. Retired values are refused.","operationId":"assign_type_api_v1_artists_mine_types_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerArtistTypeAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistType"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artists/mine/types/{artist_type_value_id}":{"delete":{"tags":["artists"],"summary":"Unassign Type","description":"Detach one type. Idempotent — removing what is not there is not an error.","operationId":"unassign_type_api_v1_artists_mine_types__artist_type_value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_type_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Type Value Id"}},{"name":"artist_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Act on this managed artist. Omitted → longest-held grant.","title":"Artist Id"},"description":"Act on this managed artist. Omitted → longest-held grant."}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/artist-claims":{"post":{"tags":["claims"],"summary":"Create Artist Claim","description":"File a claim on an existing artist. Authentication only — see CLAUDE.md § claims.py.","operationId":"create_artist_claim_api_v1_claims_artist_claims_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistClaimCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveyArtistClaim"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClaimCapExceededBody"},{"$ref":"#/components/schemas/ClaimAlreadyExistsBody"},{"$ref":"#/components/schemas/ClaimAlreadyManagedBody"},{"$ref":"#/components/schemas/ClaimConflictDetailBody"}],"title":"Response 409 Create Artist Claim Api V1 Claims Artist Claims Post"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/claims/venue-claims":{"post":{"tags":["claims"],"summary":"Create Venue Claim","description":"File a claim on an existing venue. Authentication only — see CLAUDE.md § claims.py.","operationId":"create_venue_claim_api_v1_claims_venue_claims_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueClaimCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveyVenueClaim"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ClaimCapExceededBody"},{"$ref":"#/components/schemas/ClaimAlreadyExistsBody"},{"$ref":"#/components/schemas/ClaimAlreadyManagedBody"},{"$ref":"#/components/schemas/ClaimConflictDetailBody"}],"title":"Response 409 Create Venue Claim Api V1 Claims Venue Claims Post"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/claims/mine":{"get":{"tags":["claims"],"summary":"List My Claims","operationId":"list_my_claims_api_v1_claims_mine_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyClaimsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/claims/{kind}/{claim_id}/evidence":{"patch":{"tags":["claims"],"summary":"Attach Claim Evidence","description":"Attach the shared evidence to the caller's own open claim (the self-create second call).","operationId":"attach_claim_evidence_api_v1_claims__kind___claim_id__evidence_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["venue","artist"],"type":"string","title":"Kind"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimEvidence"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimEvidenceAccepted"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/{kind}/{claim_id}":{"delete":{"tags":["claims"],"summary":"Delete Claim","description":"Delete the caller's own WITHDRAWN claim (Story 29.10) so the same venue or\nact can be claimed again. 404/409 come through the `routes/errors.py` seam.","operationId":"delete_claim_api_v1_claims__kind___claim_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["venue","artist"],"type":"string","title":"Kind"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/{kind}/{claim_id}/documents/{document_id}":{"delete":{"tags":["claims"],"summary":"Delete Claim Document","description":"Remove one of the caller's own documents while the claim is still pending.","operationId":"delete_claim_document_api_v1_claims__kind___claim_id__documents__document_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/{kind}/{claim_id}/documents":{"get":{"tags":["claims"],"summary":"List Claim Documents","description":"List the caller's own documents for a claim (each with a signed URL).","operationId":"list_claim_documents_api_v1_claims__kind___claim_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimDocumentList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["claims"],"summary":"Upload Claim Document","description":"Attach a verification document to the caller's own PENDING claim.","operationId":"upload_claim_document_api_v1_claims__kind___claim_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"filename","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimDocument"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/artist-claims/{claim_id}/review":{"patch":{"tags":["claims"],"summary":"Review Artist Claim","operationId":"review_artist_claim_api_v1_claims_artist_claims__claim_id__review_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveyArtistClaim"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/venue-claims/{claim_id}/review":{"patch":{"tags":["claims"],"summary":"Review Venue Claim","operationId":"review_venue_claim_api_v1_claims_venue_claims__claim_id__review_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveyVenueClaim"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/claims/{kind}/{claim_id}/withdraw":{"post":{"tags":["claims"],"summary":"Withdraw Claim","description":"Withdraw the caller's own open claim (Story 22.7). `end_billing` is R-11's confirm;\n`expected_outcome` is the stop-billing quote the dialog showed (31.7, 409 if it changed).","operationId":"withdraw_claim_api_v1_claims__kind___claim_id__withdraw_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["venue","artist"],"type":"string","title":"Kind"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"end_billing","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"End Billing"}},{"name":"expected_outcome","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CancellationOutcome"},{"type":"null"}],"title":"Expected Outcome"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawnClaim"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/claims/counts":{"get":{"tags":["admin-claims"],"summary":"Claim Counts","description":"Per-status claim counts (venue + artist combined) for the admin-queue tab badges: ``{pending, info_requested, approved, rejected, all}``.","operationId":"claim_counts_api_v1_admin_claims_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"type":"object","title":"Response Claim Counts Api V1 Admin Claims Counts Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/claims/pending":{"get":{"tags":["admin-claims"],"summary":"List Pending Claims","operationId":"list_pending_claims_api_v1_admin_claims_pending_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ClaimQueueSort","default":"created_at"}},{"name":"sort_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","default":"asc"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PendingClaim"},"title":"Response List Pending Claims Api V1 Admin Claims Pending Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/claims/settings":{"get":{"tags":["admin-claims"],"summary":"Read Claim Cap Settings","description":"AC #13 (Story 22.6, FR-P2-0516) — the current claim-submission cap.","operationId":"read_claim_cap_settings_api_v1_admin_claims_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimCapSettings"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["admin-claims"],"summary":"Update Claim Cap Settings","description":"AC #13 — no client-side floor: the database's own CHECK decides, and a\nviolation comes back as a friendly `ClaimCapSettingsInvalidError` (422).","operationId":"update_claim_cap_settings_api_v1_admin_claims_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimCapSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimCapSettings"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/claims/{id}":{"delete":{"tags":["admin-claims"],"summary":"Delete Claim","description":"QF-027 — hard-delete a claim row (pending, approved, or rejected).","operationId":"delete_claim_api_v1_admin_claims__id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/claims/{claim_id}/documents":{"get":{"tags":["admin-claims"],"summary":"List Claim Documents Admin","description":"Story 12.5 (AC #4) — the claimant's verification documents for a claim, each with a short-lived SIGNED URL the review drawer opens.","operationId":"list_claim_documents_admin_api_v1_admin_claims__claim_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Claim Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimDocumentList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/claims/{id}/events":{"get":{"tags":["admin-claims"],"summary":"List Claim Events","description":"The full lifecycle history of a claim (oldest-first) — submitted / info_requested / info_provided / approved / rejected / demoted, each with the actor + note + timestamp.","operationId":"list_claim_events_api_v1_admin_claims__id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimEventList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/claims/{id}/request-info":{"post":{"tags":["admin-claims"],"summary":"Request Claim Info","description":"Ask the applicant for more information.","operationId":"request_claim_info_api_v1_admin_claims__id__request_info_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","title":"Kind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInfoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingClaim"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/claims/{id}/review":{"patch":{"tags":["admin-claims"],"summary":"Review Claim","operationId":"review_claim_api_v1_admin_claims__id__review_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","title":"Kind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingClaim"}}}},"409":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VenueMatchFoundBody"},{"$ref":"#/components/schemas/VenueNameTakenBody"},{"$ref":"#/components/schemas/LinkedVenueIneligibleBody"}],"title":"Response 409 Review Claim Api V1 Admin Claims  Id  Review Patch"}}},"description":"Conflict"},"422":{"description":"`venue_address_unplaceable`: the address is a placeholder or a town's name, so nothing was matched or written. A malformed body is still FastAPI's `detail` list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueAddressUnplaceableBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}}},"/api/v1/admin/claims/{id}/revoke":{"post":{"tags":["admin-claims"],"summary":"Revoke Claim","description":"Story 22.12 (FR-P2-0506, AC #1) — revoke ONE approved claim. Extends\nthe shipped demote (`:request-info`), not a second implementation: the\nSAME grant-revoke call, a NEW terminal `revoked` state. Translation\nonly (epic gate 13, AC #12) — the pre-flight read, the 409 decision and\nthe response fields all live in `RoleRevocationService`.","operationId":"revoke_claim_api_v1_admin_claims__id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}},{"name":"kind","in":"query","required":true,"schema":{"type":"string","title":"Kind"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingClaim"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scheduler/ai-switch":{"get":{"tags":["admin-scheduler"],"summary":"Ai Switch","operationId":"ai_switch_api_v1_admin_scheduler_ai_switch_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiScraperSwitchResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-scheduler"],"summary":"Turn Ai Switch","operationId":"turn_ai_switch_api_v1_admin_scheduler_ai_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiScraperSwitchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiScraperSwitchResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scheduler/health":{"get":{"tags":["admin-scheduler"],"summary":"Scheduler Health","operationId":"scheduler_health_api_v1_admin_scheduler_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerHealthResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scheduler/passes":{"get":{"tags":["admin-scheduler"],"summary":"Scheduler Passes","description":"Every discovery pass in the trailing window, oldest first — the per-ZIP trend's source.","operationId":"scheduler_passes_api_v1_admin_scheduler_passes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DiscoveryPassView"},"title":"Response Scheduler Passes Api V1 Admin Scheduler Passes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scheduler/pause":{"post":{"tags":["admin-scheduler"],"summary":"Scheduler Pause","operationId":"scheduler_pause_api_v1_admin_scheduler_pause_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerHealthResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scheduler/resume":{"post":{"tags":["admin-scheduler"],"summary":"Scheduler Resume","operationId":"scheduler_resume_api_v1_admin_scheduler_resume_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerHealthResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/source-scorecard/{zip_code}/multi-venue-sites":{"get":{"tags":["admin-source-scorecard"],"summary":"Multi Venue Sites","description":"Every multi-venue site with a venue in the ZIP: why, its venues by their own page, last read, yield.","operationId":"multi_venue_sites_api_v1_admin_source_scorecard__zip_code__multi_venue_sites_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip_code","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip Code"}},{"name":"days","in":"query","required":true,"schema":{"type":"integer","maximum":365,"minimum":1,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiVenueSiteRegisterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/source-scorecard/{zip_code}":{"get":{"tags":["admin-source-scorecard"],"summary":"Source Scorecard","description":"Per source for one ZIP: the latest answer, the outcome mix, the reason dates, both verified tiers.","operationId":"source_scorecard_api_v1_admin_source_scorecard__zip_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip_code","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip Code"}},{"name":"days","in":"query","required":true,"schema":{"type":"integer","maximum":365,"minimum":1,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceScorecardResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/content-reports":{"get":{"tags":["admin-content-reports"],"summary":"List Content Reports","operationId":"list_content_reports_api_v1_admin_content_reports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContentReportListItem"},"title":"Response List Content Reports Api V1 Admin Content Reports Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/content-reports/reviews/{review_id}/hide":{"post":{"tags":["admin-content-reports"],"summary":"Hide Review","operationId":"hide_review_api_v1_admin_content_reports_reviews__review_id__hide_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModeratedReviewResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/content-reports/reviews/{review_id}/remove":{"post":{"tags":["admin-content-reports"],"summary":"Remove Review","operationId":"remove_review_api_v1_admin_content_reports_reviews__review_id__remove_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModeratedReviewResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/content-reports/{report_id}/review":{"patch":{"tags":["admin-content-reports"],"summary":"Review Content Report","operationId":"review_content_report_api_v1_admin_content_reports__report_id__review_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Report Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentReportReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentReportListItem"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/content-reports/reviews/{review_id}/unhide":{"post":{"tags":["admin-content-reports"],"summary":"Unhide Review","operationId":"unhide_review_api_v1_admin_content_reports_reviews__review_id__unhide_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModeratedReviewResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/content":{"get":{"tags":["admin-content"],"summary":"List Areas","operationId":"list_areas_api_v1_admin_content_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SiteContentItem"},"type":"array","title":"Response List Areas Api V1 Admin Content Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/content/undo":{"post":{"tags":["admin-content"],"summary":"Undo Last Save","operationId":"undo_last_save_api_v1_admin_content_undo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteContentUndoResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/content/{key}":{"get":{"tags":["admin-content"],"summary":"Read Area","operationId":"read_area_api_v1_admin_content__key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteContentItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-content"],"summary":"Replace Value","operationId":"replace_value_api_v1_admin_content__key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteContentWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteContentWriteResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-content"],"summary":"Revert To Default","operationId":"revert_to_default_api_v1_admin_content__key__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"save_group_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Save Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteContentItem"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/site-media/video/commit":{"post":{"tags":["admin-site-media"],"summary":"Commit Video","operationId":"commit_video_api_v1_admin_site_media_video_commit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaCommitRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaUrlRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/site-media/limits":{"get":{"tags":["admin-site-media"],"summary":"Limits","operationId":"limits_api_v1_admin_site_media_limits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaLimitsRead"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/site-media/video/sign":{"post":{"tags":["admin-site-media"],"summary":"Sign Video","operationId":"sign_video_api_v1_admin_site_media_video_sign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaSignRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaSignRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/site-media/image":{"post":{"tags":["admin-site-media"],"summary":"Upload Image","operationId":"upload_image_api_v1_admin_site_media_image_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteMediaUrlRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/review-queue/bulk-accept":{"post":{"tags":["admin-review-queue"],"summary":"Bulk Accept Review Queue Items","description":"Settle many items with LIVEY's own answer (18.92). PARTIAL SUCCESS, always 200. See CLAUDE.md § review_queue.py — bulk accept.","operationId":"bulk_accept_review_queue_items_api_v1_admin_review_queue_bulk_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAcceptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReviewResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/review-queue/bulk-review":{"post":{"tags":["admin-review-queue"],"summary":"Bulk Review Review Queue Items","description":"Resolve many items with one decision. PARTIAL SUCCESS, always 200.","operationId":"bulk_review_review_queue_items_api_v1_admin_review_queue_bulk_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReviewResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/review-queue/google-lookup":{"get":{"tags":["admin-review-queue"],"summary":"Google Lookup Availability","description":"Story 25.24 — whether the console may show \"Look this up on Google\" here.","operationId":"google_lookup_availability_api_v1_admin_review_queue_google_lookup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLookupAvailability"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/review-queue":{"get":{"tags":["admin-review-queue"],"summary":"List Review Queue","description":"List the review queue, filtered and sorted.","operationId":"list_review_queue_api_v1_admin_review_queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending","title":"Status"}},{"name":"reason_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"}},{"name":"subject_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ReviewSubjectType"},{"type":"null"}],"title":"Subject Type"}},{"name":"min_confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Min Confidence"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ReviewQueueSortBy","description":"`confidence` (desc, NULLS LAST) · `recent` (last_seen_at desc) · `created` (created_at desc — when the row first appeared, which for an `auto_approve` row is when the merge happened) · `disagreement` (desc, NULLS LAST — how far apart the shipped scorer and Splink are on this pair; the other three answer 'how sure are we?', this one answers 'which of these is HARD?'. NULL means one score is MISSING, never that the two agreed). Applied by the database across the WHOLE filtered set, not within the returned page.","default":"confidence"},"description":"`confidence` (desc, NULLS LAST) · `recent` (last_seen_at desc) · `created` (created_at desc — when the row first appeared, which for an `auto_approve` row is when the merge happened) · `disagreement` (desc, NULLS LAST — how far apart the shipped scorer and Splink are on this pair; the other three answer 'how sure are we?', this one answers 'which of these is HARD?'. NULL means one score is MISSING, never that the two agreed). Applied by the database across the WHOLE filtered set, not within the returned page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Type-ahead substring across reason, producer, URL, and payload.","title":"Q"},"description":"Type-ahead substring across reason, producer, URL, and payload."},{"name":"gates","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ReviewGateScope","description":"`exclude` (default) — the main queue, without the kinds whose descriptor says `is_gate`; `only` — just those kinds, the console's Approvals tab.","default":"exclude"},"description":"`exclude` (default) — the main queue, without the kinds whose descriptor says `is_gate`; `only` — just those kinds, the console's Approvals tab."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewQueuePage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/review-queue/venue-space-link":{"post":{"tags":["admin-review-queue"],"summary":"Queue Venue Space Link","description":"Story 33.9 — queue one space question for the label desk; the server builds it and applies every skip.","operationId":"queue_venue_space_link_api_v1_admin_review_queue_venue_space_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueSpaceLinkQueueRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueSpaceLinkQueueResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/review-queue/reasons":{"get":{"tags":["admin-review-queue"],"summary":"Review Queue Reasons","description":"Every reason code, explained. See CLAUDE.md § review_queue.py — the /reasons route.","operationId":"review_queue_reasons_api_v1_admin_review_queue_reasons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewReasonCatalog"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/review-queue/stats":{"get":{"tags":["admin-review-queue"],"summary":"Review Queue Stats","description":"Queue depth by reason and subject. See CLAUDE.md § review_queue.py.","operationId":"review_queue_stats_api_v1_admin_review_queue_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"Which status to count. Defaults to the triage view.","default":"pending","title":"Status"},"description":"Which status to count. Defaults to the triage view."},{"name":"gates","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ReviewGateScope","description":"`exclude` (default) — the main queue, without the kinds whose descriptor says `is_gate`; `only` — just those kinds, the console's Approvals tab.","default":"exclude"},"description":"`exclude` (default) — the main queue, without the kinds whose descriptor says `is_gate`; `only` — just those kinds, the console's Approvals tab."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewQueueStats"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/review-queue/{item_id}":{"get":{"tags":["admin-review-queue"],"summary":"Get Review Queue Item","description":"One queue item, or 404.","operationId":"get_review_queue_item_api_v1_admin_review_queue__item_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveyReviewQueueItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/review-queue/{item_id}/google-lookup":{"post":{"tags":["admin-review-queue"],"summary":"Google Lookup","description":"Story 25.24 — one live Google answer about a park, for display only. See CLAUDE.md § review_queue.py — the Google lookup.","operationId":"google_lookup_api_v1_admin_review_queue__item_id__google_lookup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLookupResult"}}}},"404":{"description":"No such review item."},"409":{"description":"The item's stored question cannot be read."},"422":{"description":"Not an entity-resolution park, or the record names nothing to search for."},"429":{"description":"This admin's hourly lookups are spent."},"503":{"description":"The lookup is off here, has no key, or Google's answer did not arrive."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}}},"/api/v1/admin/review-queue/{item_id}/decisions":{"get":{"tags":["admin-review-queue"],"summary":"List Review Queue Decisions","description":"Prior decisions for one queue item. No page_snapshot.","operationId":"list_review_queue_decisions_api_v1_admin_review_queue__item_id__decisions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReviewDecisionListItem"},"title":"Response List Review Queue Decisions Api V1 Admin Review Queue  Item Id  Decisions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/review-queue/{item_id}/merge-cluster":{"post":{"tags":["admin-review-queue"],"summary":"Merge Review Queue Cluster","description":"Story 18.70 — approve a cluster row: the SELECTED members into one survivor, in ONE transaction.","operationId":"merge_review_queue_cluster_api_v1_admin_review_queue__item_id__merge_cluster_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterMergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterMergeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/review-queue/{item_id}/review":{"patch":{"tags":["admin-review-queue"],"summary":"Review Review Queue Item","description":"Record an admin's decision on one item.","operationId":"review_review_queue_item_api_v1_admin_review_queue__item_id__review_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewQueueResolutionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveyReviewQueueItem"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/review-queue/{item_id}/unmerge-cluster":{"post":{"tags":["admin-review-queue"],"summary":"Unmerge Review Queue Cluster","description":"Story 18.70 AC-10 — undo the whole approval: snapshots back newest-first, exclusions dropped, row `pending` again.","operationId":"unmerge_review_queue_cluster_api_v1_admin_review_queue__item_id__unmerge_cluster_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterUnmergeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/artist-genre-coverage":{"get":{"tags":["admin-quality"],"summary":"Artist Genre Coverage","description":"Artist-genre coverage, measured now — Story 18.23 AC #8.","operationId":"artist_genre_coverage_api_v1_admin_quality_artist_genre_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistGenreCoverageReport"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality/completeness":{"get":{"tags":["admin-quality"],"summary":"Completeness","description":"Stamped catalog completeness means — measured now.","operationId":"completeness_api_v1_admin_quality_completeness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletenessDigest"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality/completeness/history":{"get":{"tags":["admin-quality"],"summary":"Completeness History","description":"The completeness trend and the per-field fill behind it, from the tick log.","operationId":"completeness_history_api_v1_admin_quality_completeness_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":14,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletenessHistory"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/cost-per-event/by-configuration":{"get":{"tags":["admin-quality"],"summary":"Cost By Configuration","description":"Story 19.41: scraped, verified (two tiers) and overall cost per event, ranked by model configuration.","operationId":"cost_by_configuration_api_v1_admin_quality_cost_per_event_by_configuration_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TrendWindowDays","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostByConfigurationReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/cost-per-event/export":{"get":{"tags":["admin-quality"],"summary":"Cost By Configuration Export","description":"The same figures as a file — versioned JSON or CSV — stamped with the environment they came from (AC #7).","operationId":"cost_by_configuration_export_api_v1_admin_quality_cost_per_event_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TrendWindowDays","default":30}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostByConfigurationExport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/cost-per-event":{"get":{"tags":["admin-quality"],"summary":"Cost Per Event","description":"Scraper AI spend per golden event — lifetime, 7/30 days, daily trend; days=0 is all time.","operationId":"cost_per_event_api_v1_admin_quality_cost_per_event_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":3650,"minimum":0,"default":90,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostPerEventReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/scraper-versions/changes":{"get":{"tags":["admin-quality"],"summary":"Scraper Version Changes","description":"The days a new scraper version first ran — every trend's markers; days=0 is all time.","operationId":"scraper_version_changes_api_v1_admin_quality_scraper_versions_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":3650,"minimum":0,"default":30,"title":"Days"}},{"name":"dimension","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VersionDimension","default":"version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionChangesReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/scraper-versions":{"get":{"tags":["admin-quality"],"summary":"Scraper Versions","description":"Story 19.63: quality and cost per version of the scraper that ran, and the days each version began.","operationId":"scraper_versions_api_v1_admin_quality_scraper_versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TrendWindowDays","default":30}},{"name":"dimension","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VersionDimension","default":"version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/scraper-versions/compare":{"get":{"tags":["admin-quality"],"summary":"Scraper Versions Compare","description":"Any two versions side by side: failure rate, events per job, cost per verified event, labelled F1.","operationId":"scraper_versions_compare_api_v1_admin_quality_scraper_versions_compare_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"a","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"A"}},{"name":"b","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"B"}},{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TrendWindowDays","default":30}},{"name":"dimension","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VersionDimension","default":"version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionComparison"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/spend-trend":{"get":{"tags":["admin-quality"],"summary":"Spend Trend","description":"Story 19.40 AC #12: every AI and data-query dollar per day by workflow and vendor; 30/60/90 days.","operationId":"spend_trend_api_v1_admin_quality_spend_trend_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TrendWindowDays","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendTrendReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/url-coverage":{"get":{"tags":["admin-quality"],"summary":"Url Coverage","description":"Ticket-link and artist official-URL coverage, measured now.","operationId":"url_coverage_api_v1_admin_quality_url_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlCoverageReport"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality/venue-coverage":{"get":{"tags":["admin-quality"],"summary":"Venue Coverage","description":"Per-field venue coverage, measured now — Story 18.25 AC #11.","operationId":"venue_coverage_api_v1_admin_quality_venue_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueCoverageReport"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality/zip-cost":{"get":{"tags":["admin-quality"],"summary":"Zip Cost","description":"Monthly cost per discovery ZIP — own AI, a share of shared AI and Google Cloud, and a new-ZIP estimate.","operationId":"zip_cost_api_v1_admin_quality_zip_cost_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipCostReport"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality/recheck/sources":{"get":{"tags":["admin-quality"],"summary":"List Recheck Sources","operationId":"list_recheck_sources_api_v1_admin_quality_recheck_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecheckSourceListResponse"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality/recheck/settings":{"get":{"tags":["admin-quality"],"summary":"Read Recheck Settings","operationId":"read_recheck_settings_api_v1_admin_quality_recheck_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecheckSettingsResponse"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["admin-quality"],"summary":"Update Recheck Settings","operationId":"update_recheck_settings_api_v1_admin_quality_recheck_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecheckSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecheckSettingsResponse"}}}},"422":{"description":"No fields provided","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"502":{"description":"Re-stamp failed","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality/recheck/events/{event_id}":{"get":{"tags":["admin-quality"],"summary":"Read Event Recheck","operationId":"read_event_recheck_api_v1_admin_quality_recheck_events__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRecheckState"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-quality"],"summary":"Update Event Recheck","operationId":"update_event_recheck_api_v1_admin_quality_recheck_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRecheckPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRecheckState"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality/recheck/sources/{slug}":{"patch":{"tags":["admin-quality"],"summary":"Update Recheck Source","operationId":"update_recheck_source_api_v1_admin_quality_recheck_sources__slug__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecheckSourcePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecheckSourceRow"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"409":{"description":"Source terms not cleared","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality-scheduler/runs":{"get":{"tags":["admin-quality"],"summary":"List Runs","operationId":"list_runs_api_v1_admin_quality_scheduler_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityRunListResponse"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/quality-scheduler/settings":{"get":{"tags":["admin-quality"],"summary":"Read Settings","operationId":"read_settings_api_v1_admin_quality_scheduler_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualitySchedulerSettingsResponse"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["admin-quality"],"summary":"Update Settings","operationId":"update_settings_api_v1_admin_quality_scheduler_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualitySchedulerSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualitySchedulerSettingsResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"422":{"description":"No fields provided","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality-scheduler/run":{"post":{"tags":["admin-quality"],"summary":"Run Now","description":"Start one quality pass out of band.","operationId":"run_now_api_v1_admin_quality_scheduler_run_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityRunStartedResponse"}}}},"403":{"description":"Scheduler mode is off OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`).","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"409":{"description":"A quality pass is already running","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"message":{"type":"string"},"run_id":{"type":"string","nullable":true},"trigger":{"type":"string","nullable":true},"acquired_at":{"type":"string","nullable":true}},"type":"object","required":["message"],"title":"RunInFlightDetail"}},"type":"object","required":["detail"],"title":"RunInFlight"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/quality-scheduler/runs/{run_id}":{"get":{"tags":["admin-quality"],"summary":"Read Run","operationId":"read_run_api_v1_admin_quality_scheduler_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityRunView"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/windows":{"post":{"tags":["admin-ab-validation"],"summary":"Create Window","description":"Open a window and register its arms. Every rule is enforced on the request model.","operationId":"create_window_api_v1_admin_ab_validation_windows_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-ab-validation"],"summary":"List Windows","description":"Every comparison window, newest first.","operationId":"list_windows_api_v1_admin_ab_validation_windows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/settings":{"get":{"tags":["admin-ab-validation"],"summary":"Read Settings","description":"The runner's switch, plus the read-only cadence it can never set.","operationId":"read_settings_api_v1_admin_ab_validation_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbValidationSettingsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["admin-ab-validation"],"summary":"Update Settings","description":"Stand the comparison up or down without a redeploy. Returns the row as stored.","operationId":"update_settings_api_v1_admin_ab_validation_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbValidationSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbValidationSettingsResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/ab-validation/windows/{window_id}/close":{"post":{"tags":["admin-ab-validation"],"summary":"Close Window","description":"Stop executing extra arms. AC #8 — the doubled spend ends here.","operationId":"close_window_api_v1_admin_ab_validation_windows__window_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Window Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/windows/{window_id}/extend":{"post":{"tags":["admin-ab-validation"],"summary":"Extend Window","description":"AC #8 — continuing carries a reason onto the record, or it does not happen.","operationId":"extend_window_api_v1_admin_ab_validation_windows__window_id__extend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Window Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowExtendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/windows/{window_id}":{"get":{"tags":["admin-ab-validation"],"summary":"Get Window","description":"One window with its whole arm registry, unavailable arms included.","operationId":"get_window_api_v1_admin_ab_validation_windows__window_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Window Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/verifications/{verification_id}/spot-check":{"post":{"tags":["admin-ab-validation"],"summary":"Record Spot Check","description":"AC #5's degraded path. The source is always `manual_spotcheck`, never upgraded.","operationId":"record_spot_check_api_v1_admin_ab_validation_verifications__verification_id__spot_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"verification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Verification Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbSpotCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbSpotCheckResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/windows/{window_id}/checklist":{"get":{"tags":["admin-ab-validation"],"summary":"Window Checklist","description":"AC #7 — every sign-off criterion; an unevaluated one can never read as passing.","operationId":"window_checklist_api_v1_admin_ab_validation_windows__window_id__checklist_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Window Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbChecklistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/windows/{window_id}/stats":{"get":{"tags":["admin-ab-validation"],"summary":"Window Stats","description":"AC #4 — headline figures and labelled context, one row per registered arm.","operationId":"window_stats_api_v1_admin_ab_validation_windows__window_id__stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Window Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbWindowStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ab-validation/windows/{window_id}/verification":{"get":{"tags":["admin-ab-validation"],"summary":"Window Verification","description":"AC #5 — achieved sample per arm per stratum, and whether it is citable.","operationId":"window_verification_api_v1_admin_ab_validation_windows__window_id__verification_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Window Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbVerificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resolution-replay/estimate":{"post":{"tags":["admin-resolution-replay"],"summary":"Estimate Run","description":"What a run over these settings would touch and cost, before anything starts.","operationId":"estimate_run_api_v1_admin_resolution_replay_estimate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaySettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayEstimate"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resolution-replay/baselines":{"get":{"tags":["admin-resolution-replay"],"summary":"List Baselines","description":"Every catalog snapshot a replay may start from, newest first.","operationId":"list_baselines_api_v1_admin_resolution_replay_baselines_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReplayBaselineRef"},"title":"Response List Baselines Api V1 Admin Resolution Replay Baselines Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-resolution-replay"],"summary":"Take Baseline","description":"Snapshot the golden venue catalog now (R-C: an artifact, never a table).","operationId":"take_baseline_api_v1_admin_resolution_replay_baselines_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayBaselineRef"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resolution-replay/zip-runs":{"get":{"tags":["admin-resolution-replay"],"summary":"List Zip Runs","description":"Recent discovery batches with their replay coverage, plus what is deployed.","operationId":"list_zip_runs_api_v1_admin_resolution_replay_zip_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"window_hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"default":24,"title":"Window Hours"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resolution-replay/runs":{"post":{"tags":["admin-resolution-replay"],"summary":"Start Run","description":"Start a replay in-process (R-E). 409 while one runs; 422 for a judge not built (R-D) or a ZIP-less batch.","operationId":"start_run_api_v1_admin_resolution_replay_runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaySettings"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayRunStarted"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resolution-replay/jobs/{job_id}":{"get":{"tags":["admin-resolution-replay"],"summary":"Get Job Detail","description":"One job: what the live path did, and what the replay decided if a run reached it.","operationId":"get_job_detail_api_v1_admin_resolution_replay_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayJobDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resolution-replay/runs/{run_id}":{"get":{"tags":["admin-resolution-replay"],"summary":"Get Run Status","description":"Progress of one run; a heartbeat older than 120 s reads as `interrupted`.","operationId":"get_run_status_api_v1_admin_resolution_replay_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayRunStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resolution-replay/zip-runs/{batch_id}/jobs":{"get":{"tags":["admin-resolution-replay"],"summary":"List Batch Jobs","description":"Every terminal scrape job in one batch. 404 when no job carries it.","operationId":"list_batch_jobs_api_v1_admin_resolution_replay_zip_runs__batch_id__jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReplayJobRow"},"title":"Response List Batch Jobs Api V1 Admin Resolution Replay Zip Runs  Batch Id  Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/help/terms":{"get":{"tags":["admin-help"],"summary":"Read Admin Help Terms","description":"Help text for the admin console.","operationId":"read_admin_help_terms_api_v1_admin_help_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminHelpTerms"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/resource-usage/ai-requests":{"get":{"tags":["admin-resource-usage"],"summary":"Get Ai Request Spend","description":"Paid AI calls made outside a pipeline run: today, this month, per feature (UTC).","operationId":"get_ai_request_spend_api_v1_admin_resource_usage_ai_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiRequestSpendReport"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/resource-usage":{"get":{"tags":["admin-resource-usage"],"summary":"Get Resource Usage","operationId":"get_resource_usage_api_v1_admin_resource_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"fresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceUsageReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/resource-usage/services":{"get":{"tags":["admin-resource-usage"],"summary":"Get Service Directory","description":"Every outside service, its fixed facts and account email, with no vendor call.","operationId":"get_service_directory_api_v1_admin_resource_usage_services_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceDirectory"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/resource-usage/services/{service_key}/account-email":{"put":{"tags":["admin-resource-usage"],"summary":"Save Service Account Email","description":"Record or clear the email behind one service's account.","operationId":"save_service_account_email_api_v1_admin_resource_usage_services__service_key__account_email_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"service_key","in":"path","required":true,"schema":{"type":"string","title":"Service Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountEmailWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccountEmailSaved"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai-models":{"get":{"tags":["admin-ai-models"],"summary":"Get Ai Models","operationId":"get_ai_models_api_v1_admin_ai_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiModelsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/ai-models/nodes":{"get":{"tags":["admin-ai-models"],"summary":"Get Node Models","operationId":"get_node_models_api_v1_admin_ai_models_nodes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiNodeModelsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/ai-models/nodes/{task}":{"delete":{"tags":["admin-ai-models"],"summary":"Delete Node Models","description":"Revert *task* to its code default.","operationId":"delete_node_models_api_v1_admin_ai_models_nodes__task__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":120,"title":"Task"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiNodeModelTask"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-ai-models"],"summary":"Put Node Models","description":"Replace *task*'s chain; an unregistered task or an unbuildable model is a 422.","operationId":"put_node_models_api_v1_admin_ai_models_nodes__task__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"task","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":120,"title":"Task"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiNodeModelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiNodeModelTask"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai-spend-budget":{"get":{"tags":["admin-ai-spend-budget"],"summary":"Get Budget","operationId":"get_budget_api_v1_admin_ai_spend_budget_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiSpendBudgetView"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["admin-ai-spend-budget"],"summary":"Put Budget","operationId":"put_budget_api_v1_admin_ai_spend_budget_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiSpendBudgetUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiSpendBudgetView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/ai-config":{"get":{"tags":["admin-ai-config"],"summary":"List Agents","operationId":"list_agents_api_v1_admin_ai_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AgentSummary"},"type":"array","title":"Response List Agents Api V1 Admin Ai Config Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/ai-config/{agent_key}/dry-run":{"post":{"tags":["admin-ai-config"],"summary":"Dry Run","operationId":"dry_run_api_v1_admin_ai_config__agent_key__dry_run_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DryRunResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai-config/{agent_key}":{"get":{"tags":["admin-ai-config"],"summary":"Get Agent","operationId":"get_agent_api_v1_admin_ai_config__agent_key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-ai-config"],"summary":"Update Agent","operationId":"update_agent_api_v1_admin_ai_config__agent_key__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai-config/{agent_key}/prompt-preview":{"get":{"tags":["admin-ai-config"],"summary":"Get Prompt Preview","operationId":"get_prompt_preview_api_v1_admin_ai_config__agent_key__prompt_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai-config/{agent_key}/promote":{"post":{"tags":["admin-ai-config"],"summary":"Promote Agent","operationId":"promote_agent_api_v1_admin_ai_config__agent_key__promote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/ai-config/{agent_key}/reset-to-default":{"post":{"tags":["admin-ai-config"],"summary":"Reset To Default","description":"Revert the agent to its ORIGINAL (in-code built-in) prompt — clears prompt_a + prompt_b so the live prompt resolves to DEFAULT_EXTRACTION_TEMPLATE again (and prompt_source stamps 'default').","operationId":"reset_to_default_api_v1_admin_ai_config__agent_key__reset_to_default_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_key","in":"path","required":true,"schema":{"type":"string","title":"Agent Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/liv/greeting":{"get":{"tags":["admin-liv"],"summary":"Get Greeting","operationId":"get_greeting_api_v1_admin_liv_greeting_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivGreetingResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/liv/ingest/confirm":{"post":{"tags":["admin-liv"],"summary":"Post Ingest Confirm","description":"The admin approved the review: the SAME CSV goes through the events importer for real.","operationId":"post_ingest_confirm_api_v1_admin_liv_ingest_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivIngestConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivIngestConfirmResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VenueMatchFoundBody"},{"$ref":"#/components/schemas/VenueNameTakenBody"}],"title":"Response 409 Post Ingest Confirm Api V1 Admin Liv Ingest Confirm Post"}}}},"422":{"description":"`venue_address_unplaceable`: the address is a placeholder or a town's name, so nothing was matched or written. A malformed body is still FastAPI's `detail` list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueAddressUnplaceableBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/liv/turns":{"post":{"tags":["admin-liv"],"summary":"Post Turn","description":"One turn: a rehearsed ingest review when the admin is describing events, else chat.","operationId":"post_turn_api_v1_admin_liv_turns_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivTurnRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LivTurnResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/queue":{"delete":{"tags":["admin-scraper"],"summary":"Clear Scrape Queue","operationId":"clear_scrape_queue_api_v1_admin_scraper_queue_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only clear jobs with this status. Omit to clear all.","title":"Status"},"description":"Only clear jobs with this status. Omit to clear all."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Clear Scrape Queue Api V1 Admin Scraper Queue Delete"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-scraper"],"summary":"Enqueue Scrape Batch","description":"Enqueue a batch of URLs for the worker to scrape one-by-one (unified extraction).","operationId":"enqueue_scrape_batch_api_v1_admin_scraper_queue_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnqueueBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnqueueBatchResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-scraper"],"summary":"List Scrape Jobs","operationId":"list_scrape_jobs_api_v1_admin_scraper_queue_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status (pending|in_progress|completed|failed)","title":"Status"},"description":"Filter by status (pending|in_progress|completed|failed)"},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"url","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"Story 14.1 (QF-009): case-insensitive URL substring filter for recent scrape results.","title":"Url"},"description":"Story 14.1 (QF-009): case-insensitive URL substring filter for recent scrape results."},{"name":"finished","in":"query","required":false,"schema":{"type":"boolean","description":"QF-030: when true, return the last `limit` FINISHED jobs (status completed OR failed) ordered by most-recently-finished — the Scraper-Quality snapshot window. Takes precedence over `status`.","default":false,"title":"Finished"},"description":"QF-030: when true, return the last `limit` FINISHED jobs (status completed OR failed) ordered by most-recently-finished — the Scraper-Quality snapshot window. Takes precedence over `status`."},{"name":"active","in":"query","required":false,"schema":{"type":"boolean","description":"When true, return queued work — status pending OR in_progress, in_progress first then newest. Cannot be combined with `finished` or `status` (422).","default":false,"title":"Active"},"description":"When true, return queued work — status pending OR in_progress, in_progress first then newest. Cannot be combined with `finished` or `status` (422)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/cost-spike":{"get":{"tags":["admin-scraper"],"summary":"Get Cost Spike","description":"The cost-spike thresholds and cooldown (FR-P2-0323); both thresholds blank = the alert is off.","operationId":"get_cost_spike_api_v1_admin_scraper_cost_spike_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostSpikeSettings"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["admin-scraper"],"summary":"Put Cost Spike","description":"Persist the thresholds and cooldown; blank both thresholds to switch the alert off without a deploy.","operationId":"put_cost_spike_api_v1_admin_scraper_cost_spike_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostSpikeThresholds"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostSpikeSettings"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/quality-stats":{"get":{"tags":["admin-scraper"],"summary":"Get Quality Stats","description":"The quality trends over every finished job in a 30/60/90-day window (FR-P2-0322, DBT-3).","operationId":"get_quality_stats_api_v1_admin_scraper_quality_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TrendWindowDays","default":30}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityStatsReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/site-drift":{"get":{"tags":["admin-scraper"],"summary":"Get Site Drift","description":"Each site's drift state, the honest metric and the read-only guards (FR-P2-0345). No write route exists.","operationId":"get_site_drift_api_v1_admin_scraper_site_drift_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteDriftOverview"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/worker/status":{"get":{"tags":["admin-scraper"],"summary":"Get Worker Status","description":"Return the current state of the in-process scrape worker + the persisted desired-state flag.","operationId":"get_worker_status_api_v1_admin_scraper_worker_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/queue/counts":{"get":{"tags":["admin-scraper"],"summary":"Queue Counts","description":"Total row counts per status — used by the UI to show truncation.","operationId":"queue_counts_api_v1_admin_scraper_queue_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"integer"},"type":"object","title":"Response Queue Counts Api V1 Admin Scraper Queue Counts Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/scrape/preview":{"post":{"tags":["admin-scraper"],"summary":"Scrape Content Preview Only","description":"Fetch and parse one URL (no AI, no DB); a ticked render forces one through the render service (19.11 Q1).","operationId":"scrape_content_preview_only_api_v1_admin_scraper_scrape_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapePreviewResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/scrape/events":{"post":{"tags":["admin-scraper"],"summary":"Scrape Events Legacy","operationId":"scrape_events_legacy_api_v1_admin_scraper_scrape_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedScrapeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/scrape":{"post":{"tags":["admin-scraper"],"summary":"Scrape Unified","description":"Unified scrape: extract venue + events + artists from any URL in one call.","operationId":"scrape_unified_api_v1_admin_scraper_scrape_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","description":"If true, do not write to Supabase; return AI extraction only.","default":false,"title":"Dry Run"},"description":"If true, do not write to Supabase; return AI extraction only."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedScrapeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/scrape/venues":{"post":{"tags":["admin-scraper"],"summary":"Scrape Venue Legacy","operationId":"scrape_venue_legacy_api_v1_admin_scraper_scrape_venues_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedScrapeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/worker/start":{"post":{"tags":["admin-scraper"],"summary":"Start Worker Endpoint","description":"Start the worker and clear the persisted kill switch so the next boot auto-starts it.","operationId":"start_worker_endpoint_api_v1_admin_scraper_worker_start_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkerStartRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerStartResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/worker/stop":{"post":{"tags":["admin-scraper"],"summary":"Stop Worker Endpoint","description":"Persist worker_enabled=false, then stop. 503 if the flag cannot be written — worker left running.","operationId":"stop_worker_endpoint_api_v1_admin_scraper_worker_stop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerStatusResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/queue/{job_id}":{"delete":{"tags":["admin-scraper"],"summary":"Delete Scrape Job","operationId":"delete_scrape_job_api_v1_admin_scraper_queue__job_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Scrape Job Api V1 Admin Scraper Queue  Job Id  Delete"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-scraper"],"summary":"Get Scrape Job","operationId":"get_scrape_job_api_v1_admin_scraper_queue__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Scrape Job Api V1 Admin Scraper Queue  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/jobs/{job_id}/cost":{"get":{"tags":["admin-scraper"],"summary":"Get Job Cost","description":"What one scrape job cost, read from the spend record (FR-P2-0323).","operationId":"get_job_cost_api_v1_admin_scraper_jobs__job_id__cost_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCostLine"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/jobs/{job_id}/run":{"get":{"tags":["admin-scraper"],"summary":"Get Job Run","description":"One scrape run step by step: steps, retries and why, cost, trace link (FR-P2-0318).","operationId":"get_job_run_api_v1_admin_scraper_jobs__job_id__run_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRunView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/queue/{job_id}/rescrape":{"post":{"tags":["admin-scraper"],"summary":"Rescrape Scrape Job","description":"Queue the job at the FRONT and return at once (Q-19-340). See CLAUDE.md § scraper.py.","operationId":"rescrape_scrape_job_api_v1_admin_scraper_queue__job_id__rescrape_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescrapeQueuedResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/external-events/nearby-preview":{"get":{"tags":["admin-external-events"],"summary":"Nearby Events Preview","description":"Return raw JSON from Ticketmaster Discovery and/or Eventbrite search. Does not read or write the Supabase events table.","operationId":"nearby_events_preview_api_v1_admin_external_events_nearby_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip_code","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":20,"description":"Postal code (e.g. US ZIP)","title":"Zip Code"},"description":"Postal code (e.g. US ZIP)"},{"name":"provider","in":"query","required":false,"schema":{"enum":["ticketmaster","eventbrite","both"],"type":"string","description":"Which upstream API to call","default":"ticketmaster","title":"Provider"},"description":"Which upstream API to call"},{"name":"country_code","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"Ticketmaster countryCode (ISO 3166 alpha-2)","default":"US","title":"Country Code"},"description":"Ticketmaster countryCode (ISO 3166 alpha-2)"},{"name":"ticketmaster_upcoming_only","in":"query","required":false,"schema":{"type":"boolean","description":"If true, only events starting on/after now (UTC). Turn off if Ticketmaster returns zero rows.","default":true,"title":"Ticketmaster Upcoming Only"},"description":"If true, only events starting on/after now (UTC). Turn off if Ticketmaster returns zero rows."},{"name":"include_eventbrite_org_events","in":"query","required":false,"schema":{"type":"boolean","description":"If true and EVENTBRITE_ORGANIZATION_ID is set, also list that org's events (no ZIP filter).","default":false,"title":"Include Eventbrite Org Events"},"description":"If true and EVENTBRITE_ORGANIZATION_ID is set, also list that org's events (no ZIP filter)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Nearby Events Preview Api V1 Admin External Events Nearby Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/discovery/run":{"post":{"tags":["admin-discovery"],"summary":"Run Discovery","description":"Discover venues and events near a ZIP code; a pass past the answer budget is a 202 (P2-BUG-1464).","operationId":"run_discovery_api_v1_admin_discovery_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryRunResponse"}}}},"202":{"description":"The pass outlasted the answer budget and carries on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryRunAccepted"}}}},"409":{"description":"Armed (DISCOVERY_LIVENESS_RECLAIM=on), a live discovery pass holds the run lock."},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/discovery/status/{batch_id}":{"get":{"tags":["admin-discovery"],"summary":"Discovery Status","description":"Return the scrape job statuses for a discovery batch.","operationId":"discovery_status_api_v1_admin_discovery_status__batch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/notifications":{"get":{"tags":["admin-notifications"],"summary":"List Notifications","operationId":"list_notifications_api_v1_admin_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Notifications Api V1 Admin Notifications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/notifications/{notification_id}":{"delete":{"tags":["admin-notifications"],"summary":"Delete Notification","operationId":"delete_notification_api_v1_admin_notifications__notification_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Notification Api V1 Admin Notifications  Notification Id  Delete"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/notifications/{notification_id}/read":{"put":{"tags":["admin-notifications"],"summary":"Mark Notification Read","operationId":"mark_notification_read_api_v1_admin_notifications__notification_id__read_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mark Notification Read Api V1 Admin Notifications  Notification Id  Read Put"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/zip-targets":{"get":{"tags":["admin-scraper"],"summary":"List Zip Targets","operationId":"list_zip_targets_api_v1_admin_scraper_zip_targets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ZipTargetRead"},"type":"array","title":"Response List Zip Targets Api V1 Admin Scraper Zip Targets Get"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-scraper"],"summary":"Create Zip Target","operationId":"create_zip_target_api_v1_admin_scraper_zip_targets_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipTargetCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipTargetRead"}}}},"409":{"description":"ZIP already targeted","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"502":{"description":"Insert returned no row","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/scraper/zip-targets/{zip}":{"delete":{"tags":["admin-scraper"],"summary":"Delete Zip Target","operationId":"delete_zip_target_api_v1_admin_scraper_zip_targets__zip__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","title":"Zip"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"ZIP target not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-scraper"],"summary":"Update Zip Target","operationId":"update_zip_target_api_v1_admin_scraper_zip_targets__zip__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","title":"Zip"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipTargetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipTargetRead"}}}},"404":{"description":"ZIP target not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/scraper/zip-targets/{zip}/last-run":{"get":{"tags":["admin-scraper"],"summary":"Get Zip Last Run","description":"Story 7.7 AC #4 — per-ZIP last-run details, fetched lazily on modal open.","operationId":"get_zip_last_run_api_v1_admin_scraper_zip_targets__zip__last_run_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","title":"Zip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipTargetLastRun"}}}},"404":{"description":"ZIP target not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/zip-requests/counts":{"get":{"tags":["admin-scraper"],"summary":"Count Zip Requests","description":"Every tab's count, with no account on the wire: the admin rail's badge.","operationId":"count_zip_requests_api_v1_admin_zip_requests_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipRequestCounts"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/zip-requests":{"get":{"tags":["admin-scraper"],"summary":"List Zip Requests","description":"One tab's requested ZIPs, oldest ask first, with every tab's count.","operationId":"list_zip_requests_api_v1_admin_zip_requests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ZipRequestState","default":"waiting"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminZipRequestList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/zip-requests/{zip}/add":{"post":{"tags":["admin-scraper"],"summary":"Add Zip Request","description":"Enable a waiting or set-aside ZIP; 404 when nobody asked for it, 409 when it is already added.","operationId":"add_zip_request_api_v1_admin_zip_requests__zip__add_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipRequestDecision"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/zip-requests/{zip}/not-now":{"post":{"tags":["admin-scraper"],"summary":"Not Now Zip Request","description":"Set a waiting ZIP aside; 404 when nobody asked for it, 409 when it was already decided.","operationId":"not_now_zip_request_api_v1_admin_zip_requests__zip__not_now_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"zip","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZipRequestDecision"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-revalidation":{"get":{"tags":["admin-quality"],"summary":"List Venue Revalidation","description":"AC #14 — per-venue state, soonest due first, plus the two things a row cannot show.","operationId":"list_venue_revalidation_api_v1_admin_venue_revalidation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"disabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disabled"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Match venues whose NAME contains this, case-insensitively.","title":"Q"},"description":"Match venues whose NAME contains this, case-insensitively."},{"name":"overdue","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true = due time has passed; false = not yet due, INCLUDING a row never scheduled (NULL due time). Omit for both.","title":"Overdue"},"description":"true = due time has passed; false = not yet due, INCLUDING a row never scheduled (NULL due time). Omit for both."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueRevalidationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-revalidation/settings":{"get":{"tags":["admin-quality"],"summary":"Read Venue Revalidation Settings","description":"AC #14's global switch, interval and cap — as stored, and as the environment has narrowed them.","operationId":"read_venue_revalidation_settings_api_v1_admin_venue_revalidation_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueRevalidationSettingsResponse"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["admin-quality"],"summary":"Update Venue Revalidation Settings","operationId":"update_venue_revalidation_settings_api_v1_admin_venue_revalidation_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueRevalidationSettingsPatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueRevalidationSettingsResponse"}}}},"422":{"description":"No fields provided","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"502":{"description":"Re-stamp failed","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venue-revalidation/{venue_id}/{source_id}":{"patch":{"tags":["admin-quality"],"summary":"Set Venue Revalidation","description":"The PER-VENUE switch — state in a row, not an env var, so it survives a redeploy and needs no deploy to flip.","operationId":"set_venue_revalidation_api_v1_admin_venue_revalidation__venue_id___source_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueRevalidationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueRevalidationRow"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dedup-settings":{"get":{"tags":["admin-quality"],"summary":"Read Dedup Settings","description":"Every entity's stored bands, plus its scorer's read-only emission floor.","operationId":"read_dedup_settings_api_v1_admin_dedup_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedupSettingsResponse"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/dedup-settings/{entity_type}":{"patch":{"tags":["admin-quality"],"summary":"Update Dedup Settings","description":"Tune ONE entity's bands. The pair is validated as a set, never per field.","operationId":"update_dedup_settings_api_v1_admin_dedup_settings__entity_type__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_type","in":"path","required":true,"schema":{"type":"string","title":"Entity Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedupSettingsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedupSettingsResponse"}}}},"404":{"description":"Unknown entity type","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"422":{"description":"Invalid band pair","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"503":{"description":"Admin client unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","title":"Detail"}},"required":["detail"],"title":"ErrorDetail"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}}},"/api/v1/admin/analytics-settings":{"get":{"tags":["admin-analytics"],"summary":"Read Analytics Settings","operationId":"read_analytics_settings_api_v1_admin_analytics_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSettingsResponse"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["admin-analytics"],"summary":"Update Analytics Settings","operationId":"update_analytics_settings_api_v1_admin_analytics_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSettingsResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/analytics":{"get":{"tags":["admin-analytics"],"summary":"Read Admin Analytics","operationId":"read_admin_analytics_api_v1_admin_analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AnalyticsPeriod","default":"30"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAnalyticsReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/analytics/areas":{"get":{"tags":["admin-analytics"],"summary":"Search Admin Analytics Areas","operationId":"search_admin_analytics_areas_api_v1_admin_analytics_areas_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AnalyticsPeriod","default":"30"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"","title":"Q"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"To"}},{"name":"series","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Series"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsAreaSearch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users":{"get":{"tags":["admin-users"],"summary":"List Users","description":"Paginated People-page roster: search, sort, role filter, and admin_count.","operationId":"list_users_api_v1_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["display_name","email","created_at","role"],"type":"string","default":"display_name","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","default":"asc"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}],"title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserPage"}}}},"503":{"description":"admin_unavailable / roles_unresolved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}":{"delete":{"tags":["admin-users"],"summary":"Delete User Account","description":"Delete an account from the People page.","operationId":"delete_user_account_api_v1_admin_users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccountDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccountDeleteResult"}}}},"403":{"description":"self_delete_denied OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"409":{"description":"email_mismatch / last_admin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"500":{"description":"deletion_failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-users"],"summary":"Get User Detail","description":"One person's whole profile, for the People detail modal (FR-P2-0248).","operationId":"get_user_detail_api_v1_admin_users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetail"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/demote":{"post":{"tags":["admin-users"],"summary":"Demote User","description":"Remove admin access (AC #6–#8).","operationId":"demote_user_api_v1_admin_users__user_id__demote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DemoteRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeResult"}}}},"400":{"description":"already_admin / not_admin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"403":{"description":"self_role_change_denied (AC #5, locked body) OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"409":{"description":"last_admin (AC #7, locked body)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/roles/{role}/revoke-preview":{"get":{"tags":["admin-users"],"summary":"Preview Role Revocation","description":"AC #14 — the blast radius, read BEFORE the admin confirms. A pure read.","operationId":"preview_role_revocation_api_v1_admin_users__user_id__roles__role__revoke_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"role","in":"path","required":true,"schema":{"enum":["venue","artist","admin"],"type":"string","title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRevokePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/promote":{"post":{"tags":["admin-users"],"summary":"Promote User","description":"Grant admin. Mutation is the attributing RPC; notify is best-effort BackgroundTasks.","operationId":"promote_user_api_v1_admin_users__user_id__promote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeResult"}}}},"400":{"description":"already_admin / not_admin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"403":{"description":"self_role_change_denied (AC #5, locked body) OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"409":{"description":"last_admin (AC #7, locked body)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/roles/{role}/revoke":{"post":{"tags":["admin-users"],"summary":"Revoke Role","description":"Story 22.12 (FR-P2-0506, FR-P2-0515) — the role-wide revocation cascade.","operationId":"revoke_role_api_v1_admin_users__user_id__roles__role__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"role","in":"path","required":true,"schema":{"enum":["venue","artist","admin"],"type":"string","title":"Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRevocationResponse"}}}},"400":{"description":"already_admin / not_admin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"403":{"description":"self_role_change_denied (AC #5, locked body) OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"409":{"description":"last_admin (AC #7, locked body)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/role-history":{"get":{"tags":["admin-users"],"summary":"Role History","description":"AC #19 — a pure admin read; 22.13's disclosed residual, closed here.","operationId":"role_history_api_v1_admin_users__user_id__role_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/password-reset":{"post":{"tags":["admin-users"],"summary":"Send Password Reset","description":"Story 24.15 (FR-P2-0813): email the person the same reset link they could ask for.","operationId":"send_password_reset_api_v1_admin_users__user_id__password_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPasswordResetResult"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"409":{"description":"no_email / no_password","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"429":{"description":"too_soon / email_rate_limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend or identity service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/analytics-internal":{"put":{"tags":["admin-users"],"summary":"Set Analytics Internal","description":"Story 26.3 (NEWQ-26.14-B): mark or unmark a tester; answers the refreshed profile.","operationId":"set_analytics_internal_api_v1_admin_users__user_id__analytics_internal_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsInternalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetail"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/users/{user_id}/set-role":{"post":{"tags":["admin-users"],"summary":"Set User Role","description":"Admin-direct role set on the non-admin lateral axis (BUG-099).","operationId":"set_user_role_api_v1_admin_users__user_id__set_role_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeResult"}}}},"403":{"description":"self_role_change_denied (locked body) OR: A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"404":{"description":"target_not_found / entity_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"409":{"description":"last_admin (locked body)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"invalid_role","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}}}}},"/api/v1/admin/users/{user_id}/sign-in":{"get":{"tags":["admin-users"],"summary":"Sign In Activity","description":"Story 24.15 (FR-P2-0812): whether they are signed in, how, and recent account changes.","operationId":"sign_in_activity_api_v1_admin_users__user_id__sign_in_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSignInActivity"}}}},"404":{"description":"target_not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"503":{"description":"Admin backend unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChangeErrorBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/subscriptions/past-due":{"get":{"tags":["admin-subscriptions"],"summary":"List Past Due","description":"AC #6 — the dunning worklist, oldest subscription first.","operationId":"list_past_due_api_v1_admin_subscriptions_past_due_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPastDuePage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/subscriptions/{entity_kind}/{entity_id}":{"get":{"tags":["admin-subscriptions"],"summary":"Get Entity Subscription","description":"AC #1–#3 — status, derived allowance and every owner.","operationId":"get_entity_subscription_api_v1_admin_subscriptions__entity_kind___entity_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ManagedEntityKind"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEntitySubscription"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/subscriptions/{entity_kind}/{entity_id}/comp":{"post":{"tags":["admin-subscriptions"],"summary":"Grant Comp Subscription","description":"AC #4 — a real, declared comp at Stripe on the chosen plan. 409 while the entity still bills.","operationId":"grant_comp_subscription_api_v1_admin_subscriptions__entity_kind___entity_id__comp_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ManagedEntityKind"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSubscriptionCompRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSubscriptionActionResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/subscriptions/{entity_kind}/{entity_id}/revoke":{"post":{"tags":["admin-subscriptions"],"summary":"Revoke Subscription","description":"AC #5 — cancel now, with the confirm step's reason.","operationId":"revoke_subscription_api_v1_admin_subscriptions__entity_kind___entity_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity_kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ManagedEntityKind"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSubscriptionRevokeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSubscriptionActionResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/invites":{"get":{"tags":["admin-invites"],"summary":"List Pending Invites","description":"Every issuance record, any status (AC #8's audit trail, rendered in the console).","operationId":"list_pending_invites_api_v1_admin_invites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInvitePage"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-invites"],"summary":"Issue Invite","description":"Issue a single-use admin invite. A 409 names the pending address (AC #1).","operationId":"issue_invite_api_v1_admin_invites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteIssueResult"}}}},"409":{"description":"an invite is already pending for this address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteErrorBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/invites/{invite_id}":{"delete":{"tags":["admin-invites"],"summary":"Revoke Invite","description":"Revoke a `pending` invite (AC #11). An already-accepted one is untouched.","operationId":"revoke_invite_api_v1_admin_invites__invite_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"no pending invite matches that id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminInviteErrorBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/match-choice":{"post":{"tags":["admin-venues"],"summary":"Choose Admin Venue Match","description":"Story 25.23 — use the existing venue, or create the checked one anyway.","operationId":"choose_admin_venue_match_api_v1_admin_venues_match_choice_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueMatchChoice"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueChoiceResult"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VenueMatchFoundBody"},{"$ref":"#/components/schemas/VenueNameTakenBody"}],"title":"Response 409 Choose Admin Venue Match Api V1 Admin Venues Match Choice Post"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues":{"post":{"tags":["admin-venues"],"summary":"Create Admin Venue","operationId":"create_admin_venue_api_v1_admin_venues_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueRead"}}}},"409":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VenueMatchFoundBody"},{"$ref":"#/components/schemas/VenueNameTakenBody"}],"title":"Response 409 Create Admin Venue Api V1 Admin Venues Post"}}},"description":"Conflict"},"422":{"description":"`venue_address_unplaceable`: the address is a placeholder or a town's name, so nothing was matched or written. A malformed body is still FastAPI's `detail` list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueAddressUnplaceableBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}}},"get":{"tags":["admin-venues"],"summary":"List Admin Venues","description":"One page of the whole filtered catalog, sorted by the database across every page.","operationId":"list_admin_venues_api_v1_admin_venues_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["scraper","venue-owner-claim","admin-manual"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"zip","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip"}},{"name":"claim_status","in":"query","required":false,"schema":{"anyOf":[{"enum":["claimed","pending","unclaimed"],"type":"string"},{"type":"null"}],"title":"Claim Status"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AdminVenueSort","default":"created_at"}},{"name":"sort_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","default":"desc"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/export":{"get":{"tags":["admin-venues"],"summary":"Export Admin Venues","description":"QF-028: download all venues as a CSV file.","operationId":"export_admin_venues_api_v1_admin_venues_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues/website-health":{"get":{"tags":["admin-venues"],"summary":"Get Admin Venue Website Health","description":"Story 19.34 AC #11 — whether the stale-website loop repairs, and whether it repairs wrongly. Before `/{venue_id}`.","operationId":"get_admin_venue_website_health_api_v1_admin_venues_website_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWebsiteHealth"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues/import":{"post":{"tags":["admin-venues"],"summary":"Import Admin Venues","description":"QF-028: bulk-import venues from a raw CSV body (Content-Type: text/csv).","operationId":"import_admin_venues_api_v1_admin_venues_import_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues/import/resolved":{"post":{"tags":["admin-venues"],"summary":"Import Admin Venues Resolved","description":"Story 25.23 (OD-4): import with the admin's answer for each line the rehearsal matched.","operationId":"import_admin_venues_resolved_api_v1_admin_venues_import_resolved_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvVenueImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues/merge":{"post":{"tags":["admin-venues"],"summary":"Merge Admin Venues","description":"Story 7.12 (FR-076) — merge a duplicate venue into the survivor (kept, id retained); the victim is hard-deleted after every child FK is re-pointed inside one atomic RPC.","operationId":"merge_admin_venues_api_v1_admin_venues_merge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues/merge/dry-run":{"post":{"tags":["admin-venues"],"summary":"Merge Admin Venues Dry Run","description":"Story 18.15 (FR-P2-0214) AC #10 — what a venue merge WOULD do.","operationId":"merge_admin_venues_dry_run_api_v1_admin_venues_merge_dry_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueMergeDryRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueMergeDryRunResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues/import/rehearse":{"post":{"tags":["admin-venues"],"summary":"Rehearse Admin Venues Import","description":"Story 25.23 (OD-4): every check, nothing written, each new line's existing-venue match shown.","operationId":"rehearse_admin_venues_import_api_v1_admin_venues_import_rehearse_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venues/{venue_id}/impact":{"get":{"tags":["admin-venues"],"summary":"Admin Venue Delete Impact","description":"Blast-radius preview powering the web delete-confirmation dialog (mirrors the admin-artist impact endpoint).","operationId":"admin_venue_delete_impact_api_v1_admin_venues__venue_id__impact_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueDeleteImpact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}/owner":{"post":{"tags":["admin-venues"],"summary":"Assign Admin Venue Owner","operationId":"assign_admin_venue_owner_api_v1_admin_venues__venue_id__owner_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueOwnerAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueOwnerResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-venues"],"summary":"Get Admin Venue Owners","operationId":"get_admin_venue_owners_api_v1_admin_venues__venue_id__owner_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueOwnersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}":{"delete":{"tags":["admin-venues"],"summary":"Delete Admin Venue","description":"HARD delete (mirrors delete_admin_artist — plain cascade delete, no audit row, no RPC).","operationId":"delete_admin_venue_api_v1_admin_venues__venue_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-venues"],"summary":"Get Admin Venue","description":"FR-080 + Story 18.61 AC #6 — the write-response read plus assigned types; the LIST stays narrow. See schemas/admin/CLAUDE.md § AdminVenueSummary.","operationId":"get_admin_venue_api_v1_admin_venues__venue_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueDetailRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-venues"],"summary":"Update Admin Venue","operationId":"update_admin_venue_api_v1_admin_venues__venue_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}/audience":{"get":{"tags":["admin-venues"],"summary":"Get Admin Venue Audience","description":"Story 26.12 AC #7 — the owner card's report for any venue, read-only; 404 for no such venue.","operationId":"get_admin_venue_audience_api_v1_admin_venues__venue_id__audience_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}},{"name":"period","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AudiencePeriodChoice","description":"The period every number covers.","default":"90_days"},"description":"The period every number covers."},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's first day, local to the entity's zone.","title":"Start"},"description":"A custom period's first day, local to the entity's zone."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's last day, local to the entity's zone.","title":"End"},"description":"A custom period's last day, local to the entity's zone."},{"name":"baseline","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Any day of the month growth is compared with.","title":"Baseline"},"description":"Any day of the month growth is compared with."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerAudienceReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}/gallery":{"get":{"tags":["admin-venues"],"summary":"List Admin Venue Gallery","description":"The ONE shared pool an admin and the owner both manage (OPEN_QUESTIONS Q-16).","operationId":"list_admin_venue_gallery_api_v1_admin_venues__venue_id__gallery_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response List Admin Venue Gallery Api V1 Admin Venues  Venue Id  Gallery Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}/merge-candidates":{"get":{"tags":["admin-venues"],"summary":"List Admin Venue Merge Candidates","description":"GitHub #93 — the merge tool's duplicates for one venue: likely ones, or every name match.","operationId":"list_admin_venue_merge_candidates_api_v1_admin_venues__venue_id__merge_candidates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}},{"name":"mode","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MergeCandidateMode","default":"search"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeCandidatePage_AdminVenueSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}/gallery/{image_id}":{"delete":{"tags":["admin-venues"],"summary":"Remove Admin Venue Gallery Photo","description":"Admin removes any pooled picture, the owner's included, freeing its slot (Q-16).","operationId":"remove_admin_venue_gallery_photo_api_v1_admin_venues__venue_id__gallery__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Remove Admin Venue Gallery Photo Api V1 Admin Venues  Venue Id  Gallery  Image Id  Delete"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/merge/restore/{snapshot_id}":{"post":{"tags":["admin-venues"],"summary":"Restore Admin Venue Merge","description":"Story 18.15 AC #11 / ADR-0004 §D27 7c — undo one executed venue merge.","operationId":"restore_admin_venue_merge_api_v1_admin_venues_merge_restore__snapshot_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueMergeRestoreResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}/website/revert":{"post":{"tags":["admin-venues"],"summary":"Revert Admin Venue Website","description":"Story 19.34 — undo the stale-website step's automatic website write; 409 when there is nothing to undo.","operationId":"revert_admin_venue_website_api_v1_admin_venues__venue_id__website_revert_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueDetailRead"}}}},"409":{"description":"Nothing to undo"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venues/{venue_id}/cover-image":{"post":{"tags":["admin-venues"],"summary":"Upload Admin Venue Cover","description":"BUG-111 — admin cover-image upload.","operationId":"upload_admin_venue_cover_api_v1_admin_venues__venue_id__cover_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","title":"Venue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/events":{"post":{"tags":["admin-events"],"summary":"Create Admin Event","description":"Create an admin-authored event against a validated venue.","operationId":"create_admin_event_api_v1_admin_events_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEventCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEventRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-events"],"summary":"List Admin Events","description":"One page of the whole filtered catalog, sorted by the database across every page.","operationId":"list_admin_events_api_v1_admin_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["scraper","venue-owner-claim","admin-manual","artist-owner-claim"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"zip","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AdminEventSort","default":"start_time"}},{"name":"sort_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","default":"desc"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEventListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/events/recurring":{"post":{"tags":["admin-events"],"summary":"Create Admin Recurring Events","description":"Materialize N independent event rows from one event definition, with all occurrence date math done server-side.","operationId":"create_admin_recurring_events_api_v1_admin_events_recurring_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRecurringEventCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRecurringEventsResponse"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/events/export":{"get":{"tags":["admin-events"],"summary":"Export Admin Events","description":"QF-028: download all events as a CSV file. All DB columns included; jsonb/array columns are JSON-encoded so they round-trip on re-import.","operationId":"export_admin_events_api_v1_admin_events_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/events/import":{"post":{"tags":["admin-events"],"summary":"Import Admin Events","description":"QF-028: bulk-import events from a raw CSV body (Content-Type: text/csv).","operationId":"import_admin_events_api_v1_admin_events_import_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/events/import/resolved":{"post":{"tags":["admin-events"],"summary":"Import Admin Events Resolved","description":"FR-125: apply the admin's link/create decisions for missing venues/artists, then import.","operationId":"import_admin_events_resolved_api_v1_admin_events_import_resolved_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvResolvedImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportResult"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VenueMatchFoundBody"},{"$ref":"#/components/schemas/VenueNameTakenBody"}],"title":"Response 409 Import Admin Events Resolved Api V1 Admin Events Import Resolved Post"}}}},"422":{"description":"`venue_address_unplaceable`: the address is a placeholder or a town's name, so nothing was matched or written. A malformed body is still FastAPI's `detail` list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueAddressUnplaceableBody"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/events/merge":{"post":{"tags":["admin-events"],"summary":"Merge Admin Events","description":"Story 7.12 (FR-076) — merge a duplicate event into the survivor (kept, id retained); the victim is hard-deleted after favorites / event_artists / notifications are re-pointed inside one atomic RPC (reminder_dispatch_log is preserved as audit).","operationId":"merge_admin_events_api_v1_admin_events_merge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/events/merge/dry-run":{"post":{"tags":["admin-events"],"summary":"Merge Admin Events Dry Run","description":"Story 18.16 (FR-P2-0213) AC #9 — the merge PLAN, mutating nothing.","operationId":"merge_admin_events_dry_run_api_v1_admin_events_merge_dry_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventMergeDryRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventMergeDryRunResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/events/import/preflight":{"post":{"tags":["admin-events"],"summary":"Preflight Admin Events Import","description":"FR-124: name every venue/artist the file uses that the import cannot resolve alone.","operationId":"preflight_admin_events_import_api_v1_admin_events_import_preflight_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportPreflight"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/events/{event_id}":{"delete":{"tags":["admin-events"],"summary":"Delete Admin Event","operationId":"delete_admin_event_api_v1_admin_events__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-events"],"summary":"Get Admin Event","description":"FR-080 — full admin event read seeding the public detail-page inline admin editor (the public EventDetailResponse omits venue_id / genres).","operationId":"get_admin_event_api_v1_admin_events__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEventRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-events"],"summary":"Update Admin Event","operationId":"update_admin_event_api_v1_admin_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEventUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEventRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/events/{event_id}/series-dates":{"get":{"tags":["admin-events"],"summary":"Get Admin Event Series Dates","description":"FR-P3-0477: the upcoming dates a save on this date may also reach.","operationId":"get_admin_event_series_dates_api_v1_admin_events__event_id__series_dates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSeriesDates"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/events/{event_id}/merge-candidates":{"get":{"tags":["admin-events"],"summary":"List Admin Event Merge Candidates","description":"GitHub #93 — the merge tool's duplicates for one event, closest to its start first.","operationId":"list_admin_event_merge_candidates_api_v1_admin_events__event_id__merge_candidates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"mode","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MergeCandidateMode","default":"search"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"same_venue","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Same Venue"}},{"name":"within_days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":366,"minimum":0},{"type":"null"}],"title":"Within Days"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeCandidatePage_AdminEventRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/events/merge/snapshots/{event_id}":{"get":{"tags":["admin-events"],"summary":"List Admin Event Merge Snapshots","description":"Story 18.16 AC #10 — the pre-merge snapshots taken for *event_id*.","operationId":"list_admin_event_merge_snapshots_api_v1_admin_events_merge_snapshots__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventMergeSnapshotSummary"},"title":"Response List Admin Event Merge Snapshots Api V1 Admin Events Merge Snapshots  Event Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/events/merge/snapshots/{snapshot_id}/restore":{"post":{"tags":["admin-events"],"summary":"Restore Admin Event Merge Snapshot","description":"Story 18.16 AC #10 — put a merged-away event back.","operationId":"restore_admin_event_merge_snapshot_api_v1_admin_events_merge_snapshots__snapshot_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventMergeRestoreResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/events/{event_id}/cover-image":{"post":{"tags":["admin-events"],"summary":"Upload Admin Event Cover","description":"BUG-111 — admin cover-image upload.","operationId":"upload_admin_event_cover_api_v1_admin_events__event_id__cover_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEventRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/promoted-events/":{"get":{"tags":["admin-promoted-events"],"summary":"List Promoted Events","operationId":"list_promoted_events_api_v1_admin_promoted_events__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurationListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-promoted-events"],"summary":"Promote Event","operationId":"promote_event_api_v1_admin_promoted_events__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteEventRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotedEventRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/promoted-events/search":{"get":{"tags":["admin-promoted-events"],"summary":"Search Promotable Events","operationId":"search_promotable_events_api_v1_admin_promoted_events_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickerSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/promoted-events/{promotion_id}/unpromote":{"post":{"tags":["admin-promoted-events"],"summary":"Unpromote Event","operationId":"unpromote_event_api_v1_admin_promoted_events__promotion_id__unpromote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"promotion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Promotion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromotedEventRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists":{"post":{"tags":["admin-artists"],"summary":"Create Admin Artist","operationId":"create_admin_artist_api_v1_admin_artists_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-artists"],"summary":"List Admin Artists","description":"One page of the whole filtered catalog, sorted by the database across every page.","operationId":"list_admin_artists_api_v1_admin_artists_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["scraper","venue-owner-claim","admin-manual"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"claim_status","in":"query","required":false,"schema":{"anyOf":[{"enum":["claimed","pending","unclaimed"],"type":"string"},{"type":"null"}],"title":"Claim Status"}},{"name":"sort_by","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AdminArtistSort","default":"created_at"}},{"name":"sort_dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDirection","default":"desc"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/export":{"get":{"tags":["admin-artists"],"summary":"Export Admin Artists","description":"QF-028: download all artists as a CSV file.","operationId":"export_admin_artists_api_v1_admin_artists_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/artists/import":{"post":{"tags":["admin-artists"],"summary":"Import Admin Artists","description":"QF-028: bulk-import artists from a raw CSV body (Content-Type: text/csv).","operationId":"import_admin_artists_api_v1_admin_artists_import_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvImportResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/artists/merge":{"post":{"tags":["admin-artists"],"summary":"Merge Admin Artists","description":"Story 7.12 (FR-076) — merge a duplicate artist/organizer into the survivor (kept, id retained); the victim is hard-deleted after every child FK is re-pointed inside one atomic RPC.","operationId":"merge_admin_artists_api_v1_admin_artists_merge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/artists/merge/dry-run":{"post":{"tags":["admin-artists"],"summary":"Merge Admin Artists Dry Run","description":"Story 18.17 AC #12 — what an artist merge WOULD do. Mutates nothing.","operationId":"merge_admin_artists_dry_run_api_v1_admin_artists_merge_dry_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistMergeDryRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistMergeDryRunResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/artists/{artist_id}/impact":{"get":{"tags":["admin-artists"],"summary":"Admin Artist Delete Impact","description":"Blast-radius preview powering the web delete-confirmation dialog (AC#9).","operationId":"admin_artist_delete_impact_api_v1_admin_artists__artist_id__impact_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistDeleteImpact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/{artist_id}/owner":{"post":{"tags":["admin-artists"],"summary":"Assign Admin Artist Owner","description":"Story 22.21 (FR-P2-0522) — additive: the account keeps everything it already manages.","operationId":"assign_admin_artist_owner_api_v1_admin_artists__artist_id__owner_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistOwnerAssign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistOwnerResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-artists"],"summary":"Get Admin Artist Owners","operationId":"get_admin_artist_owners_api_v1_admin_artists__artist_id__owner_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistOwnersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/{artist_id}":{"delete":{"tags":["admin-artists"],"summary":"Delete Admin Artist","operationId":"delete_admin_artist_api_v1_admin_artists__artist_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-artists"],"summary":"Get Admin Artist","description":"FR-080 — full admin artist read seeding the public detail-page inline admin editor (the public ArtistDetailResponse omits genres[]).","operationId":"get_admin_artist_api_v1_admin_artists__artist_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-artists"],"summary":"Update Admin Artist","operationId":"update_admin_artist_api_v1_admin_artists__artist_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/{artist_id}/audience":{"get":{"tags":["admin-artists"],"summary":"Get Admin Artist Audience","description":"Story 26.12 AC #7 — the owner card's report for any artist, read-only; 404 for no such artist.","operationId":"get_admin_artist_audience_api_v1_admin_artists__artist_id__audience_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}},{"name":"period","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AudiencePeriodChoice","description":"The period every number covers.","default":"90_days"},"description":"The period every number covers."},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's first day, local to the entity's zone.","title":"Start"},"description":"A custom period's first day, local to the entity's zone."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"A custom period's last day, local to the entity's zone.","title":"End"},"description":"A custom period's last day, local to the entity's zone."},{"name":"baseline","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Any day of the month growth is compared with.","title":"Baseline"},"description":"Any day of the month growth is compared with."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerAudienceReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/{artist_id}/gallery":{"get":{"tags":["admin-artists"],"summary":"List Admin Artist Gallery","description":"The ONE shared pool an admin and the owner both manage (OPEN_QUESTIONS Q-16).","operationId":"list_admin_artist_gallery_api_v1_admin_artists__artist_id__gallery_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response List Admin Artist Gallery Api V1 Admin Artists  Artist Id  Gallery Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/{artist_id}/merge-candidates":{"get":{"tags":["admin-artists"],"summary":"List Admin Artist Merge Candidates","description":"GitHub #93 — the merge tool's duplicates for one artist: likely ones, or every name match.","operationId":"list_admin_artist_merge_candidates_api_v1_admin_artists__artist_id__merge_candidates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}},{"name":"mode","in":"query","required":false,"schema":{"$ref":"#/components/schemas/MergeCandidateMode","default":"search"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeCandidatePage_AdminArtistRead_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/merge/snapshots/{artist_id}":{"get":{"tags":["admin-artists"],"summary":"List Admin Artist Merge Snapshots","description":"Story 18.17 AC #14 — the pre-merge snapshots taken for *artist_id*.","operationId":"list_admin_artist_merge_snapshots_api_v1_admin_artists_merge_snapshots__artist_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArtistMergeSnapshotSummary"},"title":"Response List Admin Artist Merge Snapshots Api V1 Admin Artists Merge Snapshots  Artist Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/{artist_id}/gallery/{image_id}":{"delete":{"tags":["admin-artists"],"summary":"Remove Admin Artist Gallery Photo","description":"Admin removes any pooled picture, the owner's included, freeing its slot (Q-16).","operationId":"remove_admin_artist_gallery_photo_api_v1_admin_artists__artist_id__gallery__image_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}},{"name":"image_id","in":"path","required":true,"schema":{"type":"string","title":"Image Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GalleryImageRead"},"title":"Response Remove Admin Artist Gallery Photo Api V1 Admin Artists  Artist Id  Gallery  Image Id  Delete"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/merge/snapshots/{snapshot_id}/restore":{"post":{"tags":["admin-artists"],"summary":"Restore Admin Artist Merge Snapshot","description":"Story 18.17 AC #14 — put a merged-away artist back.","operationId":"restore_admin_artist_merge_snapshot_api_v1_admin_artists_merge_snapshots__snapshot_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistMergeRestoreResult"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artists/{artist_id}/cover-image":{"post":{"tags":["admin-artists"],"summary":"Upload Admin Artist Cover","description":"QF-032 — admin cover-image upload.","operationId":"upload_admin_artist_cover_api_v1_admin_artists__artist_id__cover_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","title":"Artist Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminArtistRead"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-category-images":{"get":{"tags":["admin-event-category-images"],"summary":"List Category Images","operationId":"list_category_images_api_v1_admin_event_category_images_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EventCategoryImageReadModel"},"type":"array","title":"Response List Category Images Api V1 Admin Event Category Images Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/event-category-images/{event_type}/pool":{"post":{"tags":["admin-event-category-images"],"summary":"Add Category Pool Photo","description":"Add one photo to the category's pool (raw image body — one immediate POST per '+ Add photo' action). 422 at the 10-photo cap (FR-115).","operationId":"add_category_pool_photo_api_v1_admin_event_category_images__event_type__pool_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"path","required":true,"schema":{"type":"string","title":"Event Type"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolPhotoReadModel"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-event-category-images"],"summary":"Get Category Pool","description":"The gallery modal's read (FR-115): full pool + per-photo frozen-pick usage counts + the category's event count (the confirm copy inputs).","operationId":"get_category_pool_api_v1_admin_event_category_images__event_type__pool_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"path","required":true,"schema":{"type":"string","title":"Event Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCategoryPoolReadModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-category-images/{event_type}/re-randomize":{"post":{"tags":["admin-event-category-images"],"summary":"Re Randomize Category","description":"Decision #6 — one bulk call reassigning a fresh random pool pick to EVERY event currently in this category (full reshuffle).","operationId":"re_randomize_category_api_v1_admin_event_category_images__event_type__re_randomize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"path","required":true,"schema":{"type":"string","title":"Event Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReRandomizeReadModel"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-category-images/{event_type}/pool/{photo_id}":{"delete":{"tags":["admin-event-category-images"],"summary":"Remove Category Pool Photo","description":"Atomic single-photo delete + in-use-event repoint (AC #5). 422 when the delete would empty the pool (the FR-115 ≥1 floor); 404 when the photo id is unknown or belongs to a different category.","operationId":"remove_category_pool_photo_api_v1_admin_event_category_images__event_type__pool__photo_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"path","required":true,"schema":{"type":"string","title":"Event Type"}},{"name":"photo_id","in":"path","required":true,"schema":{"type":"integer","title":"Photo Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolRemoveReadModel"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-category-images/{event_type}":{"put":{"tags":["admin-event-category-images"],"summary":"Replace Category Image","description":"Admin-only representative-photo replacement — raw image body, same validation as every other cover upload.","operationId":"replace_category_image_api_v1_admin_event_category_images__event_type__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"path","required":true,"schema":{"type":"string","title":"Event Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCategoryImageReadModel"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-category-images/{event_type}/pool/reset":{"post":{"tags":["admin-event-category-images"],"summary":"Reset Category Pool","description":"'Delete all' per AC #2 — one bulk call that removes every photo EXCEPT the representative (the pool can never reach 0) and repoints affected events atomically.","operationId":"reset_category_pool_api_v1_admin_event_category_images__event_type__pool_reset_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"path","required":true,"schema":{"type":"string","title":"Event Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolResetReadModel"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/genres":{"post":{"tags":["admin-genres"],"summary":"Create Genre","description":"Create a genre. The slug is DERIVED unless one is supplied.","operationId":"create_genre_api_v1_admin_genres_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGenreView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-genres"],"summary":"List Genres","description":"One category's genres, INCLUDING retired ones.","operationId":"list_genres_api_v1_admin_genres_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"The parent category.","title":"Category Id"},"description":"The parent category."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminGenreView"},"title":"Response List Genres Api V1 Admin Genres Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/genres/with-alias":{"post":{"tags":["admin-genres"],"summary":"Create Genre With Alias","description":"Create a genre AND the raw spelling that resolves to it, as ONE act.\n\n🔑 Two client calls left an orphaned public genre when the second failed —\nsee `GenreAdminService.create_with_alias`. Story 18.81 / FR-P2-0263.","operationId":"create_genre_with_alias_api_v1_admin_genres_with_alias_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGenreView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/genres/categories":{"get":{"tags":["admin-genres"],"summary":"List Categories","description":"Every category, active and retired, with its second-level heading.","operationId":"list_categories_api_v1_admin_genres_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Category"},"type":"array","title":"Response List Categories Api V1 Admin Genres Categories Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/genres/{genre_id}/aliases":{"post":{"tags":["admin-genres"],"summary":"Add Alias","description":"Give a genre one more string that resolves to it at ingestion.","operationId":"add_alias_api_v1_admin_genres__genre_id__aliases_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Genre Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreAliasRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGenreView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/genres/{genre_id}":{"delete":{"tags":["admin-genres"],"summary":"Delete Genre","description":"HARD delete. Refused with a readable 409 above zero references.","operationId":"delete_genre_api_v1_admin_genres__genre_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Genre Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-genres"],"summary":"Update Genre","description":"Rename, reorder, retire or restore. The slug never moves.","operationId":"update_genre_api_v1_admin_genres__genre_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Genre Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGenreView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/genres/{genre_id}/aliases/{alias}":{"delete":{"tags":["admin-genres"],"summary":"Remove Alias","description":"Remove one alias. Deleted, never retired — it holds no history.","operationId":"remove_alias_api_v1_admin_genres__genre_id__aliases__alias__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Genre Id"}},{"name":"alias","in":"path","required":true,"schema":{"type":"string","title":"Alias"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/genres/{genre_id}/category":{"put":{"tags":["admin-genres"],"summary":"Reparent Genre","description":"Move a genre to a different category.","operationId":"reparent_genre_api_v1_admin_genres__genre_id__category_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Genre Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenreReparentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGenreView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/genres/categories/{category_id}/label":{"put":{"tags":["admin-genres"],"summary":"Set Second Level Label","description":"Set or clear a category's picker heading.","operationId":"set_second_level_label_api_v1_admin_genres_categories__category_id__label_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecondLevelLabelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/categories":{"get":{"tags":["admin-categories"],"summary":"List Categories","description":"Every category, INCLUDING retired ones.","operationId":"list_categories_api_v1_admin_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminCategoryView"},"type":"array","title":"Response List Categories Api V1 Admin Categories Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-categories"],"summary":"Create Category","description":"Create a category, its emoji and its first stock photo — atomically.","operationId":"create_category_api_v1_admin_categories_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCategoryView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/categories/stock-photo":{"post":{"tags":["admin-categories"],"summary":"Upload First Stock Photo","description":"Upload §D14 precondition ①'s photo BEFORE the category row exists.","operationId":"upload_first_stock_photo_api_v1_admin_categories_stock_photo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label","in":"query","required":true,"schema":{"type":"string","description":"The category NAME being created. The object path is derived from its slug, so the photo lands where the pool will look for it once the row exists.","title":"Label"},"description":"The category NAME being created. The object path is derived from its slug, so the photo lands where the pool will look for it once the row exists."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/categories/{category_id}":{"delete":{"tags":["admin-categories"],"summary":"Delete Category","description":"HARD delete — offered ONLY at zero references, never for `other`.","operationId":"delete_category_api_v1_admin_categories__category_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Category Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-categories"],"summary":"Update Category","description":"Rename, re-icon, reorder, retire or restore. The SLUG NEVER MOVES.","operationId":"update_category_api_v1_admin_categories__category_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"category_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Category Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCategoryView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-tags/groups":{"get":{"tags":["admin-venue-tags"],"summary":"List Groups","description":"Every group, RETIRED ONES INCLUDED, with its value count.","operationId":"list_groups_api_v1_admin_venue_tags_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminVenueTagGroupView"},"type":"array","title":"Response List Groups Api V1 Admin Venue Tags Groups Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-venue-tags"],"summary":"Create Group","description":"Create a group. The slug is DERIVED unless one is supplied.","operationId":"create_group_api_v1_admin_venue_tags_groups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagGroupCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagGroup"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venue-tags/values":{"post":{"tags":["admin-venue-tags"],"summary":"Create Value","description":"Create a value under a group. 🛡️ ADMIN ONLY — the scraper never mints.","operationId":"create_value_api_v1_admin_venue_tags_values_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagValueCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venue-tags/venues/{venue_id}":{"post":{"tags":["admin-venue-tags"],"summary":"Assign Tag","description":"Attach one EXISTING value to one venue.","operationId":"assign_tag_api_v1_admin_venue_tags_venues__venue_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTag"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-tags/groups/{group_id}":{"delete":{"tags":["admin-venue-tags"],"summary":"Delete Group","description":"HARD delete an unused group. Refused when venues still carry its tags.","operationId":"delete_group_api_v1_admin_venue_tags_groups__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-venue-tags"],"summary":"Update Group","description":"Rename / reorder / retire / change select mode.","operationId":"update_group_api_v1_admin_venue_tags_groups__group_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagGroupUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagGroup"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-tags/values/{value_id}":{"delete":{"tags":["admin-venue-tags"],"summary":"Delete Value","description":"Hard-delete at ZERO references; 409 otherwise, naming the venue count.","operationId":"delete_value_api_v1_admin_venue_tags_values__value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-venue-tags"],"summary":"Update Value","description":"Rename / reorder / retire / restore. NO slug edit, NO re-parent.","operationId":"update_value_api_v1_admin_venue_tags_values__value_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagValueUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTagValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-tags/groups/{group_id}/values":{"get":{"tags":["admin-venue-tags"],"summary":"List Values","description":"One group's values, RETIRED ONES INCLUDED, with venue counts.","operationId":"list_values_api_v1_admin_venue_tags_groups__group_id__values_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminVenueTagValueView"},"title":"Response List Values Api V1 Admin Venue Tags Groups  Group Id  Values Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-tags/values/{value_id}/retire":{"post":{"tags":["admin-venue-tags"],"summary":"Retire Value","description":"Retire a value, returning HOW MANY VENUES keep resolving it.","operationId":"retire_value_api_v1_admin_venue_tags_values__value_id__retire_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueTagValueView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-tags/venues/{venue_id}/{tag_value_id}":{"delete":{"tags":["admin-venue-tags"],"summary":"Unassign Tag","description":"Detach one value. An ASSIGNMENT is removable; a VALUE is not.","operationId":"unassign_tag_api_v1_admin_venue_tags_venues__venue_id___tag_value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}},{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-types":{"get":{"tags":["admin-venue-types"],"summary":"List Types","description":"Every type, retired ones included, with the counts Delete reads.","operationId":"list_types_api_v1_admin_venue_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminVenueTypeView"},"type":"array","title":"Response List Types Api V1 Admin Venue Types Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-venue-types"],"summary":"Create Type","description":"Create a type. The slug is derived server-side; the body carries none.","operationId":"create_type_api_v1_admin_venue_types_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTypeCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueType"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/venue-types/venues/{venue_id}":{"post":{"tags":["admin-venue-types"],"summary":"Assign Type","description":"Attach one EXISTING type to one venue. Never mints a vocabulary row.","operationId":"assign_type_api_v1_admin_venue_types_venues__venue_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerVenueTypeAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueVenueType"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-types/{venue_type_id}":{"delete":{"tags":["admin-venue-types"],"summary":"Delete Type","description":"Hard-delete at ZERO references; 409 otherwise, naming the count.","operationId":"delete_type_api_v1_admin_venue_types__venue_type_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Type Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-venue-types"],"summary":"Update Type","description":"Rename / reorder / retire / restore / ratify. `slug` is frozen.","operationId":"update_type_api_v1_admin_venue_types__venue_type_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Type Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueTypeUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VenueType"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-types/{venue_type_id}/retire":{"post":{"tags":["admin-venue-types"],"summary":"Retire Type","description":"Retire a type, returning HOW MANY VENUES keep resolving it.","operationId":"retire_type_api_v1_admin_venue_types__venue_type_id__retire_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Type Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminVenueTypeView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/venue-types/venues/{venue_id}/{venue_type_id}":{"delete":{"tags":["admin-venue-types"],"summary":"Unassign Type","description":"Detach one type. An ASSIGNMENT is removable; a VALUE never is.","operationId":"unassign_type_api_v1_admin_venue_types_venues__venue_id___venue_type_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"venue_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Id"}},{"name":"venue_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Venue Type Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-tags/groups":{"get":{"tags":["admin-artist-tags"],"summary":"List Groups","description":"Every group, retired ones included, with the counts Delete reads.","operationId":"list_groups_api_v1_admin_artist_tags_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminArtistTagGroupView"},"type":"array","title":"Response List Groups Api V1 Admin Artist Tags Groups Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-artist-tags"],"summary":"Create Group","description":"Create a group. `select_mode` defaults to `single`, as the column does.","operationId":"create_group_api_v1_admin_artist_tags_groups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagGroupCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagGroup"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/artist-tags/artists/{artist_id}":{"post":{"tags":["admin-artist-tags"],"summary":"Assign","description":"Attach one existing value to one artist, idempotently.","operationId":"assign_api_v1_admin_artist_tags_artists__artist_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTag"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-tags/groups/{group_id}/values":{"post":{"tags":["admin-artist-tags"],"summary":"Create Value","description":"Create a value — ADMIN ONLY. The scraper may assign, never mint.","operationId":"create_value_api_v1_admin_artist_tags_groups__group_id__values_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagValueCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-artist-tags"],"summary":"List Values","description":"One group's values, retired ones included, each with its artist count.","operationId":"list_values_api_v1_admin_artist_tags_groups__group_id__values_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminArtistTagValueView"},"title":"Response List Values Api V1 Admin Artist Tags Groups  Group Id  Values Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-tags/groups/{group_id}":{"delete":{"tags":["admin-artist-tags"],"summary":"Delete Group","description":"Hard-delete a group at ZERO references. Refused otherwise, by the FK too.","operationId":"delete_group_api_v1_admin_artist_tags_groups__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-artist-tags"],"summary":"Update Group","description":"Rename / reorder / retire / re-mode. A failed `multi -> single` flip is a 409.","operationId":"update_group_api_v1_admin_artist_tags_groups__group_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagGroupUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagGroup"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-tags/values/{value_id}":{"delete":{"tags":["admin-artist-tags"],"summary":"Delete Value","description":"Hard-delete a value at ZERO references; 409 otherwise, naming the count.","operationId":"delete_value_api_v1_admin_artist_tags_values__value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-artist-tags"],"summary":"Update Value","description":"Rename / reorder / retire / restore. `slug` and `group_id` are frozen.","operationId":"update_value_api_v1_admin_artist_tags_values__value_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagValueUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTagValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-tags/artists/{artist_id}/values/{tag_value_id}":{"delete":{"tags":["admin-artist-tags"],"summary":"Unassign","description":"Detach one value. An assignment IS removable.","operationId":"unassign_api_v1_admin_artist_tags_artists__artist_id__values__tag_value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}},{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-types/types":{"get":{"tags":["admin-artist-types"],"summary":"List Types","description":"Every type, retired ones included, with the counts Delete reads.","operationId":"list_types_api_v1_admin_artist_types_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminArtistTypeView"},"type":"array","title":"Response List Types Api V1 Admin Artist Types Types Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-artist-types"],"summary":"Create Type","description":"Create a type. The slug is derived server-side; the body carries none.","operationId":"create_type_api_v1_admin_artist_types_types_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTypeCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTypeValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/artist-types/artists/{artist_id}":{"post":{"tags":["admin-artist-types"],"summary":"Assign Type","description":"Attach one EXISTING type to one artist. Never mints a vocabulary row.","operationId":"assign_type_api_v1_admin_artist_types_artists__artist_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerArtistTypeAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistType"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-types/types/{artist_type_id}/genres":{"post":{"tags":["admin-artist-types"],"summary":"Create Genre","description":"Create a genre under one type — the slug is scoped to that type.","operationId":"create_genre_api_v1_admin_artist_types_types__artist_type_id__genres_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Type Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistGenreCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistGenreValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-artist-types"],"summary":"List Genres","description":"One type's genres, retired ones included, each with its artist count.","operationId":"list_genres_api_v1_admin_artist_types_types__artist_type_id__genres_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Type Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminArtistGenreView"},"title":"Response List Genres Api V1 Admin Artist Types Types  Artist Type Id  Genres Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-types/genres/{genre_id}":{"delete":{"tags":["admin-artist-types"],"summary":"Delete Genre","description":"Hard-delete at ZERO references; 409 otherwise, naming the count.","operationId":"delete_genre_api_v1_admin_artist_types_genres__genre_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Genre Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-artist-types"],"summary":"Update Genre","description":"Rename / reorder / retire / restore / ratify. Slug and parent are frozen.","operationId":"update_genre_api_v1_admin_artist_types_genres__genre_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"genre_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Genre Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistGenreUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistGenreValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-types/types/{artist_type_id}":{"delete":{"tags":["admin-artist-types"],"summary":"Delete Type","description":"Hard-delete at ZERO references; 409 otherwise, naming the count.","operationId":"delete_type_api_v1_admin_artist_types_types__artist_type_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Type Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-artist-types"],"summary":"Update Type","description":"Rename / reorder / retire / restore / ratify. `slug` is frozen.","operationId":"update_type_api_v1_admin_artist_types_types__artist_type_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_type_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Type Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTypeUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtistTypeValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/artist-types/artists/{artist_id}/{artist_type_value_id}":{"delete":{"tags":["admin-artist-types"],"summary":"Unassign Type","description":"Detach one type. An ASSIGNMENT is removable; a VALUE never is.","operationId":"unassign_type_api_v1_admin_artist_types_artists__artist_id___artist_type_value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artist_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Id"}},{"name":"artist_type_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artist Type Value Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-tags/groups":{"get":{"tags":["admin-event-tags"],"summary":"List Groups","description":"Every group, RETIRED ONES INCLUDED, with its value count.","operationId":"list_groups_api_v1_admin_event_tags_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminTagGroupView"},"type":"array","title":"Response List Groups Api V1 Admin Event Tags Groups Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin-event-tags"],"summary":"Create Group","description":"Create a group. The slug is DERIVED unless one is supplied.","operationId":"create_group_api_v1_admin_event_tags_groups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagGroupCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagGroup"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/event-tags/events/{event_id}":{"post":{"tags":["admin-event-tags"],"summary":"Assign Tag","description":"Attach one EXISTING value to one event.","operationId":"assign_tag_api_v1_admin_event_tags_events__event_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTagAssignmentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTag"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-tags/groups/{group_id}/values":{"post":{"tags":["admin-event-tags"],"summary":"Create Value","description":"Create an AUTHORED value under a group.","operationId":"create_value_api_v1_admin_event_tags_groups__group_id__values_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagValueCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-event-tags"],"summary":"List Values","description":"One group's values, RETIRED ONES INCLUDED, with event counts.","operationId":"list_values_api_v1_admin_event_tags_groups__group_id__values_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminTagValueView"},"title":"Response List Values Api V1 Admin Event Tags Groups  Group Id  Values Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-tags/groups/{group_id}":{"delete":{"tags":["admin-event-tags"],"summary":"Delete Group","description":"HARD delete an unused group. Refused when events still carry its tags, or it holds a derived value.","operationId":"delete_group_api_v1_admin_event_tags_groups__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-event-tags"],"summary":"Update Group","description":"Rename / reorder / retire / change select mode.","operationId":"update_group_api_v1_admin_event_tags_groups__group_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagGroupUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagGroup"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-tags/values/{value_id}":{"delete":{"tags":["admin-event-tags"],"summary":"Refuse Delete Value","description":"ALWAYS REFUSES, naming HOW MANY EVENTS reference the value.","operationId":"refuse_delete_value_api_v1_admin_event_tags_values__value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"responses":{"409":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-event-tags"],"summary":"Update Value","description":"Rename / reorder / retire / restore. NO slug edit, NO re-parent.","operationId":"update_value_api_v1_admin_event_tags_values__value_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagValueUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagValue"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-tags/values/{value_id}/retire":{"post":{"tags":["admin-event-tags"],"summary":"Retire Value","description":"Retire a value, returning HOW MANY EVENTS keep resolving it.","operationId":"retire_value_api_v1_admin_event_tags_values__value_id__retire_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Value Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTagValueView"}}}},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/event-tags/events/{event_id}/{tag_value_id}":{"delete":{"tags":["admin-event-tags"],"summary":"Unassign Tag","description":"Detach one value. An ASSIGNMENT is removable; a VALUE is not.","operationId":"unassign_tag_api_v1_admin_event_tags_events__event_id___tag_value_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"tag_value_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Value Id"}}],"responses":{"204":{"description":"Successful Response"},"403":{"description":"A sign-in method added to this account is unconfirmed (`link_confirmation_required`). OR: The account owes the one-time consent screen (`consent_required`)."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["meta"],"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Root  Get"}}}}}}}},"components":{"schemas":{"AbArmContext":{"properties":{"label":{"type":"string","title":"Label","default":"Supporting context — descriptive only. These raw counts are NOT pass/fail evidence and may not substantiate a coverage claim."},"runs":{"type":"integer","title":"Runs","default":0},"urls_attempted":{"type":"integer","title":"Urls Attempted","default":0},"urls_failed":{"type":"integer","title":"Urls Failed","default":0},"failure_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Failure Rate"},"events_extracted":{"type":"integer","title":"Events Extracted","default":0},"gate_accepted":{"type":"integer","title":"Gate Accepted","default":0},"gate_rejected":{"type":"integer","title":"Gate Rejected","default":0},"verified_pending":{"type":"integer","title":"Verified Pending","default":0},"prompt_tokens":{"type":"integer","title":"Prompt Tokens","default":0},"completion_tokens":{"type":"integer","title":"Completion Tokens","default":0},"total_tokens":{"type":"integer","title":"Total Tokens","default":0},"ai_attempts":{"type":"integer","title":"Ai Attempts","default":0},"wall_ms":{"type":"integer","title":"Wall Ms","default":0},"distinct_ua_strings":{"type":"integer","title":"Distinct Ua Strings","default":0}},"type":"object","title":"AbArmContext","description":"Labelled supporting context. Descriptive. Never evidence. See the module header."},"AbArmCreateSpec":{"properties":{"arm_key":{"type":"string","maxLength":64,"minLength":1,"title":"Arm Key"},"pipeline":{"type":"string","maxLength":64,"minLength":1,"title":"Pipeline"},"is_baseline":{"type":"boolean","title":"Is Baseline","default":false},"enabled":{"type":"boolean","title":"Enabled","default":true},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"workflow_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Version"}},"additionalProperties":false,"type":"object","required":["arm_key","pipeline"],"title":"AbArmCreateSpec","description":"One arm to register when the window opens."},"AbArmHeadline":{"properties":{"total_verified":{"type":"integer","title":"Total Verified","default":0},"net_new_verified":{"type":"integer","title":"Net New Verified","default":0},"cost_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Usd"},"cost_usd_incomplete":{"type":"boolean","title":"Cost Usd Incomplete","default":false},"cost_per_verified_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Cost Per Verified Usd"}},"type":"object","title":"AbArmHeadline","description":"AC #4's three headline figures, and nothing else may live here."},"AbArmStats":{"properties":{"arm_key":{"type":"string","title":"Arm Key"},"is_baseline":{"type":"boolean","title":"Is Baseline","default":false},"availability":{"type":"string","enum":["available","unavailable"],"title":"Availability","default":"available"},"ran":{"type":"boolean","title":"Ran","default":false},"headline":{"$ref":"#/components/schemas/AbArmHeadline"},"context":{"$ref":"#/components/schemas/AbArmContext"}},"type":"object","required":["arm_key"],"title":"AbArmStats","description":"One registered arm's whole-window result. Present even when it never ran."},"AbArmSummary":{"properties":{"arm_key":{"type":"string","title":"Arm Key"},"pipeline":{"type":"string","title":"Pipeline"},"is_baseline":{"type":"boolean","title":"Is Baseline","default":false},"enabled":{"type":"boolean","title":"Enabled","default":true},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"workflow_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Version"},"availability":{"type":"string","enum":["available","unavailable"],"title":"Availability","default":"available"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"}},"type":"object","required":["arm_key","pipeline"],"title":"AbArmSummary","description":"One registered arm as the console renders it — never silently absent (AC #1)."},"AbChecklistItem":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"status":{"type":"string","enum":["pass","fail","not_evaluated"],"title":"Status","default":"not_evaluated"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"measured_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measured Value"},"threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threshold"}},"type":"object","required":["key","label"],"title":"AbChecklistItem","description":"One sign-off criterion, its verdict, and the number that produced it."},"AbChecklistResponse":{"properties":{"window_id":{"type":"string","format":"uuid","title":"Window Id"},"tier":{"type":"string","title":"Tier","default":"tier_1"},"metric_version":{"type":"string","title":"Metric Version","default":"ab-v1"},"thresholds_version":{"type":"string","title":"Thresholds Version","default":""},"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"},"items":{"items":{"$ref":"#/components/schemas/AbChecklistItem"},"type":"array","title":"Items"},"overall":{"type":"string","enum":["pass","fail","not_evaluated"],"title":"Overall","default":"not_evaluated"},"unverified_metric":{"type":"boolean","title":"Unverified Metric","default":true},"citable":{"type":"boolean","title":"Citable","default":false},"disqualifications":{"items":{"type":"string"},"type":"array","title":"Disqualifications"}},"type":"object","required":["window_id"],"title":"AbChecklistResponse","description":"`GET /windows/{id}/checklist` — every criterion plus the verdict over them."},"AbSpotCheckRequest":{"properties":{"verified":{"type":"boolean","title":"Verified"},"review_queue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Review Queue Id"}},"additionalProperties":false,"type":"object","required":["verified"],"title":"AbSpotCheckRequest","description":"AC #5's degraded path, recorded explicitly so its provenance is never implied."},"AbSpotCheckResponse":{"properties":{"verification_id":{"type":"string","format":"uuid","title":"Verification Id"},"window_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Window Id"},"arm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Arm Key"},"stratum":{"type":"string","title":"Stratum","default":"unstratified"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"},"verification_source":{"anyOf":[{"type":"string","enum":["review_queue","manual_spotcheck"]},{"type":"null"}],"title":"Verification Source"},"review_queue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Review Queue Id"},"verified_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Verified By"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"}},"type":"object","required":["verification_id"],"title":"AbSpotCheckResponse","description":"The recorded verdict, echoed back with the source that will be aggregated."},"AbUaParity":{"properties":{"status":{"type":"string","enum":["ok","divergent","unknown"],"title":"Status","default":"unknown"},"window_ua_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window Ua String"},"max_distinct_ua_strings_per_arm":{"type":"integer","title":"Max Distinct Ua Strings Per Arm","default":0},"invalid_runs_excluded":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Invalid Runs Excluded"},"detail":{"type":"string","title":"Detail","default":""}},"type":"object","title":"AbUaParity","description":"AC #2 made visible: a UA-divergent run never reaches an aggregate."},"AbValidationSettingsPatch":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"AbValidationSettingsPatch","description":"The only thing an admin may change here. See README § The switch is one field."},"AbValidationSettingsResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"cron":{"type":"string","title":"Cron","default":""},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"}},"type":"object","title":"AbValidationSettingsResponse","description":"The switch as stored, plus the cadence it can never set."},"AbVerificationProvenance":{"properties":{"min_sample_per_stratum":{"type":"integer","title":"Min Sample Per Stratum","default":30},"strata_evaluated":{"type":"integer","title":"Strata Evaluated","default":0},"strata_below_minimum":{"items":{"type":"string"},"type":"array","title":"Strata Below Minimum"},"strata_spotcheck_only":{"items":{"type":"string"},"type":"array","title":"Strata Spotcheck Only"},"pending_verdicts":{"type":"integer","title":"Pending Verdicts","default":0},"from_review_queue":{"type":"integer","title":"From Review Queue","default":0},"from_manual_spotcheck":{"type":"integer","title":"From Manual Spotcheck","default":0},"unverified_metric":{"type":"boolean","title":"Unverified Metric","default":true},"disqualifications":{"items":{"type":"string"},"type":"array","title":"Disqualifications"}},"type":"object","title":"AbVerificationProvenance","description":"Whether the numbers on this window may be quoted, and precisely why not."},"AbVerificationResponse":{"properties":{"window_id":{"type":"string","format":"uuid","title":"Window Id"},"metric_version":{"type":"string","title":"Metric Version","default":"ab-v1"},"thresholds_version":{"type":"string","title":"Thresholds Version","default":""},"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"samples":{"items":{"$ref":"#/components/schemas/AbVerificationSample"},"type":"array","title":"Samples"},"provenance":{"$ref":"#/components/schemas/AbVerificationProvenance"},"citable":{"type":"boolean","title":"Citable","default":false}},"type":"object","required":["window_id"],"title":"AbVerificationResponse","description":"`GET /windows/{id}/verification` — the sample, and whether it is citable."},"AbVerificationSample":{"properties":{"arm_key":{"type":"string","title":"Arm Key"},"stratum":{"type":"string","title":"Stratum","default":"unstratified"},"sample_size":{"type":"integer","title":"Sample Size","default":0},"verified_true":{"type":"integer","title":"Verified True","default":0},"verified_false":{"type":"integer","title":"Verified False","default":0},"pending":{"type":"integer","title":"Pending","default":0},"from_review_queue":{"type":"integer","title":"From Review Queue","default":0},"from_manual_spotcheck":{"type":"integer","title":"From Manual Spotcheck","default":0},"min_sample_per_stratum":{"type":"integer","title":"Min Sample Per Stratum","default":30},"meets_minimum":{"type":"boolean","title":"Meets Minimum","default":false},"spotcheck_only":{"type":"boolean","title":"Spotcheck Only","default":false}},"type":"object","required":["arm_key"],"title":"AbVerificationSample","description":"One arm's achieved sample in one stratum, with where the verdicts came from."},"AbWindowCreateRequest":{"properties":{"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label"},"tier":{"type":"string","enum":["tier_1","tier_2"],"title":"Tier"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"arms":{"items":{"$ref":"#/components/schemas/AbArmCreateSpec"},"type":"array","minItems":2,"title":"Arms"},"replay_fetch":{"type":"boolean","title":"Replay Fetch","default":false},"ua_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ua String"},"min_sample_per_stratum":{"type":"integer","minimum":1.0,"title":"Min Sample Per Stratum","default":30}},"additionalProperties":false,"type":"object","required":["label","tier","ends_at","arms"],"title":"AbWindowCreateRequest","description":"Open a window. Every rule here is structural, so a bad window cannot exist."},"AbWindowDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"tier":{"type":"string","enum":["tier_1","tier_2"],"title":"Tier"},"state":{"type":"string","enum":["open","expired","closed","decommissioned"],"title":"State"},"opened_at":{"type":"string","format":"date-time","title":"Opened At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"decommissioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decommissioned At"},"extension_count":{"type":"integer","title":"Extension Count","default":0},"extension_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extension Reason"},"metric_version":{"type":"string","title":"Metric Version"},"thresholds_version":{"type":"string","title":"Thresholds Version"},"min_sample_per_stratum":{"type":"integer","title":"Min Sample Per Stratum","default":30},"replay_fetch":{"type":"boolean","title":"Replay Fetch","default":false},"arm_count":{"type":"integer","title":"Arm Count","default":0},"snapshot_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Snapshot Id"},"snapshot_taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Snapshot Taken At"},"ua_string":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ua String"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"arms":{"items":{"$ref":"#/components/schemas/AbArmSummary"},"type":"array","title":"Arms"}},"type":"object","required":["id","label","tier","state","opened_at","ends_at","metric_version","thresholds_version"],"title":"AbWindowDetail","description":"One window with its arm registry and the frozen-snapshot identity (AC #3)."},"AbWindowExtendRequest":{"properties":{"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["ends_at","reason"],"title":"AbWindowExtendRequest","description":"AC #8 — continuing costs doubled AI spend, so it carries a reason on the record."},"AbWindowListResponse":{"properties":{"windows":{"items":{"$ref":"#/components/schemas/AbWindowSummary"},"type":"array","title":"Windows"},"count":{"type":"integer","title":"Count","default":0}},"type":"object","title":"AbWindowListResponse","description":"Every window the console may open, newest first."},"AbWindowStatsResponse":{"properties":{"window_id":{"type":"string","format":"uuid","title":"Window Id"},"label":{"type":"string","title":"Label","default":""},"tier":{"type":"string","enum":["tier_1","tier_2"],"title":"Tier","default":"tier_1"},"metric_version":{"type":"string","title":"Metric Version","default":"ab-v1"},"thresholds_version":{"type":"string","title":"Thresholds Version","default":""},"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"baseline_arm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseline Arm Key"},"arms":{"items":{"$ref":"#/components/schemas/AbArmStats"},"type":"array","title":"Arms"},"ua_parity":{"$ref":"#/components/schemas/AbUaParity"},"verification":{"$ref":"#/components/schemas/AbVerificationProvenance"},"unverified_metric":{"type":"boolean","title":"Unverified Metric","default":true},"citable":{"type":"boolean","title":"Citable","default":false},"disqualifications":{"items":{"type":"string"},"type":"array","title":"Disqualifications"}},"type":"object","required":["window_id"],"title":"AbWindowStatsResponse","description":"`GET /windows/{id}/stats` — the comparison, with everything that qualifies it."},"AbWindowSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"tier":{"type":"string","enum":["tier_1","tier_2"],"title":"Tier"},"state":{"type":"string","enum":["open","expired","closed","decommissioned"],"title":"State"},"opened_at":{"type":"string","format":"date-time","title":"Opened At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"decommissioned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decommissioned At"},"extension_count":{"type":"integer","title":"Extension Count","default":0},"extension_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extension Reason"},"metric_version":{"type":"string","title":"Metric Version"},"thresholds_version":{"type":"string","title":"Thresholds Version"},"min_sample_per_stratum":{"type":"integer","title":"Min Sample Per Stratum","default":30},"replay_fetch":{"type":"boolean","title":"Replay Fetch","default":false},"arm_count":{"type":"integer","title":"Arm Count","default":0}},"type":"object","required":["id","label","tier","state","opened_at","ends_at","metric_version","thresholds_version"],"title":"AbWindowSummary","description":"A window as it appears in the list — enough to pick one, not to grade one."},"AccountChangeNotice":{"properties":{"kind":{"$ref":"#/components/schemas/AccountEmailKind"},"label":{"type":"string","title":"Label"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"}},"type":"object","required":["kind","label","sent_at"],"title":"AccountChangeNotice","description":"The latest account-security email of one kind LIVEY sent this person."},"AccountDeletionResponse":{"properties":{"deleted":{"type":"boolean","title":"Deleted","description":"True when the account-deletion request completed.","default":true},"message":{"type":"string","title":"Message","description":"User-facing immediate deletion confirmation.","default":"Your account has been permanently deleted. You can sign up again with the same email address immediately."}},"type":"object","title":"AccountDeletionResponse"},"AccountEmailKind":{"type":"string","enum":["claim_intent_day_1","claim_intent_day_7","sign_in_method_connected","sign_in_method_disconnected","password_changed","sign_in_method_pending","admin_password_reset"],"title":"AccountEmailKind","description":"`user_email_sends.kind`. See CLAUDE.md § livey_user_email_send.py."},"AccountLink":{"properties":{"url":{"type":"string","title":"Url"},"label":{"type":"string","title":"Label"},"provider":{"type":"string","title":"Provider"},"category":{"type":"string","title":"Category"},"description":{"type":"string","title":"Description"}},"type":"object","required":["url","label","provider","category","description"],"title":"AccountLink","description":"A link to a provider's account management page."},"AccuracyPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"engine":{"type":"string","title":"Engine"},"label":{"type":"string","title":"Label"},"f1":{"type":"number","maximum":1.0,"minimum":0.0,"title":"F1"},"gold_events_scored":{"type":"integer","minimum":0.0,"title":"Gold Events Scored"},"gold_events":{"type":"integer","minimum":0.0,"title":"Gold Events"},"provisional":{"type":"boolean","title":"Provisional"},"source":{"type":"string","title":"Source"},"extraction_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extraction Version"}},"type":"object","required":["day","engine","label","f1","gold_events_scored","gold_events","provisional","source"],"title":"AccuracyPoint","description":"One scored engine on the gold set: one point per scored release, never a daily line (AC #2(f))."},"ActiveSessionListResponse":{"properties":{"sessions":{"items":{"$ref":"#/components/schemas/ActiveSessionRead"},"type":"array","title":"Sessions"}},"additionalProperties":false,"type":"object","required":["sessions"],"title":"ActiveSessionListResponse","description":"Every live session of the caller, the current one first."},"ActiveSessionRead":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"device_label":{"type":"string","title":"Device Label"},"signed_in_at":{"type":"string","format":"date-time","title":"Signed In At"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"},"is_current":{"type":"boolean","title":"Is Current"}},"additionalProperties":false,"type":"object","required":["session_id","device_label","signed_in_at","is_current"],"title":"ActiveSessionRead","description":"One signed-in device. See CLAUDE.md § sessions.py."},"AdminAccountDeleteRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"}},"type":"object","required":["email"],"title":"AdminAccountDeleteRequest"},"AdminAccountDeleteResult":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"deleted":{"type":"boolean","title":"Deleted","default":true},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"}},"type":"object","required":["id","email","message","request_id"],"title":"AdminAccountDeleteResult"},"AdminAnalyticsReport":{"properties":{"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"period":{"$ref":"#/components/schemas/AnalyticsPeriod"},"grain":{"$ref":"#/components/schemas/AnalyticsGrain","default":"day"},"custom_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Custom From"},"custom_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Custom To"},"first_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Day"},"last_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Day"},"freshness":{"$ref":"#/components/schemas/AnalyticsFreshness"},"tiles":{"items":{"$ref":"#/components/schemas/AnalyticsTile"},"type":"array","title":"Tiles","default":[]},"daily":{"items":{"$ref":"#/components/schemas/AnalyticsDailySeries"},"type":"array","title":"Daily","default":[]},"split":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsSplit"},{"type":"null"}]},"areas":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsAreas"},{"type":"null"}]},"top":{"items":{"$ref":"#/components/schemas/AnalyticsTopList"},"type":"array","title":"Top","default":[]},"funnels":{"items":{"$ref":"#/components/schemas/AnalyticsFunnel"},"type":"array","title":"Funnels","default":[]},"arrivals":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsArrivals"},{"type":"null"}]},"retention":{"items":{"$ref":"#/components/schemas/AnalyticsRetentionRow"},"type":"array","title":"Retention","default":[]},"push":{"items":{"$ref":"#/components/schemas/AnalyticsPushStep"},"type":"array","title":"Push","default":[]},"push_stats":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsPushStats"},{"type":"null"}]},"months":{"items":{"$ref":"#/components/schemas/AnalyticsMonth"},"type":"array","title":"Months","default":[]},"coverage":{"$ref":"#/components/schemas/AnalyticsCoverage"}},"additionalProperties":false,"type":"object","required":["generated_at","period","freshness","coverage"],"title":"AdminAnalyticsReport","description":"The admin Analytics page and its CSV."},"AdminArtistCreate":{"properties":{"stage_name":{"type":"string","maxLength":200,"minLength":1,"title":"Stage Name"},"genres":{"items":{"type":"string"},"type":"array","title":"Genres"},"bio":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Bio"},"media_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Media Url"},"cover_image_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cover Image Url"},"email":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"official_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Official Url"}},"type":"object","required":["stage_name"],"title":"AdminArtistCreate","description":"POST /admin/artists payload. Only stage_name is required (an organizer\nmay have no genres/bio yet); owner_id is left NULL so the row stays\nclaim-eligible (admin gets no auto-claim — mirrors admin venues).\n\n`genres` is a list of slugs from the SERVED admin-managed vocabulary; it is popped\noff the persistence payload and reaches `artist_genres` through `submitted_genres`.\n🔴 THE FREE-TEXT `genre` SCALAR IS RETIRED FROM THIS SHAPE (P2-BUG-810, 2026-08-29).\nIt had been accepted and then dropped on the floor since Story 18.27 — a request\nfield that changes nothing is the same lie P2-BUG-820 records on the owner surface."},"AdminArtistDeleteImpact":{"properties":{"artist_id":{"type":"string","title":"Artist Id"},"stage_name":{"type":"string","title":"Stage Name"},"upcoming_event_links":{"type":"integer","title":"Upcoming Event Links","default":0},"total_event_links":{"type":"integer","title":"Total Event Links","default":0},"followers":{"type":"integer","title":"Followers","default":0},"claims":{"type":"integer","title":"Claims","default":0},"managed_profile_will_unlink":{"type":"boolean","title":"Managed Profile Will Unlink","default":false},"open_review_questions":{"type":"integer","title":"Open Review Questions","default":0},"pending_resolution_candidates":{"type":"integer","title":"Pending Resolution Candidates","default":0},"resolution_history_rows":{"type":"integer","title":"Resolution History Rows","default":0}},"type":"object","required":["artist_id","stage_name"],"title":"AdminArtistDeleteImpact","description":"Blast-radius preview for an admin artist hard-delete (AC#9). Hard delete\ncascades event_artists / artist_follows / artist_claims (all ON DELETE\nCASCADE) and removes every managed_artists grant — so a managed owner\nprofile is silently unlinked. The web confirm dialog surfaces these."},"AdminArtistGenreView":{"properties":{"genre":{"$ref":"#/components/schemas/ArtistGenreValue"},"artist_count":{"type":"integer","title":"Artist Count"},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete","default":false}},"additionalProperties":false,"type":"object","required":["genre","artist_count"],"title":"AdminArtistGenreView","description":"One artist genre, RETIRED ONES INCLUDED, with its reference count."},"AdminArtistListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminArtistRead"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","page","page_size","total"],"title":"AdminArtistListResponse"},"AdminArtistOwnerAssign":{"properties":{"user_id":{"type":"string","minLength":1,"title":"User Id"}},"type":"object","required":["user_id"],"title":"AdminArtistOwnerAssign","description":"POST body: the account to make an owner."},"AdminArtistOwnerResult":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"role":{"type":"string","title":"Role"},"managed_artist_id":{"type":"string","title":"Managed Artist Id"},"changed":{"type":"boolean","title":"Changed"}},"type":"object","required":["id","role","managed_artist_id","changed"],"title":"AdminArtistOwnerResult","description":"The target's state after the assignment."},"AdminArtistOwnerRow":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id"],"title":"AdminArtistOwnerRow","description":"One account currently managing the artist — same fields as a venue owner row."},"AdminArtistOwnersResponse":{"properties":{"artist_id":{"type":"string","title":"Artist Id"},"owners":{"items":{"$ref":"#/components/schemas/AdminArtistOwnerRow"},"type":"array","title":"Owners"}},"type":"object","required":["artist_id","owners"],"title":"AdminArtistOwnersResponse","description":"Current owners of an artist, for the assignment modal's context line."},"AdminArtistRead":{"properties":{"id":{"type":"string","title":"Id"},"stage_name":{"type":"string","title":"Stage Name"},"genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Genres"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"official_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Url"},"source":{"type":"string","enum":["scraper","venue-owner-claim","admin-manual"],"title":"Source","default":"scraper"},"created_by_admin_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Admin User Id"},"claim_status":{"type":"string","enum":["claimed","pending","unclaimed"],"title":"Claim Status","default":"unclaimed"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","stage_name"],"title":"AdminArtistRead","description":"Artist row as the admin surface sees it: public profile fields plus the\nStory 14.1 provenance pair and a derived claim_status.\n\nStory 18.49 (FR-P2-0237): the legacy `genre` scalar is GONE with its column, and\n`genres` carries `LiveyGenre` pairs. It was ALREADY served from `artist_genres`\n(`_authored_genre_slugs`), so this is a re-TYPE, not a re-point.\n\n⚠️ `email` / `phone` READ THROUGH TO `artist_contacts` (P2-BUG-787, 2026-08-29).\nStory 18.49 dropped the columns and rerouted the WRITE, but left this shape without\nthe fields at all — so the admin form rendered a stored contact as blank, and the\nweb diff (`admin/artists/lib.ts`, which compares `next` against `stored`) had\nnothing to compare against. **That is what made the contact impossible to CLEAR:**\na field that already looks empty cannot be emptied, so the payload never carried\nthe explicit `null` the clear needs. The write half is P2-BUG-801."},"AdminArtistSort":{"type":"string","enum":["stage_name","genre","source","created_at","updated_at"],"title":"AdminArtistSort","description":"The columns the admin Artists table sorts by, each read from `admin_artist_sort_keys`."},"AdminArtistTagGroupView":{"properties":{"group":{"$ref":"#/components/schemas/ArtistTagGroup"},"value_count":{"type":"integer","title":"Value Count"},"assignment_count":{"type":"integer","title":"Assignment Count"},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete"}},"additionalProperties":false,"type":"object","required":["group","value_count","assignment_count","can_hard_delete"],"title":"AdminArtistTagGroupView","description":"One group, RETIRED ONES INCLUDED, with the counts the Delete control reads."},"AdminArtistTagValueView":{"properties":{"value":{"$ref":"#/components/schemas/ArtistTagValue"},"artist_count":{"type":"integer","title":"Artist Count"},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete","default":false}},"additionalProperties":false,"type":"object","required":["value","artist_count"],"title":"AdminArtistTagValueView","description":"One value, RETIRED ONES INCLUDED, with its reference count."},"AdminArtistTypeView":{"properties":{"artist_type":{"$ref":"#/components/schemas/ArtistTypeValue"},"artist_count":{"type":"integer","title":"Artist Count"},"genre_count":{"type":"integer","title":"Genre Count"},"is_protected":{"type":"boolean","title":"Is Protected","default":false},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete","default":false}},"additionalProperties":false,"type":"object","required":["artist_type","artist_count","genre_count"],"title":"AdminArtistTypeView","description":"One artist type, RETIRED ONES INCLUDED, with the counts Delete reads."},"AdminArtistUpdate":{"properties":{"stage_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Stage Name"},"genres":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Genres"},"bio":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Bio"},"media_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Media Url"},"cover_image_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cover Image Url"},"email":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"official_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Official Url"}},"type":"object","title":"AdminArtistUpdate","description":"PATCH /admin/artists/{id} — all-optional patch shape. stage_name is\nNOT NULL in the DB, so it rejects an EXPLICIT JSON null (omit to leave\nunchanged); bio/media_url/cover_image_url accept null as \"clear\".\n\n`genres`: omit to leave unchanged, [] to clear, a list to replace — the value\nlands in `artist_genres` via `submitted_genres`, never on the row.\n🔴 The free-text `genre` scalar is retired here too (P2-BUG-810, 2026-08-29)."},"AdminBillingState":{"type":"string","enum":["free","active","past_due","canceled"],"title":"AdminBillingState","description":"The three stored statuses plus FREE — no subscription row at all."},"AdminCategoryView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"second_level_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Second Level Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"event_count":{"type":"integer","title":"Event Count","default":0},"photo_count":{"type":"integer","title":"Photo Count","default":0},"is_protected":{"type":"boolean","title":"Is Protected","default":false}},"additionalProperties":false,"type":"object","required":["id","slug","label"],"title":"AdminCategoryView","description":"One category, as the admin category-CRUD surface consumes it."},"AdminEntitySubscription":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"billing_state":{"$ref":"#/components/schemas/AdminBillingState"},"is_comp":{"type":"boolean","title":"Is Comp"},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"plan_tier":{"anyOf":[{"$ref":"#/components/schemas/PlanTier"},{"type":"null"}]},"plan_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Interval"},"promotion_allowance_total":{"type":"integer","title":"Promotion Allowance Total"},"promotion_allowance_used":{"type":"integer","title":"Promotion Allowance Used"},"promotion_allowance_remaining":{"type":"integer","title":"Promotion Allowance Remaining"},"event_promotions_total":{"type":"integer","title":"Event Promotions Total","default":0},"event_promotions_used":{"type":"integer","title":"Event Promotions Used","default":0},"event_promotions_remaining":{"type":"integer","title":"Event Promotions Remaining","default":0},"gallery_photo_cap":{"type":"integer","title":"Gallery Photo Cap","default":0},"event_photo_cap":{"type":"integer","title":"Event Photo Cap","default":0},"allowance_resets_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Allowance Resets On"},"granted_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Granted By User Id"},"revoked_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Revoked By User Id"},"revoked_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked By Name"},"revocation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revocation Reason"},"owners":{"items":{"$ref":"#/components/schemas/AdminSubscriptionOwner"},"type":"array","title":"Owners"},"can_grant_comp":{"type":"boolean","title":"Can Grant Comp"},"can_revoke":{"type":"boolean","title":"Can Revoke"},"terms_acceptance":{"anyOf":[{"$ref":"#/components/schemas/AdminTermsAcceptance"},{"type":"null"}]}},"type":"object","required":["entity_kind","entity_id","entity_name","billing_state","is_comp","plan_name","promotion_allowance_total","promotion_allowance_used","promotion_allowance_remaining","granted_by_user_id","revoked_by_user_id","revoked_by_name","revocation_reason","owners","can_grant_comp","can_revoke","terms_acceptance"],"title":"AdminEntitySubscription","description":"One entity's paid status for the People section. See CLAUDE.md § subscriptions.py."},"AdminEventArtistRef":{"properties":{"id":{"type":"string","title":"Id"},"stage_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Name"}},"type":"object","required":["id"],"title":"AdminEventArtistRef","description":"Slim nested artist reference on an admin event row (via the\nevent_artists join). stage_name is NOT NULL in the DB but stays Optional\nhere so a degraded embed can never 500 the whole admin list — same\ndefensive posture as AdminEventVenueRef."},"AdminEventCreate":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"title":{"type":"string","maxLength":140,"minLength":2,"title":"Title"},"description":{"type":"string","maxLength":3000,"title":"Description","default":""},"category":{"type":"string","maxLength":80,"minLength":2,"title":"Category"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cover Image Url"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"},"age_requirement":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Age Requirement"},"capacity":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":1.0},{"type":"null"}],"title":"Capacity"},"genres":{"items":{"type":"string"},"type":"array","title":"Genres"},"artist_ids":{"items":{"type":"string"},"type":"array","maxItems":25,"title":"Artist Ids"}},"type":"object","required":["venue_id","title","category","start_time","end_time"],"title":"AdminEventCreate","description":"POST /admin/events payload — EventCreate shape + the explicit venue_id\nthe admin picked in the typeahead (AC #4), plus optional artist tags\n(uuid list) persisted to event_artists by the service."},"AdminEventListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminEventRead"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","page","page_size","total"],"title":"AdminEventListResponse"},"AdminEventRead":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"},"venue":{"anyOf":[{"$ref":"#/components/schemas/AdminEventVenueRef"},{"type":"null"}]},"artists":{"items":{"$ref":"#/components/schemas/AdminEventArtistRef"},"type":"array","title":"Artists","default":[]},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Genres"},"derived_genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Derived Genres"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"default_stock_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Stock Image Url"},"series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Id"},"series_edit":{"anyOf":[{"$ref":"#/components/schemas/AdminSeriesEditResult"},{"type":"null"}]},"display_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Image Url"},"display_image_tier":{"anyOf":[{"$ref":"#/components/schemas/EventCoverImageTier"},{"type":"null"}]},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"price_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Label"},"locked_fields":{"items":{"type":"string"},"type":"array","title":"Locked Fields"},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"source":{"type":"string","enum":["scraper","venue-owner-claim","admin-manual","artist-owner-claim"],"title":"Source","default":"scraper"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"created_by_admin_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Admin User Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","title","start_time"],"title":"AdminEventRead","description":"Event row as the admin surface sees it (incl provenance + venue ref +\nlinked-artist refs for the admin console's Artist column)."},"AdminEventRecurrence":{"properties":{"frequency":{"$ref":"#/components/schemas/RecurrenceFrequency"},"count":{"type":"integer","maximum":52.0,"minimum":1.0,"title":"Count"},"skip_first":{"type":"boolean","title":"Skip First","default":false}},"type":"object","required":["frequency","count"],"title":"AdminEventRecurrence","description":"The recurrence half of POST /admin/events/recurring.\n\nCREATE-modal flow: ``skip_first=False`` (default) — ``count`` is the\nTOTAL number of occurrences materialized, with the base event definition\nitself as occurrence 0 (the first created copy is NOT shifted).\nEDIT-modal \"make recurring\" flow: ``skip_first=True`` — the existing\nevent is left untouched and ``count`` ADDITIONAL future copies are\ncreated, starting one interval after the base."},"AdminEventSort":{"type":"string","enum":["title","artist","venue","start_time","source","created_at","updated_at"],"title":"AdminEventSort","description":"The columns the admin Events table sorts by, each read from `admin_event_sort_keys`."},"AdminEventUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":140,"minLength":2},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string","maxLength":80,"minLength":2},{"type":"null"}],"title":"Category"},"categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Categories"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cover Image Url"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"},"age_requirement":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Age Requirement"},"capacity":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":1.0},{"type":"null"}],"title":"Capacity"},"genres":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Genres"},"artist_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":25},{"type":"null"}],"title":"Artist Ids"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"release_fields":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":8},{"type":"null"}],"title":"Release Fields"},"apply_to_event_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":104},{"type":"null"}],"title":"Apply To Event Ids"}},"type":"object","title":"AdminEventUpdate","description":"PATCH /admin/events/{id} payload — all-optional patch shape (AC #6).\n\nThe model-level time-window check fires when BOTH bounds are in the\npatch; a single-bound patch is validated against the STORED row by the\nservice before the UPDATE runs (7.6 review P4).\n\ntitle / category / start_time / zip_code reject an EXPLICIT JSON null\n(review P1): category is nullable in the DB but required by the public\nEventSummary contract — a null would persist, then 500 every public\nlist containing the row; the others are NOT NULL columns. Omit a field\nto leave it unchanged; description / end_time / urls / price /\ncapacity accept null as \"clear\"."},"AdminEventVenueRef":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"AdminEventVenueRef","description":"Slim nested venue reference on an admin event row."},"AdminGenreView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"category_id":{"type":"string","format":"uuid","title":"Category Id"},"category_slug":{"type":"string","title":"Category Slug"},"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases","default":[]},"event_count":{"type":"integer","title":"Event Count","default":0},"second_level_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Second Level Label"}},"additionalProperties":false,"type":"object","required":["id","category_id","category_slug","slug","label"],"title":"AdminGenreView","description":"A genre row plus the two things the admin surface cannot infer from it."},"AdminHelpEntry":{"properties":{"group":{"$ref":"#/components/schemas/AdminHelpGroup"},"key":{"type":"string","title":"Key"},"term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["group","key","text"],"title":"AdminHelpEntry","description":"One piece of admin help text."},"AdminHelpGroup":{"type":"string","enum":["term","drift_signal","drift_state","multi_venue_reason","replay_rung","replay_tier","analytics","analytics_page"],"title":"AdminHelpGroup","description":"Which part of the console an entry belongs to."},"AdminHelpTerms":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/AdminHelpEntry"},"type":"array","title":"Entries"}},"additionalProperties":false,"type":"object","required":["entries"],"title":"AdminHelpTerms","description":"Help text for the admin console, in display order."},"AdminInvite":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"invited_email":{"type":"string","title":"Invited Email"},"invited_by":{"type":"string","format":"uuid","title":"Invited By"},"status":{"$ref":"#/components/schemas/AdminInviteStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"}},"type":"object","required":["id","invited_email","invited_by","status","created_at","expires_at"],"title":"AdminInvite","description":"One issuance record, as the admin console renders it. Never carries the token."},"AdminInviteCreateRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"AdminInviteCreateRequest"},"AdminInviteErrorBody":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"}},"type":"object","required":["error","message","request_id"],"title":"AdminInviteErrorBody"},"AdminInviteIssueResult":{"properties":{"invite":{"$ref":"#/components/schemas/AdminInvite"},"email_sent":{"type":"boolean","title":"Email Sent"},"redeem_url":{"type":"string","title":"Redeem Url"}},"type":"object","required":["invite","email_sent","redeem_url"],"title":"AdminInviteIssueResult","description":"AC #4 — the honest send outcome, never inferred from a `None` message id.\n\n`redeem_url` is shown to the issuing admin so a failed or unconfigured send\nnever strands the invite: the admin can copy and hand it over another way."},"AdminInvitePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminInvite"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AdminInvitePage"},"AdminInviteRedeemOutcome":{"type":"string","enum":["granted","already_admin","not_found","expired_or_spent","inviter_not_admin","email_mismatch"],"title":"AdminInviteRedeemOutcome","description":"Terminal outcome of one `admin_accept_invite()` call. See services/admin/invites/CLAUDE.md."},"AdminInviteRedeemRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"AdminInviteRedeemRequest"},"AdminInviteRedeemResult":{"properties":{"outcome":{"$ref":"#/components/schemas/AdminInviteRedeemOutcome"},"invite_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invite Id"}},"type":"object","required":["outcome"],"title":"AdminInviteRedeemResult"},"AdminInviteStatus":{"type":"string","enum":["pending","accepted","revoked"],"title":"AdminInviteStatus","description":"`admin_invites.status`. A CHECK, not a native enum type — see CLAUDE.md § admin_invite.py."},"AdminLinkedVenue":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"retired":{"type":"boolean","title":"Retired","default":false},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"}},"type":"object","required":["id","name"],"title":"AdminLinkedVenue","description":"A venue linked as a main venue or a space, as an admin sees it: a closed one is shown, flagged."},"AdminManagedEntity":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"AdminManagedEntity","description":"One venue or artist the account manages — the name is best-effort (M-09)."},"AdminPasswordResetResult":{"properties":{"user_id":{"type":"string","title":"User Id"},"sent_to":{"type":"string","title":"Sent To"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"}},"type":"object","required":["user_id","sent_to","sent_at"],"title":"AdminPasswordResetResult","description":"The reset email went to the account's own address."},"AdminPastDuePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminPastDueSubscription"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["items","limit","truncated"],"title":"AdminPastDuePage","description":"The oldest past-due subscriptions across venues and artists, and whether more exist."},"AdminPastDueSubscription":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Name"},"is_comp":{"type":"boolean","title":"Is Comp"},"subscribed_since":{"type":"string","format":"date-time","title":"Subscribed Since"},"past_due_since":{"type":"string","format":"date-time","title":"Past Due Since"},"days_past_due":{"type":"integer","title":"Days Past Due"}},"type":"object","required":["entity_kind","entity_id","entity_name","is_comp","subscribed_since","past_due_since","days_past_due"],"title":"AdminPastDueSubscription","description":"One row of the dunning worklist."},"AdminRecurringEventCreate":{"properties":{"event":{"$ref":"#/components/schemas/AdminEventCreate"},"recurrence":{"$ref":"#/components/schemas/AdminEventRecurrence"},"base_event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Event Id"}},"type":"object","required":["event","recurrence"],"title":"AdminRecurringEventCreate","description":"POST /admin/events/recurring payload — the same event definition\nPOST /admin/events accepts, plus the recurrence cadence that drives the\nserver-side occurrence date math (RecurrenceDateShifter). Every\nmaterialized copy rides the FULL create_event path (stock-image\nassignment, artist linking, provenance stamping) — only start_time /\nend_time differ per copy."},"AdminRecurringEventsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminEventRead"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"series_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Series Id"},"recurrence_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recurrence Id"}},"type":"object","required":["items","total"],"title":"AdminRecurringEventsResponse","description":"201 envelope for POST /admin/events/recurring — the materialized\ncopies, ordered by start_time."},"AdminSeriesDate":{"properties":{"id":{"type":"string","title":"Id"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["id","start_time"],"title":"AdminSeriesDate","description":"One upcoming date of a repeating event, as the edit checklist lists it."},"AdminSeriesDates":{"properties":{"series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Id"},"dates":{"items":{"$ref":"#/components/schemas/AdminSeriesDate"},"type":"array","title":"Dates"}},"type":"object","required":["dates"],"title":"AdminSeriesDates","description":"GET /admin/events/{id}/series-dates: a run's upcoming dates, soonest first."},"AdminSeriesEditFailure":{"properties":{"event_id":{"type":"string","title":"Event Id"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["event_id","start_time","detail"],"title":"AdminSeriesEditFailure","description":"One date an edit could not reach, and why."},"AdminSeriesEditResult":{"properties":{"updated_event_ids":{"items":{"type":"string"},"type":"array","title":"Updated Event Ids"},"failed":{"items":{"$ref":"#/components/schemas/AdminSeriesEditFailure"},"type":"array","title":"Failed"}},"type":"object","required":["updated_event_ids","failed"],"title":"AdminSeriesEditResult","description":"What one edit did to the other dates it was sent to (FR-P3-0477)."},"AdminSignInActivity":{"properties":{"user_id":{"type":"string","title":"User Id"},"last_sign_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sign In At"},"email_confirmed":{"type":"boolean","title":"Email Confirmed"},"has_password":{"type":"boolean","title":"Has Password"},"signed_in_devices":{"items":{"$ref":"#/components/schemas/SignedInDevice"},"type":"array","title":"Signed In Devices"},"methods":{"items":{"$ref":"#/components/schemas/SignInMethodActivity"},"type":"array","title":"Methods"},"account_changes":{"items":{"$ref":"#/components/schemas/AccountChangeNotice"},"type":"array","title":"Account Changes"},"password_reset_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Password Reset Sent At"},"password_reset_sent_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password Reset Sent By"},"password_reset_sent_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password Reset Sent By Name"},"can_send_password_reset":{"type":"boolean","title":"Can Send Password Reset"}},"type":"object","required":["user_id","email_confirmed","has_password","signed_in_devices","methods","account_changes","can_send_password_reset"],"title":"AdminSignInActivity","description":"Everything the People card's Sign-in section shows."},"AdminSubscriptionActionKind":{"type":"string","enum":["comp_granted","revoked"],"title":"AdminSubscriptionActionKind","description":"Which admin action a result answers."},"AdminSubscriptionActionResult":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"action":{"$ref":"#/components/schemas/AdminSubscriptionActionKind"},"stripe_subscription_id":{"type":"string","title":"Stripe Subscription Id"},"awaiting_confirmation":{"type":"boolean","title":"Awaiting Confirmation"}},"type":"object","required":["entity_kind","entity_id","action","stripe_subscription_id","awaiting_confirmation"],"title":"AdminSubscriptionActionResult","description":"What Stripe accepted. The row lands on the webhook, so this is always pending."},"AdminSubscriptionCompRequest":{"properties":{"plan_code":{"type":"string","maxLength":64,"minLength":1,"title":"Plan Code"}},"type":"object","required":["plan_code"],"title":"AdminSubscriptionCompRequest","description":"F7 — which on-sale plan the comp grants; REQUIRED, the admin always chooses (`GET /plans` lists them)."},"AdminSubscriptionOwner":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"granted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Granted At"}},"type":"object","required":["user_id","display_name","email","granted_at"],"title":"AdminSubscriptionOwner","description":"One account holding the `owner` grant — who actually controls billing here."},"AdminSubscriptionRevokeRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"AdminSubscriptionRevokeRequest","description":"The confirm step's reason — required, like the role revocation it mirrors."},"AdminTagGroupView":{"properties":{"group":{"$ref":"#/components/schemas/TagGroup"},"value_count":{"type":"integer","title":"Value Count"},"assignment_count":{"type":"integer","title":"Assignment Count"},"has_derived":{"type":"boolean","title":"Has Derived"},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete"}},"additionalProperties":false,"type":"object","required":["group","value_count","assignment_count","has_derived","can_hard_delete"],"title":"AdminTagGroupView","description":"One group, RETIRED ONES INCLUDED, with the counts the Delete control reads."},"AdminTagValueView":{"properties":{"value":{"$ref":"#/components/schemas/TagValue"},"event_count":{"type":"integer","title":"Event Count"}},"additionalProperties":false,"type":"object","required":["value","event_count"],"title":"AdminTagValueView","description":"One value, RETIRED ONES INCLUDED, with its reference count.\n\n⚠️ `value.is_derived` is what the surface reads to render the row READ-ONLY:\na derived value is visible and reorderable, but not editable per event and\nnot retire-able. The UI must SAY WHY — \"this comes from events.price; change\nthe price\" — or an admin files the missing controls as a bug."},"AdminTermsAcceptance":{"properties":{"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"},"terms_version":{"type":"string","title":"Terms Version"},"plan_code":{"type":"string","title":"Plan Code"}},"type":"object","required":["accepted_at","terms_version","plan_code"],"title":"AdminTermsAcceptance","description":"Story 31.6 — the Business Plan Terms the buyer agreed to at checkout; None when there is none."},"AdminUserDetail":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/UserRole"},"type":"array","title":"Roles"},"is_internal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Internal","description":"True when the account is LIVEY's own team or a tester, so analytics leaves it out. Authoritative only on /auth/me, /profiles/me and the admin People list and detail; null elsewhere."},"id":{"type":"string","format":"uuid","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"home_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"email_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Opt In"},"sms_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Opt In"},"preferred_genres":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preferred Genres"},"preferred_event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preferred Event Types"},"budget_min":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Budget Min"},"budget_max":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Budget Max"},"max_distance_miles":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Distance Miles"},"theme_preference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Theme Preference"},"birthday_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birthday Month"},"birthday_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birthday Day"},"anniversary_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Anniversary Month"},"anniversary_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Anniversary Day"},"managed_venues":{"items":{"$ref":"#/components/schemas/AdminManagedEntity"},"type":"array","title":"Managed Venues"},"managed_artists":{"items":{"$ref":"#/components/schemas/AdminManagedEntity"},"type":"array","title":"Managed Artists"},"managed_venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Managed Venue Id"},"managed_venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managed Venue Name"},"managed_artist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Managed Artist Id"},"managed_artist_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Managed Artist Name"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"onboarding_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Onboarding Completed At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"is_test_actor":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Test Actor"},"analytics_internal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Analytics Internal"},"analytics_internal_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Analytics Internal By"},"analytics_internal_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Analytics Internal At"},"analytics_internal_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analytics Internal By Name"}},"type":"object","required":["roles","id","managed_venues","managed_artists"],"title":"AdminUserDetail","description":"One person's whole profile. See CLAUDE.md § AdminUserDetail."},"AdminUserPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminUserRow"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"},"admin_count":{"type":"integer","title":"Admin Count"}},"type":"object","required":["items","page","page_size","total","admin_count"],"title":"AdminUserPage"},"AdminUserRow":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/UserRole"},"type":"array","title":"Roles"},"is_internal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Internal","description":"True when the account is LIVEY's own team or a tester, so analytics leaves it out. Authoritative only on /auth/me, /profiles/me and the admin People list and detail; null elsewhere."},"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["roles","id","created_at"],"title":"AdminUserRow"},"AdminVenueChoiceResult":{"properties":{"outcome":{"type":"string","enum":["created","used_existing"],"title":"Outcome"},"venue":{"$ref":"#/components/schemas/AdminVenueRead"}},"type":"object","required":["outcome","venue"],"title":"AdminVenueChoiceResult","description":"What the choice did, and the venue the console now lands on."},"AdminVenueCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"address_line":{"type":"string","maxLength":300,"minLength":1,"title":"Address Line"},"city":{"type":"string","maxLength":100,"minLength":1,"title":"City"},"state":{"type":"string","maxLength":2,"minLength":2,"title":"State"},"zip_code":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip Code"},"description":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Description"},"website":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website"},"cover_image_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cover Image Url"},"email":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"capacity":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":1.0},{"type":"null"}],"title":"Capacity"}},"type":"object","required":["name","address_line","city","state","zip_code"],"title":"AdminVenueCreate","description":"POST /admin/venues payload (AC #2 — name/address/city/state/ZIP required)."},"AdminVenueDeleteImpact":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"name":{"type":"string","title":"Name"},"upcoming_events":{"type":"integer","title":"Upcoming Events","default":0},"total_events":{"type":"integer","title":"Total Events","default":0},"followers":{"type":"integer","title":"Followers","default":0},"claims":{"type":"integer","title":"Claims","default":0},"managed_profile_will_unlink":{"type":"boolean","title":"Managed Profile Will Unlink","default":false},"spaces":{"type":"integer","title":"Spaces","default":0}},"type":"object","required":["venue_id","name"],"title":"AdminVenueDeleteImpact","description":"Blast-radius preview for an admin venue hard-delete (mirrors\nAdminArtistDeleteImpact). A hard delete CASCADEs events (and transitively\nevent_artists + favorites), venue_follows, and venue_claims, and SET NULLs\nmanaged_venues — silently revoking every grant on it.\nLoose references (scrape_jobs.venue_id_hint, content_reports,\nnotifications) intentionally dangle — the same documented decision as\nmerges pre-cleanup. The web confirm dialog surfaces these counts."},"AdminVenueDetailRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"source":{"type":"string","enum":["scraper","venue-owner-claim","admin-manual"],"title":"Source","default":"scraper"},"created_by_admin_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Admin User Id"},"claim_status":{"type":"string","enum":["claimed","pending","unclaimed"],"title":"Claim Status","default":"unclaimed"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"latest_scrape_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Scrape Status"},"latest_scrape_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Scrape At"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"same_named_venues":{"items":{"$ref":"#/components/schemas/SameNamedVenue"},"type":"array","title":"Same Named Venues"},"types":{"items":{"$ref":"#/components/schemas/VenueType"},"type":"array","title":"Types"},"website_verdict":{"anyOf":[{"type":"string","enum":["dns_dead","domain_moved","blocked","robots_disallowed","off_site_suspect","off_site"]},{"type":"null"}],"title":"Website Verdict"},"withdrawn_website":{"anyOf":[{"$ref":"#/components/schemas/WithdrawnWebsite"},{"type":"null"}]},"main_venue":{"anyOf":[{"$ref":"#/components/schemas/AdminLinkedVenue"},{"type":"null"}]},"spaces":{"items":{"$ref":"#/components/schemas/AdminLinkedVenue"},"type":"array","title":"Spaces"}},"type":"object","required":["id","name"],"title":"AdminVenueDetailRead","description":"The write-response read plus the venue's assigned types. See CLAUDE.md § AdminVenueDetailRead."},"AdminVenueListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminVenueSummary"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","page","page_size","total"],"title":"AdminVenueListResponse"},"AdminVenueMatchChoice":{"properties":{"decision":{"$ref":"#/components/schemas/VenueMatchDecision"},"venue":{"$ref":"#/components/schemas/AdminVenueCreate"}},"type":"object","required":["decision","venue"],"title":"AdminVenueMatchChoice","description":"`POST /admin/venues/match-choice` — the form as checked, plus the admin's answer to its match."},"AdminVenueOwnerAssign":{"properties":{"user_id":{"type":"string","minLength":1,"title":"User Id"}},"type":"object","required":["user_id"],"title":"AdminVenueOwnerAssign","description":"POST body: the account to add as an owner of the venue."},"AdminVenueOwnerResult":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"role":{"type":"string","title":"Role"},"managed_venue_id":{"type":"string","title":"Managed Venue Id"},"changed":{"type":"boolean","title":"Changed"}},"type":"object","required":["id","role","managed_venue_id","changed"],"title":"AdminVenueOwnerResult","description":"The assignment outcome — the target's post-assignment state."},"AdminVenueOwnerRow":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id"],"title":"AdminVenueOwnerRow","description":"One profile currently managing the venue (multi-owner tolerated —\nthe claims flow has always allowed several approved owners)."},"AdminVenueOwnersResponse":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"owners":{"items":{"$ref":"#/components/schemas/AdminVenueOwnerRow"},"type":"array","title":"Owners"}},"type":"object","required":["venue_id","owners"],"title":"AdminVenueOwnersResponse","description":"Current owners of a venue, for the assignment modal's context line."},"AdminVenueRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"source":{"type":"string","enum":["scraper","venue-owner-claim","admin-manual"],"title":"Source","default":"scraper"},"created_by_admin_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Admin User Id"},"claim_status":{"type":"string","enum":["claimed","pending","unclaimed"],"title":"Claim Status","default":"unclaimed"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"latest_scrape_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Scrape Status"},"latest_scrape_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Scrape At"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"same_named_venues":{"items":{"$ref":"#/components/schemas/SameNamedVenue"},"type":"array","title":"Same Named Venues"}},"type":"object","required":["id","name"],"title":"AdminVenueRead","description":"Venue row as the admin surface sees it: public profile fields plus the\nStory 7.6 provenance pair and a derived claim_status."},"AdminVenueSort":{"type":"string","enum":["name","zip_code","source","claim_status","created_at","updated_at","latest_scrape_at"],"title":"AdminVenueSort","description":"The columns the admin Venues table sorts by."},"AdminVenueSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"source":{"type":"string","enum":["scraper","venue-owner-claim","admin-manual"],"title":"Source","default":"scraper"},"claim_status":{"type":"string","enum":["claimed","pending","unclaimed"],"title":"Claim Status","default":"unclaimed"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"latest_scrape_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Scrape Status"},"latest_scrape_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Scrape At"},"main_venue":{"anyOf":[{"$ref":"#/components/schemas/AdminLinkedVenue"},{"type":"null"}]},"spaces_count":{"type":"integer","title":"Spaces Count","default":0},"retired":{"type":"boolean","title":"Retired","default":false}},"type":"object","required":["id","name"],"title":"AdminVenueSummary","description":"One row of the admin venues TABLE — no form-only field. See CLAUDE.md § AdminVenueSummary."},"AdminVenueTagGroupView":{"properties":{"group":{"$ref":"#/components/schemas/VenueTagGroup"},"value_count":{"type":"integer","title":"Value Count"},"assignment_count":{"type":"integer","title":"Assignment Count"},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete"}},"additionalProperties":false,"type":"object","required":["group","value_count","assignment_count","can_hard_delete"],"title":"AdminVenueTagGroupView","description":"One group, RETIRED ONES INCLUDED, with the counts the Delete control reads."},"AdminVenueTagValueView":{"properties":{"value":{"$ref":"#/components/schemas/VenueTagValue"},"venue_count":{"type":"integer","title":"Venue Count"},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete","default":false}},"additionalProperties":false,"type":"object","required":["value","venue_count"],"title":"AdminVenueTagValueView","description":"One value, RETIRED ONES INCLUDED, with its reference count."},"AdminVenueTypeView":{"properties":{"venue_type":{"$ref":"#/components/schemas/VenueType"},"venue_count":{"type":"integer","title":"Venue Count"},"is_protected":{"type":"boolean","title":"Is Protected","default":false},"can_hard_delete":{"type":"boolean","title":"Can Hard Delete","default":false}},"additionalProperties":false,"type":"object","required":["venue_type","venue_count"],"title":"AdminVenueTypeView","description":"One venue type, RETIRED ONES INCLUDED, with its reference count."},"AdminVenueUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"address_line":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"description":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Description"},"website":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Website"},"cover_image_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Cover Image Url"},"email":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"capacity":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":1.0},{"type":"null"}],"title":"Capacity"},"main_venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Main Venue Id"}},"type":"object","title":"AdminVenueUpdate","description":"PATCH /admin/venues/{id} payload — all-optional patch shape (AC #6).\n\nFields that are NOT NULL in the DB (or required by downstream read\ncontracts) reject an EXPLICIT JSON null: the service patches with\nexclude_unset, so a null would otherwise flow to the UPDATE and either\nviolate a NOT NULL constraint or persist a row that 500s every reader\n(7.6 review P1). Omit a field to leave it unchanged; description /\nwebsite / cover_image_url accept null as \"clear\"."},"AdminWebsiteHealth":{"properties":{"pages_by_verdict":{"additionalProperties":{"type":"integer"},"type":"object","title":"Pages By Verdict"},"pages_reached_another_site":{"type":"integer","title":"Pages Reached Another Site","default":0},"venues_decided":{"type":"integer","title":"Venues Decided","default":0},"decided_last_7_days":{"type":"integer","title":"Decided Last 7 Days","default":0},"decided_last_30_days":{"type":"integer","title":"Decided Last 30 Days","default":0},"withdrawn":{"type":"integer","title":"Withdrawn","default":0},"repointed":{"type":"integer","title":"Repointed","default":0},"repointed_by_rung":{"additionalProperties":{"type":"integer"},"type":"object","title":"Repointed By Rung"},"asked":{"type":"integer","title":"Asked","default":0},"searched":{"type":"integer","title":"Searched","default":0},"reverted":{"type":"integer","title":"Reverted","default":0},"overridden":{"type":"integer","title":"Overridden","default":0},"acceptance_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Acceptance Rate"},"false_repair_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"False Repair Rate"},"time_to_repair":{"$ref":"#/components/schemas/RepairDurations"},"breaker_trip_days_last_30_days":{"type":"integer","title":"Breaker Trip Days Last 30 Days","default":0},"recovered":{"type":"integer","title":"Recovered","default":0},"search_cost_per_repair_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Search Cost Per Repair Usd"},"search_cost_note":{"type":"string","title":"Search Cost Note","default":""},"disable_threshold":{"type":"number","title":"Disable Threshold"},"disable_threshold_recorded":{"type":"string","title":"Disable Threshold Recorded"},"disable_recommended":{"type":"boolean","title":"Disable Recommended","default":false},"controls":{"items":{"$ref":"#/components/schemas/WebsiteHealthControl"},"type":"array","title":"Controls"}},"type":"object","required":["disable_threshold","disable_threshold_recorded"],"title":"AdminWebsiteHealth","description":"Story 19.34 AC #11 — whether the loop repairs, and whether it repairs wrongly. See CLAUDE.md § website_health.py."},"AdminZipRequest":{"properties":{"zip":{"type":"string","title":"Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"request_state":{"$ref":"#/components/schemas/ZipRequestState"},"first_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Requested At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decided_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Name"},"requester_count":{"type":"integer","title":"Requester Count"},"requesters":{"items":{"$ref":"#/components/schemas/ZipRequestRequester"},"type":"array","title":"Requesters"},"also_watching":{"type":"integer","title":"Also Watching"},"nearest_covered":{"anyOf":[{"$ref":"#/components/schemas/NearestCoveredZip"},{"type":"null"}]}},"type":"object","required":["zip","request_state","requester_count","requesters","also_watching"],"title":"AdminZipRequest","description":"One requested ZIP as the tab lists it; `also_watching` counts area alerts on it that never asked."},"AdminZipRequestList":{"properties":{"counts":{"$ref":"#/components/schemas/ZipRequestCounts"},"items":{"items":{"$ref":"#/components/schemas/AdminZipRequest"},"type":"array","title":"Items"}},"type":"object","required":["counts","items"],"title":"AdminZipRequestList","description":"`GET /admin/zip-requests?state=` — every tab's count, and the chosen tab's ZIPs oldest ask first."},"AgeRange":{"type":"string","enum":["over_13","over_18","over_21"],"title":"AgeRange","description":"`profiles.age_range`. A native ENUM TYPE (Q37), ORDERED THRESHOLDS not buckets.\n\n`over_21` implies `over_18` implies `over_13` — store the highest asserted, and a\nconsumer compares (`in ('over_18','over_21')`), never `==`. Self-attested and\nunverified: never an age gate. See CLAUDE.md § vocabulary.py."},"AgentDetail":{"properties":{"agent_key":{"type":"string","title":"Agent Key"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"prompt_editable":{"type":"boolean","title":"Prompt Editable"},"enabled":{"type":"boolean","title":"Enabled"},"locked_head":{"type":"string","title":"Locked Head"},"live_tail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Live Tail"},"candidate_tail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Tail"},"has_candidate":{"type":"boolean","title":"Has Candidate"},"original_with_tokens":{"type":"string","title":"Original With Tokens"},"original_tail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Tail"},"is_modified":{"type":"boolean","title":"Is Modified","default":false},"tokens":{"items":{"type":"string"},"type":"array","title":"Tokens"},"template_with_tokens":{"type":"string","title":"Template With Tokens"},"mock_example":{"type":"string","title":"Mock Example"},"mock_substitutions":{"additionalProperties":{"type":"string"},"type":"object","title":"Mock Substitutions"}},"type":"object","required":["agent_key","name","prompt_editable","enabled","locked_head","has_candidate","original_with_tokens","tokens","template_with_tokens","mock_example","mock_substitutions"],"title":"AgentDetail"},"AgentSummary":{"properties":{"agent_key":{"type":"string","title":"Agent Key"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"prompt_editable":{"type":"boolean","title":"Prompt Editable"},"enabled":{"type":"boolean","title":"Enabled"},"has_candidate":{"type":"boolean","title":"Has Candidate"}},"type":"object","required":["agent_key","name","prompt_editable","enabled","has_candidate"],"title":"AgentSummary"},"AiModelsResponse":{"properties":{"tasks":{"items":{"$ref":"#/components/schemas/TaskModels"},"type":"array","title":"Tasks"},"catalog":{"items":{"$ref":"#/components/schemas/CatalogModel"},"type":"array","title":"Catalog"},"read_only":{"type":"boolean","title":"Read Only","default":true},"usage":{"$ref":"#/components/schemas/TokenUsageStat"},"stats_window_days":{"type":"integer","title":"Stats Window Days"},"stats_sample_count":{"type":"integer","title":"Stats Sample Count"},"stats":{"additionalProperties":{"$ref":"#/components/schemas/ModelScorecard"},"type":"object","title":"Stats"},"spend_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Spend From"},"fallback_rate":{"type":"number","title":"Fallback Rate"},"canon_stats":{"additionalProperties":{"$ref":"#/components/schemas/ModelScorecard"},"type":"object","title":"Canon Stats"},"canon_fallback_rate":{"type":"number","title":"Canon Fallback Rate"}},"type":"object","required":["tasks","catalog","usage","stats_window_days","stats_sample_count","stats","fallback_rate","canon_stats","canon_fallback_rate"],"title":"AiModelsResponse"},"AiNodeModelTask":{"properties":{"task":{"type":"string","title":"Task"},"label":{"type":"string","title":"Label"},"default_chain":{"items":{"type":"string"},"type":"array","title":"Default Chain"},"max_models":{"type":"integer","title":"Max Models"},"override":{"items":{"type":"string"},"type":"array","title":"Override"},"in_force":{"items":{"type":"string"},"type":"array","title":"In Force"}},"type":"object","required":["task","label","default_chain","max_models","override","in_force"],"title":"AiNodeModelTask","description":"One routable step (Story 18.72): its default, its override (empty = none) and what runs."},"AiNodeModelUpdate":{"properties":{"model_ids":{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1,"title":"Model Ids"}},"additionalProperties":false,"type":"object","required":["model_ids"],"title":"AiNodeModelUpdate","description":"`PUT /admin/ai-models/nodes/{task}` — the step's whole chain, rank 1 first."},"AiNodeModelsResponse":{"properties":{"tasks":{"items":{"$ref":"#/components/schemas/AiNodeModelTask"},"type":"array","title":"Tasks"},"benchmark":{"anyOf":[{"$ref":"#/components/schemas/RoutingDecision"},{"type":"null"}]}},"type":"object","required":["tasks"],"title":"AiNodeModelsResponse"},"AiProviderStandDown":{"properties":{"provider":{"type":"string","title":"Provider"},"provider_label":{"type":"string","title":"Provider Label"},"since":{"type":"string","format":"date-time","title":"Since"}},"type":"object","required":["provider","provider_label","since"],"title":"AiProviderStandDown","description":"One extraction-primary provider whose account ran out, read from `ProviderStandDown`, never tracked."},"AiRequestSpendReport":{"properties":{"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"today":{"$ref":"#/components/schemas/AiSpendWindow"},"month":{"$ref":"#/components/schemas/AiSpendWindow"},"by_feature":{"items":{"$ref":"#/components/schemas/AiSpendFeatureTotals"},"type":"array","title":"By Feature"}},"additionalProperties":false,"type":"object","required":["generated_at","today","month","by_feature"],"title":"AiRequestSpendReport","description":"Per-call spend from `ai_request_spend`: AI calls outside a pipeline run and F-126 BigQuery reads."},"AiScraperReading":{"properties":{"readable":{"type":"boolean","title":"Readable","default":true},"page_in_progress":{"type":"boolean","title":"Page In Progress","default":false},"last_page_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Page Started At"},"stopped":{"type":"boolean","title":"Stopped","default":false},"stopped_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped Since"}},"additionalProperties":false,"type":"object","title":"AiScraperReading","description":"What the worker is actually doing, read from the queue rather than the switch."},"AiScraperState":{"type":"string","enum":["on","off"],"title":"AiScraperState","description":"On while either half runs; Off only when both are stopped."},"AiScraperSwitchRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["enabled"],"title":"AiScraperSwitchRequest"},"AiScraperSwitchResponse":{"properties":{"state":{"$ref":"#/components/schemas/AiScraperState"},"discovery_on":{"type":"boolean","title":"Discovery On"},"reading_on":{"type":"boolean","title":"Reading On"},"worker_running":{"type":"boolean","title":"Worker Running"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"changed_by":{"anyOf":[{"$ref":"#/components/schemas/SchedulerPausedBy"},{"type":"null"}]},"changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Changed At"},"reading":{"$ref":"#/components/schemas/AiScraperReading"}},"additionalProperties":false,"type":"object","required":["state","discovery_on","reading_on","worker_running"],"title":"AiScraperSwitchResponse"},"AiSpendBudgetUpdate":{"properties":{"mode":{"$ref":"#/components/schemas/AiSpendMode"},"limits":{"additionalProperties":{"$ref":"#/components/schemas/AiSpendLimit-Input"},"type":"object","title":"Limits"},"alert_ratio":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Alert Ratio","default":"0.8"}},"additionalProperties":false,"type":"object","required":["mode"],"title":"AiSpendBudgetUpdate","description":"`PUT /admin/ai-spend-budget` — the whole setting; an unknown scope is a 422."},"AiSpendBudgetView":{"properties":{"mode":{"$ref":"#/components/schemas/AiSpendMode"},"limits":{"additionalProperties":{"$ref":"#/components/schemas/AiSpendLimit-Output"},"type":"object","title":"Limits"},"alert_ratio":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Alert Ratio","default":"0.8"},"env_daily_ceiling_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Env Daily Ceiling Usd"},"windows":{"items":{"$ref":"#/components/schemas/AiSpendWindowStatus"},"type":"array","title":"Windows"},"scope_choices":{"items":{"type":"string"},"type":"array","title":"Scope Choices"}},"type":"object","required":["mode"],"title":"AiSpendBudgetView","description":"`GET /admin/ai-spend-budget`."},"AiSpendFeature":{"type":"string","enum":["google_lookup","acceptance_test","bigquery_reference","ai_call","bigquery_query"],"title":"AiSpendFeature","description":"The surface that spent. See CLAUDE.md § vocabulary.py."},"AiSpendFeatureTotals":{"properties":{"calls":{"type":"integer","title":"Calls","default":0},"unpriced_calls":{"type":"integer","title":"Unpriced Calls","default":0},"billable_queries":{"type":"integer","title":"Billable Queries","default":0},"token_usd":{"type":"number","title":"Token Usd","default":0.0},"query_usd_at_list":{"type":"number","title":"Query Usd At List","default":0.0},"total_usd":{"type":"number","title":"Total Usd","default":0.0},"billable_bytes":{"type":"integer","title":"Billable Bytes","default":0},"estimated_calls":{"type":"integer","title":"Estimated Calls","default":0},"estimated_usd":{"type":"number","title":"Estimated Usd","default":0.0},"feature":{"$ref":"#/components/schemas/AiSpendFeature"}},"additionalProperties":false,"type":"object","required":["feature"],"title":"AiSpendFeatureTotals","description":"One feature's calls this month."},"AiSpendLimit-Input":{"properties":{"day_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,13}0*$)\\d{0,8}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Day Usd"},"month_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,13}0*$)\\d{0,8}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Month Usd"},"run_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,13}0*$)\\d{0,8}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Run Usd"}},"additionalProperties":false,"type":"object","title":"AiSpendLimit","description":"One scope's ceilings in dollars; a missing amount is unbounded."},"AiSpendLimit-Output":{"properties":{"day_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,13}0*$)\\d{0,8}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Day Usd"},"month_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,13}0*$)\\d{0,8}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Month Usd"},"run_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,8}|(?=[\\d.]{1,13}0*$)\\d{0,8}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Run Usd"}},"additionalProperties":false,"type":"object","title":"AiSpendLimit","description":"One scope's ceilings in dollars; a missing amount is unbounded."},"AiSpendMode":{"type":"string","enum":["off","shadow","enforce"],"title":"AiSpendMode","description":"The spend gate's switch. See services/ai/budget/CLAUDE.md § gate.py."},"AiSpendReconciliationReport":{"properties":{"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"window_start":{"type":"string","format":"date","title":"Window Start"},"window_end":{"type":"string","format":"date","title":"Window End"},"tolerance_pct":{"type":"number","title":"Tolerance Pct"},"reconciled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reconciled"},"providers":{"items":{"$ref":"#/components/schemas/ProviderReconciliation"},"type":"array","title":"Providers"}},"additionalProperties":false,"type":"object","required":["checked_at","window_start","window_end","tolerance_pct"],"title":"AiSpendReconciliationReport","description":"The whole check. `reconciled` is None when no provider could be compared at all."},"AiSpendWindow":{"properties":{"calls":{"type":"integer","title":"Calls","default":0},"unpriced_calls":{"type":"integer","title":"Unpriced Calls","default":0},"billable_queries":{"type":"integer","title":"Billable Queries","default":0},"token_usd":{"type":"number","title":"Token Usd","default":0.0},"query_usd_at_list":{"type":"number","title":"Query Usd At List","default":0.0},"total_usd":{"type":"number","title":"Total Usd","default":0.0},"billable_bytes":{"type":"integer","title":"Billable Bytes","default":0},"estimated_calls":{"type":"integer","title":"Estimated Calls","default":0},"estimated_usd":{"type":"number","title":"Estimated Usd","default":0.0},"starts_at":{"type":"string","format":"date-time","title":"Starts At"}},"additionalProperties":false,"type":"object","required":["starts_at"],"title":"AiSpendWindow","description":"Every call at or after `starts_at`."},"AiSpendWindowStatus":{"properties":{"scope":{"type":"string","title":"Scope"},"window":{"$ref":"#/components/schemas/BudgetWindow"},"limit_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Limit Usd"},"spent_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Spent Usd"},"remaining_usd":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Remaining Usd"},"level":{"$ref":"#/components/schemas/BudgetLevel"},"forced":{"type":"boolean","title":"Forced"}},"type":"object","required":["scope","window","limit_usd","spent_usd","remaining_usd","level","forced"],"title":"AiSpendWindowStatus","description":"One limited window: what it allows, what this environment spent, what is left."},"AnalyticsAreaMatch":{"properties":{"slice":{"type":"string","title":"Slice"},"slice_value":{"type":"string","title":"Slice Value"},"label":{"type":"string","title":"Label"},"people":{"$ref":"#/components/schemas/AnalyticsFigure"},"share":{"$ref":"#/components/schemas/AnalyticsFigure"},"new_users":{"$ref":"#/components/schemas/AnalyticsFigure"},"sessions":{"$ref":"#/components/schemas/AnalyticsFigure"},"series":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsDailySeries"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["slice","slice_value","label","people","share","new_users","sessions"],"title":"AnalyticsAreaMatch","description":"One ZIP or town found: its people and their share, new users, sessions, and (when asked) sessions over time."},"AnalyticsAreaRow":{"properties":{"slice":{"type":"string","title":"Slice"},"slice_value":{"type":"string","title":"Slice Value"},"label":{"type":"string","title":"Label"},"cells":{"items":{"$ref":"#/components/schemas/AnalyticsFigure"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","required":["slice","slice_value","label","cells"],"title":"AnalyticsAreaRow","description":"One ZIP or town people were looking at."},"AnalyticsAreaSearch":{"properties":{"query":{"type":"string","title":"Query"},"period":{"$ref":"#/components/schemas/AnalyticsPeriod"},"first_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"First Day"},"last_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Day"},"people_label":{"type":"string","title":"People Label"},"capped":{"type":"boolean","title":"Capped","default":false},"matches":{"items":{"$ref":"#/components/schemas/AnalyticsAreaMatch"},"type":"array","title":"Matches","default":[]}},"additionalProperties":false,"type":"object","required":["query","period","people_label"],"title":"AnalyticsAreaSearch","description":"FR-P3-1810: every counted ZIP or town matching the typed text, side by side, with the range's numbers."},"AnalyticsAreas":{"properties":{"columns":{"items":{"$ref":"#/components/schemas/AnalyticsColumn"},"type":"array","title":"Columns"},"zips":{"items":{"$ref":"#/components/schemas/AnalyticsAreaRow"},"type":"array","title":"Zips"},"cities":{"items":{"$ref":"#/components/schemas/AnalyticsAreaRow"},"type":"array","title":"Cities"}},"additionalProperties":false,"type":"object","required":["columns","zips","cities"],"title":"AnalyticsAreas","description":"Activity by ZIP and by town, one table each, sharing columns."},"AnalyticsArrivalRow":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"views":{"$ref":"#/components/schemas/AnalyticsFigure"},"share":{"$ref":"#/components/schemas/AnalyticsFigure"}},"additionalProperties":false,"type":"object","required":["key","label","views","share"],"title":"AnalyticsArrivalRow","description":"One way people reached a show's, venue's or act's page: its views and their share of all views."},"AnalyticsArrivals":{"properties":{"title":{"type":"string","title":"Title"},"note":{"type":"string","title":"Note"},"unknown_note":{"type":"string","title":"Unknown Note"},"rows":{"items":{"$ref":"#/components/schemas/AnalyticsArrivalRow"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["title","note","unknown_note","rows"],"title":"AnalyticsArrivals","description":"FR-P3-1815: where people came from, as page views by how they were reached, and what cannot be told apart."},"AnalyticsColumn":{"properties":{"measure":{"type":"string","title":"Measure"},"label":{"type":"string","title":"Label"}},"additionalProperties":false,"type":"object","required":["measure","label"],"title":"AnalyticsColumn","description":"One column of a table: the measure it holds and its heading."},"AnalyticsCoverage":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/AnalyticsCoverageRow"},"type":"array","title":"Rows"},"total":{"type":"integer","minimum":0.0,"title":"Total"}},"additionalProperties":false,"type":"object","required":["rows","total"],"title":"AnalyticsCoverage","description":"Every ZIP with an upcoming show, most first, and the total."},"AnalyticsCoverageRow":{"properties":{"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"label":{"type":"string","title":"Label"},"upcoming":{"type":"integer","minimum":0.0,"title":"Upcoming"}},"additionalProperties":false,"type":"object","required":["label","upcoming"],"title":"AnalyticsCoverageRow","description":"One venue ZIP and its upcoming shows; a show with no venue ZIP is the row with no ZIP."},"AnalyticsDailySeries":{"properties":{"measure":{"type":"string","title":"Measure"},"title":{"type":"string","title":"Title"},"point_label":{"type":"string","title":"Point Label"},"grain":{"$ref":"#/components/schemas/AnalyticsGrain","default":"day"},"average":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsFigure"},{"type":"null"}]},"points":{"items":{"$ref":"#/components/schemas/AnalyticsDayPoint"},"type":"array","title":"Points"}},"additionalProperties":false,"type":"object","required":["measure","title","point_label","points"],"title":"AnalyticsDailySeries","description":"One number by day, or by month for a year or more, across the period."},"AnalyticsDayNote":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"kind":{"$ref":"#/components/schemas/AnalyticsDayNoteKind"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["day","kind","text"],"title":"AnalyticsDayNote","description":"A day of the period named on its own."},"AnalyticsDayNoteKind":{"type":"string","enum":["missing","people_missing"],"title":"AnalyticsDayNoteKind","description":"Why a day of the period is named."},"AnalyticsDayPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"figure":{"$ref":"#/components/schemas/AnalyticsFigure"}},"additionalProperties":false,"type":"object","required":["day","figure"],"title":"AnalyticsDayPoint","description":"One day (or one month, named by its first day) of a series; blank when it was not counted."},"AnalyticsFigure":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"$ref":"#/components/schemas/AnalyticsUnit"},"decimals":{"type":"integer","maximum":2.0,"minimum":0.0,"title":"Decimals","default":0},"text":{"type":"string","title":"Text"},"hidden":{"type":"boolean","title":"Hidden","default":false},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["unit","text"],"title":"AnalyticsFigure","description":"One number at the precision it is shown; blank with a reason when hidden, undefined or not counted."},"AnalyticsFreshness":{"properties":{"counted":{"type":"boolean","title":"Counted"},"counting_began":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Counting Began"},"data_through":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Data Through"},"final_through":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Final Through"},"people_through":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"People Through"},"period_clipped":{"type":"boolean","title":"Period Clipped","default":false},"days":{"items":{"$ref":"#/components/schemas/AnalyticsDayNote"},"type":"array","title":"Days","default":[]}},"additionalProperties":false,"type":"object","required":["counted"],"title":"AnalyticsFreshness","description":"How fresh the numbers are."},"AnalyticsFunnel":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"note":{"type":"string","title":"Note","default":"Each person counts once in the period."},"steps":{"items":{"$ref":"#/components/schemas/AnalyticsFunnelStep"},"type":"array","title":"Steps"}},"additionalProperties":false,"type":"object","required":["name","title","steps"],"title":"AnalyticsFunnel","description":"One funnel on the period's people day; `note` says over which days each person counts once."},"AnalyticsFunnelStep":{"properties":{"measure":{"type":"string","title":"Measure"},"label":{"type":"string","title":"Label"},"people":{"$ref":"#/components/schemas/AnalyticsFigure"},"share":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsFigure"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["measure","label","people"],"title":"AnalyticsFunnelStep","description":"One step of a funnel; its share is of the first step."},"AnalyticsGrain":{"type":"string","enum":["day","month"],"title":"AnalyticsGrain","description":"What one point of a chart covers."},"AnalyticsInternalRequest":{"properties":{"analytics_internal":{"type":"boolean","title":"Analytics Internal"}},"additionalProperties":false,"type":"object","required":["analytics_internal"],"title":"AnalyticsInternalRequest","description":"Mark (true) or unmark (false) an account as a tester."},"AnalyticsMonth":{"properties":{"month":{"type":"string","format":"date","title":"Month"},"label":{"type":"string","title":"Label"},"new_users":{"$ref":"#/components/schemas/AnalyticsFigure"},"monthly_active":{"$ref":"#/components/schemas/AnalyticsFigure"}},"additionalProperties":false,"type":"object","required":["month","label","new_users","monthly_active"],"title":"AnalyticsMonth","description":"One month since counting began."},"AnalyticsPeriod":{"type":"string","enum":["7","30","365","all","custom"],"title":"AnalyticsPeriod","description":"Which range the report covers: a week or a month, the last 12 months, everything, or custom days (FR-P3-1813)."},"AnalyticsPushKindRow":{"properties":{"kind":{"type":"string","title":"Kind"},"label":{"type":"string","title":"Label"},"cells":{"items":{"$ref":"#/components/schemas/AnalyticsFigure"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","required":["kind","label","cells"],"title":"AnalyticsPushKindRow","description":"One kind of push: accepted, the share opened, the share ignored and the middle time to open."},"AnalyticsPushSlot":{"properties":{"day_of_week":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Day Of Week"},"hour":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Hour"},"label":{"type":"string","title":"Label"},"sent":{"type":"integer","minimum":0.0,"title":"Sent"},"opened":{"type":"integer","minimum":0.0,"title":"Opened"},"share":{"$ref":"#/components/schemas/AnalyticsFigure"}},"additionalProperties":false,"type":"object","required":["day_of_week","hour","label","sent","opened","share"],"title":"AnalyticsPushSlot","description":"One hour of the week (New York) the pushes were sent in: how many, and the share opened within 7 days."},"AnalyticsPushStats":{"properties":{"tiles":{"items":{"$ref":"#/components/schemas/AnalyticsTile"},"type":"array","title":"Tiles"},"kind_columns":{"items":{"$ref":"#/components/schemas/AnalyticsColumn"},"type":"array","title":"Kind Columns"},"kinds":{"items":{"$ref":"#/components/schemas/AnalyticsPushKindRow"},"type":"array","title":"Kinds"},"slots":{"items":{"$ref":"#/components/schemas/AnalyticsPushSlot"},"type":"array","title":"Slots"},"best":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsPushWindow"},{"type":"null"}]},"best_text":{"type":"string","title":"Best Text"}},"additionalProperties":false,"type":"object","required":["tiles","kind_columns","kinds","slots","best_text"],"title":"AnalyticsPushStats","description":"FR-P3-1806: the period's pushes, ignored, time to open and best time to send, overall and by kind."},"AnalyticsPushStep":{"properties":{"measure":{"type":"string","title":"Measure"},"label":{"type":"string","title":"Label"},"count":{"$ref":"#/components/schemas/AnalyticsFigure"},"share":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsFigure"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["measure","label","count"],"title":"AnalyticsPushStep","description":"One push step; its share is of the step before."},"AnalyticsPushWindow":{"properties":{"day_of_week":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Day Of Week"},"start_hour":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Start Hour"},"label":{"type":"string","title":"Label"},"share":{"$ref":"#/components/schemas/AnalyticsFigure"}},"additionalProperties":false,"type":"object","required":["day_of_week","start_hour","label","share"],"title":"AnalyticsPushWindow","description":"The two hours in a row whose pushes were opened most, and the sentence the page says it in."},"AnalyticsRetentionRow":{"properties":{"days":{"type":"integer","title":"Days"},"measure":{"type":"string","title":"Measure"},"label":{"type":"string","title":"Label"},"figure":{"$ref":"#/components/schemas/AnalyticsFigure"}},"additionalProperties":false,"type":"object","required":["days","measure","label","figure"],"title":"AnalyticsRetentionRow","description":"Of the period's first-time people, the share who came back after N days."},"AnalyticsSettingsResponse":{"properties":{"export_enabled":{"type":"boolean","title":"Export Enabled"},"export_max_days_per_run":{"type":"integer","title":"Export Max Days Per Run"},"max_days_limit":{"type":"integer","title":"Max Days Limit","default":90},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"},"updated_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Email"}},"additionalProperties":false,"type":"object","required":["export_enabled","export_max_days_per_run"],"title":"AnalyticsSettingsResponse","description":"The settings as stored, never as requested."},"AnalyticsSettingsUpdate":{"properties":{"export_enabled":{"type":"boolean","title":"Export Enabled"},"export_max_days_per_run":{"type":"integer","maximum":90.0,"minimum":0.0,"title":"Export Max Days Per Run"}},"additionalProperties":false,"type":"object","required":["export_enabled","export_max_days_per_run"],"title":"AnalyticsSettingsUpdate","description":"Both settings, always together: a PUT replaces the pair."},"AnalyticsSliceColumn":{"properties":{"slice":{"type":"string","title":"Slice"},"slice_value":{"type":"string","title":"Slice Value"},"label":{"type":"string","title":"Label"}},"additionalProperties":false,"type":"object","required":["slice","slice_value","label"],"title":"AnalyticsSliceColumn","description":"One column of the split table: a slice and its heading."},"AnalyticsSplit":{"properties":{"columns":{"items":{"$ref":"#/components/schemas/AnalyticsSliceColumn"},"type":"array","title":"Columns"},"rows":{"items":{"$ref":"#/components/schemas/AnalyticsSplitRow"},"type":"array","title":"Rows"}},"additionalProperties":false,"type":"object","required":["columns","rows"],"title":"AnalyticsSplit","description":"The split table: its columns (each a slice) and its rows."},"AnalyticsSplitRow":{"properties":{"measure":{"type":"string","title":"Measure"},"label":{"type":"string","title":"Label"},"cells":{"items":{"$ref":"#/components/schemas/AnalyticsFigure"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","required":["measure","label","cells"],"title":"AnalyticsSplitRow","description":"One measure across the website, the app, iPhone and Android."},"AnalyticsTile":{"properties":{"measure":{"type":"string","title":"Measure"},"label":{"type":"string","title":"Label"},"figure":{"$ref":"#/components/schemas/AnalyticsFigure"},"caption":{"type":"string","title":"Caption"},"detail_measure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail Measure"},"detail":{"anyOf":[{"$ref":"#/components/schemas/AnalyticsFigure"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["measure","label","figure","caption"],"title":"AnalyticsTile","description":"One headline number; `detail` is a second number its caption shows."},"AnalyticsTopList":{"properties":{"slice":{"type":"string","title":"Slice"},"title":{"type":"string","title":"Title"},"name_label":{"type":"string","title":"Name Label"},"columns":{"items":{"$ref":"#/components/schemas/AnalyticsColumn"},"type":"array","title":"Columns"},"rows":{"items":{"$ref":"#/components/schemas/AnalyticsTopRow"},"type":"array","title":"Rows"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"row_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Row Note"}},"additionalProperties":false,"type":"object","required":["slice","title","name_label","columns","rows","notes"],"title":"AnalyticsTopList","description":"One top-10 list; `row_note` is what every row of it carries in the CSV."},"AnalyticsTopRow":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"label":{"type":"string","title":"Label"},"listed":{"type":"boolean","title":"Listed"},"cells":{"items":{"$ref":"#/components/schemas/AnalyticsFigure"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","required":["entity_id","label","listed","cells"],"title":"AnalyticsTopRow","description":"One ranked show, venue, act or category."},"AnalyticsUnit":{"type":"string","enum":["people","count","hours","minutes","seconds","percent"],"title":"AnalyticsUnit","description":"What a figure counts or measures."},"AppleAuthorizationCodeRequest":{"properties":{"authorization_code":{"type":"string","maxLength":512,"minLength":1,"title":"Authorization Code"},"lane":{"$ref":"#/components/schemas/AppleCodeLane"},"redirect_uri":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Redirect Uri"}},"additionalProperties":false,"type":"object","required":["authorization_code","lane"],"title":"AppleAuthorizationCodeRequest","description":"Apple's fresh authorization code, posted right after an ID-token sign-in succeeds."},"AppleCodeLane":{"type":"string","enum":["native","web"],"title":"AppleCodeLane","description":"Which client id Apple issued a code to, and so the one it must be exchanged with."},"AppleRefreshTokenRequest":{"properties":{"provider_refresh_token":{"type":"string","maxLength":2048,"minLength":1,"title":"Provider Refresh Token"}},"additionalProperties":false,"type":"object","required":["provider_refresh_token"],"title":"AppleRefreshTokenRequest","description":"The Apple-on-Android browser lane forwarding the token Supabase gave it."},"AppleRefreshTokenResponse":{"properties":{"stored":{"type":"boolean","title":"Stored"}},"additionalProperties":false,"type":"object","required":["stored"],"title":"AppleRefreshTokenResponse","description":"Acknowledgement only. It carries no token, no secret id, and no user id."},"ApplicantSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["id"],"title":"ApplicantSummary"},"AppliedResolution":{"properties":{"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"name":{"type":"string","title":"Name"},"id":{"type":"string","title":"Id"},"action":{"type":"string","enum":["linked","created"],"title":"Action"}},"type":"object","required":["kind","name","id","action"],"title":"AppliedResolution","description":"What one resolution did — surfaced on the import result so the admin sees every new row."},"ApplyLicenseBody":{"properties":{"license_id":{"type":"string","format":"uuid","title":"License Id"}},"additionalProperties":false,"type":"object","required":["license_id"],"title":"ApplyLicenseBody","description":"CAP-2 — which of the caller's own unattached licenses to apply."},"AreaAlertOptInListRead":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AreaAlertOptInRead"},"type":"array","title":"Items"},"max_per_user":{"type":"integer","title":"Max Per User"}},"additionalProperties":false,"type":"object","required":["items","max_per_user"],"title":"AreaAlertOptInListRead","description":"Every ZIP the caller is opted in to, newest first, plus the per-user cap."},"AreaAlertOptInRead":{"properties":{"zip":{"type":"string","title":"Zip"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"additionalProperties":false,"type":"object","required":["zip"],"title":"AreaAlertOptInRead","description":"One ZIP the caller asked to hear about."},"AreaAlertStatusResponse":{"properties":{"zip":{"type":"string","title":"Zip"},"opted_in":{"type":"boolean","title":"Opted In"}},"type":"object","required":["zip","opted_in"],"title":"AreaAlertStatusResponse","description":"Per-ZIP opt-in status for GET /api/v1/area-alerts/{zip} — seeds the mobile\nnotify-Toggle so its state survives remount + reflects server truth (review\ndecision: make the optimistic cache real). `opted_in` is False when the\ncaller has no row for the ZIP."},"ArtistClaimCreate":{"properties":{"claimant_role":{"type":"string","enum":["owner","manager","booking_agent"],"title":"Claimant Role"},"business_phone":{"type":"string","maxLength":200,"minLength":1,"title":"Business Phone"},"business_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Business Email"},"claimant_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Claimant Note"},"account_phone":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Account Phone"},"account_phone_overwrite":{"type":"boolean","title":"Account Phone Overwrite","default":false},"legal_business_name":{"title":"Legal Business Name"},"ein":{"title":"Ein"},"artist_id":{"type":"string","title":"Artist Id"}},"additionalProperties":false,"type":"object","required":["claimant_role","business_phone","artist_id"],"title":"ArtistClaimCreate","description":"A claim of an existing artist: the target, plus the evidence every path collects."},"ArtistEventCreate":{"properties":{"title":{"type":"string","maxLength":140,"minLength":2,"title":"Title"},"description":{"type":"string","maxLength":3000,"title":"Description","default":""},"category":{"type":"string","maxLength":80,"minLength":2,"title":"Category"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"},"age_requirement":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Age Requirement"},"capacity":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Capacity"},"genres":{"items":{"type":"string"},"type":"array","title":"Genres"},"venue_id":{"type":"string","format":"uuid","title":"Venue Id","description":"UUID of an existing venue the event is held at."},"artist_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10},{"type":"null"}],"title":"Artist Ids"},"artist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Artist Id"}},"additionalProperties":false,"type":"object","required":["title","category","start_time","end_time","venue_id"],"title":"ArtistEventCreate","description":"Event-create payload for the artist-owner path. See CLAUDE.md § artists.py."},"ArtistGenre":{"properties":{"artist_id":{"type":"string","format":"uuid","title":"Artist Id"},"genre_id":{"type":"string","format":"uuid","title":"Genre Id"},"source":{"$ref":"#/components/schemas/ClassificationSource"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"resolution_tier":{"anyOf":[{"$ref":"#/components/schemas/ArtistGenreTier"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"additionalProperties":false,"type":"object","required":["artist_id","genre_id","source"],"title":"ArtistGenre","description":"An artist↔genre link row."},"ArtistGenreCoverageReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"artists_total":{"type":"integer","title":"Artists Total"},"artists_typed":{"type":"integer","title":"Artists Typed","default":0},"artists_with_genre":{"type":"integer","title":"Artists With Genre"},"artists_in_genre_bearing_categories":{"type":"integer","title":"Artists In Genre Bearing Categories"},"with_genre_in_genre_bearing_categories":{"type":"integer","title":"With Genre In Genre Bearing Categories"},"artists_attempted":{"type":"integer","title":"Artists Attempted"}},"type":"object","required":["measured_at","artists_total","artists_with_genre","artists_in_genre_bearing_categories","with_genre_in_genre_bearing_categories","artists_attempted"],"title":"ArtistGenreCoverageReport","description":"Artist-genre coverage, measured now."},"ArtistGenreCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_provisional":{"type":"boolean","title":"Is Provisional","default":true}},"additionalProperties":false,"type":"object","required":["label"],"title":"ArtistGenreCreateRequest","description":"Create one genre value under one artist type."},"ArtistGenreTier":{"type":"string","enum":["alias_match","tm_enriched","itunes_mapped","wikidata_mapped","ai_canonicalized","knowledge_lookup","already_canonical"],"title":"ArtistGenreTier","description":"ResolutionTier values that produce a slug. The other four cannot appear on a row."},"ArtistGenreUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_provisional":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Provisional"}},"additionalProperties":false,"type":"object","title":"ArtistGenreUpdateRequest","description":"Rename / reorder / retire / restore / ratify one genre value."},"ArtistGenreValue":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"artist_type_value_id":{"type":"string","format":"uuid","title":"Artist Type Value Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_provisional":{"type":"boolean","title":"Is Provisional","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["artist_type_value_id","slug","label"],"title":"ArtistGenreValue","description":"One artist genre in the client-ratified vocabulary, under one type."},"ArtistMergeChildPlan":{"properties":{"table":{"type":"string","title":"Table"},"column":{"type":"string","title":"Column"},"reference":{"type":"string","title":"Reference"},"on_delete":{"type":"string","title":"On Delete","default":""},"disposition":{"type":"string","title":"Disposition"},"rows":{"type":"integer","title":"Rows","default":0},"rationale":{"type":"string","title":"Rationale","default":""}},"type":"object","required":["table","column","reference","disposition"],"title":"ArtistMergeChildPlan","description":"One table that references `public.artists`, and what the merge does to it."},"ArtistMergeDryRunRequest":{"properties":{"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"field_overrides":{"additionalProperties":true,"type":"object","title":"Field Overrides"}},"type":"object","required":["survivor_id","victim_id"],"title":"ArtistMergeDryRunRequest","description":"The dry-run payload.\n\nDeliberately the same three fields as `MergeRequest` rather than a subclass:\nit is a DIFFERENT endpoint with a different response, and inheriting would\nmake a future field added for the real merge silently appear here too."},"ArtistMergeDryRunResult":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"merged_fields":{"items":{"type":"string"},"type":"array","title":"Merged Fields"},"ignored_overrides":{"items":{"type":"string"},"type":"array","title":"Ignored Overrides"},"children":{"items":{"$ref":"#/components/schemas/ArtistMergeChildPlan"},"type":"array","title":"Children"},"guards_would_refuse":{"items":{"type":"string"},"type":"array","title":"Guards Would Refuse"},"owner_action":{"type":"string","title":"Owner Action","default":"none"},"deleted_victim":{"type":"boolean","title":"Deleted Victim","default":false}},"type":"object","required":["survivor_id","victim_id"],"title":"ArtistMergeDryRunResult","description":"The plan. Nothing was written to produce it."},"ArtistMergeRestoreChildReport":{"properties":{"cleared_from_survivor":{"type":"integer","title":"Cleared From Survivor","default":0},"cleared_from_victim":{"type":"integer","title":"Cleared From Victim","default":0},"cleared_stale":{"type":"integer","title":"Cleared Stale","default":0},"reinserted":{"type":"integer","title":"Reinserted","default":0}},"type":"object","title":"ArtistMergeRestoreChildReport","description":"What the restore did to one child table.\n\n🔴 THREE CLEAR COUNTS, NOT ONE, because the restore clears three different\npopulations and collapsing them would hide the two that exist to fix a\nrestore that would otherwise abort outright."},"ArtistMergeRestoreResult":{"properties":{"snapshot_id":{"type":"string","format":"uuid","title":"Snapshot Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"restored":{"type":"boolean","title":"Restored","default":true},"children":{"additionalProperties":{"$ref":"#/components/schemas/ArtistMergeRestoreChildReport"},"type":"object","title":"Children"}},"type":"object","required":["snapshot_id","victim_id","survivor_id"],"title":"ArtistMergeRestoreResult","description":"The undo, described. Everything below happened in one transaction."},"ArtistMergeSnapshotSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"restored_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Restored At"},"restored_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Restored By"},"victim_stage_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Victim Stage Name"},"child_row_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Child Row Counts"}},"additionalProperties":false,"type":"object","required":["id","victim_id","survivor_id"],"title":"ArtistMergeSnapshotSummary","description":"One pre-merge snapshot, without its payloads."},"ArtistOfficialUrlCoverage":{"properties":{"artists_total":{"type":"integer","title":"Artists Total"},"with_official_url":{"type":"integer","title":"With Official Url"},"outcomes":{"additionalProperties":{"type":"integer"},"type":"object","title":"Outcomes"}},"type":"object","required":["artists_total","with_official_url"],"title":"ArtistOfficialUrlCoverage","description":"`artists.official_url` coverage over ALL artists.\n\nThe denominator here IS the whole table, and that asymmetry with tickets is\ndeliberate: every artist could in principle have a website, whereas a free\nevent could not have a ticket link. There is no \"plausibly websited\"."},"ArtistProfileCreate":{"properties":{"stage_name":{"type":"string","maxLength":200,"minLength":1,"title":"Stage Name"},"genre":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Genre"},"genres":{"items":{"type":"string"},"type":"array","title":"Genres"},"bio":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Bio"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"official_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Official Url"}},"type":"object","required":["stage_name"],"title":"ArtistProfileCreate"},"ArtistProfileRead":{"properties":{"id":{"type":"string","title":"Id"},"stage_name":{"type":"string","title":"Stage Name"},"genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Genres"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"cover_image_licence":{"anyOf":[{"$ref":"#/components/schemas/CoverImageLicence"},{"type":"null"}]},"cover_image_credit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Credit"},"cover_image_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Source Url"},"spotify_photo":{"anyOf":[{"$ref":"#/components/schemas/SpotifyPhotoRead"},{"type":"null"}]},"official_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Url"},"founding_business":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Founding Business"},"gallery_images":{"items":{"$ref":"#/components/schemas/GalleryPhotoRead"},"type":"array","title":"Gallery Images"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"gallery_image_urls":{"items":{"type":"string"},"type":"array","title":"Gallery Image Urls","description":"DERIVED from `gallery_images` — a stored second copy would drift. See CLAUDE.md § read.py.","readOnly":true}},"type":"object","required":["id","stage_name","gallery_image_urls"],"title":"ArtistProfileRead"},"ArtistProfileUpdate":{"properties":{"stage_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Stage Name"},"genres":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Genres"},"bio":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Bio"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"official_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Official Url"}},"type":"object","title":"ArtistProfileUpdate"},"ArtistResolution":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"link_to_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link To Id"},"create":{"anyOf":[{"$ref":"#/components/schemas/AdminArtistCreate"},{"type":"null"}]}},"type":"object","required":["name"],"title":"ArtistResolution"},"ArtistSearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ArtistProfileRead"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","page","limit","total"],"title":"ArtistSearchResponse"},"ArtistTag":{"properties":{"artist_id":{"type":"string","format":"uuid","title":"Artist Id"},"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"source":{"$ref":"#/components/schemas/ClassificationSource"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"single_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Single Group Id"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"}},"additionalProperties":false,"type":"object","required":["artist_id","tag_value_id","source"],"title":"ArtistTag","description":"One artist-to-value assignment."},"ArtistTagAssignmentRequest":{"properties":{"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"source":{"$ref":"#/components/schemas/ClassificationSource","default":"admin"},"confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"}},"additionalProperties":false,"type":"object","required":["tag_value_id"],"title":"ArtistTagAssignmentRequest","description":"Attach one existing value to one artist. Never mints a value."},"ArtistTagGroup":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"select_mode":{"type":"string","title":"Select Mode","default":"single"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["slug","label"],"title":"ArtistTagGroup","description":"An artist tag group — an out-of-hierarchy descriptor axis."},"ArtistTagGroupCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"slug":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Slug"},"select_mode":{"type":"string","enum":["single","multi"],"title":"Select Mode","default":"single"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"additionalProperties":false,"type":"object","required":["label"],"title":"ArtistTagGroupCreateRequest","description":"Create one group. `select_mode` defaults to the column's own `single`."},"ArtistTagGroupUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"select_mode":{"anyOf":[{"type":"string","enum":["single","multi"]},{"type":"null"}],"title":"Select Mode"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"ArtistTagGroupUpdateRequest","description":"Rename / reorder / retire / re-mode one group."},"ArtistTagGroupWithValues":{"properties":{"group":{"$ref":"#/components/schemas/ArtistTagGroup"},"values":{"items":{"$ref":"#/components/schemas/ArtistTagValue"},"type":"array","title":"Values"}},"additionalProperties":false,"type":"object","required":["group","values"],"title":"ArtistTagGroupWithValues","description":"One group and the ACTIVE values inside it."},"ArtistTagValue":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"group_id":{"type":"string","format":"uuid","title":"Group Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["group_id","slug","label"],"title":"ArtistTagValue","description":"One artist tag value, scoped to its group."},"ArtistTagValueCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"slug":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Slug"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"additionalProperties":false,"type":"object","required":["label"],"title":"ArtistTagValueCreateRequest","description":"Create one value under a group."},"ArtistTagValueUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"ArtistTagValueUpdateRequest","description":"Rename / reorder / retire / restore one value."},"ArtistTagVocabularyResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/ArtistTagGroupWithValues"},"type":"array","title":"Groups"}},"additionalProperties":false,"type":"object","required":["groups"],"title":"ArtistTagVocabularyResponse","description":"The whole active artist-tag vocabulary, groups in `sort_order`.\n\nRetired groups and retired values are ABSENT — this is the OFFERABLE\nvocabulary. An artist that carries a retired value still reports it on the\nartist's own tag read; the two questions are different on purpose."},"ArtistTaxonomyAssignmentsResponse":{"properties":{"authored_types":{"items":{"$ref":"#/components/schemas/ArtistType"},"type":"array","title":"Authored Types"},"derived_types":{"items":{"$ref":"#/components/schemas/ArtistType"},"type":"array","title":"Derived Types"},"authored_genres":{"items":{"$ref":"#/components/schemas/ArtistGenre"},"type":"array","title":"Authored Genres"},"derived_genres":{"items":{"$ref":"#/components/schemas/ArtistGenre"},"type":"array","title":"Derived Genres"}},"additionalProperties":false,"type":"object","required":["authored_types","derived_types","authored_genres","derived_genres"],"title":"ArtistTaxonomyAssignmentsResponse","description":"What one artist carries on both axes, authored rows separated from machine rows."},"ArtistType":{"properties":{"artist_id":{"type":"string","format":"uuid","title":"Artist Id"},"artist_type_value_id":{"type":"string","format":"uuid","title":"Artist Type Value Id"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"source":{"$ref":"#/components/schemas/ClassificationSource"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"additionalProperties":false,"type":"object","required":["artist_id","artist_type_value_id","source"],"title":"ArtistType","description":"An artist↔type link row."},"ArtistTypeCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_provisional":{"type":"boolean","title":"Is Provisional","default":true}},"additionalProperties":false,"type":"object","required":["label"],"title":"ArtistTypeCreateRequest","description":"Create one artist type. The slug is derived server-side from the label."},"ArtistTypeUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_provisional":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Provisional"}},"additionalProperties":false,"type":"object","title":"ArtistTypeUpdateRequest","description":"Rename / reorder / retire / restore / ratify one artist type."},"ArtistTypeValue":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_provisional":{"type":"boolean","title":"Is Provisional","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["slug","label"],"title":"ArtistTypeValue","description":"One artist type in the client-ratified vocabulary."},"ArtistTypeVocabularyResponse":{"properties":{"types":{"items":{"$ref":"#/components/schemas/ArtistTypeWithGenres"},"type":"array","title":"Types"}},"additionalProperties":false,"type":"object","required":["types"],"title":"ArtistTypeVocabularyResponse","description":"The whole active artist vocabulary, types in `sort_order`.\n\nThree of the thirteen seeded types carry no genre column at all — `Educator`,\n`Private` and `Other` — so an empty `genres` list is correct, not a short read."},"ArtistTypeWithGenres":{"properties":{"type":{"$ref":"#/components/schemas/ArtistTypeValue"},"genres":{"items":{"$ref":"#/components/schemas/ArtistGenreValue"},"type":"array","title":"Genres"}},"additionalProperties":false,"type":"object","required":["type","genres"],"title":"ArtistTypeWithGenres","description":"One artist type and the ACTIVE genre values scoped to it."},"AudienceActions":{"properties":{"saved":{"type":"integer","minimum":0.0,"title":"Saved"},"calendar":{"type":"integer","minimum":0.0,"title":"Calendar"},"shared":{"type":"integer","minimum":0.0,"title":"Shared"},"followed":{"type":"integer","minimum":0.0,"title":"Followed"},"ticket_links":{"type":"integer","minimum":0.0,"title":"Ticket Links"}},"additionalProperties":false,"type":"object","required":["saved","calendar","shared","followed","ticket_links"],"title":"AudienceActions","description":"What people did after looking, each a count of actions in the period."},"AudienceArea":{"properties":{"zip":{"type":"string","title":"Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"people":{"type":"integer","minimum":1.0,"title":"People"},"share":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Share"}},"additionalProperties":false,"type":"object","required":["zip","city","people","share"],"title":"AudienceArea","description":"One area people were browsing when they looked (NEWQ-26.10-D), how many people, and their share of all who looked."},"AudienceAreas":{"properties":{"available":{"type":"boolean","const":true,"title":"Available","default":true},"areas":{"items":{"$ref":"#/components/schemas/AudienceArea"},"type":"array","title":"Areas"},"local":{"anyOf":[{"$ref":"#/components/schemas/AudienceLocal"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","areas","local"],"title":"AudienceAreas"},"AudienceBar":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"days":{"type":"integer","maximum":31.0,"minimum":1.0,"title":"Days"},"days_counted":{"type":"integer","maximum":31.0,"minimum":0.0,"title":"Days Counted"},"views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views"}},"additionalProperties":false,"type":"object","required":["start","days","days_counted","views"],"title":"AudienceBar","description":"One bar: its first local day, how many of its days are in the period, how many were counted, and its views."},"AudienceBarUnit":{"type":"string","enum":["day","week","month"],"title":"AudienceBarUnit","description":"What one bar of views over time holds: a day (week, month), a week (90 days) or a calendar month (year)."},"AudienceBaselineKind":{"type":"string","enum":["before_paid_plan","month"],"title":"AudienceBaselineKind"},"AudienceBusyTime":{"properties":{"peak":{"anyOf":[{"$ref":"#/components/schemas/AudiencePeak"},{"type":"null"}]},"based_on":{"type":"integer","minimum":0.0,"title":"Based On"},"views_by_hour":{"items":{"type":"integer"},"type":"array","title":"Views By Hour"}},"additionalProperties":false,"type":"object","required":["peak","based_on","views_by_hour"],"title":"AudienceBusyTime","description":"When people look: the busiest window, the views it rests on, and the 168 week-hours, Monday 00:00 first."},"AudienceComparison":{"properties":{"available":{"type":"boolean","const":true,"title":"Available","default":true},"below":{"type":"integer","minimum":0.0,"title":"Below"},"peers":{"type":"integer","minimum":1.0,"title":"Peers"},"percentile":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Percentile"},"group":{"type":"string","title":"Group"},"place":{"type":"string","title":"Place"}},"additionalProperties":false,"type":"object","required":["available","below","peers","percentile","group","place"],"title":"AudienceComparison","description":"More views than `below` of `peers` similar entities: `group` (\"bars and restaurants\") in `place`."},"AudienceDay":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views"}},"additionalProperties":false,"type":"object","required":["day","views"],"title":"AudienceDay","description":"One local day of the period: its views, None when LIVEY could not count it (the CSV's rows, FR-P3-1813)."},"AudienceDayRun":{"properties":{"first":{"type":"string","format":"date","title":"First"},"last":{"type":"string","format":"date","title":"Last"}},"additionalProperties":false,"type":"object","required":["first","last"],"title":"AudienceDayRun","description":"Consecutive local days LIVEY could not count, after counting began (P2-BUG-1730's sentence)."},"AudienceEntityKind":{"type":"string","enum":["venue","artist"],"title":"AudienceEntityKind"},"AudienceFreshness":{"properties":{"data_through":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Data Through"},"days_covered":{"anyOf":[{"type":"integer","maximum":366.0,"minimum":1.0},{"type":"null"}],"title":"Days Covered"},"counting_started_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Counting Started On"},"behind":{"type":"boolean","title":"Behind","default":false}},"additionalProperties":false,"type":"object","required":["data_through","days_covered","counting_started_on","behind"],"title":"AudienceFreshness","description":"What the footer says: the newest counted local day, how many of the 366 were counted, when counting started."},"AudienceGrowth":{"properties":{"available":{"type":"boolean","const":true,"title":"Available","default":true},"baseline_kind":{"$ref":"#/components/schemas/AudienceBaselineKind"},"baseline":{"$ref":"#/components/schemas/AudienceGrowthSpan"},"paid_since":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Paid Since"},"months":{"items":{"$ref":"#/components/schemas/AudienceGrowthSpan"},"type":"array","title":"Months"}},"additionalProperties":false,"type":"object","required":["available","baseline_kind","baseline","paid_since","months"],"title":"AudienceGrowth","description":"FR-P3-1814: views a week in the baseline against each calendar month since, managers' visits included."},"AudienceGrowthSpan":{"properties":{"first":{"type":"string","format":"date","title":"First"},"last":{"type":"string","format":"date","title":"Last"},"views":{"type":"integer","minimum":0.0,"title":"Views"},"days_counted":{"type":"integer","minimum":0.0,"title":"Days Counted"},"views_a_week":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views A Week"}},"additionalProperties":false,"type":"object","required":["first","last","views","days_counted","views_a_week"],"title":"AudienceGrowthSpan","description":"FR-P3-1814: a span of New York days (26.9's per-entity rows): its views, the days counted, views a week."},"AudienceLocal":{"properties":{"people":{"type":"integer","minimum":0.0,"title":"People"},"of":{"type":"integer","minimum":1.0,"title":"Of"},"share":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Share"}},"additionalProperties":false,"type":"object","required":["people","of","share"],"title":"AudienceLocal","description":"FR-P3-1807: of everyone who looked, how many were browsing within 10 miles of the venue."},"AudienceMarker":{"properties":{"kind":{"$ref":"#/components/schemas/AudienceMarkerKind"},"day":{"type":"string","format":"date","title":"Day"},"count":{"type":"integer","minimum":1.0,"title":"Count"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"additionalProperties":false,"type":"object","required":["kind","day","count","title"],"title":"AudienceMarker","description":"One kind of thing done on one local day: how many, and the show's title when there was one."},"AudienceMarkerKind":{"type":"string","enum":["promoted","paid_push","shows_added"],"title":"AudienceMarkerKind","description":"FR-P3-1811: what the owner did on a day: promoted a show, sent a paid push, or added shows."},"AudienceNumbers":{"properties":{"available":{"type":"boolean","const":true,"title":"Available","default":true},"summary":{"$ref":"#/components/schemas/AudienceSummary"},"views_over_time":{"$ref":"#/components/schemas/AudienceViewsOverTime"},"busy_time":{"anyOf":[{"$ref":"#/components/schemas/AudienceBusyTime"},{"$ref":"#/components/schemas/AudienceUnavailable"}],"title":"Busy Time"},"areas":{"anyOf":[{"$ref":"#/components/schemas/AudienceAreas"},{"$ref":"#/components/schemas/AudienceUnavailable"}],"title":"Areas"},"reach":{"anyOf":[{"$ref":"#/components/schemas/AudienceReach"},{"type":"null"}]},"actions":{"anyOf":[{"$ref":"#/components/schemas/AudienceActions"},{"$ref":"#/components/schemas/AudienceUnavailable"}],"title":"Actions"},"comparison":{"anyOf":[{"$ref":"#/components/schemas/AudienceComparison"},{"$ref":"#/components/schemas/AudienceUnavailable"}],"title":"Comparison"},"promoted":{"anyOf":[{"$ref":"#/components/schemas/AudiencePromoted"},{"$ref":"#/components/schemas/AudienceUnavailable"}],"title":"Promoted"},"markers":{"items":{"$ref":"#/components/schemas/AudienceMarker"},"type":"array","title":"Markers"},"suggestions":{"items":{"$ref":"#/components/schemas/AudienceSuggestion"},"type":"array","maxItems":3,"title":"Suggestions"},"growth":{"anyOf":[{"$ref":"#/components/schemas/AudienceGrowth"},{"$ref":"#/components/schemas/AudienceUnavailable"}],"title":"Growth"}},"additionalProperties":false,"type":"object","required":["available","summary","views_over_time","busy_time","areas","reach","actions","comparison","promoted","markers","suggestions","growth"],"title":"AudienceNumbers","description":"Every part of a counted entity's card, for the chosen period."},"AudiencePeak":{"properties":{"day_of_week":{"type":"integer","maximum":7.0,"minimum":1.0,"title":"Day Of Week"},"start_hour":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Start Hour"},"share":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Share"}},"additionalProperties":false,"type":"object","required":["day_of_week","start_hour","share"],"title":"AudiencePeak","description":"The busiest two hours: ISO weekday (1 = Monday), local start hour, and its share of every view."},"AudiencePeriodChoice":{"type":"string","enum":["week","month","90_days","year","custom"],"title":"AudiencePeriodChoice","description":"FR-P3-1808 / FR-P3-1813: the four stored periods, or a custom from–to span inside the days the card holds."},"AudienceProgress":{"properties":{"have":{"type":"integer","minimum":0.0,"title":"Have"},"need":{"type":"integer","minimum":1.0,"title":"Need"}},"additionalProperties":false,"type":"object","required":["have","need"],"title":"AudienceProgress","description":"How far a part is from its floor: \"0 of 1 needed\" (OD-15: one peer is enough)."},"AudiencePromoted":{"properties":{"available":{"type":"boolean","const":true,"title":"Available","default":true},"promoted":{"$ref":"#/components/schemas/AudienceShowGroup"},"other":{"$ref":"#/components/schemas/AudienceShowGroup"}},"additionalProperties":false,"type":"object","required":["available","promoted","other"],"title":"AudiencePromoted","description":"Promoted shows (views while promoted) against the entity's other shows. See CLAUDE.md § owner_audience.py."},"AudienceReach":{"properties":{"zip":{"type":"string","title":"Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"people":{"type":"integer","minimum":0.0,"title":"People"},"looked":{"type":"integer","minimum":0.0,"title":"Looked"},"share":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Share"}},"additionalProperties":false,"type":"object","required":["zip","city","people","looked","share"],"title":"AudienceReach","description":"FR-P3-1807: people with any activity browsing `zip` in the period, and how many of them looked here."},"AudienceReason":{"type":"string","enum":["counting_not_started","no_views_yet","no_area_known","no_type","no_state","too_few_peers","no_promoted_show","promotion_not_on_plan","not_for_custom_period","no_baseline","baseline_not_counted"],"title":"AudienceReason","description":"Why a part carries no numbers; the card has one sentence per reason."},"AudienceShowGroup":{"properties":{"shows":{"type":"integer","minimum":0.0,"title":"Shows"},"views":{"type":"integer","minimum":0.0,"title":"Views"},"views_each":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views Each"}},"additionalProperties":false,"type":"object","required":["shows","views","views_each"],"title":"AudienceShowGroup","description":"One side of the promoted comparison: how many shows, their views, and views per show."},"AudienceSuggestion":{"properties":{"kind":{"$ref":"#/components/schemas/AudienceSuggestionKind"},"peak":{"anyOf":[{"$ref":"#/components/schemas/AudiencePeak"},{"type":"null"}]},"views":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views"},"views_before":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views Before"},"paid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Paid"}},"additionalProperties":false,"type":"object","required":["kind","peak","views","views_before","paid"],"title":"AudienceSuggestion","description":"One suggestion and the owner's own numbers it cites (each None where its kind cites nothing)."},"AudienceSuggestionKind":{"type":"string","enum":["post_before_peak","promote_a_show","add_a_photo"],"title":"AudienceSuggestionKind","description":"FR-P3-1812: what the owner could do next; the card has one sentence and one link per kind."},"AudienceSummary":{"properties":{"views":{"type":"integer","minimum":0.0,"title":"Views"},"views_before":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Views Before"},"viewers":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Viewers"},"came_back":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Came Back"},"came_back_share":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Came Back Share"}},"additionalProperties":false,"type":"object","required":["views","views_before","viewers","came_back","came_back_share"],"title":"AudienceSummary","description":"The three figures for the chosen period: views (and the same span before it), people, and who came back."},"AudienceUnavailable":{"properties":{"available":{"type":"boolean","const":false,"title":"Available","default":false},"reason":{"$ref":"#/components/schemas/AudienceReason"},"progress":{"anyOf":[{"$ref":"#/components/schemas/AudienceProgress"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["available","reason","progress"],"title":"AudienceUnavailable","description":"A part with nothing to show, and why; never any of its numbers."},"AudienceViewsOverTime":{"properties":{"unit":{"$ref":"#/components/schemas/AudienceBarUnit"},"bars":{"items":{"$ref":"#/components/schemas/AudienceBar"},"type":"array","title":"Bars"},"average":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Average"},"days":{"items":{"$ref":"#/components/schemas/AudienceDay"},"type":"array","title":"Days"},"missing":{"items":{"$ref":"#/components/schemas/AudienceDayRun"},"type":"array","title":"Missing"}},"additionalProperties":false,"type":"object","required":["unit","bars","average","days","missing"],"title":"AudienceViewsOverTime","description":"The period's bars, oldest first, the average a bar over counted days, every day, and the days not counted."},"AuthMeSummary":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/UserRole"},"type":"array","title":"Roles"},"is_internal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Internal","description":"True when the account is LIVEY's own team or a tester, so analytics leaves it out. Authoritative only on /auth/me, /profiles/me and the admin People list and detail; null elsewhere."},"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"home_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Zip"}},"type":"object","required":["roles","id"],"title":"AuthMeSummary","description":"The signed-in account's identity and roles. See CLAUDE.md § auth_me_summary.py."},"BenchmarkArm":{"properties":{"model":{"type":"string","title":"Model"},"provider":{"type":"string","title":"Provider"},"role":{"type":"string","title":"Role"},"ran":{"type":"boolean","title":"Ran"},"not_run_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Not Run Reason"},"usd_per_matched_event":{"type":"number","minimum":0.0,"title":"Usd Per Matched Event"}},"additionalProperties":false,"type":"object","required":["model","provider","role","ran","usd_per_matched_event"],"title":"BenchmarkArm","description":"One model the benchmark asked: run on the identical stubs, or recorded elsewhere with the reason."},"BenchmarkMeasure":{"properties":{"measure":{"type":"string","title":"Measure"},"scores":{"additionalProperties":{"$ref":"#/components/schemas/BenchmarkScore"},"type":"object","title":"Scores"}},"additionalProperties":false,"type":"object","required":["measure","scores"],"title":"BenchmarkMeasure","description":"One quality measure of a step, scored for each arm."},"BenchmarkOtherRoute":{"properties":{"task":{"type":"string","title":"Task"},"recommended_chain":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Recommended Chain"},"basis":{"type":"string","title":"Basis"}},"additionalProperties":false,"type":"object","required":["task","recommended_chain","basis"],"title":"BenchmarkOtherRoute","description":"A recommended chain for an ungraded step, with the measurement it rests on."},"BenchmarkRecommendation":{"properties":{"summary":{"type":"string","title":"Summary"},"g10":{"type":"string","title":"G10"},"adopted":{"type":"boolean","title":"Adopted"},"sign_off":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign Off"},"other_routes":{"items":{"$ref":"#/components/schemas/BenchmarkOtherRoute"},"type":"array","title":"Other Routes"}},"additionalProperties":false,"type":"object","required":["summary","g10","adopted"],"title":"BenchmarkRecommendation","description":"The routing the record recommends; adopted only with a named ruling (G10)."},"BenchmarkScore":{"properties":{"value":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Value"},"correct":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Correct"},"graded":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Graded"}},"additionalProperties":false,"type":"object","required":["value"],"title":"BenchmarkScore","description":"A quality reading: a ratio, with the counts behind it when the measure has them."},"BenchmarkStep":{"properties":{"task":{"type":"string","title":"Task"},"how":{"type":"string","title":"How"},"quality":{"items":{"$ref":"#/components/schemas/BenchmarkMeasure"},"type":"array","minItems":1,"title":"Quality"},"usd_per_matched_event":{"additionalProperties":{"type":"number"},"type":"object","title":"Usd Per Matched Event"},"leader":{"type":"string","title":"Leader"},"leader_outside_noise":{"type":"boolean","title":"Leader Outside Noise"},"margin":{"type":"string","title":"Margin"},"recommended_chain":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Recommended Chain"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["task","how","quality","usd_per_matched_event","leader","leader_outside_noise","margin","recommended_chain","reason"],"title":"BenchmarkStep","description":"One routable step: quality and cost per arm, who led, by how much, and what to route it to."},"BenchmarkUnmeasured":{"properties":{"task":{"type":"string","title":"Task"},"why":{"type":"string","title":"Why"}},"additionalProperties":false,"type":"object","required":["task","why"],"title":"BenchmarkUnmeasured","description":"A routable step the benchmark could not grade, and why — never silently absent."},"BillingRedirectResponse":{"properties":{"redirect_url":{"type":"string","title":"Redirect Url"}},"additionalProperties":false,"type":"object","required":["redirect_url"],"title":"BillingRedirectResponse","description":"A Stripe-hosted page to redirect to. See CLAUDE.md § billing_redirect.py."},"BudgetLevel":{"type":"string","enum":["ok","near","over"],"title":"BudgetLevel"},"BudgetWindow":{"type":"string","enum":["day","month","run"],"title":"BudgetWindow"},"BulkAcceptRequest":{"properties":{"item_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Item Ids","description":"The queue items to settle with LIVEY's answer. Duplicates are collapsed before any write; an item LIVEY made no pick on, a gate, or a kind that changes an entity is skipped and reported."},"resolution_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Resolution Note","description":"Free-text note recorded on every queue row and decision row the call resolves."}},"additionalProperties":false,"type":"object","required":["item_ids"],"title":"BulkAcceptRequest","description":"Resolve many items with LIVEY's own answer to each (18.92). See CLAUDE.md § bulk.py."},"BulkItemOutcome":{"properties":{"item_id":{"type":"string","format":"uuid","title":"Item Id"},"outcome":{"$ref":"#/components/schemas/BulkOutcomeStatus"},"decision_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Decision Id"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["item_id","outcome"],"title":"BulkItemOutcome","description":"What happened to one item. The unit of truth in a partial-success world."},"BulkOutcomeStatus":{"type":"string","enum":["resolved","already_resolved","not_found","not_authorized","needs_merge_tool","needs_candidate_choice","needs_single_review","needs_answer","question_unreadable","no_guess","gate_kind","failed"],"title":"BulkOutcomeStatus","description":"What happened to ONE item inside a bulk action.\n\n🛑 `ALREADY_RESOLVED` IS NOT A FAILURE AND MUST NOT BE RENDERED AS ONE. It is\nthe expected result of two admins working the same queue, and an admin who\nsees \"3 failed\" when the truth is \"3 were already done by your colleague\"\nlearns to distrust the summary. The UI distinguishes the three, which is\nexactly why there are three members here and not a boolean.\n\n⚠️ `str` mixin: these values are compared against raw JSON in the web tests."},"BulkReviewRequest":{"properties":{"item_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Item Ids","description":"The queue items to resolve. Duplicates are collapsed before any write, so a double-clicked checkbox cannot produce two decision rows for one item."},"status":{"$ref":"#/components/schemas/ReviewResolution","description":"The decision to apply to every item. `edited_and_approved` is accepted by the type but refused by the service for a bulk call — a correction cannot be shared across items."},"resolution_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Resolution Note","description":"Free-text note recorded on every queue row and decision row in the batch."}},"additionalProperties":false,"type":"object","required":["item_ids","status"],"title":"BulkReviewRequest","description":"Resolve many queue items with ONE decision.\n\n🛑 `extra=\"forbid\"`, for the reason the single-item body already documents:\npydantic's default SILENTLY DISCARDS an unknown field, so a client posting\n`reviewed_by` would get a 200 and a decision recorded against the caller —\ncorrect behaviour reached by accident and indistinguishable, from the\nclient's side, from having been honoured.\n\n⚠️ `status` is `ReviewResolution`, so `pending` is unrepresentable, and it is\ndeliberately NOT widened to include an edit. Open Question 4: bulk is\napprove/reject ONLY, because a correction differs per item by definition —\nedit-and-approve stays single-item. Its absence here is a DECISION, recorded\nso it does not read as a gap. ⚠️ The corpus consequence, stated for F-103:\nif bulk becomes the dominant path the corpus grows mostly in approve/reject\nlabels, which are signal for ACCURACY MEASUREMENT but are not the\n(source → correct extraction) pairs FR-P2-0315's optimizer consumes."},"BulkReviewResponse":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"requested":{"type":"integer","title":"Requested","description":"How many DISTINCT item ids were acted on."},"resolved":{"type":"integer","title":"Resolved"},"already_resolved":{"type":"integer","title":"Already Resolved"},"failed":{"type":"integer","title":"Failed","description":"not_found + not_authorized + needs_merge_tool + needs_candidate_choice + needs_single_review + needs_answer + question_unreadable + no_guess + gate_kind + failed. Counted together because they are the outcomes that need an admin's attention; already_resolved is not one of them and is reported separately for exactly that reason."},"outcomes":{"items":{"$ref":"#/components/schemas/BulkItemOutcome"},"type":"array","title":"Outcomes"}},"type":"object","required":["batch_id","requested","resolved","already_resolved","failed"],"title":"BulkReviewResponse","description":"The report of a bulk action. Every item accounted for, exactly once.\n\n⚠️ THERE IS DELIBERATELY NO `success: bool` AND NO TOP-LEVEL ERROR. A batch\ndoes not succeed or fail; its items do. Adding a batch-level verdict would\nimmediately re-create the all-or-nothing mental model the endpoint exists to\navoid, and a caller would start branching on it instead of on the outcomes.\n\n`batch_id` groups the decision rows one call produced. It is a convenience\nfor auditing (\"show me that batch\"), never the unit of storage — the rows are\nthe unit, one per item."},"BusinessFigure":{"properties":{"key":{"type":"string","enum":["scraped","verified_machine","verified_human","overall"],"title":"Key"},"label":{"type":"string","title":"Label"},"state":{"type":"string","enum":["measured","not_yet_measurable"],"title":"State"},"cost_per_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Event Usd"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"events":{"type":"integer","minimum":0.0,"title":"Events"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"gate_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Fingerprint"},"citable_only":{"type":"boolean","title":"Citable Only","default":false},"definition":{"$ref":"#/components/schemas/FigureDefinition"}},"type":"object","required":["key","label","state","spend_usd","events","definition"],"title":"BusinessFigure","description":"One cost-per-event figure. `cost_per_event_usd` is None — never 0 — when there is nothing to divide by."},"BusinessPushPauseChoice":{"type":"string","enum":["one_day","seven_days","until_resumed"],"title":"BusinessPushPauseChoice","description":"How long a person pauses business pushes for."},"BusinessPushPauseRead":{"properties":{"paused":{"type":"boolean","title":"Paused"},"until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"},"indefinite":{"type":"boolean","title":"Indefinite","default":false}},"additionalProperties":false,"type":"object","required":["paused"],"title":"BusinessPushPauseRead","description":"Whether business pushes are paused, and until when. An ended pause reads `paused: false`."},"BusinessPushPauseWrite":{"properties":{"choice":{"$ref":"#/components/schemas/BusinessPushPauseChoice"}},"additionalProperties":false,"type":"object","required":["choice"],"title":"BusinessPushPauseWrite","description":"Pause business pushes; a new pause replaces the old one."},"CancelLinkRequest":{"properties":{"reason":{"$ref":"#/components/schemas/CancelLinkRequestReason","default":"user_cancelled"}},"additionalProperties":false,"type":"object","title":"CancelLinkRequest","description":"Undo an unconfirmed link — \"Not me\", or the fifth wrong code."},"CancelLinkRequestReason":{"type":"string","enum":["user_cancelled","attempts_exhausted"],"title":"CancelLinkRequestReason","description":"What a CLIENT may report. `EXPIRED` is the server's own lazy expiry and never\narrives in a request body — see CLAUDE.md § identity_lock.py."},"CancelLinkResponse":{"properties":{"unlinked":{"type":"boolean","title":"Unlinked"},"sessions_revoked":{"type":"integer","title":"Sessions Revoked","default":0},"confirmed":{"type":"boolean","title":"Confirmed","default":false}},"additionalProperties":false,"type":"object","required":["unlinked"],"title":"CancelLinkResponse","description":"What the undo routine actually did. Nothing to undo is still a success."},"CancellationBody":{"properties":{"expected_outcome":{"$ref":"#/components/schemas/CancellationOutcome"}},"additionalProperties":false,"type":"object","required":["expected_outcome"],"title":"CancellationBody","description":"The confirm: the outcome the person was shown. A different current outcome is a 409."},"CancellationOutcome":{"type":"string","enum":["period_end","refund_now","end_now"],"title":"CancellationOutcome","description":"What pressing Cancel plan will do, decided by the plan's interval, its latest charge and its status."},"CancellationQuote":{"properties":{"outcome":{"$ref":"#/components/schemas/CancellationOutcome"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"refund_amount_cents":{"type":"integer","title":"Refund Amount Cents","default":0},"currency":{"type":"string","title":"Currency","default":"usd"},"plan_name":{"type":"string","title":"Plan Name","default":""}},"additionalProperties":false,"type":"object","required":["outcome"],"title":"CancellationQuote","description":"The honest answer before confirming. `ends_at` is Stripe's period end, or now for an immediate end."},"CancellationRead":{"properties":{"outcome":{"$ref":"#/components/schemas/CancellationOutcome"},"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"refund_amount_cents":{"type":"integer","title":"Refund Amount Cents","default":0},"currency":{"type":"string","title":"Currency","default":"usd"},"cancelled_at_stripe":{"type":"boolean","title":"Cancelled At Stripe","default":true}},"additionalProperties":false,"type":"object","required":["outcome","entity_kind"],"title":"CancellationRead","description":"What the confirm did. `ends_at` is when paid features stop; a refund names its amount."},"CapturedArtistPreview":{"properties":{"stage_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Name"},"genre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"},"artist_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist Type"}},"additionalProperties":false,"type":"object","title":"CapturedArtistPreview","description":"One artist this job extracted, for the console's extracted-records pane."},"CapturedEventPreview":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"starts_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starts At"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"}},"additionalProperties":false,"type":"object","title":"CapturedEventPreview","description":"One event this job extracted, for the console's extracted-records pane."},"CapturedVenueRecord":{"properties":{"name":{"type":"string","title":"Name"},"address_line":{"type":"string","title":"Address Line"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"external_ids":{"additionalProperties":{"type":"string"},"type":"object","title":"External Ids"}},"additionalProperties":false,"type":"object","required":["name","address_line","city","state"],"title":"CapturedVenueRecord","description":"A replay's venue input. See CLAUDE.md § captured_venue_record.py."},"CatalogModel":{"properties":{"id":{"type":"string","title":"Id"},"provider":{"type":"string","title":"Provider"},"provider_label":{"type":"string","title":"Provider Label"},"display_name":{"type":"string","title":"Display Name"},"context_window":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Window"},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens"},"input_cost_per_1m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Input Cost Per 1M"},"output_cost_per_1m":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Output Cost Per 1M"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"recommended":{"type":"boolean","title":"Recommended"},"selectable":{"type":"boolean","title":"Selectable"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","provider","provider_label","display_name","context_window","max_output_tokens","input_cost_per_1m","output_cost_per_1m","roles","recommended","selectable","note"],"title":"CatalogModel","description":"One model from `core/ai/config.py`, flattened for display."},"Category":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"icon":{"type":"string","minLength":1,"title":"Icon"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"second_level_label":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Second Level Label"},"is_active":{"type":"boolean","title":"Is Active","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["slug","label","icon"],"title":"Category","description":"A primary category — axis 1 of the taxonomy.\n\nFK none — `categories` references nothing. It is referenced BY\n   `event_genre_values.category_id`, `event_categories.category_id`\n   (ON DELETE RESTRICT). Artists have TYPES, not categories, since 18.60."},"CategoryCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"icon":{"type":"string","maxLength":16,"minLength":1,"title":"Icon"},"first_photo_url":{"type":"string","maxLength":2048,"minLength":1,"title":"First Photo Url"},"slug":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Slug"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"additionalProperties":false,"type":"object","required":["label","icon","first_photo_url"],"title":"CategoryCreateRequest","description":"Create one category — with its mandatory icon and its mandatory first photo."},"CategoryOptionView":{"properties":{"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true}},"additionalProperties":false,"type":"object","required":["slug","label"],"title":"CategoryOptionView","description":"One category as a client picker renders it."},"CategoryUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"icon":{"anyOf":[{"type":"string","maxLength":16,"minLength":1},{"type":"null"}],"title":"Icon"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"CategoryUpdateRequest","description":"Rename / re-icon / reorder / retire / restore. Every field optional."},"CategoryVocabularyView":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"second_level_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Second Level Label"},"genres":{"items":{"$ref":"#/components/schemas/GenreOptionView"},"type":"array","title":"Genres","default":[]},"legacy_event_type_slugs":{"items":{"type":"string"},"type":"array","title":"Legacy Event Type Slugs","default":[]}},"additionalProperties":false,"type":"object","required":["slug","label"],"title":"CategoryVocabularyView","description":"One category and the second-level values it offers."},"CheckoutConsent":{"properties":{"accepted":{"type":"boolean","const":true,"title":"Accepted"},"terms_version":{"type":"string","maxLength":64,"pattern":"^business-plans@[0-9]{4}-[0-9]{2}-[0-9]{2}$","title":"Terms Version"}},"additionalProperties":false,"type":"object","required":["accepted","terms_version"],"title":"CheckoutConsent","description":"The ticked box and the terms version shown beside it; a stale version is the service's 409."},"CheckoutDisclosureRead":{"properties":{"text":{"type":"string","title":"Text"},"terms_link_label":{"type":"string","title":"Terms Link Label"},"terms_path":{"type":"string","title":"Terms Path"},"terms_version":{"type":"string","title":"Terms Version"}},"additionalProperties":false,"type":"object","required":["text","terms_link_label","terms_path","terms_version"],"title":"CheckoutDisclosureRead","description":"Story 31.6 — the renewal text shown beside the pay button, and the terms it agrees to."},"CityResolutionResult":{"properties":{"outcome":{"$ref":"#/components/schemas/ZipLookupOutcome"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"default_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Zip"},"zips":{"items":{"$ref":"#/components/schemas/CityZipOption"},"type":"array","title":"Zips"}},"additionalProperties":false,"type":"object","required":["outcome","city","state"],"title":"CityResolutionResult","description":"A city+state resolved to its default ZIP and every ZIP it has; a miss echoes the input."},"CitySuggestion":{"properties":{"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"zip_count":{"type":"integer","title":"Zip Count"}},"additionalProperties":false,"type":"object","required":["city","state","zip_count"],"title":"CitySuggestion","description":"One gazetteer city+state pair matching a typed city name."},"CityZipOption":{"properties":{"zip":{"type":"string","title":"Zip"},"distance_miles_from_default":{"type":"number","title":"Distance Miles From Default"}},"additionalProperties":false,"type":"object","required":["zip","distance_miles_from_default"],"title":"CityZipOption","description":"One ZIP in a city, measured from that city's default ZIP."},"ClaimAlreadyExistsBody":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"},"kind":{"type":"string","title":"Kind"},"existing_claim_id":{"type":"string","title":"Existing Claim Id"}},"additionalProperties":false,"type":"object","required":["error","message","request_id","kind","existing_claim_id"],"title":"ClaimAlreadyExistsBody","description":"The Q96 top-level shape a same-claimant resubmit refusal carries."},"ClaimAlreadyManagedBody":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"},"kind":{"type":"string","title":"Kind"},"entity_id":{"type":"string","title":"Entity Id"}},"additionalProperties":false,"type":"object","required":["error","message","request_id","kind","entity_id"],"title":"ClaimAlreadyManagedBody","description":"The top-level shape a claim by someone who already manages the entity carries."},"ClaimCapExceededBody":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"open_claims":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Open Claims"}},"additionalProperties":false,"type":"object","required":["error","message","request_id"],"title":"ClaimCapExceededBody","description":"The AC #5 top-level shape every over-limit claim submission carries."},"ClaimCapSettings":{"properties":{"max_open_claims_per_user":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Open Claims Per User"}},"additionalProperties":false,"type":"object","required":["max_open_claims_per_user"],"title":"ClaimCapSettings","description":"The stored claim limit, as the admin console reads and confirms it. `None` = no limit."},"ClaimCapSettingsPatch":{"properties":{"max_open_claims_per_user":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Open Claims Per User"}},"additionalProperties":false,"type":"object","required":["max_open_claims_per_user"],"title":"ClaimCapSettingsPatch","description":"The admin's new value; `None` = no limit. No `ge=1` — the DB's own CHECK is the floor (AC #13)."},"ClaimConflictDetailBody":{"properties":{"detail":{"type":"string","title":"Detail"}},"additionalProperties":false,"type":"object","required":["detail"],"title":"ClaimConflictDetailBody","description":"`body_for`'s untyped fallback — a bare `ClaimConflictError` carries no fields."},"ClaimDocument":{"properties":{"id":{"type":"string","title":"Id"},"claim_kind":{"type":"string","enum":["venue","artist"],"title":"Claim Kind"},"claim_id":{"type":"string","title":"Claim Id"},"file_name":{"type":"string","title":"File Name"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"signed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed Url"}},"type":"object","required":["id","claim_kind","claim_id","file_name","content_type","size_bytes"],"title":"ClaimDocument","description":"One verification document attached to a venue/artist claim.\n\nKeyed on the CLAIM (kind + id), never an entity id — a Story-12.4 pending\nself-create has no entity until approval. ``signed_url`` is a short-lived,\nprivately-minted URL (the bucket is private; there is no public URL); it is\npresent on the list / admin-view responses and absent on the upload ack."},"ClaimDocumentList":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/ClaimDocument"},"type":"array","title":"Documents","default":[]}},"type":"object","title":"ClaimDocumentList"},"ClaimEvent":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"event_type":{"type":"string","enum":["submitted","info_requested","info_provided","approved","rejected","demoted","withdrawn","revoked","deleted"],"title":"Event Type"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"actor_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Role"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","created_at"],"title":"ClaimEvent"},"ClaimEventList":{"properties":{"events":{"items":{"$ref":"#/components/schemas/ClaimEvent"},"type":"array","title":"Events"}},"type":"object","required":["events"],"title":"ClaimEventList"},"ClaimEvidence":{"properties":{"claimant_role":{"type":"string","enum":["owner","manager","booking_agent"],"title":"Claimant Role"},"business_phone":{"type":"string","maxLength":200,"minLength":1,"title":"Business Phone"},"business_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Business Email"},"claimant_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Claimant Note"},"account_phone":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Account Phone"},"account_phone_overwrite":{"type":"boolean","title":"Account Phone Overwrite","default":false},"legal_business_name":{"title":"Legal Business Name"},"ein":{"title":"Ein"}},"additionalProperties":false,"type":"object","required":["claimant_role","business_phone"],"title":"ClaimEvidence","description":"The evidence every claim submit path collects. See CLAUDE.md § claim_evidence.py."},"ClaimEvidenceAccepted":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"account_phone_kept":{"type":"boolean","title":"Account Phone Kept","default":false}},"additionalProperties":false,"type":"object","required":["id","kind"],"title":"ClaimEvidenceAccepted","description":"Receipt for an evidence write. See CLAUDE.md § claim_evidence_accepted.py."},"ClaimInfoRequest":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"ClaimInfoRequest","description":"Body for POST /admin/claims/{id}/request-info — the admin's message\ndescribing what additional information the applicant must provide. Required\nand non-empty (the email is built around it)."},"ClaimQueueSort":{"type":"string","enum":["created_at","kind"],"title":"ClaimQueueSort","description":"The columns the admin claims table sorts by; `created_at` is the only one a cursor pages."},"ClaimReview":{"properties":{"status":{"type":"string","pattern":"^(approved|rejected)$","title":"Status"}},"type":"object","required":["status"],"title":"ClaimReview"},"ClaimReviewRequest":{"properties":{"status":{"type":"string","enum":["approved","rejected"],"title":"Status"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"venue_choice":{"anyOf":[{"$ref":"#/components/schemas/VenueMatchDecision"},{"type":"null"}]}},"type":"object","required":["status"],"title":"ClaimReviewRequest"},"ClaimRevokeRequest":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"ClaimRevokeRequest","description":"Body for POST /admin/claims/{id}/revoke (Story 22.12, AC #1, #9). The\nreason is required — it is stored on the claim's `notes` and rendered,\nescaped, in the revocation email."},"ClaimTargetSummary":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"}},"type":"object","title":"ClaimTargetSummary"},"ClaimantBillingBody":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"claim_id":{"type":"string","format":"uuid","title":"Claim Id"}},"additionalProperties":false,"type":"object","required":["entity_kind","claim_id"],"title":"ClaimantBillingBody","description":"Story 29.3 — which of the caller's OWN claims a claimant Stripe session is for. See CLAUDE.md § license.py."},"ClaimantCancellationBody":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"claim_id":{"type":"string","format":"uuid","title":"Claim Id"},"expected_outcome":{"$ref":"#/components/schemas/CancellationOutcome"}},"additionalProperties":false,"type":"object","required":["entity_kind","claim_id","expected_outcome"],"title":"ClaimantCancellationBody","description":"A paying claimant's confirm, keyed on their own claim like every claimant billing door."},"ClaimantCheckoutBody":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"claim_id":{"type":"string","format":"uuid","title":"Claim Id"},"plan_code":{"type":"string","maxLength":64,"minLength":1,"title":"Plan Code"},"consent":{"$ref":"#/components/schemas/CheckoutConsent"}},"additionalProperties":false,"type":"object","required":["entity_kind","claim_id","plan_code","consent"],"title":"ClaimantCheckoutBody","description":"A live claimant's Checkout ask — the portal keeps `ClaimantBillingBody`, which names no plan or consent."},"ClassificationSource":{"type":"string","enum":["ai","admin","owner","scraper","derived","venue"],"title":"ClassificationSource","description":"WHO asserted a taxonomy classification. Values match the DOMAIN byte for byte.\n\n🛑 KIND of actor, never WHICH vendor. The DOMAIN admits these six and nothing\nelse, so a vendor value here is rejected at INSERT. Vendor identity is a\n`datasources` row — see CLAUDE.md § classification_source.py."},"ClusterMergeRequest":{"properties":{"selected_member_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":2,"title":"Selected Member Ids"},"resolution_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Resolution Note"}},"additionalProperties":false,"type":"object","required":["selected_member_ids"],"title":"ClusterMergeRequest","description":"Approve a cluster row: merge the SELECTED members, refuse the rest (AC-11)."},"ClusterMergeResult":{"properties":{"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"merged":{"items":{"$ref":"#/components/schemas/MergedMember"},"type":"array","title":"Merged"},"excluded":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Excluded"},"exclusions_recorded":{"type":"integer","title":"Exclusions Recorded","default":0},"exclusions_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclusions Error"},"item":{"$ref":"#/components/schemas/LiveyReviewQueueItem"}},"additionalProperties":false,"type":"object","required":["survivor_id","item"],"title":"ClusterMergeResult","description":"What approving the cluster did. The merge is all-or-nothing; only the exclusion write is best-effort."},"ClusterUnmergeResult":{"properties":{"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"restored":{"items":{"$ref":"#/components/schemas/RestoredMember"},"type":"array","title":"Restored"},"failed":{"items":{"$ref":"#/components/schemas/RestoredMember"},"type":"array","title":"Failed"},"reopened":{"type":"boolean","title":"Reopened","default":false},"exclusions_removed":{"type":"integer","title":"Exclusions Removed","default":0}},"additionalProperties":false,"type":"object","required":["survivor_id"],"title":"ClusterUnmergeResult","description":"What undoing a cluster approval put back, snapshot by snapshot, newest first."},"ComparisonColumn":{"properties":{"heading":{"type":"string","title":"Heading"},"items":{"items":{"type":"string"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["heading","items"],"title":"ComparisonColumn","description":"One comparison column. N is fixed at 5 (D-16)."},"ComparisonValue":{"properties":{"users":{"$ref":"#/components/schemas/ComparisonColumn"},"businesses":{"$ref":"#/components/schemas/ComparisonColumn"}},"additionalProperties":false,"type":"object","required":["users","businesses"],"title":"ComparisonValue","description":"The one named jsonb hatch. Columns do not semantically pair."},"CompletenessDigest":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"entities":{"items":{"$ref":"#/components/schemas/CompletenessEntityDigest"},"type":"array","title":"Entities"}},"type":"object","required":["measured_at","entities"],"title":"CompletenessDigest","description":"Catalog completeness, measured from stored stamps."},"CompletenessEntityDigest":{"properties":{"kind":{"type":"string","title":"Kind"},"n":{"type":"integer","title":"N"},"mean":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Mean"},"formula_version":{"type":"string","title":"Formula Version"},"denominator":{"type":"integer","title":"Denominator"},"fields":{"items":{"$ref":"#/components/schemas/CompletenessFieldSpec"},"type":"array","title":"Fields"}},"type":"object","required":["kind","n","mean","formula_version","denominator"],"title":"CompletenessEntityDigest","description":"One catalog table's stamped mean plus its formula."},"CompletenessFieldFill":{"properties":{"kind":{"type":"string","title":"Kind"},"field":{"type":"string","title":"Field"},"populated":{"type":"integer","title":"Populated"},"scanned":{"type":"integer","title":"Scanned"}},"type":"object","required":["kind","field","populated","scanned"],"title":"CompletenessFieldFill","description":"How many of a table's rows carried one scored field, at the newest tick."},"CompletenessFieldSpec":{"properties":{"field":{"type":"string","title":"Field"},"weight":{"type":"integer","title":"Weight"},"critical":{"type":"boolean","title":"Critical"}},"type":"object","required":["field","weight","critical"],"title":"CompletenessFieldSpec","description":"One scored signal from `CatalogCompleteness` — weight, not fill."},"CompletenessHistory":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"since":{"type":"string","format":"date-time","title":"Since"},"points":{"items":{"$ref":"#/components/schemas/CompletenessPoint"},"type":"array","title":"Points"},"fill":{"items":{"$ref":"#/components/schemas/CompletenessFieldFill"},"type":"array","title":"Fill"},"fill_measured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Fill Measured At"}},"type":"object","required":["measured_at","since"],"title":"CompletenessHistory","description":"The trend, plus the field fill the newest tick measured."},"CompletenessPoint":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"kind":{"type":"string","title":"Kind"},"mean":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Mean"},"scanned":{"type":"integer","title":"Scanned"},"formula":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Formula"}},"type":"object","required":["at","kind","mean","scanned"],"title":"CompletenessPoint","description":"One catalog table's mean at one finished tick."},"ConfigurationRow":{"properties":{"label":{"type":"string","title":"Label"},"gate_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Fingerprint"},"jobs":{"type":"integer","minimum":0.0,"title":"Jobs"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"events_saved":{"type":"integer","minimum":0.0,"title":"Events Saved"},"events_verified":{"type":"integer","minimum":0.0,"title":"Events Verified"},"cost_per_scraped_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Scraped Event Usd"},"cost_per_verified_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Verified Event Usd"},"spend_per_job_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend Per Job Usd"},"served_models":{"items":{"$ref":"#/components/schemas/ServedModelShare"},"type":"array","title":"Served Models"}},"type":"object","required":["label","jobs","spend_usd","events_saved","events_verified"],"title":"ConfigurationRow","description":"A ranking row: the ASSIGNED configuration, and the models that served it, largest share first."},"ConfirmLinkRequest":{"properties":{"identity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Identity Id","description":"The auth.identities row being confirmed."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"The provider slug, when the client has no identity id."}},"additionalProperties":false,"type":"object","title":"ConfirmLinkRequest","description":"Confirm the just-linked identity. The user id comes from the JWT, never here."},"ConfirmLinkResponse":{"properties":{"confirmed":{"type":"boolean","title":"Confirmed"},"identities_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Identities Confirmed At"}},"additionalProperties":false,"type":"object","required":["confirmed"],"title":"ConfirmLinkResponse","description":"The watermark after a confirm. Idempotent: a second call is a success."},"ConnectConfirmRequest":{"properties":{"provider":{"$ref":"#/components/schemas/SocialSignInProvider"},"identity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Identity Id"}},"additionalProperties":false,"type":"object","required":["provider"],"title":"ConnectConfirmRequest","description":"Confirm a provider the client has just linked. The user id is the JWT's, never here."},"ConsentAffirmations":{"properties":{"accepted_terms":{"type":"boolean","const":true,"title":"Accepted Terms"},"accepted_privacy":{"type":"boolean","const":true,"title":"Accepted Privacy"},"confirmed_age_13":{"type":"boolean","const":true,"title":"Confirmed Age 13"},"terms_policy_version":{"type":"string","pattern":"^terms@[0-9]{4}-[0-9]{2}-[0-9]{2}$","title":"Terms Policy Version"},"privacy_policy_version":{"type":"string","pattern":"^privacy@[0-9]{4}-[0-9]{2}-[0-9]{2}$","title":"Privacy Policy Version"}},"type":"object","required":["accepted_terms","accepted_privacy","confirmed_age_13","terms_policy_version","privacy_policy_version"],"title":"ConsentAffirmations","description":"The three separate affirmations and the two policy versions the person saw."},"ConsentRecordedResponse":{"properties":{"record":{"$ref":"#/components/schemas/ProfileConsentRecord"},"venue_claim_intent":{"type":"boolean","title":"Venue Claim Intent","default":false},"artist_claim_intent":{"type":"boolean","title":"Artist Claim Intent","default":false}},"type":"object","required":["record"],"title":"ConsentRecordedResponse","description":"What LIVEY now holds: the consent record and the two claim-intent flags."},"ConsentStatusResponse":{"properties":{"owed":{"type":"boolean","title":"Owed"},"step":{"anyOf":[{"$ref":"#/components/schemas/ConsentStep"},{"type":"null"}]},"show_relay_nudge":{"type":"boolean","title":"Show Relay Nudge","default":false},"record":{"$ref":"#/components/schemas/ProfileConsentRecord"}},"type":"object","required":["owed","record"],"title":"ConsentStatusResponse","description":"`GET /auth/consent` — is the gate owed, which screen, and what is on record."},"ConsentStep":{"type":"string","enum":["finish_up","reconsent"],"title":"ConsentStep","description":"Which screen an account owes: a new account's finish-up, or the one-time re-ask."},"ContentReportCategory":{"type":"string","enum":["inappropriate","spam","inaccurate","other"],"title":"ContentReportCategory","description":"Why a viewer reported something. DB CHECK holds the same four."},"ContentReportListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"target":{"$ref":"#/components/schemas/ReportTargetSummary"},"reporter":{"$ref":"#/components/schemas/ReportReporterSummary"},"category":{"$ref":"#/components/schemas/ContentReportCategory"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"status":{"$ref":"#/components/schemas/ContentReportStatus"},"action_taken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Taken"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"}},"type":"object","required":["id","target","reporter","category","status","created_at"],"title":"ContentReportListItem"},"ContentReportRequest":{"properties":{"target_type":{"anyOf":[{"$ref":"#/components/schemas/ContentReportTarget"},{"type":"string","const":"review"}],"title":"Target Type"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"category":{"$ref":"#/components/schemas/ContentReportCategory"},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"}},"type":"object","required":["target_type","target_id","category"],"title":"ContentReportRequest"},"ContentReportResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","const":"pending","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","created_at"],"title":"ContentReportResponse"},"ContentReportReviewRequest":{"properties":{"status":{"type":"string","enum":["actioned","dismissed","triaged"],"title":"Status"},"action_taken":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Action Taken"}},"type":"object","required":["status"],"title":"ContentReportReviewRequest"},"ContentReportStatus":{"type":"string","enum":["pending","triaged","actioned","dismissed"],"title":"ContentReportStatus","description":"Where a content report sits in triage."},"ContentReportTarget":{"type":"string","enum":["event","venue","artist"],"title":"ContentReportTarget","description":"What a content report is about. MIRRORS THE DEPLOYED CHECK — see CLAUDE.md."},"ContentType":{"type":"string","enum":["text","image","video","html","comparison"],"title":"ContentType","description":"Which typed value column is populated. See CLAUDE.md § vocabulary.py."},"CostByConfigurationExport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"today":{"type":"string","format":"date","title":"Today"},"timezone":{"type":"string","title":"Timezone"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"window_days":{"type":"integer","title":"Window Days"},"window_start":{"type":"string","format":"date","title":"Window Start"},"record_starts_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Record Starts On"},"figures":{"items":{"$ref":"#/components/schemas/BusinessFigure"},"type":"array","title":"Figures"},"segments":{"items":{"$ref":"#/components/schemas/VerifiedCostSegment"},"type":"array","title":"Segments"},"ranking":{"items":{"$ref":"#/components/schemas/ConfigurationRow"},"type":"array","title":"Ranking"},"areas":{"items":{"$ref":"#/components/schemas/SplitRow"},"type":"array","title":"Areas"},"strategies":{"items":{"$ref":"#/components/schemas/SplitRow"},"type":"array","title":"Strategies"},"release_gate":{"$ref":"#/components/schemas/ReleaseGateReading"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"schema_version":{"type":"string","title":"Schema Version","default":"1"}},"type":"object","required":["measured_at","today","timezone","window_days","window_start","figures","segments","ranking","areas","strategies","release_gate"],"title":"CostByConfigurationExport","description":"The same report, versioned for anything programmatic; the environment stamp is never optional in spirit."},"CostByConfigurationReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"today":{"type":"string","format":"date","title":"Today"},"timezone":{"type":"string","title":"Timezone"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"window_days":{"type":"integer","title":"Window Days"},"window_start":{"type":"string","format":"date","title":"Window Start"},"record_starts_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Record Starts On"},"figures":{"items":{"$ref":"#/components/schemas/BusinessFigure"},"type":"array","title":"Figures"},"segments":{"items":{"$ref":"#/components/schemas/VerifiedCostSegment"},"type":"array","title":"Segments"},"ranking":{"items":{"$ref":"#/components/schemas/ConfigurationRow"},"type":"array","title":"Ranking"},"areas":{"items":{"$ref":"#/components/schemas/SplitRow"},"type":"array","title":"Areas"},"strategies":{"items":{"$ref":"#/components/schemas/SplitRow"},"type":"array","title":"Strategies"},"release_gate":{"$ref":"#/components/schemas/ReleaseGateReading"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["measured_at","today","timezone","window_days","window_start","figures","segments","ranking","areas","strategies","release_gate"],"title":"CostByConfigurationReport","description":"`GET /admin/quality/cost-per-event/by-configuration?days=30|60|90`."},"CostPerEventFigure":{"properties":{"window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window Days"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"spend_by_source":{"additionalProperties":{"type":"number"},"propertyNames":{"enum":["scrape","quality","discovery","other"]},"type":"object","title":"Spend By Source"},"spend_by_workflow":{"additionalProperties":{"type":"number"},"type":"object","title":"Spend By Workflow"},"excluded_usd":{"additionalProperties":{"type":"number"},"type":"object","title":"Excluded Usd"},"golden_events":{"type":"integer","minimum":0.0,"title":"Golden Events"},"cost_per_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Event Usd"},"unpriced_jobs":{"type":"integer","minimum":0.0,"title":"Unpriced Jobs"},"unrecorded_jobs":{"type":"integer","minimum":0.0,"title":"Unrecorded Jobs"},"unpriced_calls":{"type":"integer","minimum":0.0,"title":"Unpriced Calls","default":0},"estimated_calls":{"type":"integer","minimum":0.0,"title":"Estimated Calls","default":0},"estimated_usd":{"type":"number","minimum":0.0,"title":"Estimated Usd","default":0},"list_priced_queries":{"type":"integer","minimum":0.0,"title":"List Priced Queries","default":0},"token_derived_days":{"type":"integer","minimum":0.0,"title":"Token Derived Days","default":0},"scraper_events":{"type":"integer","minimum":0.0,"title":"Scraper Events"},"cost_per_scraper_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Scraper Event Usd"},"complete":{"type":"boolean","title":"Complete"}},"type":"object","required":["window_days","spend_usd","golden_events","cost_per_event_usd","unpriced_jobs","unrecorded_jobs","scraper_events","cost_per_scraper_event_usd","complete"],"title":"CostPerEventFigure","description":"AI spend ÷ golden events created in a window. `window_days=None` is lifetime."},"CostPerEventPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"golden_events":{"type":"integer","minimum":0.0,"title":"Golden Events"},"trailing_30d_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trailing 30D Usd"},"lifetime_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lifetime Usd"}},"type":"object","required":["day","spend_usd","golden_events","trailing_30d_usd","lifetime_usd"],"title":"CostPerEventPoint","description":"One day's measurement: that day's spend and events, and the cost per event as of it."},"CostPerEventReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"today":{"type":"string","format":"date","title":"Today"},"timezone":{"type":"string","title":"Timezone"},"cost_basis":{"type":"string","enum":["derived","ledger"],"title":"Cost Basis"},"ledger_started_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ledger Started On"},"window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window Days"},"lifetime":{"$ref":"#/components/schemas/CostPerEventFigure"},"last_7d":{"$ref":"#/components/schemas/CostPerEventFigure"},"last_30d":{"$ref":"#/components/schemas/CostPerEventFigure"},"series":{"items":{"$ref":"#/components/schemas/CostPerEventPoint"},"type":"array","title":"Series"},"releases":{"items":{"$ref":"#/components/schemas/ScraperRelease"},"type":"array","title":"Releases"},"reconciliation":{"anyOf":[{"$ref":"#/components/schemas/AiSpendReconciliationReport"},{"type":"null"}]}},"type":"object","required":["measured_at","today","timezone","cost_basis","window_days","lifetime","last_7d","last_30d","series","releases"],"title":"CostPerEventReport","description":"Everything the Scraper Quality cost panel draws."},"CostSpikeSettings":{"properties":{"job_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,6}|(?=[\\d.]{1,11}0*$)\\d{0,6}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Job Usd"},"day_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,6}|(?=[\\d.]{1,11}0*$)\\d{0,6}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Day Usd"},"cooldown_minutes":{"anyOf":[{"type":"integer","maximum":10080.0,"minimum":0.0},{"type":"null"}],"title":"Cooldown Minutes"},"cooldown_in_force_minutes":{"type":"integer","minimum":0.0,"title":"Cooldown In Force Minutes"},"last_alert_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Alert At"}},"type":"object","required":["cooldown_in_force_minutes"],"title":"CostSpikeSettings","description":"`GET /admin/scraper/cost-spike` — the settings, the cooldown in force, and when the alert last went out."},"CostSpikeThresholds":{"properties":{"job_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,6}|(?=[\\d.]{1,11}0*$)\\d{0,6}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Job Usd"},"day_usd":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*(?:\\d{0,6}|(?=[\\d.]{1,11}0*$)\\d{0,6}\\.\\d{0,4}0*$)"},{"type":"null"}],"title":"Day Usd"},"cooldown_minutes":{"anyOf":[{"type":"integer","maximum":10080.0,"minimum":0.0},{"type":"null"}],"title":"Cooldown Minutes"}},"additionalProperties":false,"type":"object","title":"CostSpikeThresholds","description":"`PUT /admin/scraper/cost-spike` — None switches that alert off; a None cooldown means the default."},"CountPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"count":{"type":"number","minimum":0.0,"title":"Count"}},"type":"object","required":["day","count"],"title":"CountPoint"},"CountSeries":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"group":{"type":"string","enum":["health","diagnostic","workload","coverage","rate_limits","cost"],"title":"Group"},"definition":{"$ref":"#/components/schemas/MetricDefinition"},"points":{"items":{"$ref":"#/components/schemas/CountPoint"},"type":"array","title":"Points"}},"type":"object","required":["key","label","group","definition","points"],"title":"CountSeries"},"CoverImageLicence":{"type":"string","enum":["spotify_marks_required","commons_attribution","site_owner","ticketmaster_content"],"title":"CoverImageLicence","description":"Why LIVEY may show a cover, and what the surface owes when it does."},"CsvImportPreflight":{"properties":{"rows":{"type":"integer","title":"Rows"},"missing_venues":{"items":{"$ref":"#/components/schemas/MissingEntity"},"type":"array","title":"Missing Venues"},"missing_artists":{"items":{"$ref":"#/components/schemas/MissingEntity"},"type":"array","title":"Missing Artists"}},"type":"object","required":["rows"],"title":"CsvImportPreflight","description":"What `POST /admin/events/import/preflight` returns — the modal's whole input."},"CsvImportResolutions":{"properties":{"venues":{"items":{"$ref":"#/components/schemas/VenueResolution"},"type":"array","title":"Venues"},"artists":{"items":{"$ref":"#/components/schemas/ArtistResolution"},"type":"array","title":"Artists"}},"type":"object","title":"CsvImportResolutions"},"CsvImportResult":{"properties":{"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"errors":{"type":"integer","title":"Errors"},"linked":{"type":"integer","title":"Linked","default":0},"rows":{"items":{"$ref":"#/components/schemas/CsvImportRowResult"},"type":"array","title":"Rows"},"resolutions":{"items":{"$ref":"#/components/schemas/AppliedResolution"},"type":"array","title":"Resolutions"}},"type":"object","required":["created","updated","errors","rows"],"title":"CsvImportResult"},"CsvImportRowResult":{"properties":{"row_number":{"type":"integer","title":"Row Number"},"action":{"$ref":"#/components/schemas/RowAction"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"},"match":{"anyOf":[{"$ref":"#/components/schemas/VenueMatch"},{"type":"null"}]}},"type":"object","required":["row_number","action"],"title":"CsvImportRowResult"},"CsvResolvedImportRequest":{"properties":{"csv_text":{"type":"string","minLength":1,"title":"Csv Text"},"resolutions":{"$ref":"#/components/schemas/CsvImportResolutions"}},"type":"object","required":["csv_text"],"title":"CsvResolvedImportRequest","description":"`POST /admin/events/import/resolved` — the same CSV text plus the admin's decisions."},"CsvVenueImportRequest":{"properties":{"csv_text":{"type":"string","minLength":1,"title":"Csv Text"},"choices":{"items":{"$ref":"#/components/schemas/CsvVenueRowChoice"},"type":"array","title":"Choices"}},"type":"object","required":["csv_text"],"title":"CsvVenueImportRequest","description":"`POST /admin/venues/import/resolved` — the CSV text plus one answer per matched line."},"CsvVenueRowChoice":{"properties":{"row_number":{"type":"integer","minimum":2.0,"title":"Row Number"},"choice":{"$ref":"#/components/schemas/VenueMatchChoice"},"venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Venue Id"}},"type":"object","required":["row_number","choice"],"title":"CsvVenueRowChoice","description":"The admin's answer for one line. `venue_id` names the existing venue for `use_existing` only."},"CurationEntry":{"properties":{"promotion_id":{"type":"string","format":"uuid","title":"Promotion Id"},"event_id":{"type":"string","format":"uuid","title":"Event Id"},"title":{"type":"string","title":"Title"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"venue_name":{"type":"string","title":"Venue Name"},"state":{"$ref":"#/components/schemas/PromotionState"},"ended_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended On"}},"additionalProperties":false,"type":"object","required":["promotion_id","event_id","title","start_time","timezone","venue_name","state"],"title":"CurationEntry","description":"One de-duplicated row on the curation list. Greyed when not Live."},"CurationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CurationEntry"},"type":"array","title":"Items"},"active_count":{"type":"integer","title":"Active Count"},"cap":{"type":"integer","title":"Cap"},"empty_kind":{"type":"string","title":"Empty Kind"}},"additionalProperties":false,"type":"object","required":["active_count","cap","empty_kind"],"title":"CurationListResponse","description":"Console list plus the empty-kind the public rail cannot see."},"DedupBandValues":{"properties":{"review_band":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Review Band"},"auto_merge_band":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Auto Merge Band"}},"type":"object","required":["review_band","auto_merge_band"],"title":"DedupBandValues","description":"The two stored, editable bands. Fractions in [0, 1], never percent."},"DedupEntitySettings":{"properties":{"entity_type":{"type":"string","title":"Entity Type"},"settings":{"$ref":"#/components/schemas/DedupBandValues"},"effective":{"anyOf":[{"$ref":"#/components/schemas/DedupBandValues"},{"type":"null"}]},"sweep_minimum_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sweep Minimum Confidence"},"sweep_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sweep Source"},"auto_merge_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Merge Enabled"}},"type":"object","required":["entity_type","settings"],"title":"DedupEntitySettings","description":"One entity's row, plus the two things a row cannot show."},"DedupSettingsPatch":{"properties":{"review_band":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Review Band"},"auto_merge_band":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Auto Merge Band"}},"additionalProperties":false,"type":"object","title":"DedupSettingsPatch","description":"Sparse update of ONE entity's bands. Unknown fields are REFUSED, not ignored.\n\n🛑 `sweep_auto_merge_enabled` is deliberately absent: arming an unattended\nwhole-catalog merge is not the same act as tuning a threshold, and folding it\ninto this form would let a band edit arm it by accident."},"DedupSettingsResponse":{"properties":{"entities":{"items":{"$ref":"#/components/schemas/DedupEntitySettings"},"type":"array","title":"Entities"},"environment_notes":{"items":{"type":"string"},"type":"array","title":"Environment Notes"}},"type":"object","title":"DedupSettingsResponse","description":"Every entity's bands, in one envelope — GET and PATCH return the same shape."},"DemoteRequest":{"properties":{"role":{"type":"string","enum":["user","venue","artist"],"title":"Role","default":"user"}},"type":"object","title":"DemoteRequest"},"DiscoveryEngine":{"type":"string","enum":["legacy","langgraph"],"title":"DiscoveryEngine","description":"`scraper_scheduler_state.discovery_engine`'s two values; the CHECK in 20261022_011101 holds the same set (19.23)."},"DiscoveryPassCounts":{"properties":{"venues_created":{"type":"integer","title":"Venues Created","default":0},"events_created":{"type":"integer","title":"Events Created","default":0},"urls_enqueued":{"type":"integer","title":"Urls Enqueued","default":0},"found":{"additionalProperties":{"type":"integer"},"type":"object","title":"Found"}},"additionalProperties":false,"type":"object","title":"DiscoveryPassCounts","description":"Running totals of one pass; `found` is per adapter slug."},"DiscoveryPassView":{"properties":{"id":{"type":"string","title":"Id"},"trigger":{"type":"string","title":"Trigger"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"heartbeat_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Heartbeat At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"heartbeat_age_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Heartbeat Age Seconds"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"zips_total":{"type":"integer","title":"Zips Total","default":0},"zips_done":{"type":"integer","title":"Zips Done","default":0},"current_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Zip"},"current_adapter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Adapter"},"current_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step"},"counts":{"$ref":"#/components/schemas/DiscoveryPassCounts"},"zips":{"items":{"$ref":"#/components/schemas/DiscoveryPassZip"},"type":"array","title":"Zips"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"}},"additionalProperties":false,"type":"object","required":["id","trigger","status"],"title":"DiscoveryPassView","description":"A discovery pass as the admin console shows it, running or finished."},"DiscoveryPassZip":{"properties":{"zip":{"type":"string","title":"Zip"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step"},"adapter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adapter"},"counts":{"$ref":"#/components/schemas/DiscoveryPassCounts"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"additionalProperties":false,"type":"object","required":["zip","status"],"title":"DiscoveryPassZip","description":"One ZIP's progress inside a pass."},"DiscoveryRunAccepted":{"properties":{"status":{"type":"string","const":"running","title":"Status","default":"running"},"zip_code":{"type":"string","title":"Zip Code"},"pass_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pass Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["zip_code","message"],"title":"DiscoveryRunAccepted","description":"202: the pass outlasted the answer budget and carries on; its progress is the scheduler card's (P2-BUG-1464)."},"DiscoveryRunRequest":{"properties":{"zip_code":{"type":"string","maxLength":10,"minLength":3,"title":"Zip Code","description":"US ZIP code"},"radius_miles":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Radius Miles","description":"Search radius in miles","default":10},"upcoming_only":{"type":"boolean","title":"Upcoming Only","description":"If true, only return future events from Ticketmaster","default":false}},"type":"object","required":["zip_code"],"title":"DiscoveryRunRequest"},"DiscoveryRunResponse":{"properties":{"venue_urls_queued":{"type":"integer","title":"Venue Urls Queued","default":0},"urls_deduped":{"type":"integer","title":"Urls Deduped","default":0},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"ticketmaster":{"additionalProperties":true,"type":"object","title":"Ticketmaster"},"debug":{"additionalProperties":true,"type":"object","title":"Debug"}},"additionalProperties":true,"type":"object","title":"DiscoveryRunResponse","description":"One manual discovery pass; datasource details remain explicitly extensible."},"DiscoveryStatusResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"total_jobs":{"type":"integer","title":"Total Jobs"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"jobs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Jobs"}},"type":"object","required":["batch_id","total_jobs","by_status","jobs"],"title":"DiscoveryStatusResponse","description":"Queue state for the concrete `/status/{batch_id}` route."},"DryRunRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"candidate_tail":{"type":"string","title":"Candidate Tail"},"enable_render":{"type":"boolean","title":"Enable Render","default":false},"multi_page":{"type":"boolean","title":"Multi Page","default":true}},"type":"object","required":["url","candidate_tail"],"title":"DryRunRequest"},"DryRunResponse":{"properties":{"url":{"type":"string","title":"Url"},"live":{"$ref":"#/components/schemas/DryRunSide"},"candidate":{"$ref":"#/components/schemas/DryRunSide"},"disclaimer":{"type":"string","title":"Disclaimer","default":"Spot-check on one page — the model's output varies run-to-run, so this is a sanity check for obvious breakage, NOT a statistical A/B result."}},"type":"object","required":["url","live","candidate"],"title":"DryRunResponse"},"DryRunSide":{"properties":{"label":{"type":"string","title":"Label"},"ok":{"type":"boolean","title":"Ok"},"extraction":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extraction"},"ai_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Provider"},"ai_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Model"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["label","ok"],"title":"DryRunSide"},"EnqueueBatchRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Urls"},"enable_render":{"type":"boolean","title":"Enable Render","default":false},"multi_page":{"type":"boolean","title":"Multi Page","default":true},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"}},"type":"object","required":["urls"],"title":"EnqueueBatchRequest"},"EnqueueBatchResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"batch_id":{"type":"string","title":"Batch Id"},"job_ids":{"items":{"type":"string"},"type":"array","title":"Job Ids"}},"type":"object","required":["batch_id","job_ids"],"title":"EnqueueBatchResponse"},"EntityCandidate":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"match":{"type":"string","enum":["exact","near"],"title":"Match"}},"type":"object","required":["id","label","match"],"title":"EntityCandidate","description":"One existing row the admin may link a missing name to."},"EntityImageSource":{"type":"string","enum":["datasource","scraper","admin","owner"],"title":"EntityImageSource","description":"WHO authored the picture — the KIND of actor, never WHICH vendor."},"EntityPlanRead":{"properties":{"code":{"type":"string","title":"Code"},"display_name":{"type":"string","title":"Display Name"},"interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interval"}},"additionalProperties":false,"type":"object","required":["code","display_name"],"title":"EntityPlanRead","description":"The plan an entity holds today: its code, the name a person reads, and how often it bills."},"EventArtistRef":{"properties":{"id":{"type":"string","title":"Id"},"stage_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Name"}},"additionalProperties":false,"type":"object","required":["id"],"title":"EventArtistRef","description":"One artist linked to an event. Field is `stage_name`, never `name`. See CLAUDE.md § artist_ref.py."},"EventBorrowedCover":{"properties":{"url":{"type":"string","title":"Url"},"tier":{"$ref":"#/components/schemas/EventCoverImageTier"},"licence":{"anyOf":[{"$ref":"#/components/schemas/CoverImageLicence"},{"type":"null"}]},"credit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit"}},"additionalProperties":false,"type":"object","required":["url","tier"],"title":"EventBorrowedCover","description":"One act's or the venue's own cover behind an event, with its rights. See CLAUDE.md § cover_image.py."},"EventCategoryImageReadModel":{"properties":{"event_type":{"type":"string","title":"Event Type"},"image_url":{"type":"string","title":"Image Url"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"photo_count":{"type":"integer","title":"Photo Count","default":1}},"type":"object","required":["event_type","image_url"],"title":"EventCategoryImageReadModel"},"EventCategoryPoolReadModel":{"properties":{"event_type":{"type":"string","title":"Event Type"},"photos":{"items":{"$ref":"#/components/schemas/PoolPhotoReadModel"},"type":"array","title":"Photos"},"event_count":{"type":"integer","title":"Event Count"},"max_photos":{"type":"integer","title":"Max Photos"}},"type":"object","required":["event_type","photos","event_count","max_photos"],"title":"EventCategoryPoolReadModel"},"EventCategoryRemoval":{"properties":{"event_id":{"type":"string","title":"Event Id"},"category_slug":{"type":"string","title":"Category Slug"},"category_label":{"type":"string","title":"Category Label"},"is_primary":{"type":"boolean","title":"Is Primary"},"confirmed":{"type":"boolean","title":"Confirmed","default":false},"requires_confirmation":{"type":"boolean","title":"Requires Confirmation","default":false},"genres":{"items":{"$ref":"#/components/schemas/LostEventGenre"},"type":"array","title":"Genres"},"plan_token":{"type":"string","title":"Plan Token"}},"additionalProperties":false,"type":"object","required":["event_id","category_slug","category_label","is_primary","plan_token"],"title":"EventCategoryRemoval","description":"What removing this category costs — previewed, or done."},"EventCoverImageTier":{"type":"string","enum":["event","artist","venue","stock"],"title":"EventCoverImageTier","description":"Which rung of the picture chain answered. See CLAUDE.md § cover_image.py."},"EventCreate":{"properties":{"title":{"type":"string","maxLength":140,"minLength":2,"title":"Title"},"description":{"type":"string","maxLength":3000,"title":"Description","default":""},"category":{"type":"string","maxLength":80,"minLength":2,"title":"Category"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"},"age_requirement":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Age Requirement"},"capacity":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Capacity"},"genres":{"items":{"type":"string"},"type":"array","title":"Genres"},"venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Venue Id"},"artist_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10},{"type":"null"}],"title":"Artist Ids"}},"additionalProperties":false,"type":"object","required":["title","category","start_time","end_time"],"title":"EventCreate"},"EventCreated":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"}},"additionalProperties":false,"type":"object","required":["id","status"],"title":"EventCreated"},"EventDetail":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"venue_name":{"type":"string","title":"Venue Name"},"venue":{"anyOf":[{"$ref":"#/components/schemas/EventVenueRef"},{"type":"null"}]},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"type":"string","format":"date-time","title":"End Time"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"default_stock_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Stock Image Url"},"display_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Image Url"},"display_image_tier":{"anyOf":[{"$ref":"#/components/schemas/EventCoverImageTier"},{"type":"null"}]},"borrowed_covers":{"items":{"$ref":"#/components/schemas/EventBorrowedCover"},"type":"array","title":"Borrowed Covers"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"price_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Label"},"age_requirement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age Requirement"},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"source_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Domain"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"genres":{"items":{"type":"string"},"type":"array","title":"Genres"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"owner_pictures":{"items":{"$ref":"#/components/schemas/EventPictureRead"},"type":"array","title":"Owner Pictures"},"status":{"type":"string","enum":["scheduled","cancelled"],"title":"Status","default":"scheduled"},"series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series Id"},"recurrence_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurrence Id"},"is_promoted":{"type":"boolean","title":"Is Promoted","default":false},"promoted_state":{"$ref":"#/components/schemas/PromotedState","default":"unknown"}},"additionalProperties":false,"type":"object","required":["id","title","venue_name","start_time","end_time"],"title":"EventDetail","description":"Widest public event response. Never-500 on a poisoned row. See CLAUDE.md § detail.py."},"EventMergeChildPlan":{"properties":{"table":{"type":"string","title":"Table"},"column":{"type":"string","title":"Column"},"reference":{"type":"string","title":"Reference"},"on_delete":{"type":"string","title":"On Delete","default":""},"disposition":{"type":"string","title":"Disposition"},"rows":{"type":"integer","title":"Rows","default":0},"rationale":{"type":"string","title":"Rationale","default":""}},"type":"object","required":["table","column","reference","disposition"],"title":"EventMergeChildPlan","description":"One table that references `public.events`, and what the merge does to it."},"EventMergeDryRunRequest":{"properties":{"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"field_overrides":{"additionalProperties":true,"type":"object","title":"Field Overrides"}},"type":"object","required":["survivor_id","victim_id"],"title":"EventMergeDryRunRequest","description":"The dry-run payload.\n\nDeliberately the same three fields as `MergeRequest` rather than a subclass:\nit is a DIFFERENT endpoint with a different response, and inheriting would\nmake a future field added for the real merge silently appear here too."},"EventMergeDryRunResult":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"merged_fields":{"items":{"type":"string"},"type":"array","title":"Merged Fields"},"ignored_overrides":{"items":{"type":"string"},"type":"array","title":"Ignored Overrides"},"children":{"items":{"$ref":"#/components/schemas/EventMergeChildPlan"},"type":"array","title":"Children"},"guards_would_refuse":{"items":{"type":"string"},"type":"array","title":"Guards Would Refuse"},"deleted_victim":{"type":"boolean","title":"Deleted Victim","default":false}},"type":"object","required":["survivor_id","victim_id"],"title":"EventMergeDryRunResult","description":"The plan. Nothing was written to produce it."},"EventMergeRestoreChildReport":{"properties":{"cleared_from_survivor":{"type":"integer","title":"Cleared From Survivor","default":0},"cleared_from_victim":{"type":"integer","title":"Cleared From Victim","default":0},"cleared_stale":{"type":"integer","title":"Cleared Stale","default":0},"reinserted":{"type":"integer","title":"Reinserted","default":0}},"type":"object","title":"EventMergeRestoreChildReport","description":"What the restore did to one child table.\n\n🔴 THREE CLEAR COUNTS, NOT ONE, because the restore clears three different\npopulations and collapsing them would hide the two that were added on\n2026-08-20 to fix a restore that aborted outright."},"EventMergeRestoreResult":{"properties":{"snapshot_id":{"type":"string","format":"uuid","title":"Snapshot Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"restored":{"type":"boolean","title":"Restored","default":true},"children":{"additionalProperties":{"$ref":"#/components/schemas/EventMergeRestoreChildReport"},"type":"object","title":"Children"}},"type":"object","required":["snapshot_id","victim_id","survivor_id"],"title":"EventMergeRestoreResult","description":"The undo, described. Everything below happened in one transaction."},"EventMergeSnapshotSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"restored_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Restored At"},"restored_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Restored By"},"victim_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Victim Title"},"child_row_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Child Row Counts"}},"type":"object","required":["id","victim_id","survivor_id"],"title":"EventMergeSnapshotSummary","description":"One pre-merge snapshot, without its payloads."},"EventOwnerRead":{"properties":{"id":{"type":"string","title":"Id"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"default_stock_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Stock Image Url"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"},"price_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Label"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Genres"},"derived_genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Derived Genres"},"capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capacity"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"status":{"type":"string","enum":["scheduled","cancelled"],"title":"Status","default":"scheduled"},"artists":{"items":{"$ref":"#/components/schemas/EventArtistRef"},"type":"array","title":"Artists"}},"type":"object","required":["id","title","start_time"],"title":"EventOwnerRead","description":"Owner-facing single-event response — the editable field set, not EventDetail."},"EventOwnerUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":140,"minLength":2},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string","maxLength":80,"minLength":2},{"type":"null"}],"title":"Category"},"categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Categories"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"ticket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"},"age_requirement":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Age Requirement"},"capacity":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Capacity"},"genres":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Genres"},"status":{"anyOf":[{"type":"string","enum":["scheduled","cancelled"]},{"type":"null"}],"title":"Status"},"artist_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":10},{"type":"null"}],"title":"Artist Ids"}},"type":"object","title":"EventOwnerUpdate","description":"PATCH payload for owner event edit. Absent key = leave; explicit null = clear."},"EventPictureRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"image_url":{"type":"string","title":"Image Url"},"sort_order":{"type":"integer","title":"Sort Order"},"shown_on_plan":{"type":"boolean","title":"Shown On Plan","default":true}},"additionalProperties":false,"type":"object","required":["id","image_url","sort_order"],"title":"EventPictureRead","description":"One owner picture on an event, in gallery order."},"EventRecheckPatch":{"properties":{"disabled":{"type":"boolean","title":"Disabled"}},"additionalProperties":false,"type":"object","required":["disabled"],"title":"EventRecheckPatch","description":"Exclude or re-include ONE event, across every route it has."},"EventRecheckState":{"properties":{"event_id":{"type":"string","title":"Event Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"state":{"type":"string","title":"State"},"eligible":{"type":"boolean","title":"Eligible"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"routes":{"items":{"$ref":"#/components/schemas/RecheckRoute"},"type":"array","title":"Routes"},"rows_written":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rows Written"}},"type":"object","required":["event_id","state","eligible"],"title":"EventRecheckState","description":"The THREE-valued per-event answer. `not_eligible` offers no toggle."},"EventSearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EventSummary"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total":{"type":"integer","title":"Total"}},"additionalProperties":false,"type":"object","required":["items","page","limit","total"],"title":"EventSearchResponse"},"EventSummary":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"venue_name":{"type":"string","title":"Venue Name"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"is_promoted":{"type":"boolean","title":"Is Promoted","default":false},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"default_stock_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Stock Image Url"},"display_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Image Url"},"display_image_tier":{"anyOf":[{"$ref":"#/components/schemas/EventCoverImageTier"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"price_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Label"},"primary_artist_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Artist Name"},"artist_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Artist Count"},"source_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Domain"},"discovered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discovered At"},"status":{"type":"string","enum":["scheduled","cancelled"],"title":"Status","default":"scheduled"}},"additionalProperties":false,"type":"object","required":["id","title","venue_name","start_time"],"title":"EventSummary","description":"Public list/shelf response. Not the ingestion shape. See CLAUDE.md § summary.py."},"EventTag":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"source":{"type":"string","title":"Source"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"single_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Single Group Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"additionalProperties":false,"type":"object","required":["event_id","tag_value_id","source"],"title":"EventTag","description":"One event-to-value assignment."},"EventTagAssignmentRequest":{"properties":{"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"source":{"type":"string","enum":["admin","owner","scraper","ai"],"title":"Source","default":"admin"},"confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"}},"additionalProperties":false,"type":"object","required":["tag_value_id"],"title":"EventTagAssignmentRequest","description":"Attach one tag value to one event."},"EventTagVocabularyResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/TagGroupWithValues"},"type":"array","title":"Groups"}},"additionalProperties":false,"type":"object","required":["groups"],"title":"EventTagVocabularyResponse","description":"The whole active event-tag vocabulary, groups in `sort_order`.\n\nRetired groups and retired values are ABSENT — this is the OFFERABLE\nvocabulary. An event that carries a retired value still reports it on the\nevent's own tag read; the two questions are different and are answered by\ndifferent endpoints on purpose."},"EventVenueRef":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"main_venue":{"anyOf":[{"$ref":"#/components/schemas/LinkedVenueRead"},{"type":"null"}]},"address_from_main_venue":{"type":"boolean","title":"Address From Main Venue","default":false}},"additionalProperties":false,"type":"object","required":["name"],"title":"EventVenueRef","description":"Nested venue on event detail. `id is None` ⇒ non-tappable. See CLAUDE.md § venue_ref.py."},"FavoriteCreate":{"properties":{"event_id":{"type":"string","title":"Event Id"}},"type":"object","required":["event_id"],"title":"FavoriteCreate"},"FavoriteRead":{"properties":{"event_id":{"type":"string","title":"Event Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"title":{"type":"string","title":"Title"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["event_id","created_at","title","start_time"],"title":"FavoriteRead"},"FeatureClassification":{"type":"string","enum":["new_plan_feature","paid_add_on"],"title":"FeatureClassification","description":"A founder receives every NEW_PLAN_FEATURE released in their intro year; a PAID_ADD_ON never (FR-P2-2817)."},"FigureDefinition":{"properties":{"numerator":{"type":"string","title":"Numerator"},"denominator":{"type":"string","title":"Denominator"},"window":{"type":"string","title":"Window"},"exclusions":{"type":"string","title":"Exclusions"},"basis":{"type":"string","enum":["recorded","derived","mixed"],"title":"Basis"}},"type":"object","required":["numerator","denominator","window","exclusions","basis"],"title":"FigureDefinition","description":"What one figure divides, over what, leaving what out — shown on the surface and carried in the export (AC #9)."},"FingerprintCountView":{"properties":{"gate_fingerprint":{"type":"string","title":"Gate Fingerprint"},"events":{"type":"integer","title":"Events"},"first_stamped_at":{"type":"string","format":"date-time","title":"First Stamped At"}},"additionalProperties":false,"type":"object","required":["gate_fingerprint","events","first_stamped_at"],"title":"FingerprintCountView","description":"Distinct page events verified under one gate fingerprint; the first stamp dates the rule set (D14)."},"FinishUpRequest":{"properties":{"venue_claim_intent":{"type":"boolean","title":"Venue Claim Intent","default":false},"artist_claim_intent":{"type":"boolean","title":"Artist Claim Intent","default":false},"budget_min":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Budget Min"},"budget_max":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Budget Max"},"birthday_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Birthday Month"},"birthday_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Birthday Day"},"anniversary_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Anniversary Month"},"anniversary_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Anniversary Day"},"phone":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Phone"},"age_range":{"anyOf":[{"$ref":"#/components/schemas/AgeRange"},{"type":"null"}]},"marital_status":{"anyOf":[{"$ref":"#/components/schemas/MaritalStatus"},{"type":"null"}]},"accepted_terms":{"type":"boolean","const":true,"title":"Accepted Terms"},"accepted_privacy":{"type":"boolean","const":true,"title":"Accepted Privacy"},"confirmed_age_13":{"type":"boolean","const":true,"title":"Confirmed Age 13"},"terms_policy_version":{"type":"string","pattern":"^terms@[0-9]{4}-[0-9]{2}-[0-9]{2}$","title":"Terms Policy Version"},"privacy_policy_version":{"type":"string","pattern":"^privacy@[0-9]{4}-[0-9]{2}-[0-9]{2}$","title":"Privacy Policy Version"},"display_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["accepted_terms","accepted_privacy","confirmed_age_13","terms_policy_version","privacy_policy_version"],"title":"FinishUpRequest","description":"`POST /auth/social/finish-up` — a new social account's one screen."},"FollowCreate":{"properties":{"artist_id":{"type":"string","title":"Artist Id"}},"type":"object","required":["artist_id"],"title":"FollowCreate"},"FollowRead":{"properties":{"artist_id":{"type":"string","title":"Artist Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"stage_name":{"type":"string","title":"Stage Name"}},"type":"object","required":["artist_id","created_at","stage_name"],"title":"FollowRead"},"FollowedArtistRead":{"properties":{"artist_id":{"type":"string","title":"Artist Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"stage_name":{"type":"string","title":"Stage Name"},"genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Genres"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"next_event_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Event Start Time"},"next_event_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Event Title"},"upcoming_show_count":{"type":"integer","title":"Upcoming Show Count","default":0}},"type":"object","required":["artist_id","created_at","stage_name"],"title":"FollowedArtistRead"},"FollowedVenueRead":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"name":{"type":"string","title":"Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"next_event_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Event Start Time"},"next_event_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Event Title"},"upcoming_show_count":{"type":"integer","title":"Upcoming Show Count","default":0}},"type":"object","required":["venue_id","created_at","name"],"title":"FollowedVenueRead"},"FollowerMessageAvailability":{"type":"string","enum":["available","upgrade_required","cooling_down","no_audience"],"title":"FollowerMessageAvailability","description":"Whether this venue or artist can message its audience now, and if not, why."},"FollowerMessageDeliveryState":{"type":"string","enum":["sending","delivered","failed"],"title":"FollowerMessageDeliveryState","description":"Where the last message's delivery stands, as the owner is told it."},"FollowerMessageLatestSendRead":{"properties":{"send_id":{"type":"string","format":"uuid","title":"Send Id"},"subject":{"type":"string","title":"Subject"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"audience_size":{"type":"integer","title":"Audience Size"},"emails_sent":{"type":"integer","title":"Emails Sent"},"emails_failed":{"type":"integer","title":"Emails Failed"},"push_outcome":{"$ref":"#/components/schemas/FollowerMessagePushOutcome"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"delivery_state":{"$ref":"#/components/schemas/FollowerMessageDeliveryState"}},"additionalProperties":false,"type":"object","required":["send_id","subject","sent_at","audience_size","emails_sent","emails_failed","push_outcome","completed_at","delivery_state"],"title":"FollowerMessageLatestSendRead","description":"The entity's most recent message, as its owner may see it."},"FollowerMessageOverviewRead":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"availability":{"$ref":"#/components/schemas/FollowerMessageAvailability"},"audience_size":{"type":"integer","title":"Audience Size"},"cooldown_hours":{"type":"integer","title":"Cooldown Hours"},"next_send_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Send At"},"push_held":{"type":"boolean","title":"Push Held"},"push_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Push Note"},"latest_send":{"anyOf":[{"$ref":"#/components/schemas/FollowerMessageLatestSendRead"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["entity_kind","entity_id","availability","audience_size","cooldown_hours","next_send_at","push_held","push_note","latest_send"],"title":"FollowerMessageOverviewRead","description":"Everything the owner's composer shows. See CLAUDE.md § follower_message.py."},"FollowerMessagePushOutcome":{"type":"string","enum":["pending","held","sent","suppressed","no_devices","all_limited","failed"],"title":"FollowerMessagePushOutcome","description":"`follower_message_sends.push_outcome` — what a follower message's push half did (Story 23.10)."},"FollowerMessageRequestBody":{"properties":{"subject":{"type":"string","maxLength":120,"minLength":1,"title":"Subject"},"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["subject","message"],"title":"FollowerMessageRequestBody","description":"What the owner writes. Both halves are required; the email subject names the sender."},"FollowerMessageSendRead":{"properties":{"send_id":{"type":"string","format":"uuid","title":"Send Id"},"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"audience_size":{"type":"integer","title":"Audience Size"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"next_send_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Send At"},"push_held":{"type":"boolean","title":"Push Held"},"push_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Push Note"}},"additionalProperties":false,"type":"object","required":["send_id","entity_kind","entity_id","audience_size","sent_at","next_send_at","push_held","push_note"],"title":"FollowerMessageSendRead","description":"A send was recorded and its delivery has started."},"FollowerPushConsentRead":{"properties":{"opted_in":{"type":"boolean","title":"Opted In"},"opted_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opted In At"},"consent_source":{"anyOf":[{"$ref":"#/components/schemas/PushConsentSource"},{"type":"null"}]},"consent":{"$ref":"#/components/schemas/FollowerPushConsentTermsRead"}},"additionalProperties":false,"type":"object","required":["opted_in","opted_in_at","consent_source","consent"],"title":"FollowerPushConsentRead","description":"A person's stored follower-push choice and the current wording."},"FollowerPushConsentTermsRead":{"properties":{"label":{"type":"string","title":"Label"},"text":{"type":"string","title":"Text"},"version":{"type":"string","title":"Version"}},"additionalProperties":false,"type":"object","required":["label","text","version"],"title":"FollowerPushConsentTermsRead","description":"The follower-messages wording, served so neither app keeps a copy (Story 31.10)."},"FollowerPushConsentWrite":{"properties":{"opted_in":{"type":"boolean","title":"Opted In"},"consent_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Consent Version"},"source":{"$ref":"#/components/schemas/PushConsentSource"}},"additionalProperties":false,"type":"object","required":["opted_in","source"],"title":"FollowerPushConsentWrite","description":"Turn follower pushes on (with the version read) or off. An opt-out needs no version."},"FoundingEndReason":{"type":"string","enum":["cancelled","unpaid","terminated"],"title":"FoundingEndReason","description":"`{venue,artist}_subscriptions.founding_end_reason` — why founding status ended (FR-P2-2816)."},"FoundingIneligibility":{"type":"string","enum":["page_already_used","already_subscribed","sold_out"],"title":"FoundingIneligibility","description":"Why a page may not buy Discover right now."},"FoundingOfferRead":{"properties":{"cap":{"type":"integer","minimum":0.0,"title":"Cap"},"remaining":{"type":"integer","minimum":0.0,"title":"Remaining"}},"additionalProperties":false,"type":"object","required":["cap","remaining"],"title":"FoundingOfferRead","description":"`GET /plans/founding-offer` — the real count, never estimated: cap minus enrolled minus held."},"FoundingOfferTermsRead":{"properties":{"cap":{"type":"integer","minimum":0.0,"title":"Cap"},"intro_months":{"type":"integer","minimum":0.0,"title":"Intro Months"},"lock_months":{"type":"integer","minimum":0.0,"title":"Lock Months"}},"additionalProperties":false,"type":"object","required":["cap","intro_months","lock_months"],"title":"FoundingOfferTermsRead","description":"Story 31.8 — the offer's static numbers on `GET /plans`, so the pricing card types none of them."},"FoundingStatus":{"type":"string","enum":["active","ended"],"title":"FoundingStatus"},"FoundingStatusRead":{"properties":{"status":{"$ref":"#/components/schemas/FoundingStatus"},"founder_start_at":{"type":"string","format":"date-time","title":"Founder Start At"},"converts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Converts At"},"price_lock_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Price Lock Ends At"},"ended_reason":{"anyOf":[{"$ref":"#/components/schemas/FoundingEndReason"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["status","founder_start_at"],"title":"FoundingStatusRead","description":"A page's founding enrollment as its owner sees it; `null` on a page that never enrolled."},"FreeTierRead":{"properties":{"tier":{"$ref":"#/components/schemas/PlanTier"},"display_name":{"type":"string","title":"Display Name"},"gallery_photo_cap":{"type":"integer","title":"Gallery Photo Cap"},"event_photo_cap":{"type":"integer","title":"Event Photo Cap"},"event_promotions_per_period":{"type":"integer","title":"Event Promotions Per Period"},"promotion_allowance_per_period":{"type":"integer","title":"Promotion Allowance Per Period"},"follower_messaging":{"type":"boolean","title":"Follower Messaging"}},"additionalProperties":false,"type":"object","required":["tier","display_name","gallery_photo_cap","event_photo_cap","event_promotions_per_period","promotion_allowance_per_period","follower_messaging"],"title":"FreeTierRead","description":"What every entity gets with no active subscription."},"GalleryAltTextWriteRequest":{"properties":{"alt_text":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Alt Text"}},"type":"object","title":"GalleryAltTextWriteRequest","description":"The owner's own words for one picture. Empty or whitespace clears it."},"GalleryImageRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"image_url":{"type":"string","title":"Image Url"},"source_kind":{"$ref":"#/components/schemas/EntityImageSource"},"sort_order":{"type":"integer","title":"Sort Order"},"alt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Text"},"shown_on_plan":{"type":"boolean","title":"Shown On Plan","default":true}},"type":"object","required":["id","image_url","source_kind","sort_order"],"title":"GalleryImageRead","description":"One pooled picture, entity-agnostic — the venue and artist pools are one shape."},"GalleryOrderWriteRequest":{"properties":{"image_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":1000,"title":"Image Ids"}},"type":"object","required":["image_ids"],"title":"GalleryOrderWriteRequest","description":"Every current pool row id, in the owner's desired display order."},"GalleryPhotoRead":{"properties":{"image_url":{"type":"string","title":"Image Url"},"alt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Text"}},"type":"object","required":["image_url"],"title":"GalleryPhotoRead","description":"One public gallery picture — its URL and the owner's own words for it."},"GenreAliasRequest":{"properties":{"alias":{"type":"string","maxLength":120,"minLength":1,"title":"Alias"}},"additionalProperties":false,"type":"object","required":["alias"],"title":"GenreAliasRequest","description":"One string that should resolve to this genre at ingestion.\n\nLowercased and trimmed by `GenreAlias`'s validator before the wire — no\nslugification, because the scraper's raw spellings contain spaces,\nampersands and slashes and are matched exactly as written."},"GenreCreateRequest":{"properties":{"category_id":{"type":"string","format":"uuid","title":"Category Id"},"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"slug":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Slug"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"second_level_label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Second Level Label"},"alias":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Alias"}},"additionalProperties":false,"type":"object","required":["category_id","label"],"title":"GenreCreateRequest","description":"Create one genre under a category.\n\n`second_level_label` is REQUIRED only when the target category has none yet\n— the invariant *a category with genres has a heading* spans rows and\ntherefore cannot be a database `CHECK`. The service raises a readable 422\nnaming the category when it is missing."},"GenreOptionView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"additionalProperties":false,"type":"object","required":["id","slug","label"],"title":"GenreOptionView","description":"One selectable second-level value. Carries both `id` and `slug`."},"GenreReparentRequest":{"properties":{"category_id":{"type":"string","format":"uuid","title":"Category Id"},"second_level_label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Second Level Label"}},"additionalProperties":false,"type":"object","required":["category_id"],"title":"GenreReparentRequest","description":"Move a genre to a different category. Refused above zero references."},"GenreUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"GenreUpdateRequest","description":"Rename, reorder, retire or restore. Never re-slug, never re-parent."},"GoogleCloudCost":{"properties":{"available":{"type":"boolean","title":"Available"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Usd Per Month"},"gross_usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gross Usd Per Month"},"credits_usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Credits Usd Per Month"},"excluded_ai_usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Excluded Ai Usd Per Month"},"covered_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Covered From"},"covered_through":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Covered Through"}},"type":"object","required":["available"],"title":"GoogleCloudCost","description":"Google Cloud's billed spend from its billing export, without the AI services the AI figures already price."},"GoogleLookupAvailability":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"limit_per_hour":{"type":"integer","title":"Limit Per Hour"}},"additionalProperties":false,"type":"object","required":["enabled","limit_per_hour"],"title":"GoogleLookupAvailability","description":"Whether the button may be shown on this server, and the per-admin hourly cap."},"GoogleLookupCitation":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri"}},"additionalProperties":false,"type":"object","title":"GoogleLookupCitation","description":"One page the answer cites; `uri` is Google's redirect link, shown as given."},"GoogleLookupResult":{"properties":{"item_id":{"type":"string","format":"uuid","title":"Item Id"},"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"},"searched":{"type":"boolean","title":"Searched"},"search_suggestions_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Suggestions Html"},"citations":{"items":{"$ref":"#/components/schemas/GoogleLookupCitation"},"type":"array","title":"Citations"},"model":{"type":"string","title":"Model"}},"additionalProperties":false,"type":"object","required":["item_id","question","answer","searched","model"],"title":"GoogleLookupResult","description":"One grounded answer for display only. Every vendor string is carried byte-for-byte."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"version":{"type":"string","title":"Version"},"commit":{"type":"string","title":"Commit"},"environment":{"type":"string","title":"Environment"},"livey_env":{"type":"string","title":"Livey Env"},"livey_service":{"type":"string","title":"Livey Service","description":"Story 18.0c — which of the three Railway services this process is (LIVEY_SERVICE). \"unset\" when absent or unrecognised, deliberately NOT defaulted to \"api\": a default would let a scheduler report itself as the API and be validated against the wrong requirements."},"config_sources":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Config Sources","description":"Story 18.0c — for each per-environment variable, WHICH suffixed variable supplied its value (e.g. {\"SUPABASE_URL\": \"SUPABASE_URL_STAGING\"}). NAMES ONLY, never values. ADMIN-ONLY (P2-BUG-291): OMITTED entirely for an unauthenticated or non-admin caller, because naming which variables ARE set also names, by omission, which required secret is MISSING."},"outbound_email_enabled":{"type":"boolean","title":"Outbound Email Enabled"},"push_delivery_enabled":{"type":"boolean","title":"Push Delivery Enabled"},"auth_guard_reachable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auth Guard Reachable","description":"Whether the identity lock's schema is on PostgREST's exposed list. A deploy where this is false answers 503 to every authenticated request while / stays 200 — see docs/release-pipeline.html#auth-guard."},"supabase_project_ref":{"type":"string","title":"Supabase Project Ref"},"timestamp":{"type":"string","title":"Timestamp"}},"additionalProperties":false,"type":"object","required":["status","version","commit","environment","livey_env","livey_service","outbound_email_enabled","push_delivery_enabled","supabase_project_ref","timestamp"],"title":"HealthResponse","description":"Liveness + build identity (NFR-029). `version` + `commit` identify the\nexact running build for Settings -> About and bug-report screenshots."},"HomeFeedResponse":{"properties":{"tonight":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Tonight"},"discovered":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Discovered"},"trending_events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Trending Events"},"popular_venues":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Popular Venues"},"recommended_venues":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recommended Venues"},"trending_artists":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Trending Artists"},"recommended_artists":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recommended Artists"},"radius_miles":{"type":"number","title":"Radius Miles"}},"type":"object","required":["tonight","discovered","trending_events","popular_venues","recommended_venues","trending_artists","recommended_artists","radius_miles"],"title":"HomeFeedResponse"},"IdTokenProvider":{"type":"string","enum":["apple","google"],"title":"IdTokenProvider","description":"The providers with a native ID-token lane. Facebook has none and is absent."},"JobCostApart":{"properties":{"reason":{"type":"string","title":"Reason"},"calls":{"type":"integer","minimum":0.0,"title":"Calls"},"usd":{"type":"number","minimum":0.0,"title":"Usd"}},"type":"object","required":["reason","calls","usd"],"title":"JobCostApart","description":"Money one job spent that is not operating cost — a dry run, a script, a test, another environment."},"JobCostLine":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Strategy"},"state":{"type":"string","enum":["recorded","before_record","no_ai_spend"],"title":"State"},"record_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Record Started At"},"lines":{"items":{"$ref":"#/components/schemas/JobCostWorkflowLine"},"type":"array","title":"Lines"},"apart":{"items":{"$ref":"#/components/schemas/JobCostApart"},"type":"array","title":"Apart"},"total_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Usd"},"unpriced_calls":{"type":"integer","title":"Unpriced Calls","default":0},"node_recorded":{"type":"boolean","title":"Node Recorded","default":false}},"type":"object","required":["job_id","state"],"title":"JobCostLine","description":"`GET /admin/scraper/jobs/{job_id}/cost` — the current run's calls only. See CLAUDE.md § job_cost.py."},"JobCostWorkflowLine":{"properties":{"workflow":{"type":"string","title":"Workflow"},"calls":{"type":"integer","minimum":0.0,"title":"Calls"},"priced_usd":{"type":"number","minimum":0.0,"title":"Priced Usd"},"estimated_usd":{"type":"number","minimum":0.0,"title":"Estimated Usd"},"unpriced_calls":{"type":"integer","minimum":0.0,"title":"Unpriced Calls"},"errors":{"additionalProperties":{"type":"integer"},"type":"object","title":"Errors"},"vendors":{"items":{"type":"string"},"type":"array","title":"Vendors"},"models":{"items":{"type":"string"},"type":"array","title":"Models"},"rate_versions":{"items":{"type":"string"},"type":"array","title":"Rate Versions"},"nodes":{"items":{"type":"string"},"type":"array","title":"Nodes"}},"type":"object","required":["workflow","calls","priced_usd","estimated_usd","unpriced_calls"],"title":"JobCostWorkflowLine","description":"What one workflow cost inside one job."},"JobListResponse":{"properties":{"jobs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Jobs"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["jobs","count"],"title":"JobListResponse"},"JobRunView":{"properties":{"job_id":{"type":"string","title":"Job Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"attempts":{"type":"integer","title":"Attempts","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"steps":{"items":{"$ref":"#/components/schemas/RunStep"},"type":"array","title":"Steps"},"steps_usd":{"type":"number","title":"Steps Usd","default":0.0},"retries":{"items":{"$ref":"#/components/schemas/RunRetry"},"type":"array","title":"Retries"},"excerpts_state":{"type":"string","enum":["recorded","not_recorded"],"title":"Excerpts State","default":"not_recorded"},"cost":{"$ref":"#/components/schemas/JobCostLine"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"trace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Url"}},"type":"object","required":["job_id","cost"],"title":"JobRunView","description":"`GET /admin/scraper/jobs/{job_id}/run`. See services/scraper/CLAUDE.md § run_view.py."},"LabelDeskLabel":{"properties":{"labeller":{"type":"string","maxLength":200,"minLength":1,"title":"Labeller"},"verdict":{"type":"string","enum":["space","reverse","same_place","separate","unsure"],"title":"Verdict"}},"additionalProperties":false,"type":"object","required":["labeller","verdict"],"title":"LabelDeskLabel","description":"One labeller's latest answer on the pair, shown as the question's evidence."},"LegalEntityRead":{"properties":{"id":{"type":"string","title":"Id"},"legal_name":{"type":"string","title":"Legal Name"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["id","legal_name"],"title":"LegalEntityRead","description":"One stored legal entity, served ONLY to the owner who recorded it."},"LegalEntityWrite":{"properties":{"legal_name":{"type":"string","title":"Legal Name"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"}},"additionalProperties":false,"type":"object","required":["legal_name"],"title":"LegalEntityWrite","description":"What an owner submits. A FULL replace — an absent `ein` clears the stored one.\n\n🛑 NEITHER FIELD CARRIES A `field_validator`, AND THAT IS THE POINT. FastAPI's\n422 handler echoes the offending `input` back (`apps/api/main.py:233`), so a\ndeclarative rejection of a mistyped EIN would return a taxpayer identifier in\nthe error body. `LegalEntityService` validates instead and the route answers\nwith a CONSTANT message. See CLAUDE.md § legal_entity.py."},"LicenseCancellationBody":{"properties":{"license_id":{"type":"string","format":"uuid","title":"License Id"},"expected_outcome":{"$ref":"#/components/schemas/CancellationOutcome"}},"additionalProperties":false,"type":"object","required":["license_id","expected_outcome"],"title":"LicenseCancellationBody","description":"A license manager's confirm (AC #22)."},"LicenseCheckoutRequest":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"plan_code":{"type":"string","maxLength":64,"minLength":1,"title":"Plan Code"},"consent":{"$ref":"#/components/schemas/CheckoutConsent"}},"additionalProperties":false,"type":"object","required":["entity_kind","plan_code","consent"],"title":"LicenseCheckoutRequest","description":"CAP-1 — which kind of Connect license, and which plan (Story 31.2), the visitor wants to buy."},"LicenseQuoteBody":{"properties":{"license_id":{"type":"string","format":"uuid","title":"License Id"}},"additionalProperties":false,"type":"object","required":["license_id"],"title":"LicenseQuoteBody","description":"Which of the caller's own licenses to quote."},"LicenseRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entity Id"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"applied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Applied At"},"cancel_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel At"}},"additionalProperties":false,"type":"object","required":["id","entity_kind","status"],"title":"LicenseRead","description":"One license row on `GET /billing/licenses/mine` (CAP-7). See CLAUDE.md § license.py."},"LinkStatusResponse":{"properties":{"confirmed":{"type":"boolean","title":"Confirmed"},"session_may_write":{"type":"boolean","title":"Session May Write","default":false},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"identity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Identity Id"},"linked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Linked At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"additionalProperties":false,"type":"object","required":["confirmed"],"title":"LinkStatusResponse","description":"What the caller's own account looks like to the lock, so no client infers it."},"LinkedVenueIneligibleBody":{"properties":{"message":{"type":"string","title":"Message"},"request_id":{"type":"string","title":"Request Id"},"error":{"type":"string","const":"linked_venue_ineligible","title":"Error"},"venue_id":{"type":"string","format":"uuid","title":"Venue Id"},"reason":{"type":"string","enum":["already_managed","review_in_flight"],"title":"Reason"}},"type":"object","required":["message","request_id","error","venue_id","reason"],"title":"LinkedVenueIneligibleBody","description":"The 409 when \"use existing\" names a venue the claimant could not claim through `POST /claims`."},"LinkedVenueRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["id","name"],"title":"LinkedVenueRead","description":"A venue to link to: its id and the name to show."},"LivChatLine":{"properties":{"speaker":{"type":"string","enum":["liv","you"],"title":"Speaker"},"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"}},"additionalProperties":false,"type":"object","required":["speaker","text"],"title":"LivChatLine"},"LivEventRow":{"properties":{"title":{"type":"string","maxLength":140,"title":"Title","default":""},"venue_name":{"type":"string","maxLength":200,"title":"Venue Name","default":""},"venue_id":{"type":"string","maxLength":64,"title":"Venue Id","default":""},"start_time":{"type":"string","maxLength":40,"title":"Start Time","default":""},"end_time":{"type":"string","maxLength":40,"title":"End Time","default":""},"description":{"type":"string","maxLength":3000,"title":"Description","default":""},"categories":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Categories"},"genres":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Genres"},"tags":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Tags"},"artist_names":{"items":{"type":"string"},"type":"array","maxItems":25,"title":"Artist Names"},"price_min":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price Min"},"price_max":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price Max"},"ticket_url":{"type":"string","maxLength":2000,"title":"Ticket Url","default":""},"capacity":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Capacity"},"uncertain":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Uncertain"}},"additionalProperties":false,"type":"object","title":"LivEventRow","description":"One line of the CSV Liv writes — the events importer's own columns, nothing invented."},"LivGreetingResponse":{"properties":{"name":{"type":"string","title":"Name","default":"Liv"},"greeting":{"type":"string","title":"Greeting"}},"additionalProperties":false,"type":"object","required":["greeting"],"title":"LivGreetingResponse"},"LivIngestConfirmRequest":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/LivEventRow"},"type":"array","maxItems":50,"title":"Rows"},"resolutions":{"$ref":"#/components/schemas/CsvImportResolutions"}},"additionalProperties":false,"type":"object","title":"LivIngestConfirmRequest","description":"The admin's approval: the lines as reviewed (possibly edited) and any name decisions."},"LivIngestConfirmResponse":{"properties":{"reply":{"type":"string","title":"Reply"},"result":{"$ref":"#/components/schemas/CsvImportResult"}},"additionalProperties":false,"type":"object","required":["reply","result"],"title":"LivIngestConfirmResponse","description":"What the import did, and Liv's own words for it — the line the chat shows and evidence stops at."},"LivIngestIssue":{"properties":{"source":{"type":"string","enum":["liv","import","preflight"],"title":"Source"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"reason":{"type":"string","maxLength":600,"minLength":1,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["source","reason"],"title":"LivIngestIssue","description":"One thing stopping a line, and who found it."},"LivIngestReview":{"properties":{"mode":{"type":"string","enum":["review","issues"],"title":"Mode"},"csv_text":{"type":"string","title":"Csv Text"},"rows":{"items":{"$ref":"#/components/schemas/LivIngestRow"},"type":"array","title":"Rows"},"missing_venues":{"items":{"$ref":"#/components/schemas/MissingEntity"},"type":"array","title":"Missing Venues"},"missing_artists":{"items":{"$ref":"#/components/schemas/MissingEntity"},"type":"array","title":"Missing Artists"},"questions":{"items":{"type":"string"},"type":"array","title":"Questions"},"ready_count":{"type":"integer","title":"Ready Count","default":0},"issue_count":{"type":"integer","title":"Issue Count","default":0},"evidence":{"items":{"type":"string"},"type":"array","title":"Evidence"}},"additionalProperties":false,"type":"object","required":["mode","csv_text"],"title":"LivIngestReview","description":"What the modal shows. Nothing has been written when this is returned."},"LivIngestRow":{"properties":{"line":{"type":"integer","title":"Line"},"cells":{"$ref":"#/components/schemas/LivEventRow"},"verdict":{"type":"string","enum":["ready","issue"],"title":"Verdict"},"action":{"type":"string","title":"Action"},"issues":{"items":{"$ref":"#/components/schemas/LivIngestIssue"},"type":"array","title":"Issues"}},"additionalProperties":false,"type":"object","required":["line","cells","verdict","action"],"title":"LivIngestRow","description":"One rehearsed line: the cells, the import's verdict, and every issue against it."},"LivTurnRequest":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"},"history":{"items":{"$ref":"#/components/schemas/LivChatLine"},"type":"array","maxItems":60,"title":"History"},"intent":{"anyOf":[{"type":"string","enum":["chat","ingest"]},{"type":"null"}],"title":"Intent"}},"additionalProperties":false,"type":"object","required":["message"],"title":"LivTurnRequest"},"LivTurnResponse":{"properties":{"name":{"type":"string","title":"Name","default":"Liv"},"reply":{"type":"string","title":"Reply"},"review":{"anyOf":[{"$ref":"#/components/schemas/LivIngestReview"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["reply"],"title":"LivTurnResponse"},"LiveyArtistClaim":{"properties":{"id":{"type":"string","title":"Id"},"artist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist Id"},"user_id":{"type":"string","title":"User Id"},"status":{"type":"string","enum":["pending","approved","rejected","info_requested","withdrawn","revoked"],"title":"Status"},"proposed_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposed Data"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"source":{"type":"string","enum":["user","backfill","admin"],"title":"Source"},"claimant_role":{"anyOf":[{"type":"string","enum":["owner","manager","booking_agent"]},{"type":"null"}],"title":"Claimant Role"},"business_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Email"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"claimant_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claimant Note"},"legal_business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Business Name"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"}},"additionalProperties":false,"type":"object","required":["id","user_id","status","source"],"title":"LiveyArtistClaim","description":"One row of `public.artist_claims`.\n\nSame traps as livey_venue_claim.py — see CLAUDE.md § livey_artist_claim.py."},"LiveyGenre":{"properties":{"category_slug":{"type":"string","title":"Category Slug"},"slug":{"type":"string","title":"Slug"}},"additionalProperties":false,"type":"object","required":["category_slug","slug"],"title":"LiveyGenre","description":"One artist genre on the wire: `slug` scoped by `category_slug`. Nothing else.\n\n🔑 **The parent is load-bearing, not decoration.** `classical` and `comedy` each\nexist under TWO categories on staging, and §D14 scopes genres\n`UNIQUE (category_id, slug)` — so `[\"comedy\"]` cannot distinguish a stand-up\ncomedian from a comedy-music act. That ambiguity is P2-BUG-699's shape, and a bare\n`list[str]` would put it on the public wire permanently.\n\n🛑 **No `label`, no `id`, no `sort_order`** (2026-08-25). Clients resolve\ndisplay text through the vocabulary they already fetch — that is how the genre chip\nrenders today.\n\n⚠️ **NOT `GenreOptionView`, and the difference is structural.** `GenreOptionView` is\na `LiveyDbProjection` over `event_genre_values` alone, carrying `id`/`label`/`sort_order`; it\ngets its category context from its `CategoryVocabularyView` PARENT. This appears in\na FLAT list on an artist with no such parent, so it must carry `category_slug`\nINLINE — and drawing from two tables is what makes it a view rather than a\nprojection. The pair is not duplication.\n\n🛑 **The restriction is RUNTIME, never a `Literal` or an `Enum`.** Categories and\ngenres are admin-managed with full CRUD, so the valid set is not known at build\ntime; a `Literal` union would need a deploy to add a genre — exactly what §D14\nmoved away from."},"LiveyReviewQueueItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subject_type":{"$ref":"#/components/schemas/ReviewSubjectType"},"subject_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subject Id"},"operation":{"anyOf":[{"$ref":"#/components/schemas/ReviewQueueOperation"},{"type":"null"}]},"counterpart_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Counterpart Id"},"reason_code":{"anyOf":[{"$ref":"#/components/schemas/ReviewReasonCode"},{"type":"string"}],"title":"Reason Code"},"reason_class":{"anyOf":[{"$ref":"#/components/schemas/ReviewReasonClass"},{"type":"string"}],"title":"Reason Class"},"producer":{"type":"string","minLength":1,"title":"Producer"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"splink_match_probability":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Splink Match Probability"},"splink_model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Splink Model Version"},"splink_disagreement":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Splink Disagreement"},"status":{"$ref":"#/components/schemas/ReviewQueueStatus","default":"pending"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"sample_urls":{"items":{"type":"string"},"type":"array","title":"Sample Urls"},"occurrence_count":{"type":"integer","minimum":1.0,"title":"Occurrence Count","default":1},"dedupe_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dedupe Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"reviewed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"}},"additionalProperties":false,"type":"object","required":["id","subject_type","reason_code","reason_class","producer","created_at","last_seen_at"],"title":"LiveyReviewQueueItem","description":"One `review_queue` row.\n\nNo FK on subject_id or job_id. See CLAUDE.md § item.py."},"LiveyVenueClaim":{"properties":{"id":{"type":"string","title":"Id"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"user_id":{"type":"string","title":"User Id"},"status":{"type":"string","enum":["pending","approved","rejected","info_requested","withdrawn","revoked"],"title":"Status"},"proposed_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposed Data"},"reviewed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"source":{"type":"string","enum":["user","backfill","admin"],"title":"Source"},"claimant_role":{"anyOf":[{"type":"string","enum":["owner","manager","booking_agent"]},{"type":"null"}],"title":"Claimant Role"},"business_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Email"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"claimant_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claimant Note"},"legal_business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Business Name"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"}},"additionalProperties":false,"type":"object","required":["id","user_id","status","source"],"title":"LiveyVenueClaim","description":"One row of `public.venue_claims`.\n\nSee CLAUDE.md § livey_venue_claim.py."},"LostEventGenre":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"category_slug":{"type":"string","title":"Category Slug"},"source":{"type":"string","title":"Source"},"label_survives_under":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label Survives Under"}},"additionalProperties":false,"type":"object","required":["slug","label","category_slug","source"],"title":"LostEventGenre","description":"One `event_genres` row this removal takes with it."},"ManagedArtistRead":{"properties":{"founding":{"anyOf":[{"$ref":"#/components/schemas/FoundingStatusRead"},{"type":"null"}]},"discover_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Discover Eligible"},"discover_ineligible_reason":{"anyOf":[{"$ref":"#/components/schemas/FoundingIneligibility"},{"type":"null"}]},"plan_features":{"anyOf":[{"$ref":"#/components/schemas/PlanFeaturesRead"},{"type":"null"}]},"id":{"type":"string","title":"Id"},"stage_name":{"type":"string","title":"Stage Name"},"genres":{"items":{"$ref":"#/components/schemas/LiveyGenre"},"type":"array","title":"Genres"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"cover_image_licence":{"anyOf":[{"$ref":"#/components/schemas/CoverImageLicence"},{"type":"null"}]},"cover_image_credit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Credit"},"cover_image_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Source Url"},"spotify_photo":{"anyOf":[{"$ref":"#/components/schemas/SpotifyPhotoRead"},{"type":"null"}]},"official_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Url"},"founding_business":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Founding Business"},"gallery_images":{"items":{"$ref":"#/components/schemas/GalleryPhotoRead"},"type":"array","title":"Gallery Images"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"mgmt_role":{"anyOf":[{"$ref":"#/components/schemas/MgmtRole"},{"type":"null"}]},"subscription_status":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}]},"manager_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manager User Id"},"cancel_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel At"},"plan":{"anyOf":[{"$ref":"#/components/schemas/EntityPlanRead"},{"type":"null"}]},"gallery_image_urls":{"items":{"type":"string"},"type":"array","title":"Gallery Image Urls","description":"DERIVED from `gallery_images` — a stored second copy would drift. See CLAUDE.md § read.py.","readOnly":true}},"type":"object","required":["id","stage_name","gallery_image_urls"],"title":"ManagedArtistRead","description":"One artist plus its owner-only billing facts. See CLAUDE.md § managed_artist_read.py."},"ManagedEntityKind":{"type":"string","enum":["venue","artist"],"title":"ManagedEntityKind","description":"`entity_manager_events.entity_kind` — polymorphic, no FK, log outlives the row."},"ManagedVenueRead":{"properties":{"founding":{"anyOf":[{"$ref":"#/components/schemas/FoundingStatusRead"},{"type":"null"}]},"discover_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Discover Eligible"},"discover_ineligible_reason":{"anyOf":[{"$ref":"#/components/schemas/FoundingIneligibility"},{"type":"null"}]},"plan_features":{"anyOf":[{"$ref":"#/components/schemas/PlanFeaturesRead"},{"type":"null"}]},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"cover_image_licence":{"anyOf":[{"$ref":"#/components/schemas/CoverImageLicence"},{"type":"null"}]},"cover_image_credit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Credit"},"cover_image_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Source Url"},"founding_business":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Founding Business"},"gallery_images":{"items":{"$ref":"#/components/schemas/GalleryPhotoRead"},"type":"array","title":"Gallery Images"},"main_venue":{"anyOf":[{"$ref":"#/components/schemas/LinkedVenueRead"},{"type":"null"}]},"spaces":{"items":{"$ref":"#/components/schemas/LinkedVenueRead"},"type":"array","title":"Spaces"},"address_from_main_venue":{"type":"boolean","title":"Address From Main Venue","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"mgmt_role":{"anyOf":[{"$ref":"#/components/schemas/MgmtRole"},{"type":"null"}]},"subscription_status":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}]},"manager_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manager User Id"},"cancel_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel At"},"plan":{"anyOf":[{"$ref":"#/components/schemas/EntityPlanRead"},{"type":"null"}]},"gallery_image_urls":{"items":{"type":"string"},"type":"array","title":"Gallery Image Urls","description":"DERIVED from `gallery_images` — a stored second copy would drift. See CLAUDE.md § read.py.","readOnly":true}},"additionalProperties":false,"type":"object","required":["id","name","gallery_image_urls"],"title":"ManagedVenueRead","description":"One venue plus its owner-only billing facts. See CLAUDE.md § managed_venue_read.py."},"MaritalStatus":{"type":"string","enum":["single","in_a_relationship","married","divorced","widowed","prefer_not_to_say"],"title":"MaritalStatus","description":"`profiles.marital_status`. A native ENUM TYPE (Q37); the value set is Q36's ruling."},"MergeCandidateMode":{"type":"string","enum":["likely","search"],"title":"MergeCandidateMode","description":"`likely`: the ranked short list shown before anything is typed; `search`: every match, paged."},"MergeCandidatePage_AdminArtistRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MergeCandidate_AdminArtistRead_"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"},"mode":{"$ref":"#/components/schemas/MergeCandidateMode"}},"type":"object","required":["items","page","page_size","total","mode"],"title":"MergeCandidatePage[AdminArtistRead]"},"MergeCandidatePage_AdminEventRead_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MergeCandidate_AdminEventRead_"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"},"mode":{"$ref":"#/components/schemas/MergeCandidateMode"}},"type":"object","required":["items","page","page_size","total","mode"],"title":"MergeCandidatePage[AdminEventRead]"},"MergeCandidatePage_AdminVenueSummary_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MergeCandidate_AdminVenueSummary_"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"},"mode":{"$ref":"#/components/schemas/MergeCandidateMode"}},"type":"object","required":["items","page","page_size","total","mode"],"title":"MergeCandidatePage[AdminVenueSummary]"},"MergeCandidate_AdminArtistRead_":{"properties":{"item":{"$ref":"#/components/schemas/AdminArtistRead"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["item"],"title":"MergeCandidate[AdminArtistRead]"},"MergeCandidate_AdminEventRead_":{"properties":{"item":{"$ref":"#/components/schemas/AdminEventRead"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["item"],"title":"MergeCandidate[AdminEventRead]"},"MergeCandidate_AdminVenueSummary_":{"properties":{"item":{"$ref":"#/components/schemas/AdminVenueSummary"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["item"],"title":"MergeCandidate[AdminVenueSummary]"},"MergeRequest":{"properties":{"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"field_overrides":{"additionalProperties":true,"type":"object","title":"Field Overrides"}},"type":"object","required":["survivor_id","victim_id"],"title":"MergeRequest","description":"POST /admin/{entity}/merge payload.\n\nsurvivor_id is the row the admin started from (kept, id retained); victim_id\nis the duplicate (hard-deleted). field_overrides are the fields the admin\nflipped to the victim's value — keyed by DB column name (the web field-config\nkeys are DB columns), value = the chosen value to write onto the survivor."},"MergeResult":{"properties":{"survivor_id":{"type":"string","title":"Survivor Id"},"merged_fields":{"items":{"type":"string"},"type":"array","title":"Merged Fields"},"repointed":{"additionalProperties":{"type":"integer"},"type":"object","title":"Repointed"},"deleted_victim":{"type":"boolean","title":"Deleted Victim","default":true},"snapshot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Id"},"owner_action":{"anyOf":[{"type":"string","enum":["none","transferred","kept_survivor"]},{"type":"null"}],"title":"Owner Action"}},"type":"object","required":["survivor_id"],"title":"MergeResult","description":"The merge RPC outcome (AC #6). owner_action is present for venues/artists\nonly — events carry no owner."},"MergedMember":{"properties":{"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"snapshot_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Snapshot Id"}},"additionalProperties":false,"type":"object","required":["victim_id"],"title":"MergedMember"},"MetricDefinition":{"properties":{"numerator":{"type":"string","title":"Numerator"},"denominator":{"type":"string","title":"Denominator"},"window":{"type":"string","title":"Window"},"exclusions":{"type":"string","title":"Exclusions"}},"type":"object","required":["numerator","denominator","window","exclusions"],"title":"MetricDefinition","description":"What a series counts, stated once beside the code and shown on the surface (AC #10)."},"MgmtRole":{"type":"string","enum":["owner","manager","promoter"],"title":"MgmtRole","description":"`public.mgmt_role`. Only OWNER is written; others confer identical full access."},"MissingEntity":{"properties":{"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"name":{"type":"string","title":"Name"},"row_numbers":{"items":{"type":"integer"},"type":"array","title":"Row Numbers"},"status":{"type":"string","enum":["unknown","ambiguous"],"title":"Status"},"candidates":{"items":{"$ref":"#/components/schemas/EntityCandidate"},"type":"array","title":"Candidates"}},"type":"object","required":["kind","name","row_numbers","status"],"title":"MissingEntity","description":"A venue or artist name the file uses that the import cannot resolve on its own."},"ModelScorecard":{"properties":{"model":{"type":"string","title":"Model"},"provider":{"type":"string","title":"Provider"},"jobs":{"type":"integer","title":"Jobs"},"success_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Success Rate"},"avg_events_per_job":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Events Per Job"},"total_events":{"type":"integer","title":"Total Events"},"gate_rejection_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gate Rejection Rate"},"avg_tokens_per_job":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Tokens Per Job"},"spend_30d_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend 30D Usd"},"spend_24h_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend 24H Usd"},"ai_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Calls"}},"type":"object","required":["model","provider","jobs","success_rate","avg_events_per_job","total_events","gate_rejection_rate","avg_tokens_per_job","spend_30d_usd","spend_24h_usd"],"title":"ModelScorecard","description":"Real production cost (+ quality, for extraction) for one model over the\nwindow. Keyed by model id; rendered under each model card. Canonicalization\ncards populate only the cost fields (quality fields stay null)."},"ModeratedReviewResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"$ref":"#/components/schemas/ReviewStatus"}},"type":"object","required":["id","status"],"title":"ModeratedReviewResponse","description":"What an admin moderation action left the review in."},"MultiVenueSiteLine":{"properties":{"site":{"type":"string","title":"Site"},"recognised_by":{"items":{"$ref":"#/components/schemas/MultiVenueSiteReason"},"type":"array","title":"Recognised By"},"venues":{"items":{"$ref":"#/components/schemas/MultiVenueSiteVenue"},"type":"array","title":"Venues"},"areas":{"items":{"type":"string"},"type":"array","title":"Areas"},"last_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Read At"},"reads":{"type":"integer","title":"Reads","default":0},"failed_reads":{"type":"integer","title":"Failed Reads","default":0},"events_saved":{"type":"integer","title":"Events Saved","default":0}},"additionalProperties":false,"type":"object","required":["site"],"title":"MultiVenueSiteLine","description":"One multi-venue site with a venue in the ZIP: every venue it covers, wherever it sits."},"MultiVenueSiteReason":{"type":"string","enum":["curated","operator_rule","fanout","tagged_broad","graded_broad"],"title":"MultiVenueSiteReason","description":"Why a site is multi-venue: curated, BUG-252's operator list, venue fan-out, or a page tagged / graded broad."},"MultiVenueSiteRegisterResponse":{"properties":{"zip":{"type":"string","title":"Zip"},"window_days":{"type":"integer","title":"Window Days"},"since":{"type":"string","format":"date-time","title":"Since"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"sites":{"items":{"$ref":"#/components/schemas/MultiVenueSiteLine"},"type":"array","title":"Sites"}},"additionalProperties":false,"type":"object","required":["zip","window_days","since","generated_at"],"title":"MultiVenueSiteRegisterResponse","description":"One ZIP's multi-venue sites (Story 19.25, the per-area register AC of 2026-10-21)."},"MultiVenueSiteVenue":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"name":{"type":"string","title":"Name"},"zip_code":{"type":"string","title":"Zip Code"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"page_path":{"type":"string","title":"Page Path","default":""},"stores_site_root":{"type":"boolean","title":"Stores Site Root","default":false},"by_website":{"type":"boolean","title":"By Website","default":false},"by_shows":{"type":"boolean","title":"By Shows","default":false}},"additionalProperties":false,"type":"object","required":["venue_id","name","zip_code"],"title":"MultiVenueSiteVenue","description":"One venue the site covers; `page_path` is its own page on the site, empty when it stores the site root."},"MyClaimSummary":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"status":{"type":"string","enum":["pending","approved","rejected","info_requested","withdrawn","revoked"],"title":"Status"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"}},"additionalProperties":false,"type":"object","required":["id","kind","status"],"title":"MyClaimSummary","description":"One claim, named. See CLAUDE.md § my_claim_summary.py."},"MyClaimsResponse":{"properties":{"venue_claims":{"items":{"$ref":"#/components/schemas/LiveyVenueClaim"},"type":"array","title":"Venue Claims","default":[]},"artist_claims":{"items":{"$ref":"#/components/schemas/LiveyArtistClaim"},"type":"array","title":"Artist Claims","default":[]},"claims":{"items":{"$ref":"#/components/schemas/MyClaimSummary"},"type":"array","title":"Claims","default":[]},"unavailable_kinds":{"items":{"type":"string"},"type":"array","title":"Unavailable Kinds","default":[]}},"type":"object","title":"MyClaimsResponse"},"MyEntitiesResponse":{"properties":{"entities":{"items":{"$ref":"#/components/schemas/MyEntityRow"},"type":"array","title":"Entities","default":[]},"unavailable_kinds":{"items":{"type":"string"},"type":"array","title":"Unavailable Kinds","default":[]}},"additionalProperties":false,"type":"object","title":"MyEntitiesResponse","description":"`GET /me/entities`. An account that controls nothing gets `[]`, never a 403."},"MyEntityGrant":{"properties":{"founding":{"anyOf":[{"$ref":"#/components/schemas/FoundingStatusRead"},{"type":"null"}]},"discover_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Discover Eligible"},"discover_ineligible_reason":{"anyOf":[{"$ref":"#/components/schemas/FoundingIneligibility"},{"type":"null"}]},"plan_features":{"anyOf":[{"$ref":"#/components/schemas/PlanFeaturesRead"},{"type":"null"}]},"id":{"type":"string","title":"Id"},"mgmt_role":{"anyOf":[{"$ref":"#/components/schemas/MgmtRole"},{"type":"null"}]},"subscription_status":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}]},"manager_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Manager User Id"},"cancel_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancel At"},"is_comp":{"type":"boolean","title":"Is Comp","default":false},"plan_standing":{"anyOf":[{"$ref":"#/components/schemas/PlanStandingRead"},{"type":"null"}]},"plan":{"anyOf":[{"$ref":"#/components/schemas/EntityPlanRead"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id"],"title":"MyEntityGrant","description":"The billing half — a grant, or (29.4) a claimant who still PAYS for this entity."},"MyEntityRow":{"properties":{"key":{"type":"string","title":"Key"},"kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"name":{"type":"string","title":"Name"},"claims":{"items":{"$ref":"#/components/schemas/MyClaimSummary"},"type":"array","title":"Claims","default":[]},"claim_status":{"type":"string","enum":["pending","approved","rejected","info_requested","withdrawn","revoked"],"title":"Claim Status"},"entity":{"anyOf":[{"$ref":"#/components/schemas/MyEntityGrant"},{"type":"null"}]},"paid_by_another_member":{"type":"boolean","title":"Paid By Another Member","default":false},"paid_by_another_member_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid By Another Member Plan"}},"additionalProperties":false,"type":"object","required":["key","kind","name","claim_status"],"title":"MyEntityRow","description":"One card: one venue or act, with whichever halves the caller can see."},"NearestCoveredZip":{"properties":{"zip":{"type":"string","title":"Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"miles":{"type":"number","title":"Miles"}},"type":"object","required":["zip","miles"],"title":"NearestCoveredZip","description":"The closest ZIP discovery already searches, centroid to centroid."},"NewZipEstimate":{"properties":{"own_ai_usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Own Ai Usd Per Month"},"shared_share_usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shared Share Usd Per Month"},"total_usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Usd Per Month"},"based_on_zips":{"type":"integer","minimum":0.0,"title":"Based On Zips"},"complete":{"type":"boolean","title":"Complete"}},"type":"object","required":["based_on_zips","complete"],"title":"NewZipEstimate","description":"What one more ZIP would cost: the active ZIPs' average own AI plus one share of the shared spend."},"NodeVersionView":{"properties":{"chain":{"items":{"type":"string"},"type":"array","title":"Chain"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"}},"type":"object","title":"NodeVersionView","description":"One step's assigned model chain and prompt version, as the job recorded them."},"NotReplayableReason":{"type":"string","enum":["no_venue_record","no_earlier_baseline","job_failed","unparseable_venue_record"],"title":"NotReplayableReason","description":"Why a listed job is never reconstructed (R-A)."},"NotYetMeasured":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"why":{"type":"string","title":"Why"},"owner":{"type":"string","title":"Owner"}},"type":"object","required":["key","label","why","owner"],"title":"NotYetMeasured","description":"A named health signal today's data cannot compute — rendered as such, never approximated (AC #3)."},"OwnerArtistTypeAssignmentRequest":{"properties":{"artist_type_value_id":{"type":"string","format":"uuid","title":"Artist Type Value Id"}},"additionalProperties":false,"type":"object","required":["artist_type_value_id"],"title":"OwnerArtistTypeAssignmentRequest","description":"Attach one EXISTING artist type to the artist this caller may write."},"OwnerAudienceReport":{"properties":{"entity_kind":{"$ref":"#/components/schemas/AudienceEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"entity_name":{"type":"string","title":"Entity Name"},"activity_zone":{"type":"string","title":"Activity Zone"},"period":{"$ref":"#/components/schemas/AudiencePeriodChoice","default":"90_days"},"period_starts":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period Starts"},"period_ends":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period Ends"},"holds_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Holds From"},"freshness":{"$ref":"#/components/schemas/AudienceFreshness"},"numbers":{"anyOf":[{"$ref":"#/components/schemas/AudienceNumbers"},{"$ref":"#/components/schemas/AudienceUnavailable"}],"title":"Numbers"}},"additionalProperties":false,"type":"object","required":["entity_kind","entity_id","entity_name","activity_zone","period","period_starts","period_ends","holds_from","freshness","numbers"],"title":"OwnerAudienceReport","description":"One venue's or act's Audience card, naming the entity it describes. See CLAUDE.md § owner_audience.py."},"OwnerClaimSubmission":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"status":{"type":"string","title":"Status"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"proposed_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposed Data"},"message":{"type":"string","title":"Message"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","kind","status","message"],"title":"OwnerClaimSubmission","description":"Story 12.4 (AC #1) — the \"submitted for review\" response for an owner\nself-create (POST /venues/mine, POST /artists/mine).\n\nThe reversal: these endpoints NO LONGER return a live entity. They stage the\nvalidated new-entity payload on a `pending` claim (`proposed_data`) and return\nTHIS representation; the venue/artist row is materialized only when an admin\napproves the claim. `entity_id` stays NULL until then. The web owner UI\n(Story 12.3) renders this as a pending-review state, not a live dashboard."},"OwnerEventPicturesRead":{"properties":{"allowed":{"type":"integer","title":"Allowed"},"pictures":{"items":{"$ref":"#/components/schemas/EventPictureRead"},"type":"array","title":"Pictures"}},"additionalProperties":false,"type":"object","required":["allowed","pictures"],"title":"OwnerEventPicturesRead","description":"The owner's editor read: how many the event's plan shows (0 = cover only) and every picture."},"OwnerEventTagAssignmentRequest":{"properties":{"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"}},"additionalProperties":false,"type":"object","required":["tag_value_id"],"title":"OwnerEventTagAssignmentRequest","description":"Attach one EXISTING tag value to one event the caller's venue owns."},"OwnerPromotionRead":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"promotion_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Promotion Id"},"is_promoted":{"type":"boolean","title":"Is Promoted"}},"additionalProperties":false,"type":"object","required":["event_id","is_promoted"],"title":"OwnerPromotionRead","description":"One event's promotion state after an owner acted on it."},"OwnerVenueTagAssignmentRequest":{"properties":{"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"}},"additionalProperties":false,"type":"object","required":["tag_value_id"],"title":"OwnerVenueTagAssignmentRequest","description":"Attach one EXISTING venue tag value to the venue this owner manages."},"OwnerVenueTypeAssignmentRequest":{"properties":{"venue_type_id":{"type":"string","format":"uuid","title":"Venue Type Id"}},"additionalProperties":false,"type":"object","required":["venue_type_id"],"title":"OwnerVenueTypeAssignmentRequest","description":"Attach one EXISTING venue type to the venue this owner manages."},"PageSnapshotSource":{"type":"string","enum":["scrape_job_content_preview","unavailable","not_applicable"],"title":"PageSnapshotSource","description":"Where the frozen page came from — or why there isn't one. NOT NULL."},"PaidMessageOptOutEntryRead":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","required":["entity_kind","entity_id"],"title":"PaidMessageOptOutEntryRead","description":"One venue or artist this person has declined paid messages from, named for display."},"PaidMessageOptOutListRead":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PaidMessageOptOutEntryRead"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"PaidMessageOptOutListRead","description":"Every opt-out on the caller's profile — the web Preferences page's list."},"PaidMessageOptOutRead":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"opted_out":{"type":"boolean","title":"Opted Out"}},"additionalProperties":false,"type":"object","required":["entity_kind","entity_id","opted_out"],"title":"PaidMessageOptOutRead","description":"Whether this person has declined paid messages from one venue or artist."},"PasswordChangedResponse":{"properties":{"other_sessions_ended":{"type":"integer","title":"Other Sessions Ended"}},"additionalProperties":false,"type":"object","required":["other_sessions_ended"],"title":"PasswordChangedResponse","description":"What the API did after GoTrue accepted a new password."},"PendingClaim":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"applicant":{"$ref":"#/components/schemas/ApplicantSummary"},"target":{"$ref":"#/components/schemas/ClaimTargetSummary"},"is_self_create":{"type":"boolean","title":"Is Self Create","default":false},"proposed_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Proposed Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"evidence":{"$ref":"#/components/schemas/PendingClaimEvidence"}},"type":"object","required":["id","kind","applicant","target","created_at"],"title":"PendingClaim"},"PendingClaimEvidence":{"properties":{"claimant_role":{"anyOf":[{"type":"string","enum":["owner","manager","booking_agent"]},{"type":"null"}],"title":"Claimant Role"},"business_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Email"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"claimant_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Claimant Note"},"legal_business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Business Name"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"}},"type":"object","title":"PendingClaimEvidence","description":"22.5's structured ownership evidence off `venue_claims` / `artist_claims`.\n\nEvery field is Optional so a claim that predates these columns still\ndeserialises — see CLAUDE.md § claims.py for how the drawer renders that."},"PerZipStatus":{"properties":{"zip":{"type":"string","title":"Zip"},"enabled":{"type":"boolean","title":"Enabled"},"last_discovered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Discovered At"},"last_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"next_discovery_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Discovery At"}},"additionalProperties":false,"type":"object","required":["zip","enabled"],"title":"PerZipStatus"},"PickerHit":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"title":{"type":"string","title":"Title"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"venue_name":{"type":"string","title":"Venue Name"},"status":{"type":"string","title":"Status"},"already_promoted":{"type":"boolean","title":"Already Promoted"},"can_promote":{"type":"boolean","title":"Can Promote"}},"additionalProperties":false,"type":"object","required":["event_id","title","start_time","timezone","venue_name","status","already_promoted","can_promote"],"title":"PickerHit","description":"One live-catalog search result. Selection is by clicking, never by id paste."},"PickerSearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PickerHit"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","title":"PickerSearchResponse","description":"Live-catalog hits. Selection is by clicking a row."},"PlanCatalogRead":{"properties":{"free":{"$ref":"#/components/schemas/FreeTierRead"},"plans":{"items":{"$ref":"#/components/schemas/PlanRead"},"type":"array","title":"Plans"},"features":{"items":{"$ref":"#/components/schemas/PlanFeatureRead"},"type":"array","title":"Features","default":[]},"founding_offer":{"anyOf":[{"$ref":"#/components/schemas/FoundingOfferTermsRead"},{"type":"null"}]},"tax_active":{"type":"boolean","title":"Tax Active","default":false}},"additionalProperties":false,"type":"object","required":["free","plans"],"title":"PlanCatalogRead","description":"`GET /plans`'s whole body — Free plus every paid plan on offer, and every classified feature."},"PlanChangeBody":{"properties":{"plan_code":{"type":"string","maxLength":64,"minLength":1,"title":"Plan Code"},"consent":{"$ref":"#/components/schemas/CheckoutConsent"}},"additionalProperties":false,"type":"object","required":["plan_code","consent"],"title":"PlanChangeBody","description":"The on-sale plan an active subscription should move to (monthly <-> annual, legacy -> Connect)."},"PlanChangeRead":{"properties":{"status":{"type":"string","const":"pending","title":"Status","default":"pending"},"plan_code":{"type":"string","title":"Plan Code"}},"additionalProperties":false,"type":"object","required":["plan_code"],"title":"PlanChangeRead","description":"202 — Stripe has the swap; the plan lands when its webhook does, never from this answer."},"PlanCheckoutBody":{"properties":{"plan_code":{"type":"string","maxLength":64,"minLength":1,"title":"Plan Code"},"consent":{"$ref":"#/components/schemas/CheckoutConsent"}},"additionalProperties":false,"type":"object","required":["plan_code","consent"],"title":"PlanCheckoutBody","description":"An owner's Checkout ask: which catalog plan (tier and interval) to buy. REQUIRED (S-10)."},"PlanFeatureRead":{"properties":{"code":{"type":"string","title":"Code"},"classification":{"$ref":"#/components/schemas/FeatureClassification"},"released_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Released On"},"tiers":{"items":{"$ref":"#/components/schemas/PlanTier"},"type":"array","title":"Tiers"}},"additionalProperties":false,"type":"object","required":["code","classification"],"title":"PlanFeatureRead","description":"One feature in the public catalog, with its classification and release date."},"PlanFeaturesRead":{"properties":{"included":{"items":{"type":"string"},"type":"array","title":"Included"},"paid_add_ons_not_included":{"items":{"type":"string"},"type":"array","title":"Paid Add Ons Not Included"}},"additionalProperties":false,"type":"object","title":"PlanFeaturesRead","description":"Which plan features this page has today, and the paid add-ons no plan includes."},"PlanPriceRead":{"properties":{"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"interval":{"type":"string","title":"Interval"}},"additionalProperties":false,"type":"object","required":["amount_cents","currency","interval"],"title":"PlanPriceRead","description":"The three numbers that make up a price — never a Stripe id (§ catalog rule)."},"PlanRead":{"properties":{"code":{"type":"string","title":"Code"},"kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"tier":{"$ref":"#/components/schemas/PlanTier"},"display_name":{"type":"string","title":"Display Name"},"gallery_photo_cap":{"type":"integer","title":"Gallery Photo Cap"},"event_photo_cap":{"type":"integer","title":"Event Photo Cap"},"event_promotions_per_period":{"type":"integer","title":"Event Promotions Per Period"},"promotion_allowance_per_period":{"type":"integer","title":"Promotion Allowance Per Period"},"follower_message_cooldown_hours":{"type":"integer","title":"Follower Message Cooldown Hours"},"price":{"$ref":"#/components/schemas/PlanPriceRead"},"plan_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Plan Id"},"checkout_disclosure":{"$ref":"#/components/schemas/CheckoutDisclosureRead"}},"additionalProperties":false,"type":"object","required":["code","kind","tier","display_name","gallery_photo_cap","event_photo_cap","event_promotions_per_period","promotion_allowance_per_period","follower_message_cooldown_hours","price","checkout_disclosure"],"title":"PlanRead","description":"One on-sale plan at one interval — the spec's fields plus the row its CODE names today."},"PlanStandingRead":{"properties":{"plan_code":{"type":"string","title":"Plan Code"},"plan_name":{"type":"string","title":"Plan Name"},"tier":{"anyOf":[{"$ref":"#/components/schemas/PlanTier"},{"type":"null"}]},"interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interval"},"profile_pictures_used":{"type":"integer","title":"Profile Pictures Used"},"profile_pictures_allowed":{"type":"integer","title":"Profile Pictures Allowed"},"event_pictures_allowed":{"type":"integer","title":"Event Pictures Allowed"},"event_promotions_used":{"type":"integer","title":"Event Promotions Used"},"event_promotions_allowed":{"type":"integer","title":"Event Promotions Allowed"},"people_reached_used":{"type":"integer","title":"People Reached Used"},"people_reached_allowed":{"type":"integer","title":"People Reached Allowed"},"resets_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets On"}},"additionalProperties":false,"type":"object","required":["plan_code","plan_name","profile_pictures_used","profile_pictures_allowed","event_pictures_allowed","event_promotions_used","event_promotions_allowed","people_reached_used","people_reached_allowed"],"title":"PlanStandingRead","description":"One ACTIVE plan's limits and this month's use. See CLAUDE.md § plan_standing.py."},"PlanTier":{"type":"string","enum":["free","discover","connect"],"title":"PlanTier","description":"The client's three levels (paid-plans/v3). A plan's tier is a catalog fact, not a column."},"PoolPhotoReadModel":{"properties":{"id":{"type":"integer","title":"Id"},"image_url":{"type":"string","title":"Image Url"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"used_by_count":{"type":"integer","title":"Used By Count","default":0}},"type":"object","required":["id","image_url"],"title":"PoolPhotoReadModel"},"PoolRemoveReadModel":{"properties":{"event_type":{"type":"string","title":"Event Type"},"deleted_id":{"type":"integer","title":"Deleted Id"},"representative_url":{"type":"string","title":"Representative Url"},"repointed_count":{"type":"integer","title":"Repointed Count"}},"type":"object","required":["event_type","deleted_id","representative_url","repointed_count"],"title":"PoolRemoveReadModel"},"PoolResetReadModel":{"properties":{"event_type":{"type":"string","title":"Event Type"},"kept_id":{"type":"integer","title":"Kept Id"},"kept_url":{"type":"string","title":"Kept Url"},"removed_count":{"type":"integer","title":"Removed Count"},"repointed_count":{"type":"integer","title":"Repointed Count"}},"type":"object","required":["event_type","kept_id","kept_url","removed_count","repointed_count"],"title":"PoolResetReadModel"},"PreferredCategoriesRequest":{"properties":{"selections":{"items":{"$ref":"#/components/schemas/PreferredCategorySelectionIn"},"type":"array","title":"Selections"}},"additionalProperties":false,"type":"object","required":["selections"],"title":"PreferredCategoriesRequest","description":"A complete REPLACEMENT of the caller's preference set.\n\n🛑 PUT, NOT PATCH, AND THE VERB IS THE CONTRACT. A partial write cannot\nexpress a DESELECTION, and \"I unticked it and it came back\" is the failure\nthat produces. An empty list is therefore meaningful — it clears the set —\nwhich is exactly why the field is REQUIRED rather than defaulted: a client\nthat forgot to send it must 422, not silently wipe the user's taste."},"PreferredCategoriesResponse":{"properties":{"selections":{"items":{"$ref":"#/components/schemas/PreferredCategorySelectionOut"},"type":"array","title":"Selections"},"unrecognised_legacy":{"items":{"type":"string"},"type":"array","title":"Unrecognised Legacy"}},"additionalProperties":false,"type":"object","required":["selections"],"title":"PreferredCategoriesResponse","description":"The caller's preference set, plus what did not carry forward."},"PreferredCategorySelectionIn":{"properties":{"category_slug":{"type":"string","minLength":1,"title":"Category Slug"},"genre_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Genre Id"}},"additionalProperties":false,"type":"object","required":["category_slug"],"title":"PreferredCategorySelectionIn","description":"One selection as the picker sends it: a category, optionally a genre."},"PreferredCategorySelectionOut":{"properties":{"category_slug":{"type":"string","title":"Category Slug"},"category_label":{"type":"string","title":"Category Label"},"second_level_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Second Level Label"},"genre_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Genre Id"},"genre_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre Slug"},"genre_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre Label"},"source":{"type":"string","title":"Source","default":"stated"}},"additionalProperties":false,"type":"object","required":["category_slug","category_label"],"title":"PreferredCategorySelectionOut","description":"One stored selection, resolved against the live vocabulary for display."},"ProfileConsentRecord":{"properties":{"terms_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Terms Accepted At"},"privacy_accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Privacy Accepted At"},"age_confirmed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Age Confirmed At"},"terms_policy_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Policy Version"},"privacy_policy_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Policy Version"}},"additionalProperties":false,"type":"object","title":"ProfileConsentRecord","description":"What one account agreed to, and when."},"ProfileSummary":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/UserRole"},"type":"array","title":"Roles"},"is_internal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Internal","description":"True when the account is LIVEY's own team or a tester, so analytics leaves it out. Authoritative only on /auth/me, /profiles/me and the admin People list and detail; null elsewhere."},"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"home_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"email_opt_in":{"type":"boolean","title":"Email Opt In","default":false},"sms_opt_in":{"type":"boolean","title":"Sms Opt In","default":false},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"age_range":{"anyOf":[{"$ref":"#/components/schemas/AgeRange"},{"type":"null"}]},"marital_status":{"anyOf":[{"$ref":"#/components/schemas/MaritalStatus"},{"type":"null"}]},"birthday_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birthday Month"},"birthday_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birthday Day"},"anniversary_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Anniversary Month"},"anniversary_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Anniversary Day"},"preferred_genres":{"items":{"type":"string"},"type":"array","title":"Preferred Genres"},"preferred_event_types":{"items":{"type":"string"},"type":"array","title":"Preferred Event Types"},"budget_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Min"},"budget_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Max"},"max_distance_miles":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Distance Miles"},"onboarding_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Onboarding Completed At"},"theme_preference":{"type":"string","title":"Theme Preference","default":"system"},"venue_claim_intent":{"type":"boolean","title":"Venue Claim Intent","default":false},"artist_claim_intent":{"type":"boolean","title":"Artist Claim Intent","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["roles","id","created_at","updated_at"],"title":"ProfileSummary","description":"Full profile read. extra=ignore: GET /me returns `select(\"*\")`. See CLAUDE.md § profile_summary.py."},"PromoteEventRequest":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"}},"additionalProperties":false,"type":"object","required":["event_id"],"title":"PromoteEventRequest","description":"The picker clicked this event. No free-text id paste on the page."},"PromotedEventRead":{"properties":{"promotion_id":{"type":"string","format":"uuid","title":"Promotion Id"},"event_id":{"type":"string","format":"uuid","title":"Event Id"}},"additionalProperties":false,"type":"object","required":["promotion_id","event_id"],"title":"PromotedEventRead","description":"What a successful promote/unpromote returns — the stored promotion id."},"PromotedState":{"type":"string","enum":["yes","no","unknown"],"title":"PromotedState"},"PromotionState":{"type":"string","enum":["live","ended","cancelled_event"],"title":"PromotionState","description":"Console-only state of one curated event. See services/events/CLAUDE.md § curation.py."},"PromotionalPushConsentRead":{"properties":{"opted_in":{"type":"boolean","title":"Opted In"},"opted_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opted In At"},"consent_source":{"anyOf":[{"$ref":"#/components/schemas/PushConsentSource"},{"type":"null"}]},"consent":{"$ref":"#/components/schemas/PromotionalPushConsentTermsRead"}},"additionalProperties":false,"type":"object","required":["opted_in","opted_in_at","consent_source","consent"],"title":"PromotionalPushConsentRead","description":"A person's stored promotional-push choice and the current wording."},"PromotionalPushConsentTermsRead":{"properties":{"label":{"type":"string","title":"Label"},"text":{"type":"string","title":"Text"},"version":{"type":"string","title":"Version"}},"additionalProperties":false,"type":"object","required":["label","text","version"],"title":"PromotionalPushConsentTermsRead","description":"The promotions wording, served so neither app keeps a copy (Story 31.5)."},"PromotionalPushConsentWrite":{"properties":{"opted_in":{"type":"boolean","title":"Opted In"},"consent_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Consent Version"},"source":{"$ref":"#/components/schemas/PushConsentSource"}},"additionalProperties":false,"type":"object","required":["opted_in","source"],"title":"PromotionalPushConsentWrite","description":"Turn promotions on (with the version read) or off. An opt-out needs no version."},"PromptPreviewResponse":{"properties":{"agent_key":{"type":"string","title":"Agent Key"},"template_with_tokens":{"type":"string","title":"Template With Tokens"},"mock_example":{"type":"string","title":"Mock Example"},"tokens":{"items":{"type":"string"},"type":"array","title":"Tokens"},"mock_substitutions":{"additionalProperties":{"type":"string"},"type":"object","title":"Mock Substitutions"}},"type":"object","required":["agent_key","template_with_tokens","mock_example","tokens","mock_substitutions"],"title":"PromptPreviewResponse"},"ProviderDayReconciliation":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"ledger_usd":{"type":"number","title":"Ledger Usd"},"billed_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Billed Usd"},"gap_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap Pct"}},"additionalProperties":false,"type":"object","required":["day","ledger_usd"],"title":"ProviderDayReconciliation","description":"One UTC day for one provider: what the ledger stored and what the vendor billed."},"ProviderReconciliation":{"properties":{"provider":{"type":"string","title":"Provider"},"status":{"$ref":"#/components/schemas/ReconciliationStatus"},"ledger_usd":{"type":"number","title":"Ledger Usd"},"billed_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Billed Usd"},"gap_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap Pct"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"days":{"items":{"$ref":"#/components/schemas/ProviderDayReconciliation"},"type":"array","title":"Days"}},"additionalProperties":false,"type":"object","required":["provider","status","ledger_usd"],"title":"ProviderReconciliation","description":"One provider over the trailing window."},"ProviderUsage":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"status":{"type":"string","enum":["ok","unconfigured","error"],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"metrics":{"items":{"$ref":"#/components/schemas/UsageMetric"},"type":"array","title":"Metrics","default":[]},"manage_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manage Url"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"wiring":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wiring"},"pricing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing"},"quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quota"},"credential":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential"},"buy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buy Url"}},"type":"object","required":["key","label","status"],"title":"ProviderUsage","description":"Normalized usage for one external service."},"PublicAccountDeletionConfirmRequest":{"properties":{"token":{"type":"string","minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"PublicAccountDeletionConfirmRequest","description":"Body for POST /api/v1/users/delete-account-public/confirm (no auth)."},"PublicAccountDeletionConfirmResponse":{"properties":{"deleted":{"type":"boolean","title":"Deleted","description":"True when the account-deletion request completed.","default":true},"message":{"type":"string","title":"Message","description":"User-facing immediate deletion confirmation.","default":"Your account has been permanently deleted. You can sign up again with the same email address immediately."}},"type":"object","title":"PublicAccountDeletionConfirmResponse","description":"Returned once the signed token validates and immediate deletion completes."},"PublicAccountDeletionRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["email"],"title":"PublicAccountDeletionRequest","description":"Body for POST /api/v1/users/delete-account-public (no auth, FR-028)."},"PublicAccountDeletionResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","title":"PublicAccountDeletionResponse","description":"Uniform response — identical for known + unknown emails (no enumeration)."},"PublicCountsResponse":{"properties":{"events":{"type":"integer","title":"Events"},"venues":{"type":"integer","title":"Venues"},"artists":{"type":"integer","title":"Artists"}},"type":"object","required":["events","venues","artists"],"title":"PublicCountsResponse","description":"Home-page hero totals — already rounded down to the nearest 100 and\nfloored at 100 (QF-001). The web renders each value with a trailing \"+\"."},"PushConsentSource":{"type":"string","enum":["app","web"],"title":"PushConsentSource","description":"`profiles.{promotional,follower}_push_consent_source` — where the latest push opt-in was given (31.5, 31.10)."},"PushPlatform":{"type":"string","enum":["ios","android"],"title":"PushPlatform","description":"Which store a push token belongs to. DB CHECK holds the same two."},"PushToAreaAllowanceRead":{"properties":{"total":{"type":"integer","title":"Total"},"used":{"type":"integer","title":"Used"},"remaining":{"type":"integer","title":"Remaining"},"resets_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets On"}},"additionalProperties":false,"type":"object","required":["total","used","remaining","resets_on"],"title":"PushToAreaAllowanceRead","description":"This allowance month's people for one profile; all zero and no reset day when not paid."},"PushToAreaAvailability":{"type":"string","enum":["available","upgrade_required","not_upcoming","allowance_exhausted","requests_paused","too_many_waiting","no_audience"],"title":"PushToAreaAvailability","description":"Whether this show can be put forward for a paid push now, and if not, why."},"PushToAreaOverviewRead":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"availability":{"$ref":"#/components/schemas/PushToAreaAvailability"},"allowance_remaining":{"type":"integer","title":"Allowance Remaining"},"eligible_audience":{"type":"integer","title":"Eligible Audience"},"latest_request":{"anyOf":[{"$ref":"#/components/schemas/PushToAreaRequestStatusRead"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["event_id","availability","allowance_remaining","eligible_audience","latest_request"],"title":"PushToAreaOverviewRead","description":"Everything the owner console shows for one show. See CLAUDE.md § push_to_area.py."},"PushToAreaProfileRead":{"properties":{"entity_id":{"type":"string","format":"uuid","title":"Entity Id"},"is_paid":{"type":"boolean","title":"Is Paid"},"allowance":{"$ref":"#/components/schemas/PushToAreaAllowanceRead"},"default_message":{"type":"string","title":"Default Message"},"message_max_length":{"type":"integer","title":"Message Max Length"},"requests":{"items":{"$ref":"#/components/schemas/PushToAreaRequestStatusRead"},"type":"array","title":"Requests"}},"additionalProperties":false,"type":"object","required":["entity_id","is_paid","allowance","default_message","message_max_length","requests"],"title":"PushToAreaProfileRead","description":"The owner's \"Send a promotion\" card for one venue or act (Story 31.11). See CLAUDE.md § push_to_area.py."},"PushToAreaRequestBody":{"properties":{"message":{"anyOf":[{"type":"string","maxLength":178,"minLength":1},{"type":"null"}],"title":"Message"}},"additionalProperties":false,"type":"object","title":"PushToAreaRequestBody","description":"What the owner may say. Omitted means LIVEY's own wording."},"PushToAreaRequestState":{"type":"string","enum":["pending","approved","sent","rejected"],"title":"PushToAreaRequestState","description":"The owner's states for a request; a system-closed one reads as rejected with a note."},"PushToAreaRequestStatusRead":{"properties":{"review_item_id":{"type":"string","format":"uuid","title":"Review Item Id"},"state":{"$ref":"#/components/schemas/PushToAreaRequestState"},"message":{"type":"string","title":"Message"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"people_sent_to":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"People Sent To"},"event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Event Id"},"event_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Title"},"event_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Event Start Time"},"people_matched":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"People Matched"},"people_skipped":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"People Skipped"},"people_reached":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"People Reached"}},"additionalProperties":false,"type":"object","required":["review_item_id","state","message","resolution_note","requested_at","decided_at","people_sent_to","event_id","event_title","event_start_time","people_matched","people_skipped"],"title":"PushToAreaRequestStatusRead","description":"One request, as its owner may see it. Event fields are null on a row queued without them."},"PushTokenRegistrationRequest":{"properties":{"platform":{"$ref":"#/components/schemas/PushPlatform"},"token":{"type":"string","maxLength":512,"minLength":1,"title":"Token"},"app_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"App Version"},"promotions_capable":{"type":"boolean","title":"Promotions Capable","default":false},"follower_push_capable":{"type":"boolean","title":"Follower Push Capable","default":false},"analytics_enabled":{"type":"boolean","title":"Analytics Enabled","default":false}},"type":"object","required":["platform","token"],"title":"PushTokenRegistrationRequest"},"PushTokenRegistrationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"platform":{"$ref":"#/components/schemas/PushPlatform"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","platform","created_at"],"title":"PushTokenRegistrationResponse"},"QualityRunListResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/QualityRunView"},"type":"array","title":"Runs"}},"type":"object","title":"QualityRunListResponse"},"QualityRunLockView":{"properties":{"run_id":{"type":"string","title":"Run Id"},"trigger":{"type":"string","title":"Trigger"},"acquired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Acquired At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"}},"type":"object","required":["run_id","trigger"],"title":"QualityRunLockView","description":"The lease a pass holds while it runs. `None` means nothing is running."},"QualityRunStartedResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"trigger":{"type":"string","title":"Trigger","default":"manual"},"status":{"type":"string","title":"Status","default":"running"},"poll_url":{"type":"string","title":"Poll Url"}},"type":"object","required":["run_id","poll_url"],"title":"QualityRunStartedResponse","description":"202. The pass is claimed and scheduled; it has not finished."},"QualityRunView":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","title":"Status"},"trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["run_id","status"],"title":"QualityRunView","description":"One recorded pass."},"QualitySchedulerCadenceView":{"properties":{"cron_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Schedule"},"tick_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tick Hours"},"source":{"type":"string","title":"Source","default":"apps/api/railway.quality-scheduler.json"},"editable":{"type":"boolean","title":"Editable","default":false},"note":{"type":"string","title":"Note","default":"The schedule is service configuration with exactly one home and no companion environment variable. A manual run is bounded by neither — it starts immediately and negotiates the same lease the cron tick does."}},"type":"object","title":"QualitySchedulerCadenceView","description":"Deployment configuration, shown read-only. Sourced from its ONE home."},"QualitySchedulerSettingsPatch":{"properties":{"mode":{"anyOf":[{"type":"string","enum":["auto","manual_only","off"]},{"type":"null"}],"title":"Mode"},"steps":{"anyOf":[{"items":{"$ref":"#/components/schemas/QualityStepPatch"},"type":"array"},{"type":"null"}],"title":"Steps"}},"additionalProperties":false,"type":"object","title":"QualitySchedulerSettingsPatch","description":"Sparse update. Unknown fields are REFUSED, not ignored."},"QualitySchedulerSettingsResponse":{"properties":{"mode":{"type":"string","title":"Mode"},"modes":{"items":{"type":"string"},"type":"array","title":"Modes"},"steps":{"items":{"$ref":"#/components/schemas/QualityStepView"},"type":"array","title":"Steps"},"cadence":{"$ref":"#/components/schemas/QualitySchedulerCadenceView"},"current_run":{"anyOf":[{"$ref":"#/components/schemas/QualityRunLockView"},{"type":"null"}]},"recent_runs":{"items":{"$ref":"#/components/schemas/QualityRunView"},"type":"array","title":"Recent Runs"}},"type":"object","required":["mode","cadence"],"title":"QualitySchedulerSettingsResponse"},"QualityStatsReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"today":{"type":"string","format":"date","title":"Today"},"timezone":{"type":"string","title":"Timezone"},"window_days":{"type":"integer","title":"Window Days"},"ratios":{"items":{"$ref":"#/components/schemas/RatioSeries"},"type":"array","title":"Ratios"},"counts":{"items":{"$ref":"#/components/schemas/CountSeries"},"type":"array","title":"Counts"},"not_yet_measured":{"items":{"$ref":"#/components/schemas/NotYetMeasured"},"type":"array","title":"Not Yet Measured"},"accuracy":{"items":{"$ref":"#/components/schemas/AccuracyPoint"},"type":"array","title":"Accuracy"},"record_starts_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Record Starts On"},"releases":{"items":{"$ref":"#/components/schemas/ScraperRelease"},"type":"array","title":"Releases"}},"type":"object","required":["measured_at","today","timezone","window_days","ratios","counts","not_yet_measured","accuracy","releases"],"title":"QualityStatsReport","description":"`GET /admin/scraper/quality-stats?days=30|60|90`."},"QualityStepPatch":{"properties":{"step_key":{"type":"string","title":"Step Key"},"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["step_key","enabled"],"title":"QualityStepPatch","description":"Arm or disarm ONE step. The column's sense, carried unchanged."},"QualityStepView":{"properties":{"step_key":{"type":"string","title":"Step Key"},"label":{"type":"string","title":"Label"},"position":{"type":"integer","title":"Position"},"enabled":{"type":"boolean","title":"Enabled","default":true},"last_run_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Last Run Counts"}},"type":"object","required":["step_key","label","position"],"title":"QualityStepView","description":"One registered step of `run_once()`, and whether it is armed."},"RatioPoint":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"numerator":{"type":"number","minimum":0.0,"title":"Numerator"},"denominator":{"type":"number","minimum":0.0,"title":"Denominator"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["day","numerator","denominator"],"title":"RatioPoint","description":"One day's ratio; `value` is None on a day with no denominator — a gap, never 0."},"RatioSeries":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"group":{"type":"string","enum":["health","diagnostic","workload","coverage","rate_limits","cost"],"title":"Group"},"definition":{"$ref":"#/components/schemas/MetricDefinition"},"points":{"items":{"$ref":"#/components/schemas/RatioPoint"},"type":"array","title":"Points"}},"type":"object","required":["key","label","group","definition","points"],"title":"RatioSeries"},"ReRandomizeReadModel":{"properties":{"event_type":{"type":"string","title":"Event Type"},"reassigned_count":{"type":"integer","title":"Reassigned Count"},"failed_count":{"type":"integer","title":"Failed Count","default":0}},"type":"object","required":["event_type","reassigned_count"],"title":"ReRandomizeReadModel"},"ReasonAnswer":{"properties":{"answer":{"type":"string","title":"Answer"},"effect":{"type":"string","title":"Effect"}},"additionalProperties":false,"type":"object","required":["answer","effect"],"title":"ReasonAnswer","description":"One answer an administrator can give, and what it does."},"ReasonClassHeading":{"properties":{"reason_class":{"$ref":"#/components/schemas/ReviewReasonClass"},"label":{"type":"string","title":"Label"}},"additionalProperties":false,"type":"object","required":["reason_class","label"],"title":"ReasonClassHeading","description":"A producer family as the Help panel heads it."},"ReasonDescriptor":{"properties":{"code":{"$ref":"#/components/schemas/ReviewReasonCode"},"label":{"type":"string","title":"Label"},"tone":{"$ref":"#/components/schemas/ReasonTone"},"fields":{"items":{"type":"string"},"type":"array","title":"Fields","default":[]},"meaning":{"type":"string","title":"Meaning"},"sent_by":{"type":"string","title":"Sent By"},"trigger":{"type":"string","title":"Trigger"},"answers":{"items":{"$ref":"#/components/schemas/ReasonAnswer"},"type":"array","title":"Answers"},"used_for":{"type":"string","title":"Used For"},"use_status":{"$ref":"#/components/schemas/ReasonUseStatus"},"instead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instead"},"is_gate":{"type":"boolean","title":"Is Gate","default":false},"reason_class":{"$ref":"#/components/schemas/ReviewReasonClass","description":"Derived from REASON_CLASS_OF, never stated twice.","readOnly":true},"use_status_label":{"type":"string","title":"Use Status Label","description":"The status as the console words it.","readOnly":true}},"additionalProperties":false,"type":"object","required":["code","label","tone","fields","meaning","sent_by","trigger","answers","used_for","use_status","instead","is_gate","reason_class","use_status_label"],"title":"ReasonDescriptor","description":"Everything an administrator needs to know about one kind. See CLAUDE.md § reason_descriptors.py."},"ReasonTone":{"type":"string","enum":["error","warning","info"],"title":"ReasonTone","description":"The row's severity dot. Rejections read louder than vocabulary gaps."},"ReasonUseStatus":{"type":"string","enum":["live","planned","absent","paused","retired"],"title":"ReasonUseStatus","description":"Whether an answer's use is live, and whether the kind is still asked at all."},"RecheckCadence":{"properties":{"cron_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Schedule"},"tick_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tick Hours"},"source":{"type":"string","title":"Source","default":"apps/api/railway.quality-scheduler.json"},"editable":{"type":"boolean","title":"Editable","default":false},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"note":{"type":"string","title":"Note","default":"The schedule is service configuration with exactly one home and no companion environment variable. Effective frequency is the COARSER of the cron tick and the tier interval — the tick is a hard floor, so a tier interval below it is silently coarsened."}},"type":"object","title":"RecheckCadence","description":"Deployment configuration, shown read-only. Sourced from its ONE home."},"RecheckCoverage":{"properties":{"in_window":{"type":"integer","title":"In Window","default":0},"eligible":{"type":"integer","title":"Eligible","default":0},"not_eligible":{"type":"integer","title":"Not Eligible","default":0},"excluded":{"type":"integer","title":"Excluded","default":0}},"type":"object","title":"RecheckCoverage","description":"AC #4's paired counts. COMPUTED at query time; never cached."},"RecheckRoute":{"properties":{"source_id":{"type":"string","title":"Source Id"},"source_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Slug"},"source_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Label"},"leg":{"type":"string","title":"Leg"},"disabled":{"type":"boolean","title":"Disabled","default":false},"enrolled":{"type":"boolean","title":"Enrolled","default":false},"next_due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Due At"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"last_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Outcome"}},"type":"object","required":["source_id","leg"],"title":"RecheckRoute","description":"One `(event, source)` route, and whether it is currently excluded."},"RecheckSafetyGuards":{"properties":{"confirmation_threshold":{"type":"integer","title":"Confirmation Threshold"},"structured_status_threshold":{"type":"integer","title":"Structured Status Threshold"},"circuit_breaker_change_ratio":{"type":"number","title":"Circuit Breaker Change Ratio"},"circuit_breaker_min_sample":{"type":"integer","title":"Circuit Breaker Min Sample"},"editable":{"type":"boolean","title":"Editable","default":false},"reason":{"type":"string","title":"Reason","default":"Safety controls, not cost controls. Changing them is a code change so the value that disarmed a guard is always attributable to a commit."}},"type":"object","required":["confirmation_threshold","structured_status_threshold","circuit_breaker_change_ratio","circuit_breaker_min_sample"],"title":"RecheckSafetyGuards","description":"Story 18.18's false-positive guards — READ-ONLY, deliberately.\n\nSurfaced so the console is not lying by omission, and refused on write\nbecause they are SAFETY controls, not cost controls. An admin lowering the\nconfirmation threshold to 1 would disarm the only thing between a\nsource-site layout change and a mass \"your event was cancelled\" push: the\nshipped announced-state reconciler turns a `status` write into a push within\n15 minutes."},"RecheckSettingsPatch":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"horizon_hours":{"anyOf":[{"type":"integer","maximum":8760.0,"minimum":1.0},{"type":"null"}],"title":"Horizon Hours"},"tier_2h_interval_hours":{"anyOf":[{"type":"integer","maximum":168.0,"minimum":1.0},{"type":"null"}],"title":"Tier 2H Interval Hours"},"tier_12h_interval_hours":{"anyOf":[{"type":"integer","maximum":168.0,"minimum":1.0},{"type":"null"}],"title":"Tier 12H Interval Hours"},"tier_24h_interval_hours":{"anyOf":[{"type":"integer","maximum":168.0,"minimum":1.0},{"type":"null"}],"title":"Tier 24H Interval Hours"},"tier_a_interval_hours":{"anyOf":[{"type":"integer","maximum":168.0,"minimum":1.0},{"type":"null"}],"title":"Tier A Interval Hours"},"tier_b_interval_hours":{"anyOf":[{"type":"integer","maximum":168.0,"minimum":1.0},{"type":"null"}],"title":"Tier B Interval Hours"},"tier_c_interval_hours":{"anyOf":[{"type":"integer","maximum":168.0,"minimum":1.0},{"type":"null"}],"title":"Tier C Interval Hours"},"per_pass_check_cap":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Per Pass Check Cap"},"enrolment_cap":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Enrolment Cap"}},"additionalProperties":false,"type":"object","title":"RecheckSettingsPatch","description":"Sparse update. Unknown fields are REFUSED, not ignored."},"RecheckSettingsResponse":{"properties":{"settings":{"$ref":"#/components/schemas/RecheckSettingsValues"},"guards":{"$ref":"#/components/schemas/RecheckSafetyGuards"},"cadence":{"$ref":"#/components/schemas/RecheckCadence"},"coverage":{"$ref":"#/components/schemas/RecheckCoverage"},"restamped_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Restamped Rows"}},"type":"object","required":["settings","guards","cadence","coverage"],"title":"RecheckSettingsResponse"},"RecheckSettingsValues":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"horizon_hours":{"type":"integer","title":"Horizon Hours"},"tier_2h_interval_hours":{"type":"integer","title":"Tier 2H Interval Hours"},"tier_12h_interval_hours":{"type":"integer","title":"Tier 12H Interval Hours"},"tier_24h_interval_hours":{"type":"integer","title":"Tier 24H Interval Hours"},"tier_a_interval_hours":{"type":"integer","title":"Tier A Interval Hours"},"tier_b_interval_hours":{"type":"integer","title":"Tier B Interval Hours"},"tier_c_interval_hours":{"type":"integer","title":"Tier C Interval Hours"},"per_pass_check_cap":{"type":"integer","title":"Per Pass Check Cap"},"enrolment_cap":{"type":"integer","title":"Enrolment Cap"}},"type":"object","required":["enabled","horizon_hours","tier_2h_interval_hours","tier_12h_interval_hours","tier_24h_interval_hours","tier_a_interval_hours","tier_b_interval_hours","tier_c_interval_hours","per_pass_check_cap","enrolment_cap"],"title":"RecheckSettingsValues","description":"The stored, editable values."},"RecheckSourceListResponse":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/RecheckSourceRow"},"type":"array","title":"Sources"}},"type":"object","title":"RecheckSourceListResponse"},"RecheckSourcePatch":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"additionalProperties":false,"type":"object","required":["is_active"],"title":"RecheckSourcePatch","description":"`is_active` is the ONLY `datasources` column this surface may write."},"RecheckSourceRow":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["slug","label","is_active"],"title":"RecheckSourceRow","description":"One registered source and its kill switch."},"ReconciliationStatus":{"type":"string","enum":["reconciled","unreconciled","unavailable","invoice_only"],"title":"ReconciliationStatus","description":"One provider's weekly verdict."},"RecurrenceFrequency":{"type":"string","enum":["weekly","biweekly","monthly"],"title":"RecurrenceFrequency","description":"The three occurrence cadences the admin recurring-create picker\noffers. Every other value (e.g. \"daily\") is a 422 — not a supported\ncadence."},"ReleaseGateReading":{"properties":{"baseline_start":{"type":"string","format":"date","title":"Baseline Start"},"baseline_end":{"type":"string","format":"date","title":"Baseline End"},"baseline_complete":{"type":"boolean","title":"Baseline Complete"},"baseline":{"anyOf":[{"$ref":"#/components/schemas/VerifiedCostSegment"},{"type":"null"}]},"current":{"anyOf":[{"$ref":"#/components/schemas/VerifiedCostSegment"},{"type":"null"}]},"stand_in_cost_per_scraped_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stand In Cost Per Scraped Event Usd"}},"type":"object","required":["baseline_start","baseline_end","baseline_complete"],"title":"ReleaseGateReading","description":"Release 2's \"cost per verified event not up\" instrument (Q-19-341): the baseline week against the last 7 days."},"RepairDurations":{"properties":{"count":{"type":"integer","title":"Count","default":0},"p50_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P50 Hours"},"p90_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"P90 Hours"},"max_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Hours"}},"type":"object","title":"RepairDurations","description":"Hours from the confirming off-site observation to the repair, as a distribution."},"ReplayAction":{"type":"string","enum":["attach","create","ambiguous"],"title":"ReplayAction","description":"The attach policy's verdict, as the console spells it."},"ReplayBaselineRef":{"properties":{"baseline_id":{"type":"string","title":"Baseline Id"},"taken_at":{"type":"string","format":"date-time","title":"Taken At"},"venue_count":{"type":"integer","title":"Venue Count"}},"additionalProperties":false,"type":"object","required":["baseline_id","taken_at","venue_count"],"title":"ReplayBaselineRef","description":"A snapshot's identity. `taken_at` is what decides which jobs it may replay."},"ReplayCandidate":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier"},"corroborating_tiers":{"items":{"type":"string"},"type":"array","title":"Corroborating Tiers"},"rungs":{"items":{"type":"string"},"type":"array","title":"Rungs"},"within_area":{"type":"boolean","title":"Within Area","default":true},"review_only":{"type":"boolean","title":"Review Only","default":false},"synthetic":{"type":"boolean","title":"Synthetic","description":"True when venue_id names a venue THIS replay created (sequential mode) — no venues row and no /admin/venues/<id> page exists for it; never link it.","default":false}},"additionalProperties":false,"type":"object","required":["venue_id"],"title":"ReplayCandidate","description":"One golden venue the replay's candidate search surfaced."},"ReplayComparison":{"type":"string","enum":["agree","differs","ambiguous"],"title":"ReplayComparison","description":"Replay against the original write — never \"better\" or \"regressed\"; there are no labels."},"ReplayCost":{"properties":{"judge_usd":{"type":"number","title":"Judge Usd","default":0.0},"embeddings_usd":{"type":"number","title":"Embeddings Usd","default":0.0},"storage_usd":{"type":"number","title":"Storage Usd","default":0.0},"total_usd":{"type":"number","title":"Total Usd","default":0.0}},"additionalProperties":false,"type":"object","title":"ReplayCost","description":"Dollars, by what would be spent on. Judge is $0 while the judge is `off` (R-D)."},"ReplayCoverage":{"properties":{"state":{"$ref":"#/components/schemas/ReplayCoverageState","default":"never"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"ran_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ran At"},"entity_resolution_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Resolution Version"},"tally":{"$ref":"#/components/schemas/ReplayTally"}},"additionalProperties":false,"type":"object","title":"ReplayCoverage","description":"The newest run covering one batch, and how it relates to the deployed resolver."},"ReplayCoverageState":{"type":"string","enum":["never","current","stale","partial"],"title":"ReplayCoverageState","description":"How the newest run covering a batch relates to the deployed resolver."},"ReplayDecision":{"properties":{"action":{"$ref":"#/components/schemas/ReplayAction"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"},"reason":{"type":"string","title":"Reason","default":""},"comparison":{"$ref":"#/components/schemas/ReplayComparison"},"judged":{"type":"boolean","title":"Judged","default":false},"synthetic":{"type":"boolean","title":"Synthetic","description":"True when venue_id names a venue THIS replay created (sequential mode) — no venues row and no /admin/venues/<id> page exists for it; never link it.","default":false},"candidates":{"items":{"$ref":"#/components/schemas/ReplayCandidate"},"type":"array","title":"Candidates"},"rungs_run":{"items":{"type":"string"},"type":"array","title":"Rungs Run"},"rungs_skipped":{"items":{"type":"string"},"type":"array","title":"Rungs Skipped"},"area_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area Source"},"set_aside":{"anyOf":[{"$ref":"#/components/schemas/ReplaySetAside"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["action","comparison"],"title":"ReplayDecision","description":"The replayed verdict for one job, with everything the policy saw."},"ReplayEstimate":{"properties":{"jobs":{"type":"integer","title":"Jobs"},"replayable_jobs":{"type":"integer","title":"Replayable Jobs"},"records":{"type":"integer","title":"Records"},"judge_calls":{"type":"integer","title":"Judge Calls"},"cost":{"$ref":"#/components/schemas/ReplayCost"},"will_truncate":{"type":"boolean","title":"Will Truncate"},"truncate_fraction":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Truncate Fraction"}},"additionalProperties":false,"type":"object","required":["jobs","replayable_jobs","records","judge_calls","cost","will_truncate","truncate_fraction"],"title":"ReplayEstimate","description":"What a run over these settings would touch and cost before it starts."},"ReplayJobDetail":{"properties":{"job":{"$ref":"#/components/schemas/ReplayJobRow"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"venue_record":{"anyOf":[{"$ref":"#/components/schemas/CapturedVenueRecord"},{"type":"null"}]},"events_count":{"type":"integer","title":"Events Count","default":0},"artists_count":{"type":"integer","title":"Artists Count","default":0},"events":{"items":{"$ref":"#/components/schemas/CapturedEventPreview"},"type":"array","title":"Events"},"events_truncated":{"type":"boolean","title":"Events Truncated","default":false},"artists":{"items":{"$ref":"#/components/schemas/CapturedArtistPreview"},"type":"array","title":"Artists"},"artists_truncated":{"type":"boolean","title":"Artists Truncated","default":false},"original":{"$ref":"#/components/schemas/ReplayOriginalOutcome"},"original_versions":{"$ref":"#/components/schemas/WorkflowVersions"},"replay":{"anyOf":[{"$ref":"#/components/schemas/ReplayDecision"},{"type":"null"}]},"replay_versions":{"anyOf":[{"$ref":"#/components/schemas/WorkflowVersions"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["job"],"title":"ReplayJobDetail","description":"`GET /jobs/{job_id}`. `replay` is null until a run has reached this job."},"ReplayJobRow":{"properties":{"job_id":{"type":"string","title":"Job Id"},"url":{"type":"string","title":"Url"},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"record_count":{"type":"integer","title":"Record Count","default":0},"replayable":{"type":"boolean","title":"Replayable","default":false},"not_replayable_reason":{"anyOf":[{"$ref":"#/components/schemas/NotReplayableReason"},{"type":"null"}]},"comparison":{"anyOf":[{"$ref":"#/components/schemas/ReplayComparison"},{"type":"null"}]},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"}},"additionalProperties":false,"type":"object","required":["job_id","url"],"title":"ReplayJobRow","description":"One scrape job as the batch list shows it."},"ReplayJudgeMode":{"type":"string","enum":["off","recorded","live"],"title":"ReplayJudgeMode","description":"`off` is the only mode with an implementation today (R-D)."},"ReplayMergedInto":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","required":["venue_id"],"title":"ReplayMergedInto","description":"Where a merged original venue's identity now lives — round 2, F-126, matrix row 7."},"ReplayMode":{"type":"string","enum":["sequential","isolated"],"title":"ReplayMode","description":"Whether a replayed `create` is visible to the jobs that follow it."},"ReplayOriginalOutcome":{"properties":{"venue_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Action"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"},"effective_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Action"},"merged_into":{"anyOf":[{"$ref":"#/components/schemas/ReplayMergedInto"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ReplayOriginalOutcome","description":"What the live write path did with the job when it ran."},"ReplayRunStarted":{"properties":{"run_id":{"type":"string","title":"Run Id"}},"additionalProperties":false,"type":"object","required":["run_id"],"title":"ReplayRunStarted","description":"`POST /runs` acknowledgement."},"ReplayRunState":{"type":"string","enum":["queued","running","finished","capped","failed","interrupted"],"title":"ReplayRunState","description":"`interrupted` is derived from a stale heartbeat, never written (R-E)."},"ReplayRunStatus":{"properties":{"run_id":{"type":"string","title":"Run Id"},"state":{"$ref":"#/components/schemas/ReplayRunState"},"done":{"type":"integer","title":"Done","default":0},"total":{"type":"integer","title":"Total","default":0},"spent_usd":{"type":"number","title":"Spent Usd","default":0.0},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":false,"type":"object","required":["run_id","state"],"title":"ReplayRunStatus","description":"Progress of one run. `done`/`total` count jobs, replayable or not."},"ReplayScope":{"type":"string","enum":["zip","window"],"title":"ReplayScope","description":"One discovery batch, or every batch in a trailing window."},"ReplaySetAside":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["venue_id","reason"],"title":"ReplaySetAside","description":"A candidate the policy noticed but did not use — round 2, F-126."},"ReplaySettings":{"properties":{"scope":{"$ref":"#/components/schemas/ReplayScope","default":"zip"},"batch_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"},"window_hours":{"type":"integer","maximum":720.0,"minimum":1.0,"title":"Window Hours","default":24},"mode":{"$ref":"#/components/schemas/ReplayMode","default":"sequential"},"judge":{"$ref":"#/components/schemas/ReplayJudgeMode","default":"off"},"max_spend_usd":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Max Spend Usd","default":1.0},"trace_all":{"type":"boolean","title":"Trace All","default":false}},"additionalProperties":false,"type":"object","title":"ReplaySettings","description":"What to replay, how, and how much it may spend."},"ReplayTally":{"properties":{"agree":{"type":"integer","title":"Agree","default":0},"differs":{"type":"integer","title":"Differs","default":0},"ambiguous":{"type":"integer","title":"Ambiguous","default":0},"not_reached":{"type":"integer","title":"Not Reached","default":0}},"additionalProperties":false,"type":"object","title":"ReplayTally","description":"How a set of jobs came out. `not_reached` is what a spend cap left behind."},"ReportReporterSummary":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"ReportReporterSummary"},"ReportTargetSummary":{"properties":{"type":{"anyOf":[{"$ref":"#/components/schemas/ContentReportTarget"},{"type":"string","const":"review"}],"title":"Type"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"exists":{"type":"boolean","title":"Exists","default":false}},"type":"object","required":["type","id"],"title":"ReportTargetSummary"},"RescrapeQueuedJob":{"properties":{"id":{"type":"string","title":"Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts","default":0},"max_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Attempts"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"}},"type":"object","required":["id","status"],"title":"RescrapeQueuedJob","description":"The re-armed row as the console reads it: queued at the front with a fresh budget (Q-19-340)."},"RescrapeQueuedResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"queued":{"type":"boolean","title":"Queued","default":true},"job":{"$ref":"#/components/schemas/RescrapeQueuedJob"},"worker_running":{"type":"boolean","title":"Worker Running"}},"type":"object","required":["job","worker_running"],"title":"RescrapeQueuedResponse","description":"`POST /queue/{job_id}/rescrape` — queued, not run; `worker_running` says whether a loop will claim it."},"ResourceUsageReport":{"properties":{"cached":{"type":"boolean","title":"Cached","default":false},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"providers":{"items":{"$ref":"#/components/schemas/ProviderUsage"},"type":"array","title":"Providers","default":[]},"account_links":{"items":{"$ref":"#/components/schemas/AccountLink"},"type":"array","title":"Account Links","default":[]}},"type":"object","required":["generated_at"],"title":"ResourceUsageReport"},"RestoredMember":{"properties":{"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"snapshot_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Snapshot Id"},"outcome":{"type":"string","title":"Outcome"}},"additionalProperties":false,"type":"object","required":["victim_id","outcome"],"title":"RestoredMember"},"ResumeRead":{"properties":{"entity_kind":{"$ref":"#/components/schemas/ManagedEntityKind"},"renews":{"type":"boolean","title":"Renews","default":true}},"additionalProperties":false,"type":"object","required":["entity_kind"],"title":"ResumeRead","description":"Keep my plan — the scheduled cancellation is undone and the plan renews as before."},"RetryReason":{"type":"string","enum":["transient_fetch_failure","ai_quota_rate_limit","ai_extraction_failure","grade_rejected","timeout"],"title":"RetryReason"},"ReviewCreate":{"properties":{"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating","description":"1-5 inclusive."},"comment":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Comment"}},"additionalProperties":false,"type":"object","required":["rating"],"title":"ReviewCreate","description":"Submit or replace the caller's review of one event.\n\nThe rating is required and the comment is not: FR-P3-0601 rules stars\nmandatory and prose optional, because requiring prose suppresses ratings."},"ReviewDecisionKind":{"type":"string","enum":["approved","rejected","edited_and_approved"],"title":"ReviewDecisionKind","description":"Label kind. Only EDITED_AND_APPROVED is a (source → correct extraction) pair."},"ReviewDecisionListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"schema_version":{"type":"integer","title":"Schema Version"},"queue_item_id":{"type":"string","format":"uuid","title":"Queue Item Id"},"decision":{"$ref":"#/components/schemas/ReviewDecisionKind"},"reviewed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewed By"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"subject_type":{"$ref":"#/components/schemas/ReviewSubjectType"},"subject_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subject Id"},"reason_code":{"type":"string","title":"Reason Code"},"reason_class":{"type":"string","title":"Reason Class"},"producer":{"type":"string","title":"Producer"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"occurrence_count":{"type":"integer","minimum":1.0,"title":"Occurrence Count"},"corrected_fields":{"items":{"type":"string"},"type":"array","title":"Corrected Fields"},"page_snapshot_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Snapshot Sha256"},"page_snapshot_source":{"$ref":"#/components/schemas/PageSnapshotSource"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"operation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operation"},"dedupe_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dedupe Key"},"ruling_kind":{"anyOf":[{"$ref":"#/components/schemas/ReviewRulingKind"},{"type":"string"},{"type":"null"}],"title":"Ruling Kind"},"ruling":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ruling"}},"type":"object","required":["id","schema_version","queue_item_id","decision","decided_at","subject_type","reason_code","reason_class","producer","occurrence_count","page_snapshot_source"],"title":"ReviewDecisionListItem","description":"One prior decision, list projection only — no page_snapshot."},"ReviewGateScope":{"type":"string","enum":["only","exclude"],"title":"ReviewGateScope","description":"Which side of the human-gate split a read takes (Story 18.91). See CLAUDE.md § gate_scope.py."},"ReviewQueueOperation":{"type":"string","enum":["merge_artists","merge_venues","merge_events","resolve_vocabulary_value","publish_corrected_record","bind_external_id","remove_event","resolve_tag_conflict","apply_recurrence","send_push_to_area","resolve_binding_conflict","review_stale_binding"],"title":"ReviewQueueOperation","description":"What approving an item EXECUTES. See CLAUDE.md § ReviewQueueOperation."},"ReviewQueuePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LiveyReviewQueueItem"},"type":"array","title":"Items","description":"The rows on this page, ordered as requested."},"limit":{"type":"integer","title":"Limit","description":"The page size that was applied."},"offset":{"type":"integer","title":"Offset","description":"The zero-based offset that was applied."},"has_more":{"type":"boolean","title":"Has More","description":"True when at least one further row matches the same filters beyond this page. Derived by fetching one extra row, not by counting."}},"type":"object","required":["limit","offset","has_more"],"title":"ReviewQueuePage","description":"One page of the admin review queue."},"ReviewQueueReasonCount":{"properties":{"reason_code":{"type":"string","title":"Reason Code"},"count":{"type":"integer","minimum":0.0,"title":"Count"}},"additionalProperties":false,"type":"object","required":["reason_code","count"],"title":"ReviewQueueReasonCount","description":"How many items one `reason_code` holds at the requested status."},"ReviewQueueResolutionRequest":{"properties":{"status":{"$ref":"#/components/schemas/ReviewResolution","description":"The admin's decision. `pending` is not a decision and is refused with 422."},"resolution_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Resolution Note","description":"Free-text note recorded with the decision — the queue's equivalent of `content_reports.action_taken`. Optional: an obvious reject needs no essay, and a required field would be filled with '.' rather than with meaning."},"corrected_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Corrected Payload","description":"The corrected extraction. REQUIRED with `edited_and_approved` and refused with 422 when omitted (see the model validator). Ignored for the other two decisions rather than refused: a client that sends one with an `approved` has made a UI mistake, not a security-relevant one, and the decision itself is still exactly what the admin intended."},"chosen_external_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Chosen External Id","description":"The external id of the candidate to bind, for an item whose operation is `bind_external_id`. Must be one of the ids in that item's own payload. Ignored for every other operation. To say none of the candidates is right, REJECT the item instead."},"choice_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Choice Id","description":"The id of the answer chosen, for an item that asks a question (`payload.question`). Required to approve such an item and refused with 422 when it is not one of the item's own answers. On a reject, a declining answer is recorded as given and an id the question lacks is refused with 422. Ignored on an item that asks no question."}},"additionalProperties":false,"type":"object","required":["status"],"title":"ReviewQueueResolutionRequest","description":"Resolve one review-queue item.\n\n🛑 `extra=\"forbid\"` IS THE SECURITY-RELEVANT LINE, not tidiness. Pydantic's\ndefault silently DISCARDS an unknown field, so a client posting\n`{\"status\": \"approved\", \"reviewed_by\": \"<someone else>\"}` would get a 200 and\na decision recorded against the caller — correct behaviour reached by\naccident, and indistinguishable to the client from having been honoured. With\n`forbid` the attempt is a loud 422 naming the field, which is what an admin\nconsole needs to see the moment somebody wires the wrong payload."},"ReviewQueueSideCounts":{"properties":{"total":{"type":"integer","minimum":0.0,"title":"Total"},"by_reason":{"items":{"$ref":"#/components/schemas/ReviewQueueReasonCount"},"type":"array","title":"By Reason"},"by_subject":{"items":{"$ref":"#/components/schemas/ReviewQueueSubjectCount"},"type":"array","title":"By Subject"}},"additionalProperties":false,"type":"object","required":["total"],"title":"ReviewQueueSideCounts","description":"One side of the gate split's depth: its total and its marginals. See CLAUDE.md § stats.py."},"ReviewQueueSortBy":{"type":"string","enum":["confidence","recent","created","disagreement"],"title":"ReviewQueueSortBy","description":"The three orderings the triage surface offers. `auto()` derives each method name."},"ReviewQueueStats":{"properties":{"total":{"type":"integer","minimum":0.0,"title":"Total"},"by_reason":{"items":{"$ref":"#/components/schemas/ReviewQueueReasonCount"},"type":"array","title":"By Reason"},"by_subject":{"items":{"$ref":"#/components/schemas/ReviewQueueSubjectCount"},"type":"array","title":"By Subject"},"status":{"type":"string","title":"Status"},"approvals":{"$ref":"#/components/schemas/ReviewQueueSideCounts"}},"additionalProperties":false,"type":"object","required":["total","status"],"title":"ReviewQueueStats","description":"One status's triage picture. See CLAUDE.md § stats.py."},"ReviewQueueStatus":{"type":"string","enum":["pending","approved","rejected","edited_and_approved","auto_approve","superseded","expired"],"title":"ReviewQueueStatus","description":"Triage lifecycle. Not content_reports' triaged / actioned / dismissed."},"ReviewQueueSubjectCount":{"properties":{"subject_type":{"type":"string","title":"Subject Type"},"count":{"type":"integer","minimum":0.0,"title":"Count"}},"additionalProperties":false,"type":"object","required":["subject_type","count"],"title":"ReviewQueueSubjectCount","description":"How many items one `subject_type` holds at the requested status."},"ReviewRead":{"properties":{"id":{"type":"string","title":"Id"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"artist_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist Id"},"user_id":{"type":"string","title":"User Id"},"author_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Display Name"},"rating":{"type":"integer","title":"Rating"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"photo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photo Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"edited":{"type":"boolean","title":"Edited","default":false}},"additionalProperties":false,"type":"object","required":["id","user_id","rating","created_at","updated_at"],"title":"ReviewRead","description":"One published review, as a reader sees it."},"ReviewReasonCatalog":{"properties":{"classes":{"items":{"$ref":"#/components/schemas/ReasonClassHeading"},"type":"array","title":"Classes"},"reasons":{"items":{"$ref":"#/components/schemas/ReasonDescriptor"},"type":"array","title":"Reasons"}},"additionalProperties":false,"type":"object","required":["classes","reasons"],"title":"ReviewReasonCatalog","description":"Every kind of review item, explained. One descriptor per `ReviewReasonCode`."},"ReviewReasonClass":{"type":"string","enum":["extraction","taxonomy","duplicate","derived_tag","external_id","delisting","monetization","resolution"],"title":"ReviewReasonClass","description":"Producer family — leading column of `uq_review_queue_open_item`."},"ReviewReasonCode":{"type":"string","enum":["rejected_malformed","rejected_missing_title","rejected_missing_start_time","rejected_unparseable_start_time","rejected_start_time_out_of_window","rejected_missing_venue","timezone_underivable","extraction_reject_batch","unmappable_category","unmappable_genre","unmappable_tag","unmappable_venue_type","unmapped_venue_tag","unmapped_artist_tag","artist_tag_single_select_conflict","unrecognized_admin_genre","event_genre_category_conflict","event_missing_category","genre_reject_seed_collision","event_genre_parent_ambiguous","duplicate_venue_candidate","duplicate_event_candidate","duplicate_artist_candidate","venue_containment_needs_adjudication","derived_tag_disagreement","unmapped_age_requirement","derived_tag_blocked_by_authored","unconfirmed_recurrence_signal","unverified_ticket_url","unverified_ab_extraction","external_id_conflict","external_id_ambiguous","gers_binding_candidate","gers_binding_stale","ticketmaster_event_delisted","paid_push_to_area_requested","unverified_subscription_revoker","departed_buyer_refund_failed","extraction_grade_unresolved","ambiguous_free_claim","ambiguous_venue_record","ambiguous_artist_record","ambiguous_event_record","venue_website_stale","venue_closure","venue_space_link"],"title":"ReviewReasonCode","description":"Why a row was queued. Open registry — see CLAUDE.md § vocabulary.py."},"ReviewResolution":{"type":"string","enum":["approved","rejected","edited_and_approved"],"title":"ReviewResolution","description":"The three statuses an admin may WRITE (FR-P2-0201's three actions).\n\nA deliberate, narrower mirror of `ReviewQueueStatus` minus `pending` — see\nthe module docstring for why `pending` must not be expressible here. The\nvalues are byte-identical to the enum in `models/`, and the unit suite pins\nthat they stay so: two vocabularies that may drift are worse than one that\nis slightly redundant."},"ReviewRulingKind":{"type":"string","enum":["bound","removed","push_settled","merged","aliased","kept","rebound","confirmed","unbound","choice","park_settled","free_price_set","website_set","venue_retired","venue_kept_open","space_linked"],"title":"ReviewRulingKind","description":"What the admin chose, or what an executor did. Open on the DB — see CLAUDE.md § ReviewRulingKind."},"ReviewStatus":{"type":"string","enum":["published","pending","hidden","removed"],"title":"ReviewStatus","description":"Moderation lifecycle. Mirrors `user_reviews_status_valid` exactly."},"ReviewSubjectType":{"type":"string","enum":["event","venue","artist","category","genre","tag","venue_type","external_id"],"title":"ReviewSubjectType","description":"What kind of thing a queued row is about. Closed CHECK; no `duplicate_pair`."},"ReviewTargetKind":{"type":"string","enum":["events","venues","artists"],"title":"ReviewTargetKind","description":"What a review points at. Mirrors `user_reviews_exactly_one_target`.\n\n`str, Enum` is load-bearing here as everywhere in this schema — a plain Enum\nhashes by member NAME, so a comparison against a raw path string silently\nfails (the 2026-08-12 near-miss that would reopen BUG-165)."},"ReviewUpdate":{"properties":{"rating":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Rating"},"comment":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Comment"}},"additionalProperties":false,"type":"object","title":"ReviewUpdate","description":"Edit the caller's existing review. Omitted fields are left alone.\n\n🔑 `comment: null` CLEARS the comment; omitting `comment` keeps it. The two\nare told apart by `model_fields_set`, not by the value — which is why this\ncannot collapse into a single optional field with a default."},"RevokedEntityRow":{"properties":{"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"entity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entity Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["kind"],"title":"RevokedEntityRow","description":"One venue/artist the cascade touched — the digest email's own list, echoed here."},"RoleChangeErrorBody":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"}},"type":"object","required":["error","message","request_id"],"title":"RoleChangeErrorBody"},"RoleChangeResult":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"role":{"$ref":"#/components/schemas/UserRole"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"}},"type":"object","required":["id","role","request_id"],"title":"RoleChangeResult"},"RoleHistoryEntry":{"properties":{"role":{"type":"string","title":"Role"},"action":{"type":"string","title":"Action"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"actor_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Role"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["role","action"],"title":"RoleHistoryEntry","description":"One `user_role_events` row, newest first."},"RoleHistoryPage":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/RoleHistoryEntry"},"type":"array","title":"Entries"}},"type":"object","required":["entries"],"title":"RoleHistoryPage","description":"The whole panel — bounded by `UserRoleEventRepository.list_for_user`'s own `limit`."},"RoleRevocationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"role":{"$ref":"#/components/schemas/UserRole"},"approved_count":{"type":"integer","title":"Approved Count"},"pending_count":{"type":"integer","title":"Pending Count"},"entities":{"items":{"$ref":"#/components/schemas/RevokedEntityRow"},"type":"array","title":"Entities"},"request_id":{"type":"string","maxLength":8,"minLength":8,"title":"Request Id"}},"type":"object","required":["id","role","approved_count","pending_count","entities","request_id"],"title":"RoleRevocationResponse","description":"The cascade's result — the counts + entities a confirmation toast can render."},"RoleRevokePreview":{"properties":{"role":{"$ref":"#/components/schemas/UserRole"},"approved_count":{"type":"integer","title":"Approved Count"},"pending_count":{"type":"integer","title":"Pending Count"}},"type":"object","required":["role","approved_count","pending_count"],"title":"RoleRevokePreview","description":"AC #14 — the blast radius shown BEFORE the admin confirms. A pure read:\nhow many approved and how many pending claims of this role will be cancelled."},"RoleRevokeRequest":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"RoleRevokeRequest","description":"Body for the role-wide revoke. Required, non-empty (AC #9)."},"RoleSetRequest":{"properties":{"role":{"type":"string","enum":["user","venue","artist"],"title":"Role"},"venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Venue Id"},"artist_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Artist Id"}},"type":"object","required":["role"],"title":"RoleSetRequest"},"RoutingDecision":{"properties":{"story":{"type":"string","title":"Story"},"requirement":{"type":"string","title":"Requirement"},"measured_on":{"type":"string","title":"Measured On"},"corpus":{"type":"string","title":"Corpus"},"method":{"type":"string","title":"Method"},"arms":{"items":{"$ref":"#/components/schemas/BenchmarkArm"},"type":"array","title":"Arms"},"steps":{"items":{"$ref":"#/components/schemas/BenchmarkStep"},"type":"array","minItems":1,"title":"Steps"},"unmeasured_steps":{"items":{"$ref":"#/components/schemas/BenchmarkUnmeasured"},"type":"array","title":"Unmeasured Steps"},"recommendation":{"$ref":"#/components/schemas/BenchmarkRecommendation"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"}},"additionalProperties":false,"type":"object","required":["story","requirement","measured_on","corpus","method","arms","steps","recommendation"],"title":"RoutingDecision","description":"Story 19.43's decision record, checked whole on load."},"RowAction":{"type":"string","enum":["created","updated","error","would_create","would_update","linked"],"title":"RowAction"},"RunCallExcerpt":{"properties":{"model":{"type":"string","title":"Model"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"error_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Kind"},"prompt":{"type":"string","title":"Prompt","default":""},"answer":{"type":"string","title":"Answer","default":""},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"}},"type":"object","required":["model","occurred_at"],"title":"RunCallExcerpt","description":"What one call of a step was asked and what it answered (R24): at most 4 KB of each, kept 30 days."},"RunRetry":{"properties":{"kind":{"type":"string","enum":["attempt","repair"],"title":"Kind"},"attempt":{"type":"integer","minimum":0.0,"title":"Attempt"},"pass_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pass Id"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"},"reason":{"anyOf":[{"$ref":"#/components/schemas/RetryReason"},{"type":"null"}]},"cause":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cause"},"detail":{"type":"string","title":"Detail","default":""},"repairs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Repairs"}},"type":"object","required":["kind","attempt"],"title":"RunRetry","description":"A whole attempt that failed and went back to the queue, or a corrective repair inside the run."},"RunStep":{"properties":{"order":{"type":"integer","minimum":1.0,"title":"Order"},"node":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node"},"workflow":{"type":"string","title":"Workflow"},"pass_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pass Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"calls":{"type":"integer","minimum":1.0,"title":"Calls"},"models":{"items":{"type":"string"},"type":"array","title":"Models"},"vendors":{"items":{"type":"string"},"type":"array","title":"Vendors"},"usd":{"type":"number","minimum":0.0,"title":"Usd"},"estimated_usd":{"type":"number","minimum":0.0,"title":"Estimated Usd"},"unpriced_calls":{"type":"integer","minimum":0.0,"title":"Unpriced Calls"},"errors":{"additionalProperties":{"type":"integer"},"type":"object","title":"Errors"},"apart":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apart"},"excerpts":{"items":{"$ref":"#/components/schemas/RunCallExcerpt"},"type":"array","title":"Excerpts"}},"type":"object","required":["order","workflow","started_at","ended_at","calls","usd","estimated_usd","unpriced_calls"],"title":"RunStep","description":"Consecutive recorded calls of one step in one pass, in the order they ran."},"SameNamedVenue":{"properties":{"venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Venue Id"},"name":{"type":"string","title":"Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"}},"additionalProperties":false,"type":"object","required":["name"],"title":"SameNamedVenue","description":"Another venue already holding a created venue's name — a warning since P2-BUG-1366, never a refusal."},"SchedulerHealthResponse":{"properties":{"paused":{"type":"boolean","title":"Paused"},"paused_by":{"anyOf":[{"$ref":"#/components/schemas/SchedulerPausedBy"},{"type":"null"}]},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"next_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Run At"},"stored_next_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stored Next Run At"},"trailing_14d_failure_count":{"type":"integer","title":"Trailing 14D Failure Count"},"consecutive_successful_days":{"type":"integer","title":"Consecutive Successful Days"},"per_zip_status":{"items":{"$ref":"#/components/schemas/PerZipStatus"},"type":"array","title":"Per Zip Status"},"current_pass":{"anyOf":[{"$ref":"#/components/schemas/DiscoveryPassView"},{"type":"null"}]},"recent_passes":{"items":{"$ref":"#/components/schemas/DiscoveryPassView"},"type":"array","title":"Recent Passes"},"heartbeat_stale":{"type":"boolean","title":"Heartbeat Stale","default":false},"discovery_engine":{"$ref":"#/components/schemas/DiscoveryEngine","default":"legacy"}},"additionalProperties":false,"type":"object","required":["paused","trailing_14d_failure_count","consecutive_successful_days","per_zip_status"],"title":"SchedulerHealthResponse"},"SchedulerPausedBy":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"additionalProperties":false,"type":"object","required":["id"],"title":"SchedulerPausedBy","description":"The admin who paused the discovery scheduler — id plus email, not a profile."},"ScorecardAnswer":{"type":"string","enum":["had_results","answered_zero","fetch_failed","not_asked"],"title":"ScorecardAnswer","description":"The four ledger states as rendered; only `answered_zero` reads as quiet (FR-P2-0316 guard (i))."},"ScrapePreviewResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"content_preview":{"additionalProperties":true,"type":"object","title":"Content Preview"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["success","content_preview"],"title":"ScrapePreviewResponse"},"ScrapeRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"enable_render":{"type":"boolean","title":"Enable Render","default":false},"multi_page":{"type":"boolean","title":"Multi Page","default":true}},"type":"object","required":["url"],"title":"ScrapeRequest"},"ScraperRelease":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"pipeline":{"type":"string","enum":["discovery","extraction","ingestion"],"title":"Pipeline"},"version":{"type":"string","minLength":1,"title":"Version"},"label":{"type":"string","minLength":1,"title":"Label"}},"type":"object","required":["day","pipeline","version","label"],"title":"ScraperRelease","description":"One shipped version of one scraper pipeline, as marked on the trend."},"SecondLevelLabelRequest":{"properties":{"second_level_label":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Second Level Label"}},"additionalProperties":false,"type":"object","title":"SecondLevelLabelRequest","description":"Set or clear a category's picker heading.\n\nAn empty string CLEARS it, meaning *this category has no second level* — and\nthe service refuses that while the category still has genres."},"SeriesOccurrences":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"occurrences":{"items":{"$ref":"#/components/schemas/EventSummary"},"type":"array","title":"Occurrences","default":[]},"occurrence_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Occurrence Count","default":0},"offset":{"type":"integer","title":"Offset","default":0},"limit":{"type":"integer","title":"Limit","default":200},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["id","title"],"title":"SeriesOccurrences","description":"One page of a run's occurrences — soonest first — plus the run's true length.\n\n`occurrence_count` is an exact COUNT over the unfiltered member set, not\n`len(occurrences)` and not stored. See CLAUDE.md § series_occurrences.py."},"ServedModelShare":{"properties":{"model":{"type":"string","title":"Model"},"kind":{"type":"string","enum":["model","data_query"],"title":"Kind","default":"model"},"calls":{"type":"integer","minimum":0.0,"title":"Calls"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"share":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Share"},"unpriced_calls":{"type":"integer","minimum":0.0,"title":"Unpriced Calls","default":0},"estimated_calls":{"type":"integer","minimum":0.0,"title":"Estimated Calls","default":0},"estimated_usd":{"type":"number","minimum":0.0,"title":"Estimated Usd","default":0}},"type":"object","required":["model","calls","spend_usd"],"title":"ServedModelShare","description":"One model's part of a configuration's recorded spend — what actually answered (AC #4 b′), never the key."},"ServiceAccountEmailSaved":{"properties":{"key":{"type":"string","title":"Key"},"account_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Email"}},"type":"object","required":["key"],"title":"ServiceAccountEmailSaved","description":"The address now on record for that service."},"ServiceAccountEmailWrite":{"properties":{"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}},"additionalProperties":false,"type":"object","title":"ServiceAccountEmailWrite","description":"An administrator's entry; null or blank clears it."},"ServiceDirectory":{"properties":{"services":{"items":{"$ref":"#/components/schemas/ServiceProfile"},"type":"array","title":"Services","default":[]},"account_emails_available":{"type":"boolean","title":"Account Emails Available","default":true}},"type":"object","title":"ServiceDirectory","description":"Every outside service. `account_emails_available` is False when the saved addresses could not be read."},"ServiceProfile":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"category":{"type":"string","title":"Category"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"use_state":{"type":"string","enum":["in_use","built_off","placeholder"],"title":"Use State","default":"in_use"},"wiring":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wiring"},"pricing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing"},"quota":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quota"},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"},"credential":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credential"},"manage_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manage Url"},"buy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buy Url"},"key_check":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Check"},"has_account":{"type":"boolean","title":"Has Account","default":true},"account_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Email"}},"type":"object","required":["key","label","category"],"title":"ServiceProfile","description":"One outside service's fixed facts plus its recorded account email."},"SessionRevokeResponse":{"properties":{"signed_out":{"type":"boolean","title":"Signed Out"}},"additionalProperties":false,"type":"object","required":["signed_out"],"title":"SessionRevokeResponse","description":"What ending one session did. `signed_out` means it was the caller's own."},"ShareEntityKind":{"type":"string","enum":["event","venue","artist"],"title":"ShareEntityKind","description":"The pages a shared link can name."},"SharedCost":{"properties":{"unattributed_scrape_ai_usd_per_month":{"type":"number","minimum":0.0,"title":"Unattributed Scrape Ai Usd Per Month"},"quality_ai_usd_per_month":{"type":"number","minimum":0.0,"title":"Quality Ai Usd Per Month"},"discovery_ai_usd_per_month":{"type":"number","minimum":0.0,"title":"Discovery Ai Usd Per Month"},"other_ai_usd_per_month":{"type":"number","minimum":0.0,"title":"Other Ai Usd Per Month","default":0},"google_cloud":{"$ref":"#/components/schemas/GoogleCloudCost"},"total_usd_per_month":{"type":"number","minimum":0.0,"title":"Total Usd Per Month"},"unattributed_jobs":{"type":"integer","minimum":0.0,"title":"Unattributed Jobs"},"unpriced_jobs":{"type":"integer","minimum":0.0,"title":"Unpriced Jobs"},"unrecorded_jobs":{"type":"integer","minimum":0.0,"title":"Unrecorded Jobs"},"unpriced_calls":{"type":"integer","minimum":0.0,"title":"Unpriced Calls","default":0},"ai_covered_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ai Covered From"},"ai_record_state":{"$ref":"#/components/schemas/SpendRecordState","default":"none"},"ai_complete":{"type":"boolean","title":"Ai Complete"},"per_active_zip_usd_per_month":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Per Active Zip Usd Per Month"}},"type":"object","required":["unattributed_scrape_ai_usd_per_month","quality_ai_usd_per_month","discovery_ai_usd_per_month","google_cloud","total_usd_per_month","unattributed_jobs","unpriced_jobs","unrecorded_jobs","ai_complete"],"title":"SharedCost","description":"Spend no ZIP owns, split evenly across the active ZIPs."},"SignInCodeSentResponse":{"properties":{"sent":{"type":"boolean","title":"Sent","default":true}},"additionalProperties":false,"type":"object","title":"SignInCodeSentResponse","description":"A fresh emailed code is on its way to the account's own address."},"SignInMethodActivity":{"properties":{"kind":{"$ref":"#/components/schemas/SignInMethodKind"},"label":{"type":"string","title":"Label"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["kind","label"],"title":"SignInMethodActivity","description":"One way into the account, and when it was connected and last used."},"SignInMethodBlockedReason":{"type":"string","enum":["last_sign_in_method","link_confirmation_required","not_removable_here"],"title":"SignInMethodBlockedReason","description":"Why a method cannot be disconnected — the code a client branches on."},"SignInMethodChangeResponse":{"properties":{"methods":{"$ref":"#/components/schemas/SignInMethodListResponse"},"sessions_ended":{"type":"integer","title":"Sessions Ended","default":0},"signed_out_current_session":{"type":"boolean","title":"Signed Out Current Session","default":false}},"additionalProperties":false,"type":"object","required":["methods"],"title":"SignInMethodChangeResponse","description":"What a connect or a disconnect answers: the list as it now stands, and its reach."},"SignInMethodKind":{"type":"string","enum":["password","apple","google","facebook","other"],"title":"SignInMethodKind","description":"What a row is. `other` is a provider LIVEY does not offer — still listed, never hidden."},"SignInMethodListResponse":{"properties":{"methods":{"items":{"$ref":"#/components/schemas/SignInMethodRead"},"type":"array","title":"Methods"},"usable_count":{"type":"integer","title":"Usable Count"},"has_password":{"type":"boolean","title":"Has Password"},"account_locked":{"type":"boolean","title":"Account Locked"},"connectable_providers":{"items":{"$ref":"#/components/schemas/SocialSignInProvider"},"type":"array","title":"Connectable Providers"}},"additionalProperties":false,"type":"object","required":["usable_count","has_password","account_locked"],"title":"SignInMethodListResponse","description":"Every way in, plus what the screen needs so it never promises more than the server."},"SignInMethodRead":{"properties":{"kind":{"$ref":"#/components/schemas/SignInMethodKind"},"identity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Identity Id"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"state":{"$ref":"#/components/schemas/SignInMethodState"},"is_usable":{"type":"boolean","title":"Is Usable"},"can_disconnect":{"type":"boolean","title":"Can Disconnect"},"blocked_reason":{"anyOf":[{"$ref":"#/components/schemas/SignInMethodBlockedReason"},{"type":"null"}]},"blocked_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Message"},"ends_current_session":{"type":"boolean","title":"Ends Current Session","default":false}},"additionalProperties":false,"type":"object","required":["kind","state","is_usable","can_disconnect"],"title":"SignInMethodRead","description":"One way into the account. See CLAUDE.md § sign_in_methods.py."},"SignInMethodState":{"type":"string","enum":["active","not_set","awaiting_confirmation","unverified"],"title":"SignInMethodState","description":"Where one method stands. Only `active` counts toward the last-method rule."},"SignInOptions":{"properties":{"providers":{"items":{"type":"string"},"type":"array","title":"Providers"}},"additionalProperties":false,"type":"object","title":"SignInOptions","description":"Which social sign-in providers this API will honour right now."},"SignalAttribution":{"properties":{"signal":{"type":"string","title":"Signal"},"label":{"type":"string","title":"Label"},"verdicts":{"type":"integer","title":"Verdicts"}},"type":"object","required":["signal","label","verdicts"],"title":"SignalAttribution","description":"How many verdicts in the window each signal fired in — whether it earns its place (AC #11)."},"SignedInDevice":{"properties":{"device":{"type":"string","title":"Device"},"signed_in_at":{"type":"string","format":"date-time","title":"Signed In At"},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"}},"type":"object","required":["device","signed_in_at"],"title":"SignedInDevice","description":"One device the person is signed in on right now."},"SignupRequest":{"properties":{"venue_claim_intent":{"type":"boolean","title":"Venue Claim Intent","default":false},"artist_claim_intent":{"type":"boolean","title":"Artist Claim Intent","default":false},"budget_min":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Budget Min"},"budget_max":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Budget Max"},"birthday_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Birthday Month"},"birthday_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Birthday Day"},"anniversary_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Anniversary Month"},"anniversary_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Anniversary Day"},"phone":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Phone"},"age_range":{"anyOf":[{"$ref":"#/components/schemas/AgeRange"},{"type":"null"}]},"marital_status":{"anyOf":[{"$ref":"#/components/schemas/MaritalStatus"},{"type":"null"}]},"accepted_terms":{"anyOf":[{"type":"boolean","const":true},{"type":"null"}],"title":"Accepted Terms"},"accepted_privacy":{"anyOf":[{"type":"boolean","const":true},{"type":"null"}],"title":"Accepted Privacy"},"confirmed_age_13":{"anyOf":[{"type":"boolean","const":true},{"type":"null"}],"title":"Confirmed Age 13"},"terms_policy_version":{"anyOf":[{"type":"string","pattern":"^terms@[0-9]{4}-[0-9]{2}-[0-9]{2}$"},{"type":"null"}],"title":"Terms Policy Version"},"privacy_policy_version":{"anyOf":[{"type":"string","pattern":"^privacy@[0-9]{4}-[0-9]{2}-[0-9]{2}$"},{"type":"null"}],"title":"Privacy Policy Version"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"role":{"type":"string","title":"Role","default":"user"},"email_opt_in":{"type":"boolean","title":"Email Opt In","default":false},"sms_opt_in":{"type":"boolean","title":"Sms Opt In","default":false},"zip":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip"},"preferred_genres":{"items":{"type":"string"},"type":"array","title":"Preferred Genres"},"preferred_event_types":{"items":{"type":"string"},"type":"array","title":"Preferred Event Types"}},"type":"object","required":["email","password"],"title":"SignupRequest","description":"Request body for the user signup endpoint."},"SignupResponse":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","format":"email","title":"Email"},"requires_verification":{"type":"boolean","title":"Requires Verification","default":true}},"type":"object","required":["user_id","email"],"title":"SignupResponse","description":"Privacy-preserving signup response (identical whether email is new)."},"SiteContentItem":{"properties":{"key":{"type":"string","title":"Key"},"content_type":{"$ref":"#/components/schemas/ContentType"},"allowed_types":{"items":{"$ref":"#/components/schemas/ContentType"},"type":"array","title":"Allowed Types"},"source":{"$ref":"#/components/schemas/SiteContentSource"},"value":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ComparisonValue"},{"type":"null"}],"title":"Value"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"},"html_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Source"},"label":{"type":"string","title":"Label"},"help":{"type":"string","title":"Help"},"surface":{"type":"string","title":"Surface"},"section":{"type":"string","title":"Section"},"sort_order":{"type":"integer","title":"Sort Order"},"appears_as":{"type":"string","title":"Appears As"},"widget":{"type":"string","title":"Widget"}},"additionalProperties":false,"type":"object","required":["key","content_type","allowed_types","source","label","help","surface","section","sort_order","appears_as","widget"],"title":"SiteContentItem","description":"One editable area as an admin sees it."},"SiteContentPublic":{"properties":{"key":{"type":"string","title":"Key"},"content_type":{"$ref":"#/components/schemas/ContentType"},"text_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Value"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"html_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Value"},"comparison":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Comparison"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["key","content_type"],"title":"SiteContentPublic","description":"The eight PUBLIC_COLUMNS of `site_content`. See CLAUDE.md § site_content_public.py."},"SiteContentPublicBundle":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SiteContentPublic"},"type":"array","title":"Items"},"declared_keys":{"items":{"type":"string"},"type":"array","title":"Declared Keys"}},"additionalProperties":false,"type":"object","required":["items","declared_keys"],"title":"SiteContentPublicBundle","description":"Stored rows plus the declared key list. See CLAUDE.md § bundle.py."},"SiteContentSource":{"type":"string","enum":["default","stored","orphan"],"title":"SiteContentSource","description":"How a key resolved. Default never embeds launch copy (R11)."},"SiteContentUndoResponse":{"properties":{"save_group_id":{"type":"string","format":"uuid","title":"Save Group Id"},"items":{"items":{"$ref":"#/components/schemas/SiteContentItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["save_group_id","items"],"title":"SiteContentUndoResponse","description":"POST /undo. save_group_id is the server-minted undo group."},"SiteContentWriteRequest":{"properties":{"save_group_id":{"type":"string","format":"uuid","title":"Save Group Id"},"content_type":{"anyOf":[{"$ref":"#/components/schemas/ContentType"},{"type":"null"}]},"text_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Value"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"html_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Value"},"html_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Source"},"comparison":{"anyOf":[{"$ref":"#/components/schemas/ComparisonValue"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["save_group_id"],"title":"SiteContentWriteRequest","description":"PUT body. save_group_id is client-minted (R2). No version field (R3)."},"SiteContentWriteResponse":{"properties":{"key":{"type":"string","title":"Key"},"content_type":{"$ref":"#/components/schemas/ContentType"},"allowed_types":{"items":{"$ref":"#/components/schemas/ContentType"},"type":"array","title":"Allowed Types"},"source":{"$ref":"#/components/schemas/SiteContentSource"},"value":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ComparisonValue"},{"type":"null"}],"title":"Value"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Updated By"},"html_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Source"},"label":{"type":"string","title":"Label"},"help":{"type":"string","title":"Help"},"surface":{"type":"string","title":"Surface"},"section":{"type":"string","title":"Section"},"sort_order":{"type":"integer","title":"Sort Order"},"appears_as":{"type":"string","title":"Appears As"},"widget":{"type":"string","title":"Widget"},"removed":{"items":{"type":"string"},"type":"array","title":"Removed"}},"additionalProperties":false,"type":"object","required":["key","content_type","allowed_types","source","label","help","surface","section","sort_order","appears_as","widget","removed"],"title":"SiteContentWriteResponse","description":"PUT response. removed is the post-save strip report (R19)."},"SiteDriftGuard":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"value":{"type":"string","title":"Value"},"protects":{"type":"string","title":"Protects"}},"type":"object","required":["key","label","value","protects"],"title":"SiteDriftGuard","description":"One safety control: its value and the harm it stands between."},"SiteDriftGuards":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SiteDriftGuard"},"type":"array","title":"Items"},"editable":{"type":"boolean","title":"Editable","default":false},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["items","reason"],"title":"SiteDriftGuards","description":"The guards, never editable, and why."},"SiteDriftMetric":{"properties":{"verdicts_last_7_days":{"type":"integer","title":"Verdicts Last 7 Days"},"verdicts_in_window":{"type":"integer","title":"Verdicts In Window"},"sites_evaluated":{"type":"integer","title":"Sites Evaluated"},"sites_drifted":{"type":"integer","title":"Sites Drifted"},"sites_warming_up":{"type":"integer","title":"Sites Warming Up"},"sites_one_short":{"type":"integer","title":"Sites One Short"},"sites_digest_unstable":{"type":"integer","title":"Sites Digest Unstable"},"sites_excluded":{"type":"integer","title":"Sites Excluded"},"breaker_trips":{"type":"integer","title":"Breaker Trips"},"attribution":{"items":{"$ref":"#/components/schemas/SignalAttribution"},"type":"array","title":"Attribution"}},"type":"object","required":["verdicts_last_7_days","verdicts_in_window","sites_evaluated","sites_drifted","sites_warming_up","sites_one_short","sites_digest_unstable","sites_excluded","breaker_trips","attribution"],"title":"SiteDriftMetric","description":"The honest metric (AC #11) — counts, never accuracy."},"SiteDriftNotes":{"properties":{"accuracy":{"type":"string","title":"Accuracy"},"seasonality":{"type":"string","title":"Seasonality"},"kill_switch":{"type":"string","title":"Kill Switch"},"nothing_acts":{"type":"string","title":"Nothing Acts"}},"type":"object","required":["accuracy","seasonality","kill_switch","nothing_acts"],"title":"SiteDriftNotes","description":"What the numbers cannot say — stated on the surface, not left for a reader to assume."},"SiteDriftOverview":{"properties":{"classifier_version":{"type":"string","title":"Classifier Version"},"window_days":{"type":"integer","title":"Window Days"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"},"guards":{"$ref":"#/components/schemas/SiteDriftGuards"},"metric":{"$ref":"#/components/schemas/SiteDriftMetric"},"notes":{"$ref":"#/components/schemas/SiteDriftNotes"},"sites":{"items":{"$ref":"#/components/schemas/SiteDriftRow"},"type":"array","title":"Sites"}},"type":"object","required":["classifier_version","window_days","computed_at","guards","metric","notes","sites"],"title":"SiteDriftOverview","description":"The whole admin read."},"SiteDriftRow":{"properties":{"site":{"type":"string","title":"Site"},"state":{"type":"string","title":"State"},"confirmations":{"type":"integer","title":"Confirmations"},"observations":{"type":"integer","title":"Observations"},"last_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Observed At"},"last_verdict_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Verdict At"},"last_verdict_signals":{"items":{"type":"string"},"type":"array","title":"Last Verdict Signals","default":[]}},"type":"object","required":["site","state","confirmations","observations"],"title":"SiteDriftRow","description":"One site's state and its latest verdict."},"SiteMediaCommitRequest":{"properties":{"path":{"type":"string","minLength":1,"title":"Path"}},"type":"object","required":["path"],"title":"SiteMediaCommitRequest","description":"Object path to verify after a direct Storage PUT."},"SiteMediaLimitsRead":{"properties":{"max_bytes":{"type":"integer","title":"Max Bytes"},"image_types":{"items":{"type":"string"},"type":"array","title":"Image Types"},"video_types":{"items":{"type":"string"},"type":"array","title":"Video Types"}},"type":"object","required":["max_bytes","image_types","video_types"],"title":"SiteMediaLimitsRead","description":"The one cap and the accepted types — the widget must not duplicate them."},"SiteMediaSignRead":{"properties":{"signed_url":{"type":"string","title":"Signed Url"},"token":{"type":"string","title":"Token"},"path":{"type":"string","title":"Path"},"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["signed_url","token","path","content_type"],"title":"SiteMediaSignRead","description":"Single-use signed URL plus the object path the browser PUTs to."},"SiteMediaSignRequest":{"properties":{"content_type":{"type":"string","minLength":1,"title":"Content Type"}},"type":"object","required":["content_type"],"title":"SiteMediaSignRequest","description":"Declared type for a signed video upload. The API never sees the body."},"SiteMediaUrlRead":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"SiteMediaUrlRead","description":"Public Storage URL the form later PUTs through 20.3."},"SocialPreflightDecision":{"type":"string","enum":["proceed","link_required"],"title":"SocialPreflightDecision","description":"What the caller should do next. A closed set, never a free string."},"SocialPreflightRequest":{"properties":{"provider":{"$ref":"#/components/schemas/IdTokenProvider"},"id_token":{"type":"string","maxLength":8192,"minLength":1,"title":"Id Token"},"nonce":{"type":"string","maxLength":512,"minLength":16,"title":"Nonce"},"apple_authorization_code":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Apple Authorization Code"},"full_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Full Name"}},"additionalProperties":false,"type":"object","required":["provider","id_token","nonce"],"title":"SocialPreflightRequest","description":"A provider credential offered for checking, before Supabase ever sees it."},"SocialPreflightResponse":{"properties":{"decision":{"$ref":"#/components/schemas/SocialPreflightDecision"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"additionalProperties":false,"type":"object","required":["decision"],"title":"SocialPreflightResponse","description":"The answer. No email address, no user id, no provider list, ever."},"SocialSignInProvider":{"type":"string","enum":["apple","google","facebook"],"title":"SocialSignInProvider","description":"The three providers LIVEY may offer. Declaration order IS display order — Apple first."},"SortDirection":{"type":"string","enum":["asc","desc"],"title":"SortDirection","description":"Which way one column of an ordering runs."},"SourceScorecardLine":{"properties":{"slug":{"type":"string","title":"Slug"},"label":{"type":"string","title":"Label"},"yields_events":{"type":"boolean","title":"Yields Events"},"yields_venues":{"type":"boolean","title":"Yields Venues"},"covers_area":{"type":"boolean","title":"Covers Area"},"answer":{"$ref":"#/components/schemas/ScorecardAnswer"},"queries":{"type":"integer","title":"Queries"},"answered_results":{"type":"integer","title":"Answered Results"},"answered_zero":{"type":"integer","title":"Answered Zero"},"failed":{"type":"integer","title":"Failed"},"history_starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"History Starts At"},"last_queried_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Queried At"},"last_had_events_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Had Events At"},"last_failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Failed At"},"last_error_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Class"},"latest_events_returned":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Events Returned"},"latest_venues_returned":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Venues Returned"},"latest_feed_events_verified":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Feed Events Verified"},"latest_feed_events_unverified":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Feed Events Unverified"},"pages_proposed":{"type":"integer","title":"Pages Proposed","default":0},"page_events_verified":{"type":"integer","title":"Page Events Verified","default":0},"page_events_unverified":{"type":"integer","title":"Page Events Unverified","default":0},"verified_by_fingerprint":{"items":{"$ref":"#/components/schemas/FingerprintCountView"},"type":"array","title":"Verified By Fingerprint"},"gate_reject_approvals":{"type":"integer","title":"Gate Reject Approvals","default":0},"pages_unread":{"type":"integer","title":"Pages Unread","default":0}},"additionalProperties":false,"type":"object","required":["slug","label","yields_events","yields_venues","covers_area","answer","queries","answered_results","answered_zero","failed"],"title":"SourceScorecardLine","description":"One source in one ZIP. Per-source counts are never added into a ZIP total (Q-19-196)."},"SourceScorecardResponse":{"properties":{"zip":{"type":"string","title":"Zip"},"window_days":{"type":"integer","title":"Window Days"},"since":{"type":"string","format":"date-time","title":"Since"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"learned":{"type":"boolean","title":"Learned"},"sources":{"items":{"$ref":"#/components/schemas/SourceScorecardLine"},"type":"array","title":"Sources"},"not_covering":{"items":{"$ref":"#/components/schemas/SourceScorecardLine"},"type":"array","title":"Not Covering"}},"additionalProperties":false,"type":"object","required":["zip","window_days","since","generated_at","learned"],"title":"SourceScorecardResponse","description":"One ZIP's scorecard: the sources asked about it, and apart from them the sources never asked."},"SpaceLinkSkip":{"type":"string","enum":["venue_gone","already_linked","already_answered","capped","failed"],"title":"SpaceLinkSkip","description":"Why a pair was not queued."},"SpendRecordState":{"type":"string","enum":["recorded","none","too_young","unreadable"],"title":"SpendRecordState","description":"Why the shared AI has (or lacks) a figure from the spend record — three reasons it can be unknown."},"SpendTrendDay":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"basis":{"type":"string","enum":["derived","ledger"],"title":"Basis"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"by_workflow":{"additionalProperties":{"type":"number"},"type":"object","title":"By Workflow"},"by_vendor":{"additionalProperties":{"type":"number"},"type":"object","title":"By Vendor"},"excluded_usd":{"additionalProperties":{"type":"number"},"type":"object","title":"Excluded Usd"},"unpriced_calls":{"type":"integer","minimum":0.0,"title":"Unpriced Calls","default":0}},"type":"object","required":["day","basis","spend_usd"],"title":"SpendTrendDay","description":"One Eastern day's operating spend — cost per event's numerator for that day, to the cent. CLAUDE.md § cost_per_event.py."},"SpendTrendReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"today":{"type":"string","format":"date","title":"Today"},"timezone":{"type":"string","title":"Timezone"},"ledger_started_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ledger Started On"},"window_days":{"type":"integer","title":"Window Days"},"days":{"items":{"$ref":"#/components/schemas/SpendTrendDay"},"type":"array","title":"Days"},"releases":{"items":{"$ref":"#/components/schemas/ScraperRelease"},"type":"array","title":"Releases"}},"type":"object","required":["measured_at","today","timezone","window_days","days","releases"],"title":"SpendTrendReport","description":"Story 19.40 AC #12: every AI and data-query dollar per day, over a 30/60/90-day window."},"SplitRow":{"properties":{"label":{"type":"string","title":"Label"},"gate_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Fingerprint"},"jobs":{"type":"integer","minimum":0.0,"title":"Jobs"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"events_saved":{"type":"integer","minimum":0.0,"title":"Events Saved"},"events_verified":{"type":"integer","minimum":0.0,"title":"Events Verified"},"cost_per_scraped_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Scraped Event Usd"},"cost_per_verified_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Verified Event Usd"},"spend_per_job_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend Per Job Usd"}},"type":"object","required":["label","jobs","spend_usd","events_saved","events_verified"],"title":"SplitRow","description":"One configuration, area or strategy: its jobs, recorded spend and both per-event costs."},"SpotifyPhotoRead":{"properties":{"image_url":{"type":"string","title":"Image Url"},"artist_url":{"type":"string","title":"Artist Url"},"licence":{"$ref":"#/components/schemas/CoverImageLicence","default":"spotify_marks_required"},"attribution":{"type":"string","title":"Attribution","default":"Spotify"}},"type":"object","required":["image_url","artist_url"],"title":"SpotifyPhotoRead","description":"A Spotify artist photo, on the detail read for every client — draw the mark beside it (Q-19-032 (b))."},"StagedCoverImageRead":{"properties":{"cover_image_url":{"type":"string","title":"Cover Image Url"}},"type":"object","required":["cover_image_url"],"title":"StagedCoverImageRead","description":"The public URL of a staged cover image (no entity persisted)."},"StripeWebhookAck":{"properties":{"received":{"type":"boolean","title":"Received","default":true},"outcome":{"$ref":"#/components/schemas/WebhookOutcome"}},"additionalProperties":false,"type":"object","required":["outcome"],"title":"StripeWebhookAck","description":"The acknowledgement Stripe's retry logic reads as success."},"SubscriptionStatus":{"type":"string","enum":["active","past_due","canceled"],"title":"SubscriptionStatus","description":"`{venue,artist}_subscriptions.status` — exactly three, per ADR-0013 D-4."},"TagGroup":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"select_mode":{"type":"string","title":"Select Mode","default":"single"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["slug","label"],"title":"TagGroup","description":"An event tag group — one block of the client's Additional Tags column.\n\nFK   none — root vocabulary; referenced by event_tag_values.group_id ON DELETE RESTRICT."},"TagGroupCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"slug":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Slug"},"select_mode":{"type":"string","enum":["single","multi"],"title":"Select Mode","default":"single"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"additionalProperties":false,"type":"object","required":["label"],"title":"TagGroupCreateRequest","description":"Create one event tag group."},"TagGroupUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"select_mode":{"anyOf":[{"type":"string","enum":["single","multi"]},{"type":"null"}],"title":"Select Mode"}},"additionalProperties":false,"type":"object","title":"TagGroupUpdateRequest","description":"Rename, reorder, retire, restore, or change a group's select mode."},"TagGroupWithValues":{"properties":{"group":{"$ref":"#/components/schemas/TagGroup"},"values":{"items":{"$ref":"#/components/schemas/TagValue"},"type":"array","title":"Values"}},"additionalProperties":false,"type":"object","required":["group","values"],"title":"TagGroupWithValues","description":"One group and the ACTIVE values inside it.\n\n⚠️ A group may be MIXED — some values derived and some authored — and all\nfour groups that carry a derived value are. `TagValue.is_derived` is on the\nwire precisely so a picker can render those read-only rather than having to\nknow the list. Every group is offered for EVERY event: tags are orthogonal\nto category->genre and there is no category->tag mapping to consult."},"TagValue":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"group_id":{"type":"string","format":"uuid","title":"Group Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_derived":{"type":"boolean","title":"Is Derived","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["group_id","slug","label"],"title":"TagValue","description":"One value inside one group."},"TagValueCreateRequest":{"properties":{"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label"},"slug":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Slug"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"additionalProperties":false,"type":"object","required":["label"],"title":"TagValueCreateRequest","description":"Create one value inside one group."},"TagValueUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"TagValueUpdateRequest","description":"Rename, reorder, retire or restore one value."},"TaskModels":{"properties":{"task":{"type":"string","title":"Task"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"primary_model":{"type":"string","title":"Primary Model"},"fallback_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Model"}},"type":"object","required":["task","label","description","primary_model","fallback_model"],"title":"TaskModels","description":"One AI task and the chain it runs. Renamed from `gemini_model` / `groq_model` 2026-10-18 (Story 19.7)."},"TicketUrlCoverage":{"properties":{"events_total":{"type":"integer","title":"Events Total"},"plausibly_ticketed":{"type":"integer","title":"Plausibly Ticketed"},"explicitly_free":{"type":"integer","title":"Explicitly Free"},"cancelled":{"type":"integer","title":"Cancelled"},"ended":{"type":"integer","title":"Ended"},"with_ticket_url":{"type":"integer","title":"With Ticket Url"},"echoes_ticketing":{"type":"integer","title":"Echoes Ticketing"},"echoes_non_ticketing":{"type":"integer","title":"Echoes Non Ticketing"}},"type":"object","required":["events_total","plausibly_ticketed","explicitly_free","cancelled","ended","with_ticket_url","echoes_ticketing","echoes_non_ticketing"],"title":"TicketUrlCoverage","description":"`events.ticket_url` coverage, with its denominator stated on the payload."},"TokenUsageStat":{"properties":{"window":{"type":"integer","title":"Window"},"sample_count":{"type":"integer","title":"Sample Count"},"avg_prompt_tokens":{"type":"number","title":"Avg Prompt Tokens"},"avg_completion_tokens":{"type":"number","title":"Avg Completion Tokens"},"avg_total_tokens":{"type":"number","title":"Avg Total Tokens"}},"type":"object","required":["window","sample_count","avg_prompt_tokens","avg_completion_tokens","avg_total_tokens"],"title":"TokenUsageStat"},"TrendWindowDays":{"type":"integer","enum":[30,60,90],"title":"TrendWindowDays","description":"The closed set of trend windows."},"TrendingContentItem":{"properties":{"item_type":{"type":"string","enum":["event","artist"],"title":"Item Type"},"item_id":{"type":"string","title":"Item Id"},"label":{"type":"string","title":"Label"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"},"popularity_count":{"type":"integer","title":"Popularity Count"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"default_stock_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Stock Image Url"},"display_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Image Url"},"display_image_tier":{"anyOf":[{"$ref":"#/components/schemas/EventCoverImageTier"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["item_type","item_id","label","popularity_count"],"title":"TrendingContentItem"},"UnifiedScrapeResult":{"properties":{"success":{"type":"boolean","title":"Success"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"venue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Id"},"venue_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Action"},"saved":{"type":"integer","title":"Saved","default":0},"updated":{"type":"integer","title":"Updated","default":0},"skipped":{"type":"integer","title":"Skipped","default":0},"event_ids":{"items":{"type":"string"},"type":"array","title":"Event Ids","default":[]},"artists_created":{"type":"integer","title":"Artists Created","default":0},"artists_merged":{"type":"integer","title":"Artists Merged","default":0},"artist_ids":{"items":{"type":"string"},"type":"array","title":"Artist Ids","default":[]},"links_created":{"type":"integer","title":"Links Created","default":0},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"content_preview":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content Preview"}},"type":"object","required":["success"],"title":"UnifiedScrapeResult"},"UnplaceableVenueAddress":{"properties":{"submitted_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted Name"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"reason":{"type":"string","enum":["placeholder","place_name"],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["reason"],"title":"UnplaceableVenueAddress","description":"The address a person typed that FR-P2-0352 refuses before matching: a placeholder or a town's name."},"UpdateProfilePreferencesRequest":{"properties":{"preferred_genres":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preferred Genres"},"preferred_event_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preferred Event Types"},"budget_min":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Budget Min"},"budget_max":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Budget Max"},"max_distance_miles":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Distance Miles"},"mark_onboarding_complete":{"type":"boolean","title":"Mark Onboarding Complete","default":false},"theme_preference":{"anyOf":[{"type":"string","enum":["system","light","dark"]},{"type":"null"}],"title":"Theme Preference"}},"type":"object","title":"UpdateProfilePreferencesRequest"},"UpdateProfileResponse":{"properties":{"birthday_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Birthday Month"},"birthday_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Birthday Day"},"anniversary_month":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":1.0},{"type":"null"}],"title":"Anniversary Month"},"anniversary_day":{"anyOf":[{"type":"integer","maximum":31.0,"minimum":1.0},{"type":"null"}],"title":"Anniversary Day"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"home_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"email_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Opt In"},"sms_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Opt In"},"phone":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Phone"},"age_range":{"anyOf":[{"$ref":"#/components/schemas/AgeRange"},{"type":"null"}]},"marital_status":{"anyOf":[{"$ref":"#/components/schemas/MaritalStatus"},{"type":"null"}]}},"type":"object","title":"UpdateProfileResponse","description":"`PATCH /profiles/me`: only the fields sent change; a date's month and day travel together."},"UpdatePromptRequest":{"properties":{"tail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tail"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"UpdatePromptRequest"},"UrlCoverageReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"tickets":{"$ref":"#/components/schemas/TicketUrlCoverage"},"artists":{"$ref":"#/components/schemas/ArtistOfficialUrlCoverage"}},"type":"object","required":["measured_at","tickets","artists"],"title":"UrlCoverageReport","description":"Both fields, one observation, with the time it was taken.\n\n`measured_at` is not decoration: every figure here is a snapshot of live\ndata, and a coverage number quoted without its date is the failure mode this\nepic keeps correcting."},"UsageMetric":{"properties":{"label":{"type":"string","title":"Label"},"value":{"type":"number","title":"Value"},"unit":{"type":"string","title":"Unit","default":""},"limit":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Limit"},"pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pct"},"severity":{"type":"string","enum":["ok","warn","crit"],"title":"Severity","default":"ok"},"display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display"},"how":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"How"}},"type":"object","required":["label","value"],"title":"UsageMetric","description":"One measured quantity within a provider card."},"UserAccountSummary":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/UserRole"},"type":"array","title":"Roles"},"is_internal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Internal","description":"True when the account is LIVEY's own team or a tester, so analytics leaves it out. Authoritative only on /auth/me, /profiles/me and the admin People list and detail; null elsewhere."},"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"home_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"email_opt_in":{"type":"boolean","title":"Email Opt In","default":false},"sms_opt_in":{"type":"boolean","title":"Sms Opt In","default":false},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"age_range":{"anyOf":[{"$ref":"#/components/schemas/AgeRange"},{"type":"null"}]},"marital_status":{"anyOf":[{"$ref":"#/components/schemas/MaritalStatus"},{"type":"null"}]},"birthday_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birthday Month"},"birthday_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Birthday Day"},"anniversary_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Anniversary Month"},"anniversary_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Anniversary Day"},"preferred_genres":{"items":{"type":"string"},"type":"array","title":"Preferred Genres"},"preferred_event_types":{"items":{"type":"string"},"type":"array","title":"Preferred Event Types"},"budget_min":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Min"},"budget_max":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Max"},"max_distance_miles":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Distance Miles"},"onboarding_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Onboarding Completed At"},"theme_preference":{"type":"string","title":"Theme Preference","default":"system"},"venue_claim_intent":{"type":"boolean","title":"Venue Claim Intent","default":false},"artist_claim_intent":{"type":"boolean","title":"Artist Claim Intent","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["roles","id","created_at","updated_at"],"title":"UserAccountSummary","description":"The caller's own account row. See CLAUDE.md § account_summary.py."},"UserRole":{"type":"string","enum":["user","venue","artist","admin"],"title":"UserRole","description":"`profiles.role`. A real Postgres ENUM TYPE (`user_role`), not a CHECK array.\n\nDuplicated as `Literal[\"user\",\"venue\",\"artist\",\"admin\"]` in\nschemas/admin/users/{listing,role_change}.py until 2026-08-29."},"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"},"VenueAddressUnplaceableBody":{"properties":{"message":{"type":"string","title":"Message"},"request_id":{"type":"string","title":"Request Id"},"error":{"type":"string","const":"venue_address_unplaceable","title":"Error"},"address":{"$ref":"#/components/schemas/UnplaceableVenueAddress"}},"additionalProperties":false,"type":"object","required":["message","request_id","error","address"],"title":"VenueAddressUnplaceableBody","description":"The 422 a human venue create returns when its address cannot be placed."},"VenueClaimCreate":{"properties":{"claimant_role":{"type":"string","enum":["owner","manager","booking_agent"],"title":"Claimant Role"},"business_phone":{"type":"string","maxLength":200,"minLength":1,"title":"Business Phone"},"business_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Business Email"},"claimant_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Claimant Note"},"account_phone":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Account Phone"},"account_phone_overwrite":{"type":"boolean","title":"Account Phone Overwrite","default":false},"legal_business_name":{"title":"Legal Business Name"},"ein":{"title":"Ein"},"venue_id":{"type":"string","title":"Venue Id"}},"additionalProperties":false,"type":"object","required":["claimant_role","business_phone","venue_id"],"title":"VenueClaimCreate","description":"A claim of an existing venue: the target, plus the evidence every path collects."},"VenueCoverageReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"venues_total":{"type":"integer","title":"Venues Total","default":0},"fields":{"items":{"$ref":"#/components/schemas/VenueFieldCoverage"},"type":"array","title":"Fields"},"geo":{"$ref":"#/components/schemas/VenueGeoCoverage"},"website_echoes_source_url":{"type":"integer","title":"Website Echoes Source Url","default":0},"capacity_below_plausible_floor":{"type":"integer","title":"Capacity Below Plausible Floor","default":0}},"type":"object","required":["measured_at"],"title":"VenueCoverageReport","description":"One snapshot of venue-field coverage, with the time it was taken."},"VenueFieldCoverage":{"properties":{"field":{"type":"string","title":"Field"},"populated":{"type":"integer","title":"Populated","default":0}},"type":"object","required":["field"],"title":"VenueFieldCoverage","description":"One column's populated count, over the whole venue catalog."},"VenueFollowCreate":{"properties":{"venue_id":{"type":"string","title":"Venue Id"}},"type":"object","required":["venue_id"],"title":"VenueFollowCreate"},"VenueFollowRead":{"properties":{"venue_id":{"type":"string","title":"Venue Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"venue_name":{"type":"string","title":"Venue Name"}},"type":"object","required":["venue_id","created_at","venue_name"],"title":"VenueFollowRead"},"VenueGeoCoverage":{"properties":{"populated":{"type":"integer","title":"Populated","default":0},"ungraded":{"type":"integer","title":"Ungraded","default":0},"pinnable":{"type":"integer","title":"Pinnable","default":0},"trustworthy_for_matching":{"type":"integer","title":"Trustworthy For Matching","default":0},"by_precision":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Precision"}},"type":"object","title":"VenueGeoCoverage","description":"The coordinate, told honestly.\n\n`populated` alone is the number that misleads; the other three are what make\nit interpretable."},"VenueMatch":{"properties":{"submission_id":{"type":"string","title":"Submission Id"},"submitted_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted Name"},"candidates":{"items":{"$ref":"#/components/schemas/VenueMatchCandidate"},"type":"array","title":"Candidates"},"recommended_venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recommended Venue Id"},"default_choice":{"$ref":"#/components/schemas/VenueMatchChoice","default":"create_anyway"},"reason":{"type":"string","title":"Reason","default":""}},"additionalProperties":false,"type":"object","required":["submission_id"],"title":"VenueMatch","description":"What a person is shown instead of a new venue. `submission_id` is carried back by the choice."},"VenueMatchCandidate":{"properties":{"venue_id":{"type":"string","format":"uuid","title":"Venue Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"why":{"items":{"type":"string"},"type":"array","title":"Why"},"recommended":{"type":"boolean","title":"Recommended","default":false}},"additionalProperties":false,"type":"object","required":["venue_id"],"title":"VenueMatchCandidate","description":"One existing venue the person's venue resolved to, with why it matched."},"VenueMatchChoice":{"type":"string","enum":["use_existing","create_anyway"],"title":"VenueMatchChoice","description":"The two answers the Decision offers the person."},"VenueMatchDecision":{"properties":{"submission_id":{"type":"string","maxLength":200,"minLength":1,"title":"Submission Id"},"choice":{"$ref":"#/components/schemas/VenueMatchChoice"},"venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Venue Id"}},"additionalProperties":false,"type":"object","required":["submission_id","choice"],"title":"VenueMatchDecision","description":"The person's answer to a `VenueMatch`. `venue_id` is required for `use_existing` only."},"VenueMatchFoundBody":{"properties":{"message":{"type":"string","title":"Message"},"request_id":{"type":"string","title":"Request Id"},"error":{"type":"string","const":"venue_match_found","title":"Error"},"match":{"$ref":"#/components/schemas/VenueMatch"}},"additionalProperties":false,"type":"object","required":["message","request_id","error","match"],"title":"VenueMatchFoundBody","description":"The 409 a human venue create returns when the venue may already exist."},"VenueMergeChildPlan":{"properties":{"table":{"type":"string","title":"Table"},"column":{"type":"string","title":"Column"},"reference":{"type":"string","title":"Reference"},"on_delete":{"type":"string","title":"On Delete","default":""},"disposition":{"type":"string","title":"Disposition"},"rows":{"type":"integer","title":"Rows","default":0},"rationale":{"type":"string","title":"Rationale","default":""}},"type":"object","required":["table","column","reference","disposition"],"title":"VenueMergeChildPlan","description":"One child table of `venues`, and what the merge would do with it."},"VenueMergeDryRunRequest":{"properties":{"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"field_overrides":{"additionalProperties":true,"type":"object","title":"Field Overrides"}},"type":"object","required":["survivor_id","victim_id"],"title":"VenueMergeDryRunRequest","description":"Which two venues, and which field overrides would be applied."},"VenueMergeDryRunResult":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"merged_fields":{"items":{"type":"string"},"type":"array","title":"Merged Fields"},"ignored_overrides":{"items":{"type":"string"},"type":"array","title":"Ignored Overrides"},"children":{"items":{"$ref":"#/components/schemas/VenueMergeChildPlan"},"type":"array","title":"Children"},"guards_would_refuse":{"items":{"type":"string"},"type":"array","title":"Guards Would Refuse"},"owner_action":{"type":"string","title":"Owner Action","default":"none"},"deleted_victim":{"type":"boolean","title":"Deleted Victim","default":false},"main_venue_takeover":{"anyOf":[{"$ref":"#/components/schemas/LinkedVenueRead"},{"type":"null"}]}},"type":"object","required":["survivor_id","victim_id"],"title":"VenueMergeDryRunResult","description":"The plan. Nothing was written to produce it."},"VenueMergeRestoreChildReport":{"properties":{"disposition":{"type":"string","title":"Disposition","default":""},"expected":{"type":"integer","title":"Expected","default":0},"restored":{"type":"integer","title":"Restored","default":0},"cleared":{"type":"integer","title":"Cleared","default":0},"not_restored":{"type":"integer","title":"Not Restored","default":0},"minted_alias_removed":{"type":"integer","title":"Minted Alias Removed","default":0},"copied_removed":{"type":"integer","title":"Copied Removed","default":0},"folded_recreated":{"type":"integer","title":"Folded Recreated","default":0},"fold_history_cleared":{"type":"integer","title":"Fold History Cleared","default":0},"reopened":{"type":"integer","title":"Reopened","default":0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"survivor_made_a_space_again":{"type":"integer","title":"Survivor Made A Space Again","default":0},"main_venue_restored":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Main Venue Restored"},"main_venue_takeover_undone":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Main Venue Takeover Undone"}},"type":"object","title":"VenueMergeRestoreChildReport","description":"Per child table, what the restore put back and what it could not. See CLAUDE.md § venue_merge_dry_run.py."},"VenueMergeRestoreResult":{"properties":{"snapshot_id":{"type":"string","format":"uuid","title":"Snapshot Id"},"victim_id":{"type":"string","format":"uuid","title":"Victim Id"},"survivor_id":{"type":"string","format":"uuid","title":"Survivor Id"},"restored":{"type":"boolean","title":"Restored","default":true},"children":{"additionalProperties":{"$ref":"#/components/schemas/VenueMergeRestoreChildReport"},"type":"object","title":"Children"}},"type":"object","required":["snapshot_id","victim_id","survivor_id"],"title":"VenueMergeRestoreResult"},"VenueNameTakenBody":{"properties":{"message":{"type":"string","title":"Message"},"request_id":{"type":"string","title":"Request Id"},"error":{"type":"string","const":"venue_name_taken","title":"Error"},"venue":{"$ref":"#/components/schemas/SameNamedVenue"}},"additionalProperties":false,"type":"object","required":["message","request_id","error","venue"],"title":"VenueNameTakenBody","description":"The 409 a human venue create returns when another venue already holds the name."},"VenuePinRead":{"properties":{"venue_id":{"type":"string","format":"uuid","title":"Venue Id"},"lat":{"type":"number","title":"Lat"},"lng":{"type":"number","title":"Lng"},"precision":{"type":"string","title":"Precision"}},"additionalProperties":false,"type":"object","required":["venue_id","lat","lng","precision"],"title":"VenuePinRead","description":"One venue's map point, served only when its grade may be a pin."},"VenueProfileCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Description"},"address_line":{"type":"string","maxLength":300,"minLength":1,"title":"Address Line"},"city":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"State"},"zip_code":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip Code"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"}},"additionalProperties":false,"type":"object","required":["name","address_line","zip_code"],"title":"VenueProfileCreate","description":"What an owner submits to claim/create a venue."},"VenueProfileRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"},"cover_image_licence":{"anyOf":[{"$ref":"#/components/schemas/CoverImageLicence"},{"type":"null"}]},"cover_image_credit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Credit"},"cover_image_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Source Url"},"founding_business":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Founding Business"},"gallery_images":{"items":{"$ref":"#/components/schemas/GalleryPhotoRead"},"type":"array","title":"Gallery Images"},"main_venue":{"anyOf":[{"$ref":"#/components/schemas/LinkedVenueRead"},{"type":"null"}]},"spaces":{"items":{"$ref":"#/components/schemas/LinkedVenueRead"},"type":"array","title":"Spaces"},"address_from_main_venue":{"type":"boolean","title":"Address From Main Venue","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"gallery_image_urls":{"items":{"type":"string"},"type":"array","title":"Gallery Image Urls","description":"DERIVED from `gallery_images` — a stored second copy would drift. See CLAUDE.md § read.py.","readOnly":true}},"additionalProperties":false,"type":"object","required":["id","name","gallery_image_urls"],"title":"VenueProfileRead","description":"A venue as the API publishes it."},"VenueProfileUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":3000},{"type":"null"}],"title":"Description"},"address_line":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Address Line"},"city":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"State"},"zip_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}$"},{"type":"null"}],"title":"Zip Code"},"cover_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Image Url"}},"additionalProperties":false,"type":"object","title":"VenueProfileUpdate","description":"Partial venue update. All fields optional."},"VenueResolution":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"link_to_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link To Id"},"create":{"anyOf":[{"$ref":"#/components/schemas/AdminVenueCreate"},{"type":"null"}]},"match":{"anyOf":[{"$ref":"#/components/schemas/VenueMatchDecision"},{"type":"null"}]}},"type":"object","required":["name"],"title":"VenueResolution"},"VenueRevalidationCadence":{"properties":{"cron_schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cron Schedule"},"tick_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tick Hours"},"source":{"type":"string","title":"Source","default":"apps/api/railway.quality-scheduler.json"},"editable":{"type":"boolean","title":"Editable","default":false},"note":{"type":"string","title":"Note","default":"The schedule is service configuration with exactly one home and no companion environment variable. Effective frequency is the COARSER of the cron tick and the re-validation interval — the tick is a hard floor, so an interval below it is silently coarsened."}},"type":"object","title":"VenueRevalidationCadence","description":"Deployment configuration, shown read-only. Sourced from its ONE home."},"VenueRevalidationListResponse":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/VenueRevalidationRow"},"type":"array","title":"Rows"},"total":{"type":"integer","title":"Total","default":0},"disabled_count":{"type":"integer","title":"Disabled Count","default":0},"overdue_count":{"type":"integer","title":"Overdue Count","default":0},"filtered_total":{"type":"integer","title":"Filtered Total","default":0},"sweep_enabled":{"type":"boolean","title":"Sweep Enabled","default":false},"max_per_run":{"type":"integer","title":"Max Per Run","default":0}},"type":"object","title":"VenueRevalidationListResponse"},"VenueRevalidationPatch":{"properties":{"disabled":{"type":"boolean","title":"Disabled"}},"additionalProperties":false,"type":"object","required":["disabled"],"title":"VenueRevalidationPatch","description":"Turn one venue's re-validation on or off."},"VenueRevalidationRow":{"properties":{"venue_id":{"type":"string","format":"uuid","title":"Venue Id"},"venue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue Name"},"source_id":{"type":"string","format":"uuid","title":"Source Id"},"disabled":{"type":"boolean","title":"Disabled","default":false},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"last_outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Outcome"},"last_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Detail"},"next_due_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Due At"}},"type":"object","required":["venue_id","source_id"],"title":"VenueRevalidationRow","description":"One venue's re-validation state, as the admin list renders it."},"VenueRevalidationSettingsPatch":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"interval_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Interval Days"},"max_per_run":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Max Per Run"}},"additionalProperties":false,"type":"object","title":"VenueRevalidationSettingsPatch","description":"Sparse update. Unknown fields are REFUSED, not ignored."},"VenueRevalidationSettingsResponse":{"properties":{"settings":{"$ref":"#/components/schemas/VenueRevalidationSettingsValues"},"effective":{"$ref":"#/components/schemas/VenueRevalidationSettingsValues"},"environment_notes":{"items":{"type":"string"},"type":"array","title":"Environment Notes"},"cadence":{"$ref":"#/components/schemas/VenueRevalidationCadence"},"enrolled_total":{"type":"integer","title":"Enrolled Total","default":0},"paused_count":{"type":"integer","title":"Paused Count","default":0},"restamped_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Restamped Rows"}},"type":"object","required":["settings","effective"],"title":"VenueRevalidationSettingsResponse","description":"The stored configuration, what it actually resolves to, and why."},"VenueRevalidationSettingsValues":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"interval_days":{"type":"integer","title":"Interval Days"},"max_per_run":{"type":"integer","title":"Max Per Run"}},"type":"object","required":["enabled","interval_days","max_per_run"],"title":"VenueRevalidationSettingsValues","description":"The three stored, editable values."},"VenueSearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VenueProfileRead"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total":{"type":"integer","title":"Total"}},"additionalProperties":false,"type":"object","required":["items","page","limit","total"],"title":"VenueSearchResponse","description":"One page of venue search results."},"VenueSpaceLinkQueueRequest":{"properties":{"subject_venue_id":{"type":"string","format":"uuid","title":"Subject Venue Id"},"counterpart_venue_id":{"type":"string","format":"uuid","title":"Counterpart Venue Id"},"guess":{"anyOf":[{"type":"string","enum":["space","reverse"]},{"type":"null"}],"title":"Guess"},"labels":{"items":{"$ref":"#/components/schemas/LabelDeskLabel"},"type":"array","maxItems":50,"title":"Labels"},"hub_item_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Hub Item Id"}},"additionalProperties":false,"type":"object","required":["subject_venue_id","counterpart_venue_id"],"title":"VenueSpaceLinkQueueRequest","description":"Queue \"is the subject one of the counterpart's spaces?\" for the label desk."},"VenueSpaceLinkQueueResult":{"properties":{"queued":{"type":"boolean","title":"Queued"},"item_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Item Id"},"skipped":{"anyOf":[{"$ref":"#/components/schemas/SpaceLinkSkip"},{"type":"null"}]},"subject_main_venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subject Main Venue Id"},"counterpart_main_venue_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Counterpart Main Venue Id"}},"additionalProperties":false,"type":"object","required":["queued"],"title":"VenueSpaceLinkQueueResult","description":"Whether the question was queued (or an open one raised), its item, or why nothing was."},"VenueTag":{"properties":{"venue_id":{"type":"string","format":"uuid","title":"Venue Id"},"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"source":{"type":"string","title":"Source"},"confidence":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"},"single_group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Single Group Id"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"}},"additionalProperties":false,"type":"object","required":["venue_id","tag_value_id","source"],"title":"VenueTag","description":"One venue-to-value assignment."},"VenueTagAssignmentRequest":{"properties":{"tag_value_id":{"type":"string","format":"uuid","title":"Tag Value Id"},"source":{"type":"string","enum":["admin","owner"],"title":"Source","default":"admin"},"confidence":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Confidence"}},"additionalProperties":false,"type":"object","required":["tag_value_id"],"title":"VenueTagAssignmentRequest","description":"Attach one existing value to one venue."},"VenueTagGroup":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"select_mode":{"type":"string","title":"Select Mode","default":"single"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["slug","label"],"title":"VenueTagGroup","description":"A venue tag group — one column of the client's \"GOOD TO KNOW:\" block."},"VenueTagGroupCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"slug":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Slug"},"select_mode":{"type":"string","enum":["single","multi"],"title":"Select Mode","default":"single"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"additionalProperties":false,"type":"object","required":["label"],"title":"VenueTagGroupCreateRequest","description":"Create one venue tag group."},"VenueTagGroupUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"select_mode":{"anyOf":[{"type":"string","enum":["single","multi"]},{"type":"null"}],"title":"Select Mode"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"VenueTagGroupUpdateRequest","description":"Rename, reorder, retire/restore, or change a group's select mode.\n\nEvery field is optional; the route rejects an effectively-empty body with a\n422 BEFORE any Supabase call (PostgREST errors on `.update({})`)."},"VenueTagGroupWithValues":{"properties":{"group":{"$ref":"#/components/schemas/VenueTagGroup"},"values":{"items":{"$ref":"#/components/schemas/VenueTagValue"},"type":"array","title":"Values"}},"additionalProperties":false,"type":"object","required":["group","values"],"title":"VenueTagGroupWithValues","description":"One group and the ACTIVE values inside it.\n\n⚠️ `restaurant-category` carries 186 values, and that is the client's list\nseeded whole by decision (ADR-0004 §D31 ③). The payload is NOT trimmed to\nmake a picker comfortable — the answer to the UX cost is a SEARCHABLE PICKER\non the surface, required by §D31 ③ \"on the admin surface AND on any\nuser-facing filter\". A `<select>` with 186 options is unusable on desktop\nand hostile on mobile; truncating the API would just move the defect."},"VenueTagValue":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"group_id":{"type":"string","format":"uuid","title":"Group Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["group_id","slug","label"],"title":"VenueTagValue","description":"One venue tag value, scoped to its group."},"VenueTagValueCreateRequest":{"properties":{"group_id":{"type":"string","format":"uuid","title":"Group Id"},"label":{"type":"string","maxLength":200,"minLength":1,"title":"Label"},"slug":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Slug"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"additionalProperties":false,"type":"object","required":["group_id","label"],"title":"VenueTagValueCreateRequest","description":"Create one value under a group."},"VenueTagValueUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"VenueTagValueUpdateRequest","description":"Rename, reorder, retire or restore one value."},"VenueTagVocabularyResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/VenueTagGroupWithValues"},"type":"array","title":"Groups"}},"additionalProperties":false,"type":"object","required":["groups"],"title":"VenueTagVocabularyResponse","description":"The whole active venue-tag vocabulary, groups in `sort_order`.\n\nRetired groups and retired values are ABSENT — this is the offerable\nvocabulary. A venue that carries a retired value still reports it on the\nvenue's own tag read; the two questions are different and are answered by\ndifferent endpoints on purpose."},"VenueType":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"slug":{"type":"string","minLength":1,"title":"Slug"},"label":{"type":"string","minLength":1,"title":"Label"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_provisional":{"type":"boolean","title":"Is Provisional","default":true},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["slug","label"],"title":"VenueType","description":"One venue type in the client-ratified vocabulary."},"VenueTypeCreateRequest":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_provisional":{"type":"boolean","title":"Is Provisional","default":true}},"additionalProperties":false,"type":"object","required":["label"],"title":"VenueTypeCreateRequest","description":"Create one venue type. The slug is derived server-side from the label."},"VenueTypeUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_provisional":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Provisional"}},"additionalProperties":false,"type":"object","title":"VenueTypeUpdateRequest","description":"Rename / reorder / retire / restore / ratify one venue type."},"VenueVenueType":{"properties":{"venue_id":{"type":"string","format":"uuid","title":"Venue Id"},"venue_type_id":{"type":"string","format":"uuid","title":"Venue Type Id"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"}},"additionalProperties":false,"type":"object","required":["venue_id","venue_type_id"],"title":"VenueVenueType","description":"One (venue, venue type) assignment."},"VerifiedCostSegment":{"properties":{"gate_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gate Fingerprint"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"jobs":{"type":"integer","minimum":0.0,"title":"Jobs"},"spend_usd":{"type":"number","minimum":0.0,"title":"Spend Usd"},"verified_events":{"type":"integer","minimum":0.0,"title":"Verified Events"},"cost_per_verified_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Verified Event Usd"},"unpriced_calls":{"type":"integer","title":"Unpriced Calls","default":0},"estimated_calls":{"type":"integer","title":"Estimated Calls","default":0}},"type":"object","required":["gate_fingerprint","start","end","jobs","spend_usd","verified_events"],"title":"VerifiedCostSegment","description":"AC #11's ONE function: recorded scrape spend ÷ events those jobs created that passed this gate fingerprint."},"VersionChange":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"at":{"type":"string","format":"date-time","title":"At"},"value":{"type":"string","title":"Value"},"previous":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous"},"text":{"type":"string","title":"Text"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["day","at","value","text","detail"],"title":"VersionChange","description":"A day a new version (value of the dimension) first ran — one marker on a trend's time axis."},"VersionChangesReport":{"properties":{"window_days":{"type":"integer","title":"Window Days"},"dimension":{"$ref":"#/components/schemas/VersionDimension"},"changes":{"items":{"$ref":"#/components/schemas/VersionChange"},"type":"array","title":"Changes"}},"type":"object","required":["window_days","dimension"],"title":"VersionChangesReport","description":"`GET /admin/quality/scraper-versions/changes` — only the markers, for any trend window (0 = all time)."},"VersionComparison":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"window_days":{"type":"integer","title":"Window Days"},"dimension":{"$ref":"#/components/schemas/VersionDimension"},"a":{"$ref":"#/components/schemas/VersionSummary"},"b":{"$ref":"#/components/schemas/VersionSummary"},"deltas":{"items":{"$ref":"#/components/schemas/VersionDelta"},"type":"array","title":"Deltas"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"},"definitions":{"$ref":"#/components/schemas/VersionDefinitions"}},"type":"object","required":["measured_at","window_days","dimension","a","b","definitions"],"title":"VersionComparison","description":"`GET /admin/quality/scraper-versions/compare` — any two versions side by side."},"VersionDefinitions":{"properties":{"failure_rate":{"type":"string","title":"Failure Rate"},"events_per_job":{"type":"string","title":"Events Per Job"},"cost_per_verified_event":{"type":"string","title":"Cost Per Verified Event"},"accuracy":{"type":"string","title":"Accuracy"}},"type":"object","required":["failure_rate","events_per_job","cost_per_verified_event","accuracy"],"title":"VersionDefinitions","description":"Each figure's arithmetic, stated once and carried to the surface."},"VersionDelta":{"properties":{"metric":{"type":"string","title":"Metric"},"label":{"type":"string","title":"Label"},"a":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"A"},"b":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"B"},"change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Change"},"lower_is_better":{"type":"boolean","title":"Lower Is Better"}},"type":"object","required":["metric","label","lower_is_better"],"title":"VersionDelta","description":"One figure before (A) and after (B); `change` is B − A, None when either side has no figure."},"VersionDimension":{"type":"string","enum":["version","release","extraction","configuration","prompts"],"title":"VersionDimension","description":"What \"a version\" means for a split: the whole record, or one facet of it."},"VersionRecordView":{"properties":{"key":{"type":"string","title":"Key"},"recorded":{"type":"boolean","title":"Recorded"},"release_api":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Api"},"release_commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release Commit"},"extraction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extraction"},"config_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Fingerprint"},"prompt_set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Set"},"strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Strategy"},"nodes":{"additionalProperties":{"$ref":"#/components/schemas/NodeVersionView"},"type":"object","title":"Nodes"},"switches":{"additionalProperties":{"type":"string"},"type":"object","title":"Switches"},"first_ran_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Ran At"},"last_ran_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Ran At"}},"type":"object","required":["key","recorded"],"title":"VersionRecordView","description":"One version record read back; an older job's has only the facets it recorded (`recorded` false)."},"VersionReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"today":{"type":"string","format":"date","title":"Today"},"timezone":{"type":"string","title":"Timezone"},"window_days":{"type":"integer","title":"Window Days"},"dimension":{"$ref":"#/components/schemas/VersionDimension"},"versions":{"items":{"$ref":"#/components/schemas/VersionSummary"},"type":"array","title":"Versions"},"changes":{"items":{"$ref":"#/components/schemas/VersionChange"},"type":"array","title":"Changes"},"definitions":{"$ref":"#/components/schemas/VersionDefinitions"},"record_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Record Started At"}},"type":"object","required":["measured_at","today","timezone","window_days","dimension","definitions"],"title":"VersionReport","description":"`GET /admin/quality/scraper-versions` — the version split of one window."},"VersionSummary":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"},"first_ran_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Ran At"},"last_ran_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Ran At"},"jobs":{"type":"integer","minimum":0.0,"title":"Jobs"},"completed":{"type":"integer","minimum":0.0,"title":"Completed"},"failed":{"type":"integer","minimum":0.0,"title":"Failed"},"never_read":{"type":"integer","minimum":0.0,"title":"Never Read"},"failure_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Failure Rate"},"events_saved":{"type":"integer","minimum":0.0,"title":"Events Saved"},"events_per_job":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Events Per Job"},"events_created":{"type":"integer","minimum":0.0,"title":"Events Created"},"events_verified":{"type":"integer","minimum":0.0,"title":"Events Verified"},"spend_recorded_jobs":{"type":"integer","minimum":0.0,"title":"Spend Recorded Jobs"},"spend_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spend Usd"},"verified_in_record":{"type":"integer","minimum":0.0,"title":"Verified In Record","default":0},"cost_per_verified_event_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cost Per Verified Event Usd"},"unpriced_calls":{"type":"integer","minimum":0.0,"title":"Unpriced Calls","default":0},"gate_fingerprints":{"items":{"type":"string"},"type":"array","title":"Gate Fingerprints"},"accuracy_f1":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Accuracy F1"},"accuracy_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accuracy Source"},"records":{"items":{"$ref":"#/components/schemas/VersionRecordView"},"type":"array","title":"Records"}},"type":"object","required":["value","label","jobs","completed","failed","never_read","events_saved","events_created","events_verified","spend_recorded_jobs"],"title":"VersionSummary","description":"What one version (one value of the dimension) did over the window."},"WebhookOutcome":{"type":"string","enum":["processed","duplicate","ignored","dropped","stale"],"title":"WebhookOutcome","description":"What one delivery amounted to. Every value is a 2xx. See CLAUDE.md."},"WebsiteHealthControl":{"properties":{"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"protects":{"type":"string","title":"Protects"}},"type":"object","required":["name","value","protects"],"title":"WebsiteHealthControl","description":"One safety control, shown read-only with the one line on what it protects against."},"WithdrawnClaim":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["venue","artist"],"title":"Kind"},"status":{"type":"string","title":"Status"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["id","kind","status"],"title":"WithdrawnClaim","description":"The withdrawn claim's new state. See CLAUDE.md § withdrawn_claim.py."},"WithdrawnWebsite":{"properties":{"url":{"type":"string","title":"Url"},"reason":{"type":"string","enum":["verified","names_venue","names_place","foreign","unreadable"],"title":"Reason"},"replaced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replaced By"},"can_revert":{"type":"boolean","title":"Can Revert","default":false},"reverted":{"type":"boolean","title":"Reverted","default":false}},"type":"object","required":["url","reason"],"title":"WithdrawnWebsite","description":"Story 19.34 — a website the stale-website step took off the public page, and why. See CLAUDE.md § AdminVenueDetailRead."},"WorkerStartRequest":{"properties":{"max_jobs":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Jobs"}},"type":"object","title":"WorkerStartRequest"},"WorkerStartResponse":{"properties":{"started":{"type":"boolean","title":"Started"},"is_running":{"type":"boolean","title":"Is Running"},"max_jobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Jobs"}},"type":"object","required":["started","is_running"],"title":"WorkerStartResponse"},"WorkerStatusResponse":{"properties":{"is_running":{"type":"boolean","title":"Is Running"},"jobs_processed":{"type":"integer","title":"Jobs Processed"},"max_jobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Jobs"},"current_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Url"},"worker_enabled":{"type":"boolean","title":"Worker Enabled","default":true},"ai_rate_limited":{"items":{"$ref":"#/components/schemas/AiProviderStandDown"},"type":"array","title":"Ai Rate Limited"}},"type":"object","required":["is_running","jobs_processed"],"title":"WorkerStatusResponse"},"WorkflowVersions":{"properties":{"discovery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discovery"},"extraction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extraction"},"entity_resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Resolution"},"write_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Write Path"},"normalizer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalizer"},"address_verification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Verification"}},"additionalProperties":false,"type":"object","title":"WorkflowVersions","description":"Which workflow versions produced one scrape job's result. See CLAUDE.md § workflow_versions.py."},"ZipAreaAlertRequest":{"properties":{"zip":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"}},"type":"object","required":["zip"],"title":"ZipAreaAlertRequest","description":"Opt-in body. NO user_id — the route stamps it from the verified context."},"ZipAreaAlertResponse":{"properties":{"zip":{"type":"string","title":"Zip"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["zip","created_at"],"title":"ZipAreaAlertResponse","description":"The persisted opt-in row echoed back to the client (201)."},"ZipCostReport":{"properties":{"measured_at":{"type":"string","format":"date-time","title":"Measured At"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"window_end":{"type":"string","format":"date-time","title":"Window End"},"window_days":{"type":"integer","title":"Window Days"},"month_days":{"type":"integer","title":"Month Days"},"active_zips":{"type":"integer","minimum":0.0,"title":"Active Zips"},"zips":{"items":{"$ref":"#/components/schemas/ZipCostRow"},"type":"array","title":"Zips"},"shared":{"$ref":"#/components/schemas/SharedCost"},"own_ai_usd_per_month":{"type":"number","minimum":0.0,"title":"Own Ai Usd Per Month"},"total_usd_per_month":{"type":"number","minimum":0.0,"title":"Total Usd Per Month"},"new_zip":{"$ref":"#/components/schemas/NewZipEstimate"},"pricing_note":{"type":"string","title":"Pricing Note"}},"type":"object","required":["measured_at","window_start","window_end","window_days","month_days","active_zips","zips","shared","own_ai_usd_per_month","total_usd_per_month","new_zip","pricing_note"],"title":"ZipCostReport","description":"Everything the admin \"Cost per ZIP per month\" card draws."},"ZipCostRow":{"properties":{"zip":{"type":"string","title":"Zip"},"enabled":{"type":"boolean","title":"Enabled"},"listed":{"type":"boolean","title":"Listed"},"jobs":{"type":"integer","minimum":0.0,"title":"Jobs"},"own_ai_usd_per_month":{"type":"number","minimum":0.0,"title":"Own Ai Usd Per Month"},"shared_share_usd_per_month":{"type":"number","minimum":0.0,"title":"Shared Share Usd Per Month"},"total_usd_per_month":{"type":"number","minimum":0.0,"title":"Total Usd Per Month"},"unpriced_jobs":{"type":"integer","minimum":0.0,"title":"Unpriced Jobs"},"unrecorded_jobs":{"type":"integer","minimum":0.0,"title":"Unrecorded Jobs"},"own_ai_complete":{"type":"boolean","title":"Own Ai Complete"},"complete":{"type":"boolean","title":"Complete"}},"type":"object","required":["zip","enabled","listed","jobs","own_ai_usd_per_month","shared_share_usd_per_month","total_usd_per_month","unpriced_jobs","unrecorded_jobs","own_ai_complete","complete"],"title":"ZipCostRow","description":"One ZIP. `shared_share_usd_per_month` is 0 for a ZIP that is not active — only active ZIPs carry the shared spend."},"ZipCoverageReason":{"type":"string","enum":["eligible","switched_off","covered","disabled","inside_coverage","unknown_zip","already_requested","daily_limit","requests_paused"],"title":"ZipCoverageReason","description":"Why a ZIP may or may not be asked for. The claim RPC answers in the same words."},"ZipCoverageStatus":{"properties":{"zip":{"type":"string","title":"Zip"},"enabled":{"type":"boolean","title":"Enabled"},"eligible":{"type":"boolean","title":"Eligible"},"reason":{"$ref":"#/components/schemas/ZipCoverageReason"},"requests_left_today":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Left Today"},"requests_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Per Day"},"progress":{"anyOf":[{"$ref":"#/components/schemas/ZipRequestProgress"},{"type":"null"}]}},"type":"object","required":["zip","enabled","eligible","reason"],"title":"ZipCoverageStatus","description":"`GET /zip-coverage/{zip}` and the POST's answer: render the control only when `enabled and eligible`."},"ZipLookupOutcome":{"type":"string","enum":["resolved","not_found"],"title":"ZipLookupOutcome","description":"Outcome classes for the forward ZIP→place lookup (BUG-068)."},"ZipPlaceResult":{"properties":{"outcome":{"$ref":"#/components/schemas/ZipLookupOutcome"},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},"type":"object","required":["outcome"],"title":"ZipPlaceResult","description":"Forward ZIP→place lookup result (BUG-068, onboarding confirmation)."},"ZipRequestCounts":{"properties":{"waiting":{"type":"integer","title":"Waiting","default":0},"added":{"type":"integer","title":"Added","default":0},"not_now":{"type":"integer","title":"Not Now","default":0}},"type":"object","title":"ZipRequestCounts","description":"How many requested ZIPs sit in each tab."},"ZipRequestDecision":{"properties":{"zip":{"type":"string","title":"Zip"},"request_state":{"$ref":"#/components/schemas/ZipRequestState"},"radius_miles":{"type":"integer","title":"Radius Miles"},"scrape_interval_hours":{"type":"integer","title":"Scrape Interval Hours"},"requester_count":{"type":"integer","title":"Requester Count"}},"type":"object","required":["zip","request_state","radius_miles","scrape_interval_hours","requester_count"],"title":"ZipRequestDecision","description":"`POST /admin/zip-requests/{zip}/add` and `/not-now` — the ZIP's new state and its search settings."},"ZipRequestProgress":{"properties":{"state":{"$ref":"#/components/schemas/ZipRequestProgressState"},"requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requested At"},"added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Added At"},"current_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"events_found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Events Found"},"venues_found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Venues Found"},"pages_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pages Left"},"searches_paused":{"type":"boolean","title":"Searches Paused","default":false}},"type":"object","required":["state"],"title":"ZipRequestProgress","description":"The first run after an admin added the ZIP; `pages_left` is that run's still-open scrape jobs, None = unknown."},"ZipRequestProgressState":{"type":"string","enum":["waiting","running","finished","failed"],"title":"ZipRequestProgressState","description":"Where an added ZIP's first run is: queued for the next hourly tick, running, or done."},"ZipRequestRequester":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"home_zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Zip"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"}},"type":"object","required":["user_id","requested_at"],"title":"ZipRequestRequester","description":"One account that asked LIVEY to cover the ZIP; the email is the auth account's, as the People page reads it."},"ZipRequestState":{"type":"string","enum":["waiting","added","not_now"],"title":"ZipRequestState","description":"The tab a request sits in; the row stores `pending` / `added` / `declined` (`ZipRequestRowState`)."},"ZipResolutionOutcome":{"type":"string","enum":["resolved","no_nearby_zip"],"title":"ZipResolutionOutcome","description":"Service-level result classes the router maps to HTTP status codes."},"ZipResolutionResult":{"properties":{"outcome":{"$ref":"#/components/schemas/ZipResolutionOutcome"},"zip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"distance_miles":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance Miles"}},"type":"object","required":["outcome"],"title":"ZipResolutionResult","description":"The complete resolution result including degraded city/state (Optional)."},"ZipRun":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"derived_from_jobs":{"type":"boolean","title":"Derived From Jobs","description":"True when no discovery trail named this batch's ZIP and zip_code is the mode of its jobs' captured venue ZIPs; city/state may be null.","default":false},"ran_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ran At"},"site_count":{"type":"integer","title":"Site Count","default":0},"replayable_count":{"type":"integer","title":"Replayable Count","default":0},"area_venue_count":{"type":"integer","title":"Area Venue Count","default":0},"original_versions":{"$ref":"#/components/schemas/WorkflowVersions"},"replay":{"$ref":"#/components/schemas/ReplayCoverage"}},"additionalProperties":false,"type":"object","required":["batch_id"],"title":"ZipRun","description":"One discovery batch. `zip_code` is null when neither a trail nor any job names the ZIP."},"ZipRunsResponse":{"properties":{"deployed_versions":{"$ref":"#/components/schemas/WorkflowVersions"},"latest_baseline":{"anyOf":[{"$ref":"#/components/schemas/ReplayBaselineRef"},{"type":"null"}]},"zip_runs":{"items":{"$ref":"#/components/schemas/ZipRun"},"type":"array","title":"Zip Runs"}},"additionalProperties":false,"type":"object","required":["deployed_versions"],"title":"ZipRunsResponse","description":"`GET /zip-runs`."},"ZipTargetCreate":{"properties":{"zip":{"type":"string","pattern":"^[0-9]{5}$","title":"Zip"},"radius_miles":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Radius Miles","default":10},"scrape_interval_hours":{"type":"integer","maximum":168.0,"minimum":1.0,"title":"Scrape Interval Hours","default":24}},"type":"object","required":["zip"],"title":"ZipTargetCreate"},"ZipTargetLastRun":{"properties":{"zip":{"type":"string","title":"Zip"},"last_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Status"},"last_discovered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Discovered At"},"summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["zip"],"title":"ZipTargetLastRun","description":"Story 7.7 AC #4: last-run details response for GET /{zip}/last-run."},"ZipTargetRead":{"properties":{"zip":{"type":"string","title":"Zip"},"enabled":{"type":"boolean","title":"Enabled"},"radius_miles":{"type":"integer","title":"Radius Miles"},"scrape_interval_hours":{"type":"integer","title":"Scrape Interval Hours","default":24},"last_discovered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Discovered At"},"last_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"last_run_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Run Summary"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["zip","enabled","radius_miles","created_at","updated_at"],"title":"ZipTargetRead"},"ZipTargetUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"radius_miles":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Radius Miles"},"scrape_interval_hours":{"type":"integer","maximum":168.0,"minimum":1.0,"title":"Scrape Interval Hours"}},"type":"object","title":"ZipTargetUpdate"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}