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.
| 0 | SHARE_STATE_UNSPECIFIED | Unused. Default unspecified value when the field is not set. Proto3 requires first enum to be 0. |
| 1 | SHARE_STATE_PRIVATE | The creator declared that the media is not intended to be distributed anywhere public. |
| 2 | SHARE_STATE_UNRESTRICTED | The creator declared no distribution restrictions for the media. |
| 3 | SHARE_STATE_RESTRICTED | The 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.