Share object: expose the number of assets in a share (asset_count)

Our design calls for a “Most assets” sort option on the shares list and for showing how many assets each share contains directly in the list view.

The Share schema exposes no count field, and there is no documented include that adds one, so both of these are impossible - not merely inconvenient. Counting per-share by fetching each share’s contents doesn’t scale as a list-view solution.

Requested: asset_count on the Share object (by default or behind an include), plus a matching sort value so it can drive both the display and the ordering.

Hi @krlrzv

Thanks for laying this out so clearly, and sorry for the trouble here.

You’re correct that there’s no count field on the Share object right now, and no include that adds one.

I’ve put in a feature request for asset_count to be added to the Share object, and share.* webhook payloads.

Sorting is a separate piece of work, so I’m digging into that and will provide an update on that here.