@useflex/media-studio/api. It has no React runtime dependency. In this development checkout, import packages/react/dist/api.js after building. Package publication and installation availability are separate from the local build.
Folder and file operations
Upload a file
studio.request(). A chunk is sent as raw bytes with its SHA-256 header; direct S3 parts use the URL returned by the sign operation and must not receive the Studio bearer token.
Call another documented endpoint
request<T>() accepts a relative path inside the configured workspace, plus method, body, headers and signal. It returns bounded JSON; use a streaming HTTP client for binary file downloads. JSON responses larger than 4 MiB are rejected and their stream is cancelled.