Files
client_panel/app/components/Pterodactyl/interfaces.tsx
2024-09-01 09:33:29 +00:00

23 lines
593 B
TypeScript

export interface File {
object: string; // "file_object" or "list" in the provided JSON
attributes: {
name: string;
mode: string; // e.g., "-rw-r--r--"
mode_bits: string; // e.g., "644"
size: number;
is_file: boolean;
is_symlink: boolean;
mimetype: string; // e.g., "application/json"
created_at: string; // e.g., "2024-08-29T22:31:59+00:00"
modified_at: string; // e.g., "2024-08-29T22:31:59+00:00"
};
}
export interface Pterodactyl {
server_id: string;
api_key: string;
files: any;
constructor(server_id: string, api_key: string): void;
}