chore: add pre-built dist folder for npx usage

This commit is contained in:
thesved
2025-12-04 20:22:02 +02:00
committed by Romuald Członkowski
parent a70d96a373
commit 5057481e70
716 changed files with 48021 additions and 0 deletions

35
dist/templates/batch-processor.d.ts vendored Normal file
View File

@@ -0,0 +1,35 @@
import { MetadataRequest, MetadataResult } from './metadata-generator';
export interface BatchProcessorOptions {
apiKey: string;
model?: string;
batchSize?: number;
outputDir?: string;
}
export interface BatchJob {
id: string;
status: 'validating' | 'in_progress' | 'finalizing' | 'completed' | 'failed' | 'expired' | 'cancelled';
created_at: number;
completed_at?: number;
input_file_id: string;
output_file_id?: string;
error?: any;
}
export declare class BatchProcessor {
private client;
private generator;
private batchSize;
private outputDir;
constructor(options: BatchProcessorOptions);
processTemplates(templates: MetadataRequest[], progressCallback?: (message: string, current: number, total: number) => void): Promise<Map<number, MetadataResult>>;
private submitBatch;
private processBatch;
private createBatches;
private createBatchFile;
private uploadFile;
private createBatchJob;
private monitorBatchJob;
private retrieveResults;
private cleanup;
private sleep;
}
//# sourceMappingURL=batch-processor.d.ts.map