mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 17:08:13 +00:00
- Add rename media file - add delete media file - Add many load functions - add user bookmarks (no tests yet) - user bookmarks - fixes and unit tests - user rating - Add analytics - add beta keys endpoints - add comments endpoints - Add conversion endpoint - Add featured items endpoints - Add to Jobs enpoints - Add moderation endpoint - Initial weights endpoints - All weight enpoints, no unit tests - unit tests for weights extra fixes from wil: - turn off proxy settings for node_env === development - audit packages --------- Co-authored-by: Christopher Oliphant <christopheroliphant@christophersmbp.home> Co-authored-by: wil <wil@storyteller.ai>
37 lines
887 B
TypeScript
37 lines
887 B
TypeScript
import { JobStatus } from "~/enums";
|
|
|
|
export interface Job {
|
|
created_at: string;
|
|
job_token: string;
|
|
maybe_result: JobMaybeResult;
|
|
request: JobRequest;
|
|
status: JobStatusResponse;
|
|
updated_at: string;
|
|
}
|
|
|
|
export interface JobMaybeResult {
|
|
entity_token: string;
|
|
entity_type: string;
|
|
maybe_public_bucket_media_path: string;
|
|
maybe_successfully_completed_at: string;
|
|
}
|
|
export interface JobRequest {
|
|
inference_category: string;
|
|
maybe_model_title: string;
|
|
maybe_model_token: string;
|
|
maybe_model_type: string;
|
|
maybe_raw_inference_text: string;
|
|
maybe_style_name: string;
|
|
}
|
|
|
|
export interface JobStatusResponse {
|
|
attempt_count: number;
|
|
maybe_assigned_cluster: string;
|
|
maybe_assigned_worker: string;
|
|
maybe_extra_status_description: string;
|
|
maybe_failure_category: string;
|
|
maybe_first_started_at: string;
|
|
requires_keepalive: boolean;
|
|
status: JobStatus;
|
|
}
|