docs: fix receipt tier gating and add feature tier refs to core docs (refs #146)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 15m57s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 53s
Deploy to Staging / Verify Staging (pull_request) Successful in 9s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 15m57s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 53s
Deploy to Staging / Verify Staging (pull_request) Successful in 9s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
| Directory | What | When to read |
|
||||
| --------- | ---- | ------------ |
|
||||
| `auth/` | Authentication utilities | JWT handling, user context |
|
||||
| `config/` | Configuration loading (env, database, redis) | Environment setup, connection pools |
|
||||
| `config/` | Configuration loading (env, database, redis) and feature tier gating (fuelLog.receiptScan, document.scanMaintenanceSchedule, vehicle.vinDecode) | Environment setup, connection pools, tier requirements |
|
||||
| `logging/` | Winston structured logging | Log configuration, debugging |
|
||||
| `middleware/` | Fastify middleware | Request processing, user extraction |
|
||||
| `plugins/` | Fastify plugins (auth, error, logging, tier guard) | Plugin registration, hooks, tier gating |
|
||||
|
||||
@@ -8,7 +8,7 @@ Backend proxy for the Python OCR microservice. Handles authentication, tier gati
|
||||
|--------|----------|-------------|------|------|----------|
|
||||
| POST | `/api/ocr/extract` | Synchronous general OCR extraction | Required | - | 10MB |
|
||||
| POST | `/api/ocr/extract/vin` | VIN-specific extraction | Required | - | 10MB |
|
||||
| POST | `/api/ocr/extract/receipt` | Fuel receipt extraction | Required | - | 10MB |
|
||||
| POST | `/api/ocr/extract/receipt` | Fuel receipt extraction | Required | Pro | 10MB |
|
||||
| POST | `/api/ocr/extract/manual` | Async maintenance manual extraction | Required | Pro | 200MB |
|
||||
| POST | `/api/ocr/jobs` | Submit async OCR job | Required | - | 200MB |
|
||||
| GET | `/api/ocr/jobs/:jobId` | Poll async job status | Required | - | - |
|
||||
@@ -177,4 +177,4 @@ The backend proxy translates Python service error codes:
|
||||
|
||||
Manual extraction requires Pro tier. The tier guard middleware (`requireTier` plugin) validates the user's subscription tier before processing. Free-tier users receive HTTP 403 with `TIER_REQUIRED` error code and an upgrade prompt.
|
||||
|
||||
Receipt and VIN extraction are available to all tiers.
|
||||
VIN extraction is available to all tiers. Receipt extraction requires Pro tier (`fuelLog.receiptScan`).
|
||||
|
||||
Reference in New Issue
Block a user