eCourt-note/lib
Suphonchai Phoonsawat 545c9d5703 add /api/auth short-path endpoints (token/session) + swagger group "auth"
- POST /api/auth/token = alias of /api/documents/token (docver access_token,
  both x-api-key and ticket entrances)
- POST /api/auth/session = alias of /api/note/auth/session (exchange e-Court
  link credential for note login token, 8h TTL)
- lib/openapi.ts: new "auth" tag + both paths + SessionExchangeRequest /
  SessionResponse schemas (session endpoint had never been documented)
- tests/lib/openapi.test.ts: guard all $refs resolve + auth paths exist

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-05 13:06:45 +07:00
..
addin-ticket.ts Refactor authentication flow and ticket handling in add-in 2026-11-04 21:18:19 +07:00
annotate-events.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
document-versioning.ts feat: add GET /api/documents/latest returning latest version file with stamped ticket 2026-10-31 11:09:42 +07:00
docver-store.ts Refactor authentication flow and ticket handling in add-in 2026-11-04 21:18:19 +07:00
docver-token.ts Merge branch 'forgejo-dev' into working 2026-11-02 10:07:08 +07:00
docx-pool.ts Multi-thread support for applyTemplate 2026-11-03 14:48:37 +07:00
external-api-auth.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
external-api.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
external-import.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
lib-tmpl.ts Multi-thread support for applyTemplate 2026-11-03 14:48:37 +07:00
lib-utils.ts clear environment variable, update download-docx(sample) to check latest version before query database. 2026-11-02 10:00:12 +07:00
note-auth.ts feat(note): mock e-Court login form on dev page 2026-11-02 12:19:38 +07:00
note-session.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
note-token.ts feat(sso): switch note session from cookies to token 2026-10-30 18:05:36 +07:00
openapi.ts add /api/auth short-path endpoints (token/session) + swagger group "auth" 2026-11-05 13:06:45 +07:00
pdf-actual-text.ts ซ่อม text ไทย PDF (ActualText) + revalidatePath ทุก action + คีย์ลัด DEL + ตรายาง label บรรทัดเดียว 2026-09-11 13:28:35 +07:00
remote-file.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00
server-pdf.ts refactor(routes): move routes under /note, APIs under /api/note 2026-10-06 14:55:07 +07:00