Skip to content
0

katanakit-js / AccessRole

Type Alias: AccessRole ​

ts
type AccessRole = z.infer<typeof AccessRoleSchema>;

Defined in: src/types/index.ts:960

A role slug. Closed vocabulary by convention (BuiltInRole), open by schema: useRegisterRole takes any slug matching the pattern.

  • owner — the site owner; the only role that can manage roles and perform system-level operations. There should be exactly one owner.
  • admin — day-to-day administration: manage members and moderate anything.
  • editor — act on anyone's resource.
  • author — create and act on their own, including publishing.
  • contributor — act on their own but not publish.
  • member — registered account; can use the assistant and read content.
  • guest — anonymous default; read-only, never persisted.

Released under the MIT License.