You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 Security concerns
Admin Secret Exposure: The new admin operations (listOrphanedFiles, deleteOrphanedFiles, listBrokenMetadata, deleteBrokenMetadata, listFilesNotUploaded) require Hasura admin secret authentication. While the API specification correctly indicates this requirement, the client implementation doesn't provide any validation or warnings about the sensitive nature of these operations. These methods could potentially be misused if the admin secret is not properly secured, leading to unauthorized access to administrative storage operations.
The JSDoc comments for the new response interfaces (ListOrphanedFilesResponse200, DeleteOrphanedFilesResponse200, etc.) are incomplete with empty descriptions and malformed @Property tags that don't follow proper JSDoc syntax.
The presigned URL endpoint includes an 'excludeme' tag which suggests it may not be intended for public API exposure, but it's being implemented in the client. This needs clarification on the intended usage and visibility.
The JSDoc comment has malformed syntax with an incomplete @property tag. Remove the incomplete @property annotation and provide a proper description for the interface.
Why: The suggestion correctly identifies malformed JSDoc syntax with incomplete @property tags and provides a cleaner, more descriptive documentation format. This improves code maintainability and documentation quality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement
Description
Added missing storage endpoints for admin operations
Added baseURL property to functions client interface
Enabled presigned URL functionality for file access
Added comprehensive documentation for new endpoints
Changes walkthrough 📝
client.ts
Add baseURL property to functions clientpackages/nhost-js/src/functions/client.ts
baseURLproperty to Client interfacebaseURLin the returned client objectclient.ts
Add missing storage admin endpoints and presigned URLpackages/nhost-js/src/storage/client.ts
getPresignedURL,listOrphanedFiles,deleteOrphanedFiles,listBrokenMetadata,deleteBrokenMetadata,listFilesNotUploadedfunctions.mdx
Document functions client baseURL propertydocs/reference/javascript/nhost-js/functions.mdx
baseURLproperty in Client interfacestorage.mdx
Document new storage endpoints and typesdocs/reference/javascript/nhost-js/storage.mdx
storage.yaml
Enable missing storage API endpoints in OpenAPI specpackages/nhost-js/api/storage.yaml