Skip to main content

ShareState enum

sasha.common.public.ShareState · sasha/common/public/share_state.proto:20

The creator-declared share state of a protected media item.

The share state is the top-level statement of distribution intent carried by a Record. A signature without a Record is treated as SHARE_STATE_PRIVATE.

A share state describes only the intent the creator has declared to SASHA. It is not a statement about the legal status of the media; rights such as copyright apply independently.

0SHARE_STATE_UNSPECIFIEDUnused. Default unspecified value when the field is not set. Proto3 requires first enum to be 0.
1SHARE_STATE_PRIVATEThe creator declared that the media is not intended to be distributed anywhere public.
2SHARE_STATE_UNRESTRICTEDThe creator declared no distribution restrictions for the media.
3SHARE_STATE_RESTRICTEDThe creator declared that the media is intended to be distributed only where the Record's distribution fields permit (URL patterns and/or time window). The fields form a permit list: a Record that carries none of them yet permits no locations, until the creator adds them.

Value notes​

SHARE_STATE_UNSPECIFIED

Unused. Default unspecified value when the field is not set. Proto3 requires first enum to be 0.

Rejected on write (Record.share_state must be set explicitly); treated as SHARE_STATE_PRIVATE if encountered on read.

Referenced by​