Commit Graph

11 Commits

Author SHA1 Message Date
8a3df31eac docs: add cfw attachment service plan 2026-07-02 19:39:29 -07:00
518a5380d9 Add public image optimization endpoint 2026-07-02 19:36:47 -07:00
Claude
9a0a2b1da7 feat: zod-openapi schema, R2 multipart upload, and public /files URL
- routes rewritten on OpenAPIHono with zod schemas; /openapi.json via doc31;
  /api/* auth middleware runs before zod (401 before 422); problem+json kept
- multipart upload (worker-orchestrated R2): POST /multipart, PUT /parts/:n,
  DELETE /multipart; finalize auto-completes multipart or falls back to single-shot
- GET /files/:id serves public/shared attachments inline with stored content-type;
  responses include public_url when available + public/shared
- FakeR2 supports multipart; tests cover multipart, /files visibility, openapi

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 09:08:42 -07:00
Claude
db5a499e5c chore: add zod-openapi stack, multipart schema, and PUBLIC_BASE_URL
- bump hono to ^4.12.0, add zod ^4.0.0 and @hono/zod-openapi ^1.4.0
- migration 0002: attachment_upload_sessions + attachment_upload_parts
- wrangler/env: PUBLIC_BASE_URL for public file URLs

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 09:08:42 -07:00
Claude
20666d13e7 docs: document cfw-attachment api
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 08:16:34 -07:00
Claude
fc3a467882 feat: expose openapi document for gateway aggregation
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 08:11:52 -07:00
Claude
0da8b248f0 feat: add attachment search categories and tags
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 08:05:25 -07:00
Claude
fd66c1ac31 feat: add attachment upload and download flow
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 07:44:30 -07:00
Claude
c4a1b167a1 feat: resolve attachment user through cfw-auth binding
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 07:34:48 -07:00
Claude
fb7afb69f3 feat: add attachment storage bindings and schema
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 07:33:38 -07:00
Claude
faaa66490b chore: scaffold cfw-attachment worker
Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-02 07:31:32 -07:00