03a4410272
主要工作是共享同一套“画布内核与通用 UI 源码”,网站和 Tauri 只分别实现宿主适配层。 --------- Co-authored-by: 段舒康 <kdletters@qq.com> Co-authored-by: kdletters <kdletters@qq.com> Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/136 Co-authored-by: menghao <mh18530625731@163.com> Co-committed-by: menghao <mh18530625731@163.com>
69 lines
1.6 KiB
TypeScript
69 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;
|
|
result?: unknown;
|
|
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[];
|
|
}
|