commonMain.com.xebia.functional.openai.generated.model.AuditLog.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xef-openai-client Show documentation
Show all versions of xef-openai-client Show documentation
Building applications with LLMs through composability in Kotlin
The 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 com.xebia.functional.openai.generated.model.AuditLogActor
import com.xebia.functional.openai.generated.model.AuditLogApiKeyCreated
import com.xebia.functional.openai.generated.model.AuditLogApiKeyDeleted
import com.xebia.functional.openai.generated.model.AuditLogApiKeyUpdated
import com.xebia.functional.openai.generated.model.AuditLogEventType
import com.xebia.functional.openai.generated.model.AuditLogInviteAccepted
import com.xebia.functional.openai.generated.model.AuditLogInviteSent
import com.xebia.functional.openai.generated.model.AuditLogLoginFailed
import com.xebia.functional.openai.generated.model.AuditLogOrganizationUpdated
import com.xebia.functional.openai.generated.model.AuditLogProject
import com.xebia.functional.openai.generated.model.AuditLogProjectArchived
import com.xebia.functional.openai.generated.model.AuditLogProjectCreated
import com.xebia.functional.openai.generated.model.AuditLogProjectUpdated
import com.xebia.functional.openai.generated.model.AuditLogServiceAccountCreated
import com.xebia.functional.openai.generated.model.AuditLogServiceAccountDeleted
import com.xebia.functional.openai.generated.model.AuditLogServiceAccountUpdated
import com.xebia.functional.openai.generated.model.AuditLogUserAdded
import com.xebia.functional.openai.generated.model.AuditLogUserDeleted
import com.xebia.functional.openai.generated.model.AuditLogUserUpdated
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*
/**
* A log of a user action or configuration change within this organization.
*
* @param id The ID of this log.
* @param type
* @param effectiveAt The Unix timestamp (in seconds) of the event.
* @param actor
* @param project
* @param apiKeyCreated
* @param apiKeyUpdated
* @param apiKeyDeleted
* @param inviteSent
* @param inviteAccepted
* @param inviteDeleted
* @param loginFailed
* @param logoutFailed
* @param organizationUpdated
* @param projectCreated
* @param projectUpdated
* @param projectArchived
* @param serviceAccountCreated
* @param serviceAccountUpdated
* @param serviceAccountDeleted
* @param userAdded
* @param userUpdated
* @param userDeleted
*/
@Serializable
data class AuditLog (
/* The ID of this log. */
@SerialName(value = "id") val id: kotlin.String,
@SerialName(value = "type") val type: AuditLogEventType,
/* The Unix timestamp (in seconds) of the event. */
@SerialName(value = "effective_at") val effectiveAt: kotlin.Int,
@SerialName(value = "actor") val actor: AuditLogActor,
@SerialName(value = "project") val project: AuditLogProject? = null,
@SerialName(value = "api_key.created") val apiKeyCreated: AuditLogApiKeyCreated? = null,
@SerialName(value = "api_key.updated") val apiKeyUpdated: AuditLogApiKeyUpdated? = null,
@SerialName(value = "api_key.deleted") val apiKeyDeleted: AuditLogApiKeyDeleted? = null,
@SerialName(value = "invite.sent") val inviteSent: AuditLogInviteSent? = null,
@SerialName(value = "invite.accepted") val inviteAccepted: AuditLogInviteAccepted? = null,
@SerialName(value = "invite.deleted") val inviteDeleted: AuditLogInviteAccepted? = null,
@SerialName(value = "login.failed") val loginFailed: AuditLogLoginFailed? = null,
@SerialName(value = "logout.failed") val logoutFailed: AuditLogLoginFailed? = null,
@SerialName(value = "organization.updated") val organizationUpdated: AuditLogOrganizationUpdated? = null,
@SerialName(value = "project.created") val projectCreated: AuditLogProjectCreated? = null,
@SerialName(value = "project.updated") val projectUpdated: AuditLogProjectUpdated? = null,
@SerialName(value = "project.archived") val projectArchived: AuditLogProjectArchived? = null,
@SerialName(value = "service_account.created") val serviceAccountCreated: AuditLogServiceAccountCreated? = null,
@SerialName(value = "service_account.updated") val serviceAccountUpdated: AuditLogServiceAccountUpdated? = null,
@SerialName(value = "service_account.deleted") val serviceAccountDeleted: AuditLogServiceAccountDeleted? = null,
@SerialName(value = "user.added") val userAdded: AuditLogUserAdded? = null,
@SerialName(value = "user.updated") val userUpdated: AuditLogUserUpdated? = null,
@SerialName(value = "user.deleted") val userDeleted: AuditLogUserDeleted? = null
) {
}