Both clients are packaged in one downloadable JSON source bundle. It contains each filename, complete source text and SHA-256 digest. Download and inspect it before adding a client to your application:
files[].content as its matching files[].path (middleman.ts or middleman.py). No code runs when you download the bundle. Verify the digest after extraction if you automate this step. Keep MIDDLEMAN_SUPPLIER_API_KEY in your environment. Never paste its value into an agent prompt.
Client behavior
- The default origin is
https://middlemantechnologies.com. - A development override permits loopback HTTP; other origins require HTTPS. Only use an override for a Middleman environment you trust.
- Requests time out after 15 seconds. HTTP redirects are rejected so a key cannot be forwarded to a different destination.
validate()returns field errors for422so your agent can repair a mapping. Other non-2xx responses raise an error containing a status and safe error code.- There are no automatic retries. Honor
Retry-Afteron429, use bounded backoff for transient failures and never report success after a timeout.
Acceptance cases
Test exact prices such as"0.003725", zero versus unknown stock, different sale units, quantity breaks, capacity time windows, expired observations, duplicate IDs, withdrawals, revoked keys and source outages. A production adapter also needs pagination, source throttling, durable checkpoints and reconciliation tests beyond these starter clients.