Skip to content

[AGE-2886] Add list and get artifact APIs - #1441

Draft
rutvij-menavlikar wants to merge 2 commits into
rutvij/age-2882_2from
rutvij/age-2886_2
Draft

rutvij-menavlikar wants to merge 2 commits into
rutvij/age-2882_2from
rutvij/age-2886_2

Conversation

@rutvij-menavlikar

@rutvij-menavlikar rutvij-menavlikar commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stacked on #1442. Adds GET /api/v1/artifacts (paginated, newest first) and GET /api/v1/artifacts/{slug}, authenticated and limited to artifacts the caller created, and wires the artifact store into the server.

Linear: AGE-2886

Changes

  • src/schemas/artifact.ts: Artifact, ListArtifactsRequestQuery, ListArtifactsResponse, GetArtifactResponse.
  • src/routes/artifactRoutes.ts: route definitions; Fern group artifacts (list, get); new Artifacts tag.
  • src/apis/artifacts.ts: handlers; list filters by the caller; get returns 404 for another user's artifact (no slug leak); tenant_id is not exposed on the wire.
  • app.ts / main.ts / scripts/write-openapi.ts: artifactStore dependency for SQLite and Postgres.
  • Changeset .changeset/artifact-apis.md updated.

How was this tested?

  • New tests/unit/apis/artifacts.test.ts (list, pagination, other user excluded, bad token, get, 404 for missing and not-mine).
  • pnpm test (935 passed), pnpm typecheck, eslint, prettier.
  • pnpm openapi:write builds both paths (generated files not committed).

Checklist

  • I have read the contributing guidelines
  • pnpm test, pnpm typecheck pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code

Made with Cursor


Note

Low Risk
Read-only, caller-scoped endpoints following existing list/get patterns; main consideration is correct subject filtering on get/list.

Reviewed by Cursor Bugbot for commit 8d04af4. Bugbot is set up for automated code reviews on this repo. Configure here.

Base automatically changed from rutvij/age-2886_1 to rutvij/age-2882_2 November 19, 2026 15:51
Base automatically changed from rutvij/age-2882_2 to rutvij/age-2882_1 November 19, 2026 15:51
@rutvij-menavlikar
rutvij-menavlikar changed the base branch from rutvij/age-2882_1 to rutvij/age-2882_2 November 19, 2026 15:57
@datadog-official

datadog-official Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Code Quality  Code Vulnerabilities  IaC  Library Vulnerabilities  Secrets

🎉 All green!

🛠️ No new code quality issues
🛡️ No new code vulnerabilities
📚 No new vulnerable libraries detected
🧱 No new Infrastructure as Code (IaC) issues
🔑 No new secrets detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 8d04af4 | Docs | Give us feedback!

rutvij-menavlikar and others added 2 commits November 19, 2026 22:07
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@rutvij-menavlikar
rutvij-menavlikar marked this pull request as draft November 19, 2026 17:24

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant