Skip to content

feat(client): resolve authorized presigned file URLs - #4

Draft
rrrodzilla wants to merge 1 commit into
mainfrom
feat/presigned-file-access
Draft

feat(client): resolve authorized presigned file URLs#4
rrrodzilla wants to merge 1 commit into
mainfrom
feat/presigned-file-access

Conversation

@rrrodzilla

Copy link
Copy Markdown
Contributor

Add getPresignedFileUrl to resolve a file field through the existing authorized endpoint with redirect=false. Requests use current token and tenant providers, accept cancellation, reject redirects and non-JSON responses, and return a validated absolute HTTP(S) URL. Hosts retain responsibility for checking account context before using the URL.

The change includes seven built-package transport tests, client CI, usage documentation and a minor changeset. Custom implementations of ForgeClient must add the method; the Storybook mock is updated.

Validation: all seven client tests pass; workspace typechecking and the full console/Storybook build pass. Tests use synthetic fetch responses. No live object-store download was exercised.

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