Adapter boundary
Keep newAPI calls in one place.
Business code must not scatter runtime HTTP calls. The adapter layer owns auth headers, retries, idempotency and endpoint mapping.
Current adapter modules
These files are scaffolded in the repo and ready to map to actual newAPI admin endpoints.
- lib/newapi/client.ts
- lib/newapi/users.ts
- lib/newapi/tokens.ts
- lib/newapi/quota.ts
- lib/newapi/logs.ts
- lib/newapi/sync.ts