List file types the configured parsers can ingest
Advertise the union of media types and filename extensions every registered parser accepts.
Used by the front-end to populate the document picker’s accept
attribute and to reject drag-dropped files whose extension lies
outside the supported set before the upload starts. Routing on
upload still goes through the media type — this endpoint is a
capability hint, not authoritative dispatch.
Args:
_ (str):
Injected authenticated user ID; only used to gate the
endpoint behind authentication.
parsers (list[ParserBase] | dict[str, ParserBase]):
Injected parser registry — the same value the index worker
uses to dispatch uploads.
Returns:
ListSupportedContentTypesResponse:
Deduplicated, sorted unions of media_types and
extensions.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Response
Successful Response
Response body advertising the parser-supported upload types.
Aggregated across every parser registered on the app — the union of
each parser's :attr:supported_media_types and
:meth:supported_extensions. The front-end uses this to populate
<input accept> and to reject unsupported drops on the client
before the file leaves the browser.
Union of IANA media types every registered parser claims to handle. Deduplicated and sorted.
Filename extensions (each starting with .) every registered parser claims to handle. Deduplicated and sorted. Derived from mimetypes by the base parser; subclasses may override the default.