Class CreateInviteResponse

java.lang.Object
ai.vectros.types.CreateInviteResponse

public final class CreateInviteResponse extends Object
  • Method Details

    • getUserId

      public Optional<String> getUserId()
      Returns:
      Server-generated identifier of the invited user. Stable for the life of the user, including after they accept and become active.
    • getInviteExpiresAt

      public Optional<String> getInviteExpiresAt()
      Returns:
      When the invitation token expires, as an ISO-8601 UTC timestamp. Accept requests made after this time are rejected.
    • getEmailSent

      public Optional<Boolean> getEmailSent()
      Returns:
      Whether the invitation email was sent. True only when you requested delivery (sendEmail true) and the send succeeded.
    • getInviteToken

      public Optional<String> getInviteToken()
      Returns:
      The raw invitation token. Returned only when you set sendEmail to false. Treat it as a sensitive credential: anyone holding the token can accept the invitation.
    • getAcceptLink

      public Optional<String> getAcceptLink()
      Returns:
      A ready-to-use accept link (your acceptUrl with the token appended as a t query parameter). Returned only when you set sendEmail to false, so you do not have to build the URL yourself when sending your own email.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static CreateInviteResponse.Builder builder()