Skip to content

Shared

mash.shared · Platform

Tenant-wide enumeration and lifecycle of shared items (fLinks).

shared.by(user: User, filter?: array) → array

List items a user has shared with others. filter: {type: “file”|“dir”|“public”, expired: bool}.

shared.revoke(linkId: string) → bool

Revoke (delete) a shared item by link_id. Tenant-scoped.

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}.