ShareNotificationType

Kind of share notification carried by the LDN inbox.

Maps to Activity Streams 2 / SolidShare activity types:

  • OFFERas:Offer — owner is granting access to me

  • UPDATEDas:Update — owner changed the access level they grant me

  • ACCEPTEDas:Accept — owner has granted an AccessRequest I sent

  • UNDOas:Undo — owner has retracted access they gave me

  • REJECTas:Reject — owner has declined an AccessRequest I sent

  • DECISION_GRANTEDas:Accept I authored — my own record of having granted someone else's AccessRequest

  • DECISION_REJECTEDas:Reject I authored — my own record of having declined someone else's AccessRequest

The two DECISION_* variants are the inbox owner's own read-only memo of a decision they made on an incoming request. They are the same as:Accept / as:Reject activity the owner sends the requester (see NotificationsManager.sendAccept / sendReject), mirrored into the owner's own inbox. The reader tells them apart from a genuine incoming accept/reject purely by whose inbox they sit in: an accept/reject whose as:actor is the inbox owner is a self-authored decision; otherwise it came from a counterpart. They carry no received-share side effect.

Entries

Link copied to clipboard

Sender is offering access.

Link copied to clipboard

Sender previously granted access and has now changed the level they grant me — widened or narrowed it. as:Update; resourceUri is the resource and mode the new level. Treated like OFFER for received-share syncing, so the stored row's mode is updated in place.

Link copied to clipboard

Sender previously offered access and has now revoked it.

Link copied to clipboard

Owner has rejected an AccessRequest I previously sent. The notification's mode field is null; resourceUri is the resource I had requested. The owner may include a rationale in summary.

Link copied to clipboard

Owner has accepted an AccessRequest I previously sent. resourceUri is the resource I requested and mode the granted mode; the owner is the as:actor. Treated like OFFER for received-share syncing.

Link copied to clipboard

My own record that I granted a request from someone else. actor (ShareNotification.ownerWebId) is me, target (ShareNotification.targetWebId) is the requester I granted, resourceUri the resource of mine I shared, and mode the granted mode. Read-only — no received-share side effect.

Link copied to clipboard

My own record that I declined a request from someone else. actor (ShareNotification.ownerWebId) is me, target (ShareNotification.targetWebId) is the requester I declined, resourceUri the resource they asked for, mode the mode they requested, and summary an optional rationale. Read-only — no received-share side effect.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.