4e7bcb8f24
图标和UI图集拆分失败时保留主图集并在内联、队列及刷新路径提示 角色、图片修改、图标UI和角色动作链路把可恢复中间产物写入项目与素材库 外部生成摘要新增独立告警字段并清理成功任务的历史错误 同步共享契约、SpacetimeDB迁移与绑定、OpenAPI、设计文档和回归测试
68 lines
1.6 KiB
TypeScript
68 lines
1.6 KiB
TypeScript
export type ExternalGenerationJobStatus =
|
|
| 'queued'
|
|
| 'running'
|
|
| 'completed'
|
|
| 'failed';
|
|
|
|
export interface ExternalGenerationQueueOverview {
|
|
pendingCount: number;
|
|
runningCount: number;
|
|
unacknowledgedTerminalCount: number;
|
|
updatedAtMicros: number;
|
|
}
|
|
|
|
export interface ExternalGenerationQueueOverviewResponse {
|
|
overview: ExternalGenerationQueueOverview;
|
|
}
|
|
|
|
export interface ExternalGenerationJobStatusRecord {
|
|
operationId: string;
|
|
status: ExternalGenerationJobStatus;
|
|
phaseLabel: string;
|
|
phaseDetail: string;
|
|
progress: number;
|
|
error?: string | null;
|
|
warning?: string | null;
|
|
updatedAtMicros: number;
|
|
}
|
|
|
|
export interface ExternalGenerationJobStatusResponse {
|
|
job: ExternalGenerationJobStatusRecord;
|
|
}
|
|
|
|
export interface ExternalGenerationTaskRecord {
|
|
jobId: string;
|
|
jobKind: string;
|
|
sourceModule: string;
|
|
sourceEntityId: string;
|
|
requestLabel: string;
|
|
requestPrompt?: string | null;
|
|
status: ExternalGenerationJobStatus;
|
|
phaseLabel: string;
|
|
phaseDetail: string;
|
|
progress: number;
|
|
error?: string | null;
|
|
warning?: string | null;
|
|
priceMudPoints: number;
|
|
refundLedgerId?: string | null;
|
|
notificationAcknowledgedAt?: string | null;
|
|
createdAt: string;
|
|
startedAt?: string | null;
|
|
completedAt?: string | null;
|
|
updatedAt: string;
|
|
updatedAtMicros: number;
|
|
}
|
|
|
|
export interface ExternalGenerationTaskListResponse {
|
|
tasks: ExternalGenerationTaskRecord[];
|
|
overview: ExternalGenerationQueueOverview;
|
|
}
|
|
|
|
export interface ExternalGenerationTaskAcknowledgeRequest {
|
|
jobIds: string[];
|
|
}
|
|
|
|
export interface ExternalGenerationTaskAcknowledgeResponse {
|
|
acknowledgedTasks: ExternalGenerationTaskRecord[];
|
|
}
|