Package-level declarations

Types

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
value class FileId(val id: String)

File identifier.

Link copied to clipboard
class FileSource(val name: String, val source: RawSource)

Represents a file resource.

Link copied to clipboard

Builder of FileSource instances.

Link copied to clipboard
@Serializable
value class FileStatus(val raw: String)

File status.

Link copied to clipboard
class FileUpload(val file: FileSource, val purpose: Purpose)

Request to upload a file.

Link copied to clipboard

Builders of FileUpload instances.

Link copied to clipboard
@Serializable
value class Purpose(val raw: String)

File purpose.

Functions

Link copied to clipboard

Represents a file resource.

Link copied to clipboard

Request to upload a file.