All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.xebia.functional.openai.generated.model.Invite.kt Maven / Gradle / Ivy

There is a newer version: 0.0.5-alpha.118
Show newest version
/**
 *
 * Please note:
 * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * Do not edit this file manually.
 *
 */

@file:Suppress(
    "ArrayInDataClass",
    "EnumEntryName",
    "RemoveRedundantQualifierName",
    "UnusedImport"
)

package com.xebia.functional.openai.generated.model




import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*

/**
* Represents an individual `invite` to the organization.
*
    * @param `object` The object type, which is always `organization.invite`
    * @param id The identifier, which can be referenced in API endpoints
    * @param email The email address of the individual to whom the invite was sent
    * @param role `owner` or `reader`
    * @param status `accepted`,`expired`, or `pending`
    * @param invitedAt The Unix timestamp (in seconds) of when the invite was sent.
    * @param expiresAt The Unix timestamp (in seconds) of when the invite expires.
    * @param acceptedAt The Unix timestamp (in seconds) of when the invite was accepted.
*/
@Serializable


data class Invite (
        /* The object type, which is always `organization.invite` */
    @SerialName(value = "object") val `object`: Invite.`Object`,
        /* The identifier, which can be referenced in API endpoints */
    @SerialName(value = "id") val id: kotlin.String,
        /* The email address of the individual to whom the invite was sent */
    @SerialName(value = "email") val email: kotlin.String,
        /* `owner` or `reader` */
    @SerialName(value = "role") val role: Invite.Role,
        /* `accepted`,`expired`, or `pending` */
    @SerialName(value = "status") val status: Invite.Status,
        /* The Unix timestamp (in seconds) of when the invite was sent. */
    @SerialName(value = "invited_at") val invitedAt: kotlin.Int,
        /* The Unix timestamp (in seconds) of when the invite expires. */
    @SerialName(value = "expires_at") val expiresAt: kotlin.Int,
        /* The Unix timestamp (in seconds) of when the invite was accepted. */
    @SerialName(value = "accepted_at") val acceptedAt: kotlin.Int? = null
) {

            /**
            * The object type, which is always `organization.invite`
            *
            * Values: organization_invite
            */
            @Serializable
            enum class `Object`(val value: kotlin.String) {
                @SerialName(value = "organization.invite") organization_invite("organization.invite");
                }
            /**
            * `owner` or `reader`
            *
            * Values: owner,reader
            */
            @Serializable
            enum class Role(val value: kotlin.String) {
                @SerialName(value = "owner") owner("owner"),
                @SerialName(value = "reader") reader("reader");
                }
            /**
            * `accepted`,`expired`, or `pending`
            *
            * Values: accepted,expired,pending
            */
            @Serializable
            enum class Status(val value: kotlin.String) {
                @SerialName(value = "accepted") accepted("accepted"),
                @SerialName(value = "expired") expired("expired"),
                @SerialName(value = "pending") pending("pending");
                }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy