coze-plugin-utils
Version:
Comprehensive utility library for Coze plugins with multimedia processing, browser automation, cloud storage integration, and AI-powered video/audio generation capabilities
19 lines (18 loc) • 662 B
TypeScript
import { type JWTToken } from '@coze/api';
export declare function applyToken(): Promise<JWTToken>;
export declare function getTempPath(tmpPath: string): string;
export declare function uploadFile(tmpFile: string, autoClear?: boolean): Promise<{
url: string;
}>;
export declare function createTempDir(): string;
interface ILocalFile {
file: string;
contentType?: string;
createOutput: (ext: string) => string;
}
export declare function downloadFile(url: string, filename: string, tempDir?: string): Promise<ILocalFile>;
export declare function downloadFiles(files: {
url: string;
filename: string;
}[]): Promise<ILocalFile[]>;
export {};