Interface TeamMember

Represents the member of a team.

interface TeamMember {
    accepted: null | boolean;
    ordering: number;
    payouts_split: null | number;
    permissions: TeamMemberPermissions[];
    permissions_bitfield: null | number;
    role: string;
    team_id: string;
    user: User;
}

Properties

accepted: null | boolean

Whether or not the user has accepted to be on the team (requires authorization to view)

ordering: number

The order of the team member.

payouts_split: null | number

The split of payouts going to this user. The proportion of payouts they get is their split divided by the sum of the splits of all members.

permissions: TeamMemberPermissions[]

The permissions this user has on the team.

(requires authorization to view)

permissions_bitfield: null | number

The user’s permissions in bitfield format (requires authorization to view)

In order from first to tenth bit, the bits are:

  • UPLOAD_VERSION
  • DELETE_VERSION
  • EDIT_DETAILS
  • EDIT_BODY
  • MANAGE_INVITES
  • REMOVE_MEMBER
  • EDIT_MEMBER
  • DELETE_PROJECT
  • VIEW_ANALYTICS
  • VIEW_PAYOUTS
role: string

The user’s role on the team

"Member"
team_id: string

The ID of the team this team member is a member of

user: User