Your Name f6979f0196
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
feat: 完善无限画布3D生成与实时画布能力
2026-02-28 22:33:16 +08:00

59 lines
1.1 KiB
TypeScript

export type TripoTaskType =
| "text_to_model"
| "image_to_model"
| "multiview_to_model"
| "convert_model"
| "refine_model"
| "stylize_model"
| "texture_model"
| "animate_prerigcheck"
| "animate_rig"
| "animate_retarget"
| "mesh_segmentation"
| "mesh_completion"
| "highpoly_to_lowpoly";
export type TripoTaskStatus =
| "queued"
| "running"
| "success"
| "failed"
| "banned"
| "expired"
| "cancelled"
| "unknown";
export interface TripoTaskOutput {
model?: string;
base_model?: string;
pbr_model?: string;
generated_image?: string;
rendered_image?: string;
[key: string]: unknown;
}
export interface TripoTaskData {
task_id: string;
type: TripoTaskType | string;
status: TripoTaskStatus | string;
progress?: number;
output?: TripoTaskOutput;
error_code?: number;
error_msg?: string;
[key: string]: unknown;
}
export interface TripoProviderConfig {
apiKey: string;
baseUrl: string;
providerId?: string;
providerName?: string;
}
export interface TripoApiEnvelope<T> {
code: number;
data: T;
message?: string;
suggestion?: string;
}