using System.Text.Json.Serialization; namespace AnthropicClient.Models; /// /// Represents a file object from the Anthropic Files API. /// public class AnthropicFile { /// /// Unique object identifier. /// [JsonPropertyName("id")] public string Id { get; init; } = string.Empty; /// /// Object type. /// [JsonPropertyName("type")] public string Type { get; init; } = "file"; /// /// Original filename of the uploaded file. /// [JsonPropertyName("filename")] public string Name { get; init; } = string.Empty; /// /// Date file was created. /// [JsonPropertyName("created_at")] public DateTimeOffset CreatedAt { get; init; } /// /// Size of the file in bytes. /// [JsonPropertyName("size_bytes")] public long Size { get; init; } /// /// MIME type of the file. /// [JsonPropertyName("mime_type")] public string MimeType { get; init; } = string.Empty; /// /// Whether the file can be downloaded. /// [JsonPropertyName("downloadable")] public bool Downloadable { get; init; } }