Create a new storage object. This is for advanced users and for basic operations you should use the StorageObjectOps.uploadFromFile uploadFromFile(), uploadFromText(), or uploadFromBuffer() methods instead.
Parameters for creating the object.
Optionaloptions: RequestOptions<unknown> & { polling?: Partial<PollingOptions<ObjectView>> }Request options.
A StorageObject instance.
Get a storage object by its ID.
The ID of the storage object.
A StorageObject instance.
List storage objects with optional filters (paginated).
Optionalparams: ObjectListParamsOptional filter parameters.
Optionaloptions: RequestOptions<unknown>Request options.
An array of StorageObject instances.
Upload text content directly. This method handles the complete three-step upload process:
The text content to upload.
The name to use for the storage object.
Optionaloptions: RequestOptions<unknown> & { metadata?: Record<string, string> }Request options including metadata.
A StorageObject instance.
Upload content from a Buffer (Node.js only). This method handles the complete three-step upload process:
The buffer containing the content to upload.
The name to use for the storage object.
The content type of the buffer.
Optionaloptions: RequestOptions<unknown> & { metadata?: Record<string, string> }Request options including metadata.
A StorageObject instance.
Upload a local directory as a gzipped tarball (Node.js only). This method creates a tar archive of the directory contents, gzips it, and uploads it.
The path to the directory to upload.
Parameters for creating the object.
Optionaloptions: RequestOptions<unknown>Request options.
A StorageObject instance.
Storage object management interface
Remarks
Overview
The
StorageObjectOpsclass provides a high-level abstraction for managing storage objects, which are files stored in Runloop's object storage. Storage objects can be uploaded, downloaded, and managed with metadata.Usage
This interface is accessed via RunloopSDK.storageObject. You should construct a RunloopSDK instance and use it from there:
Example