Package-level declarations

Types

Link copied to clipboard
data class AccessGrant(val direction: AccessGrantDirection, val counterpartWebId: String, val resourceUri: String, val mode: ShareMode, val status: AccessGrantStatus, val source: AccessGrantSource, val grantedAt: String?, val requestUri: String?) : Parcelable

A single access relationship between the current user and another agent over a resource, unified across every source the library can observe:

Link copied to clipboard

Direction of an AccessGrant relative to the current user.

Link copied to clipboard

Where an AccessGrant was observed.

Link copied to clipboard

Whether an AccessGrant is in effect or pending a decision.

Link copied to clipboard
data class CatalogEntry(val resourceUri: String, val title: String, val description: String?, val depictionUri: String?) : Parcelable

One row in an owner-published catalog.

Link copied to clipboard
data class GivenShare(val receiver: ShareReceiver, val mode: ShareMode, val resourceUri: String, val createdAt: String? = null, val resourceType: String? = null, val resourceName: String? = null) : Parcelable

A share the user has given (created) — the user grants receiver access of mode on resourceUri. Stored in {podRoot}/solidshare/shares/given_shares.ttl.

Link copied to clipboard
data class ParsedShareLink(val resourceUri: String, val ownerWebId: String?, val resourceType: String? = null) : Parcelable

The decoded contents of a solidshare:// share deep link.

Link copied to clipboard
data class ReceivedShare(val ownerWebId: String, val mode: ShareMode, val resourceUri: String, val addedAt: String? = null, val resourceType: String? = null, val resourceName: String? = null) : Parcelable

A share the user has received — ownerWebId has granted the current user mode on resourceUri. Stored in {podRoot}/solidshare/shares/received_shares.ttl.

Link copied to clipboard

Access mode granted to the receiver of a share.

Link copied to clipboard
data class ShareNotification(val notificationUri: String, val type: ShareNotificationType, val ownerWebId: String, val resourceUri: String, val mode: ShareMode?, val summary: String?, val publishedAt: String?, val targetWebId: String? = null, val resourceType: String? = null, val resourceName: String? = null) : Parcelable

One inbox notification surfaced to the receiver — either an offer of new access (ShareNotificationType.OFFER) or a notice that previously-granted access was withdrawn (ShareNotificationType.UNDO).

Link copied to clipboard

Kind of share notification carried by the LDN inbox.

Link copied to clipboard
sealed class ShareReceiver : Parcelable

Identifies the recipient of a share.

Link copied to clipboard
data class ShareRequest(val requestUri: String, val requesterWebId: String, val resourceUri: String, val requestedMode: ShareMode, val summary: String?, val publishedAt: String?) : Parcelable

Inbox notification representing a request from another agent asking the current user (the resource owner) to grant access.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Custom URI scheme that opens scanned shares directly in the SolidShare app.

Link copied to clipboard

Pod-relative paths used by the sharing feature.

Functions

Link copied to clipboard

The received-share counterpart of collapseByReceiver: one ReceivedShare per (ownerWebId, resourceUri) at the strongest ShareMode, preserving the earliest known ReceivedShare.addedAt and the first known ReceivedShare.resourceType / ReceivedShare.resourceName.

Link copied to clipboard

Collapses a flat list of GivenShare — which may carry several rows for one (receiver, resourceUri) when a grant writes multiple implied acl:modes (e.g. Read+Append for "Add", Read+Write for "Edit") — into a single row per pair carrying the strongest ShareMode. Each receiver therefore appears once per resource at its effective access level. The earliest known GivenShare.createdAt is preserved, as are the first known GivenShare.resourceType / GivenShare.resourceName.