FileListResponse - TypeScript SDK
FileListResponse - TypeScript SDK
FileListResponse type definition
A page of files belonging to the requesting workspace.
FileListResponse - TypeScript SDK
A page of files belonging to the requesting workspace.
1 import { FileListResponse } from "@openrouter/sdk/models"; 2 3 let value: FileListResponse = { 4 cursor: null, 5 data: [ 6 { 7 createdAt: "2025-01-01T00:00:00Z", 8 downloadable: false, 9 filename: "document.pdf", 10 id: "file_011CNha8iCJcU1wXNR6q4V8w", 11 mimeType: "application/pdf", 12 sizeBytes: 1024000, 13 type: "file", 14 }, 15 ], 16 firstId: "file_011CNha8iCJcU1wXNR6q4V8w", 17 hasMore: false, 18 lastId: "file_011CNha8iCJcU1wXNR6q4V8w", 19 };
| Field | Type | Required | Description |
|---|---|---|---|
cursor | string | ✔️ | Opaque cursor for the next page; null when there are no more results. |
data | models.FileMetadata[] | ✔️ | N/A |
firstId | string | ✔️ | N/A |
hasMore | boolean | ✔️ | N/A |
lastId | string | ✔️ | N/A |