Type aliases
AuthorisationCache
AuthorisationCache: { expirationDate: Date; refreshToken: string; token: string } | undefined
CredentialsBody
CredentialsBody: { email: string; password: string }
Type declaration
email: string
password: string
SavedTask
SavedTask: { created_at: string; deleted_at: string | null; id: number; image_url: string; is_public: boolean; name: string; prompt: string; prompt_visible: boolean; result: { final: string }; task_id: string; tradingcard_url: string | null; updated_at: string; user_id: string }
Type declaration
created_at: string
deleted_at: string | null
id: number
image_url: string
is_public: boolean
name: string
prompt: string
prompt_visible: boolean
result: { final: string }
task_id: string
tradingcard_url: string | null
updated_at: string
user_id: string
Style
Style: { created_at: string; deleted_at: string | null; id: number; is_visible: boolean; name: string; photo_url: string; updated_at: string }
Type declaration
created_at: string
deleted_at: string | null
id: number
is_visible: boolean
name: string
photo_url: string
updated_at: string
Task
Task
: { created_at
: string; generated_photo_keys
: string[]; id
: string; input_spec
: TaskInputSpec | null; photo_url_list
: string[]; premium
: boolean; result
: { final
: string } | null; state
: "input" | "pending" | "generating" | "completed" | "failed"; updated_at
: string; user_id
: string }Type declaration
created_at: string
generated_photo_keys: string[]
id: string
photo_url_list: string[]
premium: boolean
result: { final: string } | null
state: "input" | "pending" | "generating" | "completed" | "failed"
updated_at: string
user_id: string
TaskImageInputSpec
TaskImageInputSpec: { mediastore_id: string; weight: "LOW" | "MEDIUM" | "HIGH" }
Type declaration
mediastore_id: string
weight: "LOW" | "MEDIUM" | "HIGH"
TaskInputSpec
Task
Input
Spec
: { display_freq
?: number; input_image
?: TaskImageInputSpec; prompt
: string; style
: number }Type declaration
Optional display_freq?: number
prompt: string
style: number
UploadResource
UploadResource: { created_at: string; expiry_at: string; id: string; media_url: string }
Type declaration
created_at: string
expiry_at: string
id: string
media_url: string