FileT
Example Usage
typescript
import { FileT } from "@meetkai/mka1/models/components";
let value: FileT = {
id: "file-abc123",
bytes: 125000,
createdAt: 1704067200,
filename: "product-manual.pdf",
purpose: "assistants",
status: "processed",
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | The file identifier |
object | "file" | ➖ | N/A |
bytes | number | ✔️ | The size of the file in bytes |
createdAt | number | ✔️ | Unix timestamp when the file was created |
expiresAt | number | ➖ | Unix timestamp when the file expires |
filename | string | ✔️ | The name of the file |
purpose | components.Purpose | ✔️ | The intended purpose of the file |
status | components.FileStatus | ➖ | DEPRECATED: File processing status |
statusDetails | string | ➖ | DEPRECATED: Details about file status |