Skip to main content

RecordField enum

sasha.common.public.RecordField · sasha/common/public/record_field.proto:19

Identifies a core (strongly-typed) field of sasha.common.public.Record for access-control and disclosure purposes.

A closed enum is used deliberately instead of raw protobuf field numbers: access-control data is persisted, and binding it to wire field numbers would let a future renumbering silently re-point a grant. Custom fields (Record.custom_fields) are addressed by their string key, not this enum.

0RECORD_FIELD_UNSPECIFIEDDefault value; identifies no field.
1RECORD_FIELD_SHARE_STATERecord.share_state: the creator-declared share state of the media.
2RECORD_FIELD_ALLOWED_PUBLISH_URLSRecord.allowed_publish_urls: the URL patterns the display URL of the media is allowed to match.
3RECORD_FIELD_ALLOWED_SOURCE_URLSRecord.allowed_source_urls: the URL patterns the storage/CDN address of the media bytes is allowed to match.
4RECORD_FIELD_ALLOWED_FROMRecord.allowed_from: the time before which the media is not allowed to be available.
5RECORD_FIELD_ALLOWED_TORecord.allowed_to: the time after which the media is not allowed to be available.
6RECORD_FIELD_BYLINERecord.byline: the display text shown alongside the media, e.g. a photographer credit.
7RECORD_FIELD_PURCHASE_URLRecord.purchase_url: the URL where the media can be purchased or licensed.
8RECORD_FIELD_LICENSEERecord.licensee: the legal business name of the entity that has licensed the media.
9RECORD_FIELD_ASSET_SOURCE_IDRecord.asset_source_id: the creator's own identifier for the media in their system.