Lettermint.Team.Invites (Lettermint v2.2.0)

Copy Markdown View Source

Pending team invitations. Needs :team_token.

Every function takes the options timeout: (milliseconds) last.

Summary

Functions

Invites a person to the team and sends the invitation email. The team needs a free seat, and the Owner role cannot be assigned.

Streams every pending invitation, following next_cursor. Raises the error of a failed page request.

Lists pending invitations, one page at a time. query: Lettermint.Types.ListTeamInvitesQuery.t/0.

Retrieves a pending invitation.

Revokes a pending invitation.

Replaces the email, role and project access of a pending invitation. A new invitation email is sent only when the address changes.

Types

result(value)

@type result(value) :: {:ok, value} | {:error, Lettermint.Error.t()}

Functions

create(client, body, options \\ [])

Invites a person to the team and sends the invitation email. The team needs a free seat, and the Owner role cannot be assigned.

iterate(client, query \\ %{}, options \\ [])

Streams every pending invitation, following next_cursor. Raises the error of a failed page request.

list(client, query \\ %{}, options \\ [])

Lists pending invitations, one page at a time. query: Lettermint.Types.ListTeamInvitesQuery.t/0.

retrieve(client, invite_id, options \\ [])

Retrieves a pending invitation.

revoke(client, invite_id, options \\ [])

Revokes a pending invitation.

update(client, invite_id, body, options \\ [])

Replaces the email, role and project access of a pending invitation. A new invitation email is sent only when the address changes.