File

@Serializable
data class File(val id: FileId, val bytes: Int, val createdAt: Long, val filename: String, val purpose: Purpose, val status: Status? = null, val format: String? = null, val statusDetails: String? = null)

File details.

Constructors

Link copied to clipboard
constructor(id: FileId, bytes: Int, createdAt: Long, filename: String, purpose: Purpose, status: Status? = null, format: String? = null, statusDetails: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "bytes")
val bytes: Int

File size.

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long

File creation date.

Link copied to clipboard
@SerialName(value = "filename")
val filename: String

File name.

Link copied to clipboard
@SerialName(value = "format")
val format: String? = null

File format.

Link copied to clipboard
@SerialName(value = "id")
val id: FileId

A unique id assigned to this file.

Link copied to clipboard
@SerialName(value = "purpose")
val purpose: Purpose

File purpose.

Link copied to clipboard
@SerialName(value = "status")
val status: Status? = null

File status.

Link copied to clipboard
@SerialName(value = "status_details")
val statusDetails: String? = null

File status details