List example corpus files
list_corpus_filesBrowse validated ISO 20022 example files, including market scenarios by country and rail plus coverage sets, to find a suitable file before fetching its contents or provenance.
Instructions
List the example files pain001 ships: market scenarios and coverage sets.
Use this to discover what ready-made, validated ISO 20022 files exist
before calling ``get_corpus_file`` or ``get_corpus_provenance``. Market
files are realistic payments per country and rail (``scenario_id``
like ``gb.chaps.property-purchase``); a ``variant`` names the bank
overlay a file was built with. Coverage files exercise every element
and choice branch of one message type and carry no scenario.
Delegates to :func:`pain001.corpus.list_files`.
Args:
kind: ``market``, ``coverage`` or ``None`` for both.
country: Optional two-letter country filter for market files.
version: Optional message-type filter.
Returns:
``{"count", "files": [{"kind", "scenario_id", "version", "country",
"family", "variant", "file"}, ...]}``, or ``{"error": ...}`` when
the installed pain001 has no corpus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | 'market' for the realistic per-country scenarios, 'coverage' for the schema coverage sets, or omit for both. | |
| country | No | Two-letter country code to keep one market pack only, e.g. 'GB' or 'CH'. Ignored for coverage files. | |
| version | No | Keep only files of this message type, e.g. 'pain.001.001.09'. |