Shared
mash.shared · Platform
Tenant-wide enumeration and lifecycle of shared items (fLinks).
Methods
Section titled “Methods”shared.by(user: User, filter?: array) → array
List items a user has shared with others. filter: {type: “file”|“dir”|“public”, expired: bool}.
revoke
Section titled “revoke”shared.revoke(linkId: string) → bool
Revoke (delete) a shared item by link_id. Tenant-scoped.
update
Section titled “update”shared.update(linkId: string, opts: array) → array
Update expiry or description on a shared item. opts: {expires: Date|null|“keep”, description: string|null|“keep”}. “keep” leaves a field untouched; null clears it.
shared.with(user: User, filter?: array) → array
List items others have shared with a user. filter: {type: “file”|“dir”|“public”, expired: bool}.