Milestone 0: import zappier billing, Verae middleware, and Zapier research

Compose-ready workspace: packages/zappier (rate card, portal, Stripe),
packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier
(CLI app), vendor/zapier-platform, and research/zapier vendor corpus.

Gate 0 structure checks pass. Product code and research are not yet wired.
This commit is contained in:
George Lambert 2026-09-09 02:37:36 -04:00
commit b4150c8250
1364 changed files with 6814366 additions and 0 deletions

17
docs/03-zapier/auth.md Normal file
View file

@ -0,0 +1,17 @@
# Zapier authentication
## Target (after PR 5)
- Type: custom / API key.
- Fields: `apiKey`, `baseUrl` (default public zappier origin).
- Header: `x-api-key`.
- Test: `GET /v1/status` or `GET /v1/me` if added.
- Errors: 401 invalid key; 403/402 quota or unpriced endpoint → user-visible upgrade text pointing at `/portal`.
## Today (imported CLI app)
- Bearer middleware API key `zmw_…`.
- Test: `GET /zapier/v1/auth/me`.
- `afterResponse` maps 402 and `PLAN_UPGRADE_REQUIRED`.
Do not send Verae JWTs to Zapier. Middleware (or zappier→middleware) logs into Verae server-side.

View file

@ -0,0 +1,16 @@
# Zapier operations
Current package: `packages/verae-zapier` (imported from datacubes; still aimed at middleware).
| Noun | Type | Middleware today | Target public path (zappier) |
|------|------|------------------|------------------------------|
| Create Timestamp | create | `POST /zapier/v1/timestamp` | `POST /v1/timestamp` |
| Create Timestamp and Wait | create | `POST /zapier/v1/timestamp/wait` | `POST /v1/timestamp/wait` |
| Create Batch Timestamps | create | `POST /zapier/v1/timestamp/batch` | `POST /v1/timestamp/batch` |
| Verify Certificate | create | `POST /zapier/v1/verify` | `POST /v1/verify` |
| Find Job Status | search | `GET /zapier/v1/status/{jobId}` | `GET /v1/status/{jobId}` |
| Timestamp Completed | REST Hook | subscribe/unsubscribe webhooks | proxy through zappier or map customer id |
Later: Find by SHA256, retrieve metadata, certified receipt, Find Usage, List Invoices.
Reference examples: `vendor/zapier-platform/example-apps/` (custom-auth, files, rest-hooks, create).