SDK (@binect/js):
- BinectClient with domain sub-clients (documents, sendings, accounts,
attachments, invoices)
- HTTP Basic Auth, native fetch only (no runtime dependencies)
- TypeScript types matching Binect API vocabulary
- Status predicates and polling helpers in helpers.ts
- Structured error handling (BinectApiError, BinectAuthError)
Explorer:
- Standalone browser-based API explorer (explorer/index.html)
- Interactive testing without code
Tests:
- Unit tests for client, types, errors, helpers, http
- E2E tests for upload/delete and send/cancel workflows
Also includes:
- Architecture Decision Records (ADRs)
- Example DIN 5008 letter PDFs for testing
- API specification research notes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tests the full letter lifecycle: upload → send → poll for status
transition → cancel. Includes polling logic to wait for document
status to transition from IN_PREPARATION to PRODUCTION_QUEUE before
attempting cancel. Gracefully handles insufficient balance errors.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>