memos/proto/api/v1
boojack 4bc3928029 fix(user): implement ListUsers pagination
Rework ListUsers to match the ListMemos pagination contract: opaque
PageToken, normalizePageSize, DB-level limit+1 look-ahead, and a
next_page_token. Adds Offset to store.FindUser with an OFFSET clause in
all three dialects, and an `id DESC` ORDER BY tiebreaker so offset pages
stay stable when created_ts ties.

Also align pagination across list endpoints:
- Bump DefaultPageSize 10 -> 50 to match the documented default; use
  normalizePageSize in ListAttachments.
- Remove the never-implemented total_size field from all six list
  responses (ListUsers, ListAttachments, ListMemoComments,
  ListMemoReactions, ListUserSettings, ListPersonalAccessTokens) and
  regenerate.
- useListUsers now pages through next_page_token so the admin members
  view still loads every user past the default page size.
2026-07-12 20:51:04 +08:00
..
ai_service.proto feat(transcription): explicit STT settings with provider, model, prompt (#5926) 2026-05-02 19:35:18 +08:00
attachment_service.proto fix(user): implement ListUsers pagination 2026-07-12 20:51:04 +08:00
auth_service.proto feat: replace auto-increment ID with UID for identity provider resource names (#5687) 2026-03-05 21:01:22 +08:00
common.proto refactor: renovate list memos endpoint 2025-02-02 18:43:26 +08:00
idp_service.proto chore: standardize and improve API structure (#5224) 2025-11-05 22:36:51 +08:00
instance_service.proto feat(storage): add insecure_skip_tls_verify option for S3 2026-06-23 00:04:54 +08:00
memo_service.proto fix(user): implement ListUsers pagination 2026-07-12 20:51:04 +08:00
README.md chore: update demo site 2025-02-27 23:05:43 +08:00
shortcut_service.proto chore(mcp): improve tool discoverability, add orientation tools and evals 2026-06-27 10:32:42 +08:00
user_service.proto fix(user): implement ListUsers pagination 2026-07-12 20:51:04 +08:00

Memos API Design

This API design should follow the guidelines and best practices outlined in the Google API Improvement Proposals (AIPs).