View Source Permify.Schema (Permify v0.1.0)

Provides some functions to manipulate the Permify schema.

Link to this section Summary

Functions

Lookup your authorization model

Read your authorization model

Write your authorization model

Link to this section Types

@type lookup_req() :: %{
  entity_type: binary(),
  relation_names: [binary()],
  schema_version: Permify.schema_version()
}
@type lookup_resp() :: [binary()]
@type read_resp() :: map()
@type schema() :: binary()

Link to this section Functions

@spec lookup(Permify.Client.t(), lookup_req()) ::
  {:ok, lookup_resp()} | Permify.Client.error()

Lookup your authorization model

Link to this function

read(client, schema_version)

View Source

Read your authorization model

Write your authorization model