The SAP Cloud SDK categorizes all exported objects (constants, functions, interfaces, types, classes) into three distinct tiers to ensure stability and facilitate refactoring:
- Exported Public API: The stable contract you should rely on for your applications. These are reachable via the root package import (e.g.,
@sap-cloud-sdk/odata-v2). - Exported Internal API: Technical exports not intended for direct consumer usage. These are stable only for path versions and are accessible via the
/internal subpath (e.g., @sap-cloud-sdk/odata-v2/internal). - Not exported: The default state for most objects. If an object is not in one of the two categories above, it is not accessible to consumers.
Note on internal packages: Some packages like @sap-cloud-sdk/odata-common and @sap-cloud-sdk/generator-common are designed for internal use only and do not expose a public API at their root level. You should instead use the public APIs provided by @sap-cloud-sdk/odata-v2, @sap-cloud-sdk/odata-v4, or the generator packages.