feat: per-version file metadata client API#14
Merged
Merged
Conversation
Replace the single `getFileMetadata` call with explicit per-version CRUD matching the new backend endpoints. - Add `Metadata` / `MetadataValue` / `METADATA_LIMITS` exports in `types/files`. - New methods: `getFileVersionMetadata`, `updateFileVersionMetadata`, `deleteFileVersionMetadata`. `metadata` re-added to `CreateItemProps`, `UpdateItemProps`, and `createVersion` with the new typed shape. - Update CLI test templates and CONTEXT.md docs. - Unit tests cover URL/method/body for each new method and the createFile metadata FormData path.
smoratino-apogea
approved these changes
May 8, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
getFileMetadata(single endpoint, untyped) and replaces it with three per-version methods aligned with the new backend CRUD on/item/:id/version/:tag/metadata.metadataonCreateItemProps/UpdateItemProps/createVersionwith the new typedMetadatashape.Changes
types/files.ts: newMetadataValue/Metadatatypes andMETADATA_LIMITSconstant (200 fields, 50-char keys, 50-char values).core/client.ts:getFileVersionMetadata(fileId, versionTag, params?)updateFileVersionMetadata(fileId, versionTag, metadata)deleteFileVersionMetadata(fileId, versionTag)test/,cloud-test/) updated to exercise the new methods + matching CONTEXT.md docs.createFilemetadata FormData path.Related