Skip to content

Add createSignedUrl to storage API#20

Merged
marcos-muino-garcia merged 2 commits into
mainfrom
feat/storage-signed-urls
Apr 28, 2026
Merged

Add createSignedUrl to storage API#20
marcos-muino-garcia merged 2 commits into
mainfrom
feat/storage-signed-urls

Conversation

@marcos-muino-garcia
Copy link
Copy Markdown
Contributor

Summary

  • Wrap the new POST /api/:team/rest/storage/signed-urls endpoint (yepcode-storage-api #11) on both YepCodeApi and YepCodeStorage.
  • YepCodeApi.createSignedUrl({ path, expiresInSeconds? }) posts to the endpoint; YepCodeStorage.createSignedUrl(filename, { expiresInSeconds? }) is the higher-level wrapper that mirrors upload/download/delete.
  • Returns the full { url, path, expiresAt } object so callers can read the expiry without tracking the value they passed in.
  • Adds new CreateSignedUrlInput and SignedUrl types, exported via the existing src/api/types.ts re-exports.

Test plan

  • npm run build (clean)
  • npm test against an environment that has yepcode-storage-api PR Add utm params in README #11 deployed — un-skip the new createSignedUrl describe blocks in tests/api/yepcodeApi.storage.test.ts and tests/storage/yepcodeStorage.test.ts and verify:
    • default expiry (~1h)
    • custom expiresInSeconds
    • fetched signed URL returns the original file content
    • 404 for missing file
    • 400 for out-of-range expiresInSeconds

🤖 Generated with Claude Code

Wraps the new POST /storage/signed-urls endpoint that returns a short-lived
GCS V4 signed read URL for an existing file.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@marcos-muino-garcia marcos-muino-garcia requested a review from a team as a code owner April 28, 2026 11:32
@marcos-muino-garcia marcos-muino-garcia requested review from agtraveso, santicastro and sergio-rs and removed request for a team and santicastro April 28, 2026 11:32
sergio-rs
sergio-rs previously approved these changes Apr 28, 2026
Add quick-start and API reference docs for createSignedUrl in YepCodeApi and YepCodeStorage so the new storage capability is clearly discoverable.

Made-with: Cursor
@marcos-muino-garcia marcos-muino-garcia merged commit 990d0f4 into main Apr 28, 2026
2 checks passed
@marcos-muino-garcia marcos-muino-garcia deleted the feat/storage-signed-urls branch April 28, 2026 14:42
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.

3 participants