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

commonMain.com.xebia.functional.openai.generated.model.User.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 `user` within an organization.
*
    * @param `object` The object type, which is always `organization.user`
    * @param id The identifier, which can be referenced in API endpoints
    * @param name The name of the user
    * @param email The email address of the user
    * @param role `owner` or `reader`
    * @param addedAt The Unix timestamp (in seconds) of when the user was added.
*/
@Serializable


data class User (
        /* The object type, which is always `organization.user` */
    @SerialName(value = "object") val `object`: User.`Object`,
        /* The identifier, which can be referenced in API endpoints */
    @SerialName(value = "id") val id: kotlin.String,
        /* The name of the user */
    @SerialName(value = "name") val name: kotlin.String,
        /* The email address of the user */
    @SerialName(value = "email") val email: kotlin.String,
        /* `owner` or `reader` */
    @SerialName(value = "role") val role: User.Role,
        /* The Unix timestamp (in seconds) of when the user was added. */
    @SerialName(value = "added_at") val addedAt: kotlin.Int
) {

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy