Documentation ¶
Overview ¶
Package ap contains models and utilities for working with activitypub/activitystreams representations.
It is built on top of go-fed/activity.
Index ¶
- Constants
- func ExtractActor(i WithActor) (*url.URL, error)
- func ExtractAttachment(i Attachmentable) (*gtsmodel.MediaAttachment, error)
- func ExtractAttachments(i WithAttachment) ([]*gtsmodel.MediaAttachment, error)
- func ExtractAttributedTo(i WithAttributedTo) (*url.URL, error)
- func ExtractBlurhash(i WithBlurhash) string
- func ExtractCCs(i WithCC) ([]*url.URL, error)
- func ExtractContent(i WithContent) string
- func ExtractDiscoverable(i WithDiscoverable) (bool, error)
- func ExtractEmoji(i Emojiable) (*gtsmodel.Emoji, error)
- func ExtractEmojis(i WithTag) ([]*gtsmodel.Emoji, error)
- func ExtractHashtag(i Hashtaggable) (*gtsmodel.Tag, error)
- func ExtractHashtags(i WithTag) ([]*gtsmodel.Tag, error)
- func ExtractIconURL(i WithIcon) (*url.URL, error)
- func ExtractImageURL(i WithImage) (*url.URL, error)
- func ExtractInReplyToURI(i WithInReplyTo) *url.URL
- func ExtractMention(i Mentionable) (*gtsmodel.Mention, error)
- func ExtractMentions(i WithTag) ([]*gtsmodel.Mention, error)
- func ExtractName(i WithName) (string, error)
- func ExtractObject(i WithObject) (*url.URL, error)
- func ExtractPreferredUsername(i WithPreferredUsername) (string, error)
- func ExtractPublicKeyForOwner(i WithPublicKey, forOwner *url.URL) (*rsa.PublicKey, *url.URL, error)
- func ExtractPublished(i WithPublished) (time.Time, error)
- func ExtractSensitive(withSensitive WithSensitive) bool
- func ExtractSummary(i WithSummary) (string, error)
- func ExtractTos(i WithTo) ([]*url.URL, error)
- func ExtractURL(i WithURL) (*url.URL, error)
- func ExtractURLItems(i WithItems) []*url.URL
- func ExtractVisibility(addressable Addressable, actorFollowersURI string) (gtsmodel.Visibility, error)
- type Accountable
- type Addressable
- type Announceable
- type Attachmentable
- type Blockable
- type CollectionPageable
- type ContextKey
- type Emojiable
- type Followable
- type Hashtaggable
- type Likeable
- type Mentionable
- type ReplyToable
- type Statusable
- type WithActor
- type WithAttachment
- type WithAttributedTo
- type WithBlurhash
- type WithCC
- type WithContent
- type WithConversation
- type WithDiscoverable
- type WithFeatured
- type WithFollowers
- type WithFollowing
- type WithHref
- type WithIcon
- type WithImage
- type WithInReplyTo
- type WithInbox
- type WithItems
- type WithJSONLDId
- type WithManuallyApprovesFollowers
- type WithMediaType
- type WithName
- type WithNext
- type WithObject
- type WithOutbox
- type WithPartOf
- type WithPreferredUsername
- type WithPublicKey
- type WithPublished
- type WithReplies
- type WithSensitive
- type WithSummary
- type WithTag
- type WithTo
- type WithTypeName
- type WithURL
- type WithUpdated
Constants ¶
const ( ActivityAccept = "Accept" // ActivityStreamsAccept https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accept ActivityAdd = "Add" // ActivityStreamsAdd https://www.w3.org/TR/activitystreams-vocabulary/#dfn-add ActivityAnnounce = "Announce" // ActivityStreamsAnnounce https://www.w3.org/TR/activitystreams-vocabulary/#dfn-announce ActivityArrive = "Arrive" // ActivityStreamsArrive https://www.w3.org/TR/activitystreams-vocabulary/#dfn-arrive ActivityBlock = "Block" // ActivityStreamsBlock https://www.w3.org/TR/activitystreams-vocabulary/#dfn-block ActivityCreate = "Create" // ActivityStreamsCreate https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create ActivityDelete = "Delete" // ActivityStreamsDelete https://www.w3.org/TR/activitystreams-vocabulary/#dfn-delete ActivityDislike = "Dislike" // ActivityStreamsDislike https://www.w3.org/TR/activitystreams-vocabulary/#dfn-dislike ActivityFlag = "Flag" // ActivityStreamsFlag https://www.w3.org/TR/activitystreams-vocabulary/#dfn-flag ActivityFollow = "Follow" // ActivityStreamsFollow https://www.w3.org/TR/activitystreams-vocabulary/#dfn-follow ActivityIgnore = "Ignore" // ActivityStreamsIgnore https://www.w3.org/TR/activitystreams-vocabulary/#dfn-ignore ActivityInvite = "Invite" // ActivityStreamsInvite https://www.w3.org/TR/activitystreams-vocabulary/#dfn-invite ActivityJoin = "Join" // ActivityStreamsJoin https://www.w3.org/TR/activitystreams-vocabulary/#dfn-join ActivityLeave = "Leave" // ActivityStreamsLeave https://www.w3.org/TR/activitystreams-vocabulary/#dfn-leave ActivityLike = "Like" // ActivityStreamsLike https://www.w3.org/TR/activitystreams-vocabulary/#dfn-like ActivityListen = "Listen" // ActivityStreamsListen https://www.w3.org/TR/activitystreams-vocabulary/#dfn-listen ActivityMove = "Move" // ActivityStreamsMove https://www.w3.org/TR/activitystreams-vocabulary/#dfn-move ActivityOffer = "Offer" // ActivityStreamsOffer https://www.w3.org/TR/activitystreams-vocabulary/#dfn-offer ActivityQuestion = "Question" // ActivityStreamsQuestion https://www.w3.org/TR/activitystreams-vocabulary/#dfn-question ActivityReject = "Reject" // ActivityStreamsReject https://www.w3.org/TR/activitystreams-vocabulary/#dfn-reject ActivityRead = "Read" // ActivityStreamsRead https://www.w3.org/TR/activitystreams-vocabulary/#dfn-read ActivityRemove = "Remove" // ActivityStreamsRemove https://www.w3.org/TR/activitystreams-vocabulary/#dfn-remove ActivityTentativeReject = "TentativeReject" // ActivityStreamsTentativeReject https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativereject ActivityTentativeAccept = "TentativeAccept" // ActivityStreamsTentativeAccept https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tentativeaccept ActivityTravel = "Travel" // ActivityStreamsTravel https://www.w3.org/TR/activitystreams-vocabulary/#dfn-travel ActivityUndo = "Undo" // ActivityStreamsUndo https://www.w3.org/TR/activitystreams-vocabulary/#dfn-undo ActivityUpdate = "Update" // ActivityStreamsUpdate https://www.w3.org/TR/activitystreams-vocabulary/#dfn-update ActivityView = "View" // ActivityStreamsView https://www.w3.org/TR/activitystreams-vocabulary/#dfn-view ActorApplication = "Application" // ActivityStreamsApplication https://www.w3.org/TR/activitystreams-vocabulary/#dfn-application ActorGroup = "Group" // ActivityStreamsGroup https://www.w3.org/TR/activitystreams-vocabulary/#dfn-group ActorOrganization = "Organization" // ActivityStreamsOrganization https://www.w3.org/TR/activitystreams-vocabulary/#dfn-organization ActorPerson = "Person" // ActivityStreamsPerson https://www.w3.org/TR/activitystreams-vocabulary/#dfn-person ActorService = "Service" // ActivityStreamsService https://www.w3.org/TR/activitystreams-vocabulary/#dfn-service ObjectArticle = "Article" // ActivityStreamsArticle https://www.w3.org/TR/activitystreams-vocabulary/#dfn-article ObjectAudio = "Audio" // ActivityStreamsAudio https://www.w3.org/TR/activitystreams-vocabulary/#dfn-audio ObjectDocument = "Document" // ActivityStreamsDocument https://www.w3.org/TR/activitystreams-vocabulary/#dfn-document ObjectEvent = "Event" // ActivityStreamsEvent https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event ObjectImage = "Image" // ActivityStreamsImage https://www.w3.org/TR/activitystreams-vocabulary/#dfn-image ObjectNote = "Note" // ActivityStreamsNote https://www.w3.org/TR/activitystreams-vocabulary/#dfn-note ObjectPage = "Page" // ActivityStreamsPage https://www.w3.org/TR/activitystreams-vocabulary/#dfn-page ObjectPlace = "Place" // ActivityStreamsPlace https://www.w3.org/TR/activitystreams-vocabulary/#dfn-place ObjectProfile = "Profile" // ActivityStreamsProfile https://www.w3.org/TR/activitystreams-vocabulary/#dfn-profile ObjectRelationship = "Relationship" // ActivityStreamsRelationship https://www.w3.org/TR/activitystreams-vocabulary/#dfn-relationship ObjectTombstone = "Tombstone" // ActivityStreamsTombstone https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tombstone ObjectVideo = "Video" // ActivityStreamsVideo https://www.w3.org/TR/activitystreams-vocabulary/#dfn-video ObjectCollection = "Collection" // ActivityStreamsCollection https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collection ObjectCollectionPage = "CollectionPage" // ActivityStreamsCollectionPage https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collectionpage )
Variables ¶
This section is empty.
Functions ¶
func ExtractActor ¶
ExtractActor extracts the actor ID/IRI from an interface WithActor.
func ExtractAttachment ¶
func ExtractAttachment(i Attachmentable) (*gtsmodel.MediaAttachment, error)
ExtractAttachment returns a gts model of an attachment from an attachmentable interface.
func ExtractAttachments ¶
func ExtractAttachments(i WithAttachment) ([]*gtsmodel.MediaAttachment, error)
ExtractAttachments returns a slice of attachments on the interface.
func ExtractAttributedTo ¶
func ExtractAttributedTo(i WithAttributedTo) (*url.URL, error)
ExtractAttributedTo returns the URL of the actor that the withAttributedTo is attributed to.
func ExtractBlurhash ¶ added in v0.2.0
func ExtractBlurhash(i WithBlurhash) string
ExtractBlurhash extracts the blurhash value (if present) from a WithBlurhash interface.
func ExtractCCs ¶
ExtractCCs returns a list of URIs that the activity addresses as CC.
func ExtractContent ¶
func ExtractContent(i WithContent) string
ExtractContent returns a string representation of the interface's Content property, or an empty string if no Content is found.
func ExtractDiscoverable ¶
func ExtractDiscoverable(i WithDiscoverable) (bool, error)
ExtractDiscoverable extracts the Discoverable boolean of an interface.
func ExtractEmojis ¶
ExtractEmojis returns a slice of emojis on the interface.
func ExtractHashtag ¶
func ExtractHashtag(i Hashtaggable) (*gtsmodel.Tag, error)
ExtractHashtag returns a gtsmodel tag from a hashtaggable.
func ExtractHashtags ¶
ExtractHashtags returns a slice of tags on the interface.
func ExtractIconURL ¶
ExtractIconURL extracts a URL to a supported image file from something like:
"icon": { "mediaType": "image/jpeg", "type": "Image", "url": "http://example.org/path/to/some/file.jpeg" },
func ExtractImageURL ¶
ExtractImageURL extracts a URL to a supported image file from something like:
"image": { "mediaType": "image/jpeg", "type": "Image", "url": "http://example.org/path/to/some/file.jpeg" },
func ExtractInReplyToURI ¶
func ExtractInReplyToURI(i WithInReplyTo) *url.URL
ExtractInReplyToURI extracts the inReplyToURI property (if present) from an interface.
func ExtractMention ¶
func ExtractMention(i Mentionable) (*gtsmodel.Mention, error)
ExtractMention extracts a gts model mention from a Mentionable.
func ExtractMentions ¶
ExtractMentions extracts a slice of gtsmodel Mentions from a WithTag interface.
func ExtractName ¶
ExtractName returns a string representation of an interface's name property.
func ExtractObject ¶
func ExtractObject(i WithObject) (*url.URL, error)
ExtractObject extracts a URL object from a WithObject interface.
func ExtractPreferredUsername ¶
func ExtractPreferredUsername(i WithPreferredUsername) (string, error)
ExtractPreferredUsername returns a string representation of an interface's preferredUsername property.
func ExtractPublicKeyForOwner ¶
ExtractPublicKeyForOwner extracts the public key from an interface, as long as it belongs to the specified owner. It will return the public key itself, the id/URL of the public key, or an error if something goes wrong.
func ExtractPublished ¶
func ExtractPublished(i WithPublished) (time.Time, error)
ExtractPublished extracts the publication time of an activity.
func ExtractSensitive ¶
func ExtractSensitive(withSensitive WithSensitive) bool
ExtractSensitive extracts whether or not an item is 'sensitive'. If no sensitive property is set on the item at all, or if this property isn't a boolean, then false will be returned by default.
func ExtractSummary ¶
func ExtractSummary(i WithSummary) (string, error)
ExtractSummary extracts the summary/content warning of an interface.
func ExtractTos ¶
ExtractTos returns a list of URIs that the activity addresses as To.
func ExtractURL ¶
ExtractURL extracts the URL property of an interface.
func ExtractURLItems ¶
ExtractURLItems extracts a slice of URLs from a property that has withItems.
func ExtractVisibility ¶
func ExtractVisibility(addressable Addressable, actorFollowersURI string) (gtsmodel.Visibility, error)
ExtractVisibility extracts the gtsmodel.Visibility of a given addressable with a To and CC property.
ActorFollowersURI is needed to check whether the visibility is FollowersOnly or not. The passed-in value should just be the string value representation of the followers URI of the actor who created the activity, eg https://example.org/users/whoever/followers.
Types ¶
type Accountable ¶
type Accountable interface { WithJSONLDId WithTypeName WithPreferredUsername WithIcon WithName WithImage WithSummary WithDiscoverable WithURL WithPublicKey WithInbox WithOutbox WithFollowing WithFollowers WithFeatured WithManuallyApprovesFollowers }
Accountable represents the minimum activitypub interface for representing an 'account'. This interface is fulfilled by: Person, Application, Organization, Service, and Group
type Addressable ¶
Addressable represents the minimum interface for an addressed activity.
type Announceable ¶
type Announceable interface { WithJSONLDId WithTypeName WithActor WithObject WithPublished WithTo WithCC }
Announceable represents the minimum interface for an activitystreams 'announce' activity.
type Attachmentable ¶
type Attachmentable interface { WithTypeName WithMediaType WithURL WithName WithBlurhash }
Attachmentable represents the minimum activitypub interface for representing a 'mediaAttachment'. This interface is fulfilled by: Audio, Document, Image, Video
type Blockable ¶
type Blockable interface { WithJSONLDId WithTypeName WithActor WithObject }
Blockable represents the minimum interface for an activitystreams 'block' activity.
type CollectionPageable ¶
type CollectionPageable interface { WithJSONLDId WithTypeName WithNext WithPartOf WithItems }
CollectionPageable represents the minimum interface for an activitystreams 'CollectionPage' object.
type ContextKey ¶ added in v0.2.0
type ContextKey string
ContextKey is a type used specifically for settings values on contexts within go-fed AP request chains
const ( // ContextReceivingAccount can be used the set and retrieve the account being interacted with / receiving an activity in their inbox. ContextReceivingAccount ContextKey = "receivingAccount" // ContextRequestingAccount can be used to set and retrieve the account of an incoming federation request. // This will often be the actor of the instance that's posting the request. ContextRequestingAccount ContextKey = "requestingAccount" // ContextOtherInvolvedIRIs can be used to set and retrieve a slice of all IRIs that are 'involved' in an Activity without being // the receivingAccount or the requestingAccount. In other words, people or notes who are CC'ed or Replied To by an Activity. ContextOtherInvolvedIRIs ContextKey = "otherInvolvedIRIs" // ContextRequestingPublicKeyVerifier can be used to set and retrieve the public key verifier of an incoming federation request. ContextRequestingPublicKeyVerifier ContextKey = "requestingPublicKeyVerifier" // ContextRequestingPublicKeySignature can be used to set and retrieve the value of the signature header of an incoming federation request. ContextRequestingPublicKeySignature ContextKey = "requestingPublicKeySignature" )
type Emojiable ¶
type Emojiable interface { WithJSONLDId WithTypeName WithName WithUpdated WithIcon }
Emojiable represents the minimum interface for an 'emoji' tag.
type Followable ¶
type Followable interface { WithJSONLDId WithTypeName WithActor WithObject }
Followable represents the minimum interface for an activitystreams 'follow' activity.
type Hashtaggable ¶
type Hashtaggable interface { WithTypeName WithHref WithName }
Hashtaggable represents the minimum activitypub interface for representing a 'hashtag' tag.
type Likeable ¶
type Likeable interface { WithJSONLDId WithTypeName WithActor WithObject }
Likeable represents the minimum interface for an activitystreams 'like' activity.
type Mentionable ¶
Mentionable represents the minimum interface for a 'mention' tag.
type ReplyToable ¶ added in v0.3.4
type ReplyToable interface { WithInReplyTo }
ReplyToable represents the minimum interface for an Activity that can be InReplyTo another activity.
type Statusable ¶
type Statusable interface { WithJSONLDId WithTypeName WithSummary WithInReplyTo WithPublished WithURL WithAttributedTo WithTo WithCC WithSensitive WithConversation WithContent WithAttachment WithTag WithReplies }
Statusable represents the minimum activitypub interface for representing a 'status'. This interface is fulfilled by: Article, Document, Image, Video, Note, Page, Event, Place, Mention, Profile
type WithActor ¶
type WithActor interface {
GetActivityStreamsActor() vocab.ActivityStreamsActorProperty
}
WithActor represents an activity with ActivityStreamsActorProperty
type WithAttachment ¶
type WithAttachment interface {
GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty
}
WithAttachment represents an activity with ActivityStreamsAttachmentProperty
type WithAttributedTo ¶
type WithAttributedTo interface {
GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
}
WithAttributedTo represents an activity with ActivityStreamsAttributedToProperty
type WithBlurhash ¶ added in v0.2.0
type WithBlurhash interface {
GetTootBlurhash() vocab.TootBlurhashProperty
}
WithBlurhash represents an activity with TootBlurhashProperty
type WithCC ¶
type WithCC interface {
GetActivityStreamsCc() vocab.ActivityStreamsCcProperty
}
WithCC represents an activity with ActivityStreamsCcProperty
type WithContent ¶
type WithContent interface {
GetActivityStreamsContent() vocab.ActivityStreamsContentProperty
}
WithContent represents an activity with ActivityStreamsContentProperty
type WithDiscoverable ¶
type WithDiscoverable interface {
GetTootDiscoverable() vocab.TootDiscoverableProperty
}
WithDiscoverable represents an activity with TootDiscoverableProperty
type WithFeatured ¶
type WithFeatured interface {
GetTootFeatured() vocab.TootFeaturedProperty
}
WithFeatured represents an activity with TootFeaturedProperty
type WithFollowers ¶
type WithFollowers interface {
GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty
}
WithFollowers represents an activity with ActivityStreamsFollowersProperty
type WithFollowing ¶
type WithFollowing interface {
GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty
}
WithFollowing represents an activity with ActivityStreamsFollowingProperty
type WithHref ¶
type WithHref interface {
GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty
}
WithHref represents an activity with ActivityStreamsHrefProperty
type WithIcon ¶
type WithIcon interface {
GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty
}
WithIcon represents an activity with ActivityStreamsIconProperty
type WithImage ¶
type WithImage interface {
GetActivityStreamsImage() vocab.ActivityStreamsImageProperty
}
WithImage represents an activity with ActivityStreamsImageProperty
type WithInReplyTo ¶
type WithInReplyTo interface {
GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty
}
WithInReplyTo represents an activity with ActivityStreamsInReplyToProperty
type WithInbox ¶
type WithInbox interface {
GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty
}
WithInbox represents an activity with ActivityStreamsInboxProperty
type WithItems ¶
type WithItems interface {
GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty
}
WithItems represents an activity with ActivityStreamsItemsProperty
type WithJSONLDId ¶
type WithJSONLDId interface {
GetJSONLDId() vocab.JSONLDIdProperty
}
WithJSONLDId represents an activity with JSONLDIdProperty
type WithManuallyApprovesFollowers ¶
type WithManuallyApprovesFollowers interface {
GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty
}
WithManuallyApprovesFollowers represents a Person or profile with the ManuallyApprovesFollowers property.
type WithMediaType ¶
type WithMediaType interface {
GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty
}
WithMediaType represents an activity with ActivityStreamsMediaTypeProperty
type WithName ¶
type WithName interface {
GetActivityStreamsName() vocab.ActivityStreamsNameProperty
}
WithName represents an activity with ActivityStreamsNameProperty
type WithNext ¶
type WithNext interface {
GetActivityStreamsNext() vocab.ActivityStreamsNextProperty
}
WithNext represents an activity with ActivityStreamsNextProperty
type WithObject ¶
type WithObject interface {
GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty
}
WithObject represents an activity with ActivityStreamsObjectProperty
type WithOutbox ¶
type WithOutbox interface {
GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty
}
WithOutbox represents an activity with ActivityStreamsOutboxProperty
type WithPartOf ¶
type WithPartOf interface {
GetActivityStreamsPartOf() vocab.ActivityStreamsPartOfProperty
}
WithPartOf represents an activity with ActivityStreamsPartOfProperty
type WithPreferredUsername ¶
type WithPreferredUsername interface {
GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty
}
WithPreferredUsername represents an activity with ActivityStreamsPreferredUsernameProperty
type WithPublicKey ¶
type WithPublicKey interface {
GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty
}
WithPublicKey represents an activity with W3IDSecurityV1PublicKeyProperty
type WithPublished ¶
type WithPublished interface {
GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty
}
WithPublished represents an activity with ActivityStreamsPublishedProperty
type WithReplies ¶
type WithReplies interface {
GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty
}
WithReplies represents an activity with ActivityStreamsRepliesProperty
type WithSensitive ¶
type WithSensitive interface {
GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty
}
WithSensitive represents an activity with ActivityStreamsSensitiveProperty
type WithSummary ¶
type WithSummary interface {
GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty
}
WithSummary represents an activity with ActivityStreamsSummaryProperty
type WithTag ¶
type WithTag interface {
GetActivityStreamsTag() vocab.ActivityStreamsTagProperty
}
WithTag represents an activity with ActivityStreamsTagProperty
type WithTo ¶
type WithTo interface {
GetActivityStreamsTo() vocab.ActivityStreamsToProperty
}
WithTo represents an activity with ActivityStreamsToProperty
type WithTypeName ¶
type WithTypeName interface {
GetTypeName() string
}
WithTypeName represents an activity with a type name
type WithURL ¶
type WithURL interface {
GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty
}
WithURL represents an activity with ActivityStreamsUrlProperty
type WithUpdated ¶
type WithUpdated interface {
GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty
}
WithUpdated represents an activity with ActivityStreamsUpdatedProperty