Type alias PublicationMetadataCommon

PublicationMetadataCommon: {
    appId?: AppId;
    attributes?: MetadataAttribute[];
    contentWarning?: PublicationContentWarning;
    encryptedWith?: PublicationEncryptionStrategy;
    hideFromFeed?: boolean;
    id: string;
    locale: Locale;
    tags?: Tag[];
}

Common fields of a Lens primary publication.

Type declaration

  • Optional appId?: AppId

    The App Id that this publication belongs to.

  • Optional attributes?: MetadataAttribute[]

    A bag of attributes that can be used to store any kind of metadata that is not currently supported by the standard. Over time, common attributes will be added to the standard and their usage as arbitrary attributes will be discouraged.

  • Optional contentWarning?: PublicationContentWarning

    Specify a content warning.

  • Optional encryptedWith?: PublicationEncryptionStrategy

    The encryption strategy used to encrypt the publication.

    If not present, the publication is presumed to be unencrypted.

  • Optional hideFromFeed?: boolean

    Determine if the publication should not be shown in any feed.

    Default Value

    false
    
  • id: string

    A unique identifier that in storages like IPFS ensures the uniqueness of the metadata URI.

    Use a UUID if unsure.

  • locale: Locale

    The locale of the metadata.

  • Optional tags?: Tag[]

    An arbitrary list of tags.