I'm finding inconsistent documentation on how to update product stock for M2 2.4.1.
Magento\Catalog\Model\Product::setStockData is documented in code to be deprecated and points to
StockItemInterface in turn is documented in code to be deprecated and links to pages
https://devdocs.magento.com/guides/v2.3/inventory/catalog-inventory-replacements.html, which are obviously out of date.
Going to the latest page,
https://devdocs.magento.com/guides/v2.4/inventory/inventory-api-reference.html, points to
Magento\CatalogInventory\Api\StockRepositoryInterface, along with a bunch of other APIs, which is also documented to be deprecated and says "Replaced with Multi Source Inventory".
What is the proper way to programmatically update stock on 2.4?