Fetches the inventory item details from the platform and assigns them to this instance.
Returns this InventoryItem instance with all properties populated from the platform.
Fetches the user inventory item details from the platform and assigns them to this instance.
Populates this UserInventoryItem instance with all properties from the platform.
Optionalcreated_OptionaldescriptionOptionalimage_Optionalinteractive_OptionaljwtOptionalmetadataOptionalnameOptionalprofile_OptionalstatusOptionalupdated_Standardized error handler for all SDK operations.
Standardized error object with properties: data, message, method, params, sdkMethod, stack, status, success, url
This method processes errors from API calls and formats them consistently across the SDK. It extracts relevant error information including:
All errors thrown by SDK methods flow through this handler to ensure consistent error format.
Returns the configured Axios instance for making API calls to Topia's Public API.
The configured Axios client instance with authentication headers.
Controller for a user's owned inventory item.
Remarks
This class should be instantiated via UserInventoryItemFactory only. UserInventoryItem represents an instance of an InventoryItem owned by a specific user or visitor. It includes ownership details like quantity, grant_source, and user-specific metadata.
Keywords
inventory, item, user, visitor, owned, granted