supermemory/apps
abhay-codes07 ee1d50b13d
fix(web): register the drifted document endpoints in the api contract
The endpoint map and validation schemas have fallen behind what the
web app actually exchanges with the API:

- the memories grid and the X-bookmarks status query filter
  @post/documents/documents by `categories`, a field
  DocumentsWithMemoriesQuerySchema doesn't declare — both smuggle it
  past client validation with disableValidation, and any future caller
  that forgets the flag gets the key silently stripped and a filter
  that no-ops
- @post/documents/documents/facets was never registered:
  DocumentFacetsQuerySchema sits unused in the validation package
  while the grid calls the endpoint as an untyped raw URL and
  hand-casts the response
- @patch/documents/:id was never registered even though
  MemoryUpdateSchema exists for exactly this pairing; the
  document-edit and file-metadata mutations PATCH via template-literal
  URLs with no request/response typing

Add `categories` to the documents query schema, introduce
DocumentFacetSchema/DocumentFacetsResponseSchema (total optional — the
UI already guards its absence) and register the facets endpoint with
the previously-dead query schema, register @patch/documents/:id with
MemoryUpdateSchema/MemoryResponseSchema/params, and convert both PATCH
call sites to the typed route.

The existing disableValidation flags are deliberately left in place:
every current caller of @post/documents/documents sets one, so output
validation has never been exercised against production responses;
removing them is a follow-up that needs verification against the live
API. With the schemas now truthful, that cleanup becomes mechanical.

Tested: bun test in packages/validation (12 pass, 4 new), tsc --noEmit
on packages/validation, bun test + bun run build in apps/web, biome
clean on all touched files.
2026-07-13 17:48:31 +05:30
..
browser-extension fix(extension): scope related memory search (#1215) 2026-07-10 19:15:29 -07:00
docs docs(self-hosting): configurable embeddings for Supermemory local (#1210) 2026-07-10 19:15:46 -07:00
mcp feat(mcp): add listMemories tool for enumerating stored memories (#1183) 2026-07-10 19:15:12 -07:00
memory-graph-playground fix(deps): bump next to 16.0.7 in memory-graph-playground (critical CVE) (#1082) 2026-06-16 21:10:32 -07:00
raycast-extension feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
web fix(web): register the drifted document endpoints in the api contract 2026-07-13 17:48:31 +05:30