feat: add file storage settings and uploads

This commit is contained in:
2026-05-13 20:23:45 +08:00
parent 0d0d0b9115
commit fc5dfd6bc5
21 changed files with 3401 additions and 72 deletions
+40
View File
@@ -844,6 +844,46 @@ export interface GatewayNetworkProxyConfig {
globalHttpProxySource?: string;
}
export interface FileStorageChannel {
id: string;
channelKey: string;
name: string;
provider: 'server_main_openapi' | 'aliyun_oss' | 'tencent_cos' | string;
uploadUrl?: string;
credentialsPreview?: Record<string, unknown>;
scenes?: string[];
config?: Record<string, unknown>;
retryPolicy?: Record<string, unknown>;
priority: number;
status: 'enabled' | 'disabled' | string;
lastError?: string;
lastFailedAt?: string;
lastSucceededAt?: string;
createdAt: string;
updatedAt: string;
}
export interface FileStorageChannelUpsertRequest {
channelKey: string;
name: string;
provider?: 'server_main_openapi' | 'aliyun_oss' | 'tencent_cos' | string;
uploadUrl?: string;
apiKey?: string;
scenes?: string[];
config?: Record<string, unknown>;
retryPolicy?: Record<string, unknown>;
priority?: number;
status?: 'enabled' | 'disabled' | string;
}
export interface FileStorageSettings {
resultUploadPolicy: 'default' | 'upload_all' | 'upload_none' | string;
}
export interface FileStorageSettingsUpdateRequest {
resultUploadPolicy: 'default' | 'upload_all' | 'upload_none' | string;
}
export interface GatewayTask {
id: string;
kind: string;