Module Permissions.Context

Context provided to permission callbacks.

type t

The type of permission context.

val jsont : t Jsont.t

jsont is the Jsont codec for permission context. Preserves unknown fields for forward compatibility.

val create : ?suggestions:Update.t list -> ?unknown:Unknown.t -> unit -> t

create ?suggestions ?unknown () creates a new context.

  • parameter suggestions

    Optional list of suggested permission updates

  • parameter unknown

    Optional unknown fields to preserve

val suggestions : t -> Update.t list

suggestions t returns the list of suggested updates.

val unknown : t -> Unknown.t

unknown t returns the unknown fields.