Official Oracle Cloud Infrastructure (OCI) SDK for Node.js to manage Object Storage service resources. Current stable version is 2.132.0, released as part of the OCI TypeScript SDK monorepo with weekly release cadence. Supports all Object Storage operations: buckets, objects, pre-authenticated requests, multipart uploads, and retention rules. Requires OCI account, IAM user with policies, and API signing key pair. Ships with TypeScript types. Differentiator: first-party SDK maintained by Oracle, supports all OCI regions and features, integrates with OCI authentication providers.
npm install oci-objectstorageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Authenticate using OCI config file and list all buckets in a compartment.
Update import paths to include '/lib/models', '/lib/requests' etc.
Set region explicitly in config or via environment variable OCI_REGION.
Use client.getObject({...}) with the object name and bucket name from list results.Catch errors with try/catch and inspect error.statusCode for HTTP status.
Call getNamespace() first to retrieve namespace name or set it from environment variable.
Instantiate provider (e.g., new common.ConfigFileAuthenticationDetailsProvider()) and pass it in client options.
Ensure ~/.oci/config exists with correct user, fingerprint, tenancy, and key_file paths.