Skip to content

OrgRole

OrgRole = "owner" | "admin" | "editor" | "viewer"

Caller’s role within an organization. Returned by client.org.getCallerRole, carried as callerRole on client.org.listMembers results, and accepted by client.org.changeMemberRole to set a member’s role (only owners may promote to or demote from 'owner'; the last owner cannot be demoted). Mirrors orgRoleSchema in @warmhub/backend; the static check below blocks any drift between this literal and the generated copy.

https://docs.warmhub.ai/auth/personal-access-tokens/#available-permissions