package model type User struct { ID string `json:"id"` Username string `json:"username"` DisplayName string `json:"display_name"` CreatedAt string `json:"created_at"` } type CreateUserRequest struct { Username string `json:"username"` DisplayName string `json:"display_name"` Password string `json:"password"` } type Session struct { Token string `json:"token"` TokenType string `json:"token_type"` ExpiresAt string `json:"expires_at"` User User `json:"user"` } type Chat struct { ID string `json:"id"` Title string `json:"title"` MemberIDs []string `json:"member_ids"` CreatedAt string `json:"created_at"` } type CreateChatRequest struct { Title string `json:"title"` MemberIDs []string `json:"member_ids"` } type Variant struct { Name string `json:"name"` ContentType string `json:"content_type"` SizeBytes int64 `json:"size_bytes"` Width int `json:"width"` Height int `json:"height"` SHA256 string `json:"sha256"` } type Attachment struct { ID string `json:"id"` ChatID string `json:"chat_id"` OwnerID string `json:"owner_id"` Filename string `json:"filename"` ContentType string `json:"content_type"` SizeBytes int64 `json:"size_bytes"` SHA256 string `json:"sha256"` Status string `json:"status"` Variants []Variant `json:"variants"` ErrorCode *string `json:"error_code"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` ObjectKey string `json:"-"` } type Message struct { ID string `json:"id"` ChatID string `json:"chat_id"` SenderID string `json:"sender_id"` Text string `json:"text"` CreatedAt string `json:"created_at"` AttachmentIDs []string `json:"attachment_ids"` } type CreateMessageRequest struct { Text string `json:"text"` AttachmentIDs []string `json:"attachment_ids,omitempty"` } type ChatPage struct { Items []Chat `json:"items"` NextCursor *string `json:"next_cursor"` } type MessagePage struct { Items []Message `json:"items"` NextCursor *string `json:"next_cursor"` } type ErrorDetail struct { Code string `json:"code"` Message string `json:"message"` RequestID string `json:"request_id"` } type ErrorResponse struct { Error ErrorDetail `json:"error"` } type HealthResponse struct { Status string `json:"status"` } type CursorData struct { Scope string `json:"s"` Time string `json:"t"` ID string `json:"i"` }