Skip to main content

sharesForResource

List revocation-safe METADATA for every share link of a resource the caller can publish. AUTHENTICATED; authorization is enforced in the resolver (workspace__{strategy,bot}__make_public on the resource's owning workspace — the SAME authority createShareLink/revokeShareLink take, so you may list the links you are allowed to revoke), generic over resourceType. NEVER returns the slug. It DOES return viewCount / lastViewedAt — owner-private link telemetry, which is why the gate is the publish authority and not a read scope: a read scope would inherit the public-entity read bypass and expose that telemetry to every authenticated user once the resource itself is made public. Lets the publish drawer list + revoke existing links across sessions.

sharesForResource(
resourceType: ShareResourceType!
resourceID: ID!
): [ShareLinkInfo!]!

Arguments

sharesForResource.resourceType ● ShareResourceType! non-null enum

sharesForResource.resourceID ● ID! non-null scalar

Type

ShareLinkInfo object

Revocation-safe METADATA for one existing share link, returned by sharesForResource so the publish drawer can list and revoke links across sessions. It NEVER contains the slug or slug_hash (the slug is shown exactly once at creation and is not re-derivable), nor owner_id / resource ids.