using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
///
/// Represents a file object from the Anthropic Files API.
///
public class AnthropicFile
{
///
/// Unique object identifier.
/// The format and length of IDs may change over time.
///
[JsonPropertyName("id")]
public string Id { get; init; } = string.Empty;
///
/// Object type.
/// For files, this is always "file".
///
[JsonPropertyName("type")]
public string Type { get; init; } = "file";
///
/// Original filename of the uploaded file.
///
[JsonPropertyName("file_name")]
public string FileName { get; init; } = string.Empty;
///
/// RFC 3339 datetime string representing when the file was created.
///
[JsonPropertyName("created_at")]
public string CreatedAt { get; init; } = string.Empty;
///
/// Size of the file in bytes.
///
[JsonPropertyName("size_bytes")]
public long SizeBytes { get; init; }
///
/// MIME type of the file.
///
[JsonPropertyName("file_type")]
public string FileType { get; init; } = string.Empty;
///
/// Whether the file can be downloaded.
///
[JsonPropertyName("downloadable")]
public bool Downloadable { get; init; }
}