class

OpenAI::Invite

Inherits JSON::Serializable < Reference < Object

Represents an individual invite to the organization.

Constructors

new(object : InviteObject = InviteObject::OrganizationInvite, id : String = "", email : String = "", role : InviteRole = InviteRole::Owner, status : InviteStatus = InviteStatus::Accepted, invited_at : Int64 = 0, expires_at : Int64 = 0, accepted_at : Int64 | Nil = nil, projects : Array(InviteProjectsItem) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

accepted_at

The Unix timestamp (in seconds) of when the invite was accepted.

Source
accepted_at=(accepted_at : Int64 | Nil)

The Unix timestamp (in seconds) of when the invite was accepted.

Source
email

The email address of the individual to whom the invite was sent

Source
email=(email : String)

The email address of the individual to whom the invite was sent

Source
expires_at

The Unix timestamp (in seconds) of when the invite expires.

Source
expires_at=(expires_at : Int64)

The Unix timestamp (in seconds) of when the invite expires.

Source
id

The identifier, which can be referenced in API endpoints

Source
id=(id : String)

The identifier, which can be referenced in API endpoints

Source
invited_at

The Unix timestamp (in seconds) of when the invite was sent.

Source
invited_at=(invited_at : Int64)

The Unix timestamp (in seconds) of when the invite was sent.

Source
object

The object type, which is always organization.invite

Source
object=(object : InviteObject)

The object type, which is always organization.invite

Source
projects

The projects that were granted membership upon acceptance of the invite.

Source
projects=(projects : Array(InviteProjectsItem) | Nil)

The projects that were granted membership upon acceptance of the invite.

Source
role

owner or reader

Source
role=(role : InviteRole)

owner or reader

Source
status

accepted,expired, or pending

Source
status=(status : InviteStatus)

accepted,expired, or pending

Source